@zyzgroup/core-web 0.0.8 → 0.0.10
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.
- package/dist/zyzgroup_core_web.iife.js +9 -3
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +8324 -4506
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +9 -3
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/DOMKeyboardKeyCode.d.ts.map +1 -1
- package/types/animate.d.ts.map +1 -1
- package/types/canvas/canvas2svg.d.ts +104 -0
- package/types/canvas/canvas2svg.d.ts.map +1 -0
- package/types/canvas/index.d.ts +67 -0
- package/types/canvas/index.d.ts.map +1 -0
- package/types/canvas/shapes/arrow.d.ts +9 -0
- package/types/canvas/shapes/arrow.d.ts.map +1 -0
- package/types/canvas/shapes/ball.d.ts +22 -0
- package/types/canvas/shapes/ball.d.ts.map +1 -0
- package/types/canvas/shapes/ball3d.d.ts +21 -0
- package/types/canvas/shapes/ball3d.d.ts.map +1 -0
- package/types/canvas/shapes/box.d.ts +16 -0
- package/types/canvas/shapes/box.d.ts.map +1 -0
- package/types/canvas/shapes/light.d.ts +9 -0
- package/types/canvas/shapes/light.d.ts.map +1 -0
- package/types/canvas/shapes/line.d.ts +21 -0
- package/types/canvas/shapes/line.d.ts.map +1 -0
- package/types/canvas/shapes/point3d.d.ts +20 -0
- package/types/canvas/shapes/point3d.d.ts.map +1 -0
- package/types/canvas/shapes/segment.d.ts +20 -0
- package/types/canvas/shapes/segment.d.ts.map +1 -0
- package/types/canvas/shapes/shapes.d.ts +6 -0
- package/types/canvas/shapes/shapes.d.ts.map +1 -0
- package/types/canvas/shapes/ship.d.ts +10 -0
- package/types/canvas/shapes/ship.d.ts.map +1 -0
- package/types/canvas/shapes/slider.d.ts +24 -0
- package/types/canvas/shapes/slider.d.ts.map +1 -0
- package/types/canvas/shapes/tree.d.ts +15 -0
- package/types/canvas/shapes/tree.d.ts.map +1 -0
- package/types/canvas/shapes/triangle-light.d.ts +16 -0
- package/types/canvas/shapes/triangle-light.d.ts.map +1 -0
- package/types/canvas/shapes/triangle.d.ts +13 -0
- package/types/canvas/shapes/triangle.d.ts.map +1 -0
- package/types/dom.d.ts +21 -21
- package/types/dom.d.ts.map +1 -1
- package/types/env.d.ts +10 -0
- package/types/env.d.ts.map +1 -1
- package/types/file.d.ts +1 -10
- package/types/file.d.ts.map +1 -1
- package/types/image.d.ts +47 -41
- package/types/image.d.ts.map +1 -1
- package/types/index.d.ts +5 -2
- package/types/index.d.ts.map +1 -1
- package/types/localstorage.d.ts +2 -1
- package/types/localstorage.d.ts.map +1 -1
- package/types/position.d.ts +10 -6
- package/types/position.d.ts.map +1 -1
- package/types/scrollparent.d.ts +2 -0
- package/types/scrollparent.d.ts.map +1 -0
- package/types/sprite-math/index.d.ts.map +1 -1
- package/types/sprite-math/matrix.d.ts +10 -10
- package/types/sprite-math/matrix.d.ts.map +1 -1
- package/types/sprite-math/vector.d.ts +4 -4
- package/types/sprite-math/vector.d.ts.map +1 -1
- package/types/url.d.ts +3 -2
- package/types/url.d.ts.map +1 -1
- package/types/video.d.ts +5 -0
- package/types/video.d.ts.map +1 -0
- package/types/visual_util.d.ts +86 -0
- package/types/visual_util.d.ts.map +1 -0
- package/types/mouse.d.ts +0 -2
- package/types/mouse.d.ts.map +0 -1
- package/types/theme.d.ts +0 -2
- package/types/theme.d.ts.map +0 -1
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
var ZYZGroupCoreWeb=function(v){"use strict";class ot extends Error{cause;constructor(n,t){super(n,t),this.name=this.constructor.name}}class un extends ot{constructor(){super("This is not a browser environment")}}class Et extends ot{constructor(){super("Cancel select")}}class _n extends ot{accepts;constructor(n){super(`Please select files in ${n} format`),this.accepts=n}}function tr(e,n){e.addEventListener("change",function(){n(e.files)},!1)}function nr(e,n){e.addEventListener("dragover",function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy")},!1),e.addEventListener("drop",function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer&&n(t.dataTransfer.files)},!1)}const ir=(e=["*"],n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new un;const t=globalThis.document.createElement("input");return t.setAttribute("type","file"),t.setAttribute("visibility","hidden"),Array.isArray(e)&&e.length>0&&t.setAttribute("accept",e.join(",")),n&&t.setAttribute("multiple","true"),t.click(),new Promise((r,a)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!t.files||t.files?.length===0)&&a(new Et)},1e3)},{once:!0}),t.addEventListener("change",()=>{if(!t.files||t.files?.length===0)a(new Et);else{const o=Array.from(t.files);i(o)&&a(new _n(e)),r(o)}})});function i(r){return!e.includes("*")&&r.some(a=>!e.includes(`.${gn(a)}`))}},rr=e=>{const n=new FileReader;return new Promise((t,i)=>{n.addEventListener("progress",r=>{const a="("+Math.floor(r.total/1e3)+" KB)",o=Math.floor(r.loaded/r.total*100)+"%";console.log(`Loading size: ${a} progress: ${o}`)}),n.addEventListener("load",r=>{t(r.target?.result)}),n.addEventListener("error",r=>{i(r)}),e(n)})},gn=e=>{let n;return e instanceof File?n=e.name:n=e,n.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)[1]??""},ar=e=>/^image\//.test(e.type),or=e=>/^video\//.test(e.type),lr=e=>/^audio\//.test(e.type),sr=e=>/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/.test(e.type),cr=e=>/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/.test(e.type),fr=e=>/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/.test(e.type),hr=e=>/^application\/json$/.test(e.type),dr=e=>/^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(e.type);function ur(e){const n=e.slice(0,4),t=new FileReader;let i;return new Promise((r,a)=>{t.onload=function(){const o=t.result;switch(new DataView(o).getUint32(0,!1)){case 2303741511:i="image/png";break;case 1195984440:i="image/gif";break;case 626017350:i="application/pdf";break;case 1347093252:i="application/zip";break}return r(i)},t.readAsArrayBuffer(n)})}function _r(e){const n=new Blob(["("+e.toString()+")()"],{type:"application/javascript"});return URL.createObjectURL(n)}function gr(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}function wr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function wn(e,n,t){if(!e){t&&n&&t.appendChild(n);return}if(!e.isEqualNode(n)){if(e.nodeName!==n.nodeName){t.replaceChild(n,e);return}if(e.nodeType===Node.TEXT_NODE){e.textContent!==n.textContent&&(e.textContent=n.textContent);return}for(let i=e.attributes.length-1;i>=0;i--){const r=e.attributes[i].name;!n.hasAttribute(r)&&r!=="open"&&e.removeAttribute(r)}for(let i=0;i<n.attributes.length;i++){const r=n.attributes[i].name,a=n.attributes[i].value;e.setAttribute(r,a)}for(let i=0;i<n.childNodes.length;i++)e.childNodes[i]?wn(e.childNodes[i],n.childNodes[i],e):e.appendChild(n.childNodes[i].cloneNode(!0));for(;e.childNodes.length>n.childNodes.length;)e.lastChild&&e.removeChild(e.lastChild)}}function pr(e,n,t){var i=new Date;i.setTime(i.getTime()+t*24*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=e+"="+n+"; "+r}function mr(e){for(var n=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){var r=t[i].trim();if(r.indexOf(n)==0)return r.substring(n.length,r.length)}return""}const br=()=>document.cookie.split(";").map(e=>e.split("=")).reduce((e,[n,t])=>(e[n.trim().replace('"',"")]=t)&&e,{}),vr=()=>document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class ze{constructor(n){this.waitingResponse=[],this.messageQueue=[],this.url=n,this.createSocket()}createSocket(){this.socket=new ze(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(n=>this.socket.send(n)),this.messageQueue=[]},this.socket.onclose=n=>{const{code:t,reason:i,wasClean:r}=n;console.log(`ws closed : ${t} ${i} ${r}`)},this.socket.onerror=n=>{console.log(`ws error : ${n}`)},this.socket.onmessage=n=>{this.processMessage(n)}}recreateSocket(n){console.log("Reconnection Attempted"),this.messageQueue.push(n),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(n){let t=+new Date;const i=this.waitingResponse[t]={sent:t},r={...i,...n};try{this.socket.readyState===ze.OPEN?this.socket.send(JSON.stringify(r)):this.recreateSocket(JSON.stringify(r));const a=await new Promise(function(o,s){i.resolve=o,console.log(i),setTimeout(()=>{s("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),a}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[t]}}async processMessage(n){try{let t=JSON.parse(n.data);if(Object.prototype.hasOwnProperty.call(t,"requestid")){const i=this.waitingResponse[t.requestid];i?i.resolve(t):console.warn("Got data but found no associated request, already timed out?",t)}else console.warn("Got data without request id",t)}catch{console.log(n.data)}}async sendRequest(n,t,i=r=>{console.log(r)}){this.sendPayload(n).then(function(r){t(r)},function(r){i(r)})}sendMessage(n){const t=(()=>{try{return JSON.stringify(n)}catch{return n}})();this.socket.readyState===ze.OPEN?this.socket.send(t):this.recreateSocket(t)}}function ke(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function lt(){const e=ke();return{width:e.clientWidth||window.innerWidth,height:e.clientHeight||window.innerHeight}}function yr(){const e=ke(),n=lt();return{width:Math.max(e.scrollWidth,n.width),height:Math.max(e.scrollHeight,n.height)}}function xr(e){const n=lt(),t=e.getBoundingClientRect();return t.bottom>0&&t.top<n.height&&t.right>0&&t.left<n.width}function At(){const e=ke();return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tt(){const e=ke();return{clientLeft:e.clientLeft,clientTop:e.clientTop}}function pn(e){let n=e.offsetLeft,t=e.offsetParent;for(;t!==null;)n+=t.offsetLeft,t=t.offsetParent;return n}function mn(e){let n=e.offsetTop,t=e.offsetParent;for(;t!==null;)n+=t.offsetTop,t=t.offsetParent;return n}function Ir(e){return{x:pn(e),y:mn(e)}}function kr(e){const n=e.getBoundingClientRect(),t=At(),i=Tt();return{x:n.left+t.scrollLeft-i.clientLeft,y:n.top+t.scrollTop-i.clientTop}}function Er(e){const n=e.getBoundingClientRect();return{x:n.left,y:n.top}}function Ar(){const e=ke(),n=e.scrollHeight-e.clientHeight;return n<=0?0:e.scrollTop/n*100}function Tr(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const n=At(),t=Tt();return{x:e.clientX+n.scrollLeft-t.clientLeft,y:e.clientY+n.scrollTop-t.clientTop}}function Sr(e){return{x:e.clientX,y:e.clientY}}function Dr(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}const Pe=()=>{const e=navigator.userAgent.toLowerCase();let n="Unknown";return e.includes("mac")?n="macOS":e.includes("win")?n="Windows":/android/.test(e)?n="Android":/iphone|ipad|ipod/.test(e)?n="iOS":/linux/.test(e)?n="Linux":/bsd/.test(e)&&(n="BSD"),n.toLowerCase()},Cr=()=>{const e=navigator.userAgent;let n="Unknown";if(/Windows NT/.test(e)){const t=e.match(/Windows NT (\d+\.\d+)/);t&&(n=t[1])}else if(/Mac OS X/.test(e)){const t=e.match(/Mac OS X (\d+_\d+)/);t&&(n=t[1].replace("_","."))}else if(/Android/.test(e)){const t=e.match(/Android (\d+\.\d+)/);t&&(n=t[1])}else if(/iPhone|iPad|iPod/.test(e)){const t=e.match(/OS (\d+_\d+)/);t&&(n=t[1].replace("_","."))}return n.toLowerCase()},Ur=()=>{const e=navigator.userAgent.toLowerCase();let n="Unknown";return/chrome/.test(e)?n="Chrome":/firefox/.test(e)?n="Firefox":/safari/.test(e)?n="Safari":/edge/.test(e)?n="Edge":/msie|trident/.test(e)&&(n="IE"),n.toLowerCase()},Rr=()=>{const e=navigator.userAgent;let n="Unknown";if(/Chrome/.test(e)){const t=e.match(/Chrome\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Firefox/.test(e)){const t=e.match(/Firefox\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Safari/.test(e)){const t=e.match(/Version\/(\d+\.\d+)/);t&&(n=t[1])}else if(/Edge/.test(e)){const t=e.match(/Edge\/(\d+\.\d+)/);t&&(n=t[1])}else if(/MSIE|Trident/.test(e)){const t=e.match(/(?:MSIE|rv:)(\d+\.\d+)/);t&&(n=t[1])}return n},Mr=()=>"geolocation"in navigator?new Promise((e,n)=>{navigator.geolocation.getCurrentPosition(t=>{const i=t.coords.latitude,r=t.coords.longitude;e({latitude:i,longitude:r})},t=>{n(t)})}):Promise.reject("Geolocation is not available.");function Fr(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function Lr(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function bn(){return Pe()==="ios"}function zr(){return Pe()==="ios"|Pe()==="macos"}function vn(){return Pe()==="android"}function Pr(){return bn()||vn()}function Or(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}const Br=typeof window=="object"&&typeof document=="object",Hr=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Zr(e){var n=document.documentElement,t=window.devicePixelRatio;n.dataset.dpr=t;var i=100,r=function(){var a=Math.min(n.clientWidth,e);n.dataset.width=a,n.dataset.rem=i=Math.round(100*(a/e)),n.style.fontSize=i+"px"};r(),window.rem2px=function(a){return a=parseFloat(a),a*i},window.px2rem=function(a){return a=parseFloat(a),a/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function $r(e){return btoa(encodeURIComponent(e)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function Nr(e){let n=e.replaceAll("*","+").replaceAll("-","/"),t=n.length%4;return t&&(n=n.padEnd(n.length+(4-t),"=")),decodeURIComponent(atob(n))}const qr=e=>!/^([a-z]+:)?[\\/]/i.test(e);function jr(e){let n;try{n=new URL(e)}catch(t){return console.log(t),!1}return n.protocol==="http:"||n.protocol==="https:"}const Gr=e=>Array.from(new URLSearchParams(e)).reduce((n,[t,i])=>Object.assign({},n,{[t]:n[t]?(Array.isArray(n[t])?n[t]:[n[t]]).concat(i):i}),{});function Xr(){let e={},n=location.search;return n&&(n=n.substring(1,n.length),n.split("&").forEach(i=>{const r=i.split("=");e[r[0]]=decodeURIComponent(r[1])})),e}function Vr(e){let n="";new MutationObserver(function(i){window.location.href!==n&&(n=window.location.href,console.log(`URL data changed to ${window.location.href}`),e&&e(location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0})}function Yr(e){window.addEventListener("hashchange",()=>{e(location.hash)})}function Kr(e){window.addEventListener("popstate",e)}function Jr(e){e=e||localStorage.theme,e||(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",localStorage.theme=e),document.documentElement.classList.toggle("dark",e==="dark")}class he{static getEvent(n){const t=n.keyCode||n.charCode;return{code:t,key:he.codeToKey(t)}}static keyToCode(n){return Object.prototype.hasOwnProperty.call(he.keyToCodes,n)?he.keyToCodes[n]:-1}static codeToKey(n){return Object.prototype.hasOwnProperty.call(he.codeToKeys,n.toString())?he.codeToKeys[n.toString()]:""}static keyToCodes={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,spacebar:32,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,escape:27,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_braket:221,single_quote:222};static codeToKeys={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",27:"escape",32:"spacebar",33:"page_up",34:"page_down",35:"end",36:"home",37:"left_arrow",38:"up_arrow",39:"right_arrow",40:"down_arrow",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left_window_key",92:"right_window_key",93:"select_key",96:"numpad_0",97:"numpad_1",98:"numpad_2",99:"numpad_3",100:"numpad_4",101:"numpad_5",102:"numpad_6",103:"numpad_7",104:"numpad_8",105:"numpad_9",106:"multiply",107:"add",109:"subtract",110:"decimal_point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"num_lock",145:"scroll_lock",186:"semi_colon",187:"equal_sign",188:"comma",189:"dash",190:"period",191:"forward_slash",192:"grave_accent",219:"open_bracket",220:"back_slash",221:"close_braket",222:"single_quote"}}const Qr=e=>navigator.clipboard.writeText(e),Wr=()=>window.getSelection().toString(),ea=e=>e===document.activeElement,ta=e=>[].slice.call(e.parentNode.children).filter(n=>n!==e),na=()=>!document.hidden,ia=()=>history.back(),ra=()=>history.go(-1);function aa(e){let n=document.createElement("script");n.type="text/javascript",n.src=e,n.async=!1,document.body.appendChild(n),n.onload=()=>{},n.onerror=()=>{}}const oa=(e,n,t=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=n>12?n+"px":"12px",i.style.fontWeight=t.toString(),i.innerText=e,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r},la=(e,n,t=12,i=400,r=!0)=>{let a="",o="",s="";if(!e||n<t||typeof e!="string")return a;const c=e.split(""),l=document.createElement("span");l.style.visibility="hidden",l.style.padding="0",l.style.whiteSpace="nowrap",l.style.overflow="visible",l.style.fontSize=t>12?t+"px":"12px",l.style.fontWeight=i.toString(),document.body.appendChild(l);for(let h=0,u=c.length;h<u;h++){const d=c[h];if(o=s,s+=d,a=s,l.innerText=s,l.offsetWidth>n){r?a=o+"...":a=o;break}}return document.body.removeChild(l),a};function sa(e){let n=e[0];for(let t=1;t<arguments.length;t++){let i=String(arguments[t]);n+=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),n+=e[t]}return n}function ca(e){var n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(var t in n)Object.hasOwnProperty.call(n,t)&&(e=e.replace(new RegExp(t,"g"),n[t]));return e}function fa(e){const n=/<%=(.+?)%>/g,t=/<%([\s\S]+?)%>/g;return e=e.replace(n,"`); \n echo( $1 ); \n echo(`").replace(t,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
1
|
+
var ZYZGroupCoreWeb=function(w){"use strict";class Pe extends Error{cause;constructor(e,n){super(e,n),this.name=this.constructor.name}}class Oi extends Pe{constructor(){super("This is not a browser environment")}}class pn extends Pe{constructor(){super("Cancel select")}}class Ui extends Pe{accepts;constructor(e){super(`Please select files in ${e} format`),this.accepts=e}}function Oo(t){const e=t.slice(0,4),n=new FileReader;let i="";return new Promise((r,s)=>{n.onload=function(){const o=n.result;switch(new DataView(o).getUint32(0,!1)){case 2303741511:i="image/png";break;case 1195984440:i="image/gif";break;case 626017350:i="application/pdf";break;case 1347093252:i="application/zip";break}return r(i)},n.readAsArrayBuffer(e)})}function Uo(t,e){t.addEventListener("change",function(){e(t.files)},!1)}function Fo(t,e){t.addEventListener("dragover",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="copy")},!1),t.addEventListener("drop",function(n){n.stopPropagation(),n.preventDefault(),n.dataTransfer&&e(n.dataTransfer.files)},!1)}const zo=(t=["*"],e)=>{if(!globalThis.document||!(globalThis.document instanceof Document))throw new Oi;const n=globalThis.document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&n.setAttribute("accept",t.join(",")),e&&n.setAttribute("multiple","true"),n.click(),new Promise((r,s)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!n.files||n.files?.length===0)&&s(new pn)},1e3)},{once:!0}),n.addEventListener("change",()=>{if(!n.files||n.files?.length===0)s(new pn);else{const o=Array.from(n.files);i(o)&&s(new Ui(t)),r(o)}})});function i(r){return!t.includes("*")&&r.some(s=>!t.includes(`.${Fi(s)}`))}},Bo=t=>{const e=new FileReader;return new Promise((n,i)=>{e.addEventListener("progress",r=>{const s="("+Math.floor(r.total/1e3)+" KB)",o=Math.floor(r.loaded/r.total*100)+"%";console.log(`Loading size: ${s} progress: ${o}`)}),e.addEventListener("load",r=>{n(r.target?.result)}),e.addEventListener("error",r=>{i(r)}),t(e)})},Fi=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function No(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function jo(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function zi(t,e,n){if(!t){n&&e&&n.appendChild(e);return}if(!t.isEqualNode(e)){if(t.nodeName!==e.nodeName){n.replaceChild(e,t);return}if(t.nodeType===Node.TEXT_NODE){t.textContent!==e.textContent&&(t.textContent=e.textContent);return}for(let i=t.attributes.length-1;i>=0;i--){const r=t.attributes[i].name;!e.hasAttribute(r)&&r!=="open"&&t.removeAttribute(r)}for(let i=0;i<e.attributes.length;i++){const r=e.attributes[i].name,s=e.attributes[i].value;t.setAttribute(r,s)}for(let i=0;i<e.childNodes.length;i++)t.childNodes[i]?zi(t.childNodes[i],e.childNodes[i],t):t.appendChild(e.childNodes[i].cloneNode(!0));for(;t.childNodes.length>e.childNodes.length;)t.lastChild&&t.removeChild(t.lastChild)}}function Ho(t,e,n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var r="expires="+i.toGMTString();document.cookie=t+"="+e+"; "+r}function qo(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(r.indexOf(e)==0)return r.substring(e.length,r.length)}return""}const Zo=()=>document.cookie.split(";").map(t=>t.split("=")).reduce((t,[e,n])=>(t[e.trim().replace('"',"")]=n)&&t,{}),Go=()=>document.cookie.split(";").forEach(t=>document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`));class Qt{constructor(e){this.waitingResponse=[],this.messageQueue=[],this.url=e,this.createSocket()}createSocket(){this.socket=new Qt(this.url),this.socket.onopen=()=>{this.messageQueue.forEach(e=>this.socket.send(e)),this.messageQueue=[]},this.socket.onclose=e=>{const{code:n,reason:i,wasClean:r}=e;console.log(`ws closed : ${n} ${i} ${r}`)},this.socket.onerror=e=>{console.log(`ws error : ${e}`)},this.socket.onmessage=e=>{this.processMessage(e)}}recreateSocket(e){console.log("Reconnection Attempted"),this.messageQueue.push(e),this.createSocket()}closeSocket(){this.socket.close(),console.log("Socket closed manually.")}openSocket(){this.createSocket(),console.log("Socket opened manually.")}async sendPayload(e){let n=+new Date;const i=this.waitingResponse[n]={sent:n},r={...i,...e};try{this.socket.readyState===Qt.OPEN?this.socket.send(JSON.stringify(r)):this.recreateSocket(JSON.stringify(r));const s=await new Promise(function(o,a){i.resolve=o,console.log(i),setTimeout(()=>{a("Timeout")},5e3)});return console.info("Time took",(+new Date-i.sent)/1e3),s}finally{console.log("Exit code ran successfully"),delete this.waitingResponse[n]}}async processMessage(e){try{let n=JSON.parse(e.data);if(Object.prototype.hasOwnProperty.call(n,"requestid")){const i=this.waitingResponse[n.requestid];i?i.resolve(n):console.warn("Got data but found no associated request, already timed out?",n)}else console.warn("Got data without request id",n)}catch{console.log(e.data)}}async sendRequest(e,n,i=r=>{console.log(r)}){this.sendPayload(e).then(function(r){n(r)},function(r){i(r)})}sendMessage(e){const n=(()=>{try{return JSON.stringify(e)}catch{return e}})();this.socket.readyState===Qt.OPEN?this.socket.send(n):this.recreateSocket(n)}}function zt(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Re(){const t=zt();return{width:t.clientWidth||window.innerWidth,height:t.clientHeight||window.innerHeight}}function Xo(){const t=zt(),e=Re();return{width:Math.max(t.scrollWidth,e.width),height:Math.max(t.scrollHeight,e.height)}}function $o(t){const e=Re(),n=t.getBoundingClientRect();return n.bottom>0&&n.top<e.height&&n.right>0&&n.left<e.width}function mn(){const t=zt();return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function wn(){const t=zt();return{clientLeft:t.clientLeft,clientTop:t.clientTop}}function Bi(t){const e=t.getBoundingClientRect(),n=mn(),i=wn();return{x:e.left+n.scrollLeft-i.clientLeft,y:e.top+n.scrollTop-i.clientTop}}function Vo(t){return{x:Ni(t),y:ji(t)}}function Ni(t){let e=0;for(;t!==null;)e+=t.offsetLeft,t=t.offsetParent;return e}function ji(t){let e=0;for(;t!==null;)e+=t.offsetTop,t=t.offsetParent;return e}function Yo(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top}}function Wo(){const t=zt(),e=t.scrollHeight-t.clientHeight;return e<=0?0:t.scrollTop/e*100}function Hi(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=mn(),n=wn();return{x:t.clientX+e.scrollLeft-n.clientLeft,y:t.clientY+e.scrollTop-n.clientTop}}function Me(t,e){const n=Hi(e),i=Bi(t);return{x:n.x-i.x,y:n.y-i.y}}function Ko(t){return{x:t.clientX,y:t.clientY}}const te=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return t.includes("mac")?e="macOS":t.includes("win")?e="Windows":/android/.test(t)?e="Android":/iphone|ipad|ipod/.test(t)?e="iOS":/linux/.test(t)?e="Linux":/bsd/.test(t)&&(e="BSD"),e.toLowerCase()},Jo=()=>{const t=navigator.userAgent;let e="Unknown";if(/Windows NT/.test(t)){const n=t.match(/Windows NT (\d+\.\d+)/);n&&(e=n[1])}else if(/Mac OS X/.test(t)){const n=t.match(/Mac OS X (\d+_\d+)/);n&&(e=n[1].replace("_","."))}else if(/Android/.test(t)){const n=t.match(/Android (\d+\.\d+)/);n&&(e=n[1])}else if(/iPhone|iPad|iPod/.test(t)){const n=t.match(/OS (\d+_\d+)/);n&&(e=n[1].replace("_","."))}return e.toLowerCase()},Qo=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/chrome/.test(t)?e="Chrome":/firefox/.test(t)?e="Firefox":/safari/.test(t)?e="Safari":/edge/.test(t)?e="Edge":/msie|trident/.test(t)&&(e="IE"),e.toLowerCase()},ta=()=>{const t=navigator.userAgent;let e="Unknown";if(/Chrome/.test(t)){const n=t.match(/Chrome\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Firefox/.test(t)){const n=t.match(/Firefox\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Safari/.test(t)){const n=t.match(/Version\/(\d+\.\d+)/);n&&(e=n[1])}else if(/Edge/.test(t)){const n=t.match(/Edge\/(\d+\.\d+)/);n&&(e=n[1])}else if(/MSIE|Trident/.test(t)){const n=t.match(/(?:MSIE|rv:)(\d+\.\d+)/);n&&(e=n[1])}return e},ea=()=>"geolocation"in navigator?new Promise((t,e)=>{navigator.geolocation.getCurrentPosition(n=>{const i=n.coords.latitude,r=n.coords.longitude;t({latitude:i,longitude:r})},n=>{e(n)})}):Promise.reject("Geolocation is not available.");function na(){return(navigator.browserLanguage||navigator.language).toLowerCase()}function ia(){return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase()}function qi(){return te()==="ios"}function ra(){return te()==="ios"|te()==="macos"}function Zi(){return te()==="android"}function sa(){return qi()||Zi()}function oa(){return typeof window=="object"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function Gi(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}const i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}const aa=Gi()!==-1,la=typeof window=="object"&&typeof document=="object",ca=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ha=typeof document<"u",Xi=typeof window<"u",fa=typeof history<"u",ua=typeof process<"u",da=Xi&&window.File&&window.FileReader&&window.FileList&&window.Blob;function _a(t){var e=document.documentElement,n=window.devicePixelRatio;e.dataset.dpr=n;var i=100,r=function(){var s=Math.min(e.clientWidth,t);e.dataset.width=s,e.dataset.rem=i=Math.round(100*(s/t)),e.style.fontSize=i+"px"};r(),window.rem2px=function(s){return s=parseFloat(s),s*i},window.px2rem=function(s){return s=parseFloat(s),s/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function ga(t){return btoa(encodeURIComponent(t)).replaceAll("+","*").replaceAll("/","-").replaceAll("=","")}function pa(t){let e=t.replaceAll("*","+").replaceAll("-","/"),n=e.length%4;return n&&(e=e.padEnd(e.length+(4-n),"=")),decodeURIComponent(atob(e))}const ma=t=>!/^([a-z]+:)?[\\/]/i.test(t);function $i(t){return new URL(t)}function wa(t){let e=$i(t);return e.protocol==="http:"||e.protocol==="https:"}const ya=t=>Array.from(new URLSearchParams(t)).reduce((e,[n,i])=>Object.assign({},e,{[n]:e[n]?(Array.isArray(e[n])?e[n]:[e[n]]).concat(i):i}),{});function va(){let t={},e=location.search;return e&&(e=e.substring(1,e.length),e.split("&").forEach(i=>{const r=i.split("=");t[r[0]]=decodeURIComponent(r[1])})),t}function ba(t){let e="";new MutationObserver(function(i){window.location.href!==e&&(e=window.location.href,console.log(`URL data changed to ${window.location.href}`),t&&t(location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0})}function xa(t){window.addEventListener("hashchange",()=>{t(location.hash)})}function Ea(t){window.addEventListener("popstate",t,!1)}class kt{static getEvent(e){const n=e.keyCode||e.charCode;return{code:n,key:kt.codeToKey(n)}}static keyToCode(e){return Object.prototype.hasOwnProperty.call(kt.keyToCodes,e)?kt.keyToCodes[e]:-1}static codeToKey(e){return Object.prototype.hasOwnProperty.call(kt.codeToKeys,e.toString())?kt.codeToKeys[e.toString()]:""}static keyToCodes={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,command:15,shift:16,ctrl:17,alt:18,pause_break:19,caps_lock:20,numpad:21,escape:27,spacebar:32,page_up:33,page_down:34,end:35,home:36,left_arrow:37,up_arrow:38,right_arrow:39,down_arrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,left_window_key:91,right_window_key:92,select_key:93,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,multiply:106,add:107,subtract:109,decimal_point:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,num_lock:144,scroll_lock:145,semi_colon:186,equal_sign:187,comma:188,dash:189,period:190,forward_slash:191,grave_accent:192,open_bracket:219,back_slash:220,close_braket:221,single_quote:222};static codeToKeys={8:"backspace",9:"tab",13:"enter",15:"command",16:"shift",17:"ctrl",18:"alt",19:"pause_break",20:"caps_lock",21:"numpad",27:"escape",32:"spacebar",33:"page_up",34:"page_down",35:"end",36:"home",37:"left_arrow",38:"up_arrow",39:"right_arrow",40:"down_arrow",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left_window_key",92:"right_window_key",93:"select_key",96:"numpad_0",97:"numpad_1",98:"numpad_2",99:"numpad_3",100:"numpad_4",101:"numpad_5",102:"numpad_6",103:"numpad_7",104:"numpad_8",105:"numpad_9",106:"multiply",107:"add",109:"subtract",110:"decimal_point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",144:"num_lock",145:"scroll_lock",186:"semi_colon",187:"equal_sign",188:"comma",189:"dash",190:"period",191:"forward_slash",192:"grave_accent",219:"open_bracket",220:"back_slash",221:"close_braket",222:"single_quote"}}const Sa=t=>navigator.clipboard.writeText(t),ka=()=>window.getSelection()?.toString(),Ta=t=>t===document.activeElement,Aa=t=>Array.prototype.slice.call(t.parentNode?.children).filter(e=>e!==t),Ca=()=>!document.hidden,Ia=()=>history.back(),Da=()=>history.go(-1);function Pa(t){const e=document.createElement("script");e.type="text/javascript",e.src=t,e.async=!1,document.body.appendChild(e),e.onload=()=>{},e.onerror=()=>{}}function Ra(){const t=document.getElementsByTagName("img"),e=Re().height;let n=0;return()=>{for(let i=n;i<t.length;i++)t[i].getBoundingClientRect().top<e&&(t[i].src=t[i].getAttribute("data-src")??"",n=i+1)}}const Ma=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})}),La=(t,e,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e>12?e+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r},Oa=(t,e,n=12,i=400,r=!0)=>{let s="",o="",a="";if(!t||e<n||typeof t!="string")return s;const c=t.split(""),l=document.createElement("span");l.style.visibility="hidden",l.style.padding="0",l.style.whiteSpace="nowrap",l.style.overflow="visible",l.style.fontSize=n>12?n+"px":"12px",l.style.fontWeight=i.toString(),document.body.appendChild(l);for(let f=0,u=c.length;f<u;f++){const d=c[f];if(o=a,a+=d,s=a,l.innerText=a,l.offsetWidth>e){r?s=o+"...":s=o;break}}return document.body.removeChild(l),s};function Ua(t,e="encode"){const n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=new RegExp(e=="decode"?i:n[i],"g");t=t.replace(r,e=="decode"?n[i]:i)}return t}function Fa(t){const e=/<%=(.+?)%>/g,n=/<%([\s\S]+?)%>/g;return t=t.replace(e,"`); \n echo( $1 ); \n echo(`").replace(n,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
2
2
|
let output = "";
|
|
3
3
|
|
|
4
4
|
function echo(html){
|
|
5
5
|
output += html;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
${
|
|
8
|
+
${t}
|
|
9
9
|
|
|
10
10
|
return output;
|
|
11
|
-
})`}function ha(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function da(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent?e.detachEvent("on"+n,t):e["on"+n]=null}function ua(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _a(e){e.preventDefault?e.preventDefault:e.returnValue=!1}function ga(e){return e.target||e.srcElement}function wa(e){return e.relatedTarget?e.relatedTarget:e.toElement?e.toElement:e.fromElement?e.fromElement:null}function pa(){return!!(window.File&&window.FileReader&&window.FileList&&window.Blob)}const ma=e=>new Promise(n=>{const t=Array.from(e.querySelectorAll("link[rel=stylesheet]"));let i=e.styleSheets.length??0;const r=()=>i>=t.length?(n(),!0):!1;r()||t.forEach(a=>{a.onload=()=>{i+=1,r()}})});(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(n){const t=new Date().getTime(),i=Math.max(0,16-(t-e)),r=window.setTimeout(function(){n(t+i)},i);return e=t+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();const yn=e=>{function n(t){const i=window.requestAnimationFrame(n);e(t,i)}window.requestAnimationFrame(n)},ba=(e,n)=>{const t=document.getElementById(e),i=t.getContext("2d");yn((r,a)=>{i.clearRect(0,0,t.width,t.height),n(i,r,a)})};function va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xn={exports:{}};(function(e){var n={};e.exports=n,n.parse=function(t,i){for(var r=n.bin.readUshort,a=n.bin.readUint,l=0,o={},s=new Uint8Array(t),c=s.length-4;a(s,c)!=101010256;)c--;var l=c;l+=4,l+=4;var h=r(s,l);l+=2,r(s,l),l+=2;var u=a(s,l);l+=4;var d=a(s,l);l+=4,l=d;for(var f=0;f<h;f++){a(s,l),l+=4,l+=4,l+=4,l+=4,a(s,l),l+=4;var u=a(s,l);l+=4;var _=a(s,l);l+=4;var w=r(s,l),g=r(s,l+2),p=r(s,l+4);l+=6,l+=8;var m=a(s,l);l+=4,l+=w+g+p,n._readLocal(s,m,o,u,_,i)}return o},n._readLocal=function(t,i,r,a,o,s){var c=n.bin.readUshort,l=n.bin.readUint;l(t,i),i+=4,c(t,i),i+=2,c(t,i),i+=2;var h=c(t,i);i+=2,l(t,i),i+=4,l(t,i),i+=4,i+=8;var u=c(t,i);i+=2;var d=c(t,i);i+=2;var f=n.bin.readUTF8(t,i,u);if(i+=u,i+=d,s){r[f]={size:o,csize:a};return}var _=new Uint8Array(t.buffer,i);if(h==0)r[f]=new Uint8Array(_.buffer.slice(i,i+a));else if(h==8){var w=new Uint8Array(o);n.inflateRaw(_,w),r[f]=w}else throw"unknown compression method: "+h},n.inflateRaw=function(t,i){return n.F.inflate(t,i)},n.inflate=function(t,i){return t[0],t[1],n.inflateRaw(new Uint8Array(t.buffer,t.byteOffset+2,t.length-6),i)},n.deflate=function(t,i){i==null&&(i={level:6});var r=0,a=new Uint8Array(50+Math.floor(t.length*1.1));a[r]=120,a[r+1]=156,r+=2,r=n.F.deflateRaw(t,a,r,i.level);var o=n.adler(t,0,t.length);return a[r+0]=o>>>24&255,a[r+1]=o>>>16&255,a[r+2]=o>>>8&255,a[r+3]=o>>>0&255,new Uint8Array(a.buffer,0,r+4)},n.deflateRaw=function(t,i){i==null&&(i={level:6});var r=new Uint8Array(50+Math.floor(t.length*1.1)),a=n.F.deflateRaw(t,r,a,i.level);return new Uint8Array(r.buffer,0,a)},n.encode=function(t,i){i==null&&(i=!1);var r=0,a=n.bin.writeUint,o=n.bin.writeUshort,s={};for(var c in t){var l=!n._noNeed(c)&&!i,h=t[c],u=n.crc.crc(h,0,h.length);s[c]={cpr:l,usize:h.length,crc:u,file:l?n.deflateRaw(h):h}}for(var c in s)r+=s[c].file.length+30+46+2*n.bin.sizeUTF8(c);r+=22;var d=new Uint8Array(r),f=0,_=[];for(var c in s){var w=s[c];_.push(f),f=n._writeHeader(d,f,c,w,0)}var g=0,p=f;for(var c in s){var w=s[c];_.push(f),f=n._writeHeader(d,f,c,w,1,_[g++])}var m=f-p;return a(d,f,101010256),f+=4,f+=4,o(d,f,g),f+=2,o(d,f,g),f+=2,a(d,f,m),f+=4,a(d,f,p),f+=4,f+=2,d.buffer},n._noNeed=function(t){var i=t.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},n._writeHeader=function(t,i,r,a,o,s){var c=n.bin.writeUint,l=n.bin.writeUshort,h=a.file;c(t,i,o==0?67324752:33639248),i+=4,o==1&&(i+=2),l(t,i,20),i+=2,l(t,i,0),i+=2,l(t,i,a.cpr?8:0),i+=2,c(t,i,0),i+=4,c(t,i,a.crc),i+=4,c(t,i,h.length),i+=4,c(t,i,a.usize),i+=4,l(t,i,n.bin.sizeUTF8(r)),i+=2,l(t,i,0),i+=2,o==1&&(i+=2,i+=2,i+=6,c(t,i,s),i+=4);var u=n.bin.writeUTF8(t,i,r);return i+=u,o==0&&(t.set(h,i),i+=h.length),i},n.crc={table:function(){for(var t=new Uint32Array(256),i=0;i<256;i++){for(var r=i,a=0;a<8;a++)r&1?r=3988292384^r>>>1:r=r>>>1;t[i]=r}return t}(),update:function(t,i,r,a){for(var o=0;o<a;o++)t=n.crc.table[(t^i[r+o])&255]^t>>>8;return t},crc:function(t,i,r){return n.crc.update(4294967295,t,i,r)^4294967295}},n.adler=function(t,i,r){for(var a=1,o=0,s=i,c=i+r;s<c;){for(var l=Math.min(s+5552,c);s<l;)a+=t[s++],o+=a;a=a%65521,o=o%65521}return o<<16|a},n.bin={readUshort:function(t,i){return t[i]|t[i+1]<<8},writeUshort:function(t,i,r){t[i]=r&255,t[i+1]=r>>8&255},readUint:function(t,i){return t[i+3]*16777216+(t[i+2]<<16|t[i+1]<<8|t[i])},writeUint:function(t,i,r){t[i]=r&255,t[i+1]=r>>8&255,t[i+2]=r>>16&255,t[i+3]=r>>24&255},readASCII:function(t,i,r){for(var a="",o=0;o<r;o++)a+=String.fromCharCode(t[i+o]);return a},writeASCII:function(t,i,r){for(var a=0;a<r.length;a++)t[i+a]=r.charCodeAt(a)},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,i,r){for(var a="",o,s=0;s<r;s++)a+="%"+n.bin.pad(t[i+s].toString(16));try{o=decodeURIComponent(a)}catch{return n.bin.readASCII(t,i,r)}return o},writeUTF8:function(t,i,r){for(var a=r.length,o=0,s=0;s<a;s++){var c=r.charCodeAt(s);if(!(c&4294967168))t[i+o]=c,o++;else if(!(c&4294965248))t[i+o]=192|c>>6,t[i+o+1]=128|c>>0&63,o+=2;else if(!(c&4294901760))t[i+o]=224|c>>12,t[i+o+1]=128|c>>6&63,t[i+o+2]=128|c>>0&63,o+=3;else if(!(c&4292870144))t[i+o]=240|c>>18,t[i+o+1]=128|c>>12&63,t[i+o+2]=128|c>>6&63,t[i+o+3]=128|c>>0&63,o+=4;else throw"e"}return o},sizeUTF8:function(t){for(var i=t.length,r=0,a=0;a<i;a++){var o=t.charCodeAt(a);if(!(o&4294967168))r++;else if(!(o&4294965248))r+=2;else if(!(o&4294901760))r+=3;else if(!(o&4292870144))r+=4;else throw"e"}return r}},n.F={},n.F.deflateRaw=function(t,i,r,a){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],s=o[a],c=n.F.U,l=n.F._goodIndex;n.F._hash;var h=n.F._putsE,u=0,d=r<<3,f=0,_=t.length;if(a==0){for(;u<_;){var w=Math.min(65535,_-u);h(i,d,u+w==_?1:0),d=n.F._copyExact(t,u,w,i,d+8),u+=w}return d>>>3}var g=c.lits,p=c.strt,m=c.prev,y=0,b=0,I=0,x=0,k=0,T=0;for(_>2&&(T=n.F._hash(t,0),p[T]=0),u=0;u<_;u++){if(k=T,u+1<_-2){T=n.F._hash(t,u+1);var E=u+1&32767;m[E]=p[T],p[T]=E}if(f<=u){(y>14e3||b>26697)&&_-u>100&&(f<u&&(g[y]=u-f,y+=2,f=u),d=n.F._writeBlock(u==_-1||f==_?1:0,g,y,x,t,I,u-I,i,d),y=b=x=0,I=u);var A=0;u<_-2&&(A=n.F._bestMatch(t,u,m,k,Math.min(s[2],_-u),s[3]));var w=A>>>16,D=A&65535;if(A!=0){var w=A>>>16,D=A&65535,C=l(w,c.of0);c.lhst[257+C]++;var F=l(D,c.df0);c.dhst[F]++,x+=c.exb[C]+c.dxb[F],g[y]=w<<23|u-f,g[y+1]=D<<16|C<<8|F,y+=2,f=u+w}else c.lhst[t[u]]++;b++}}for((I!=u||t.length==0)&&(f<u&&(g[y]=u-f,y+=2,f=u),d=n.F._writeBlock(1,g,y,x,t,I,u-I,i,d),y=0,b=0,y=b=x=0,I=u);d&7;)d++;return d>>>3},n.F._bestMatch=function(t,i,r,a,o,s){var c=i&32767,l=r[c],h=c-l+32768&32767;if(l==c||a!=n.F._hash(t,i-h))return 0;for(var u=0,d=0,f=Math.min(32767,i);h<=f&&--s!=0&&l!=c;){if(u==0||t[i+u]==t[i+u-h]){var _=n.F._howLong(t,i,h);if(_>u){if(u=_,d=h,u>=o)break;h+2<_&&(_=h+2);for(var w=0,g=0;g<_-2;g++){var p=i-h+g+32768&32767,m=r[p],y=p-m+32768&32767;y>w&&(w=y,l=p)}}}c=l,l=r[c],h+=c-l+32768&32767}return u<<16|d},n.F._howLong=function(t,i,r){if(t[i]!=t[i-r]||t[i+1]!=t[i+1-r]||t[i+2]!=t[i+2-r])return 0;var a=i,o=Math.min(t.length,i+258);for(i+=3;i<o&&t[i]==t[i-r];)i++;return i-a},n.F._hash=function(t,i){return(t[i]<<8|t[i+1])+(t[i+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(t,i,r,a,o,s,c,l,h){var u=n.F.U,d=n.F._putsF,f=n.F._putsE,_,w,g,p,m,y,b,I,x;u.lhst[256]++,_=n.F.getTrees(),w=_[0],g=_[1],p=_[2],m=_[3],y=_[4],b=_[5],I=_[6],x=_[7];var k=(h+3&7?8-(h+3&7):0)+32+(c<<3),T=a+n.F.contSize(u.fltree,u.lhst)+n.F.contSize(u.fdtree,u.dhst),E=a+n.F.contSize(u.ltree,u.lhst)+n.F.contSize(u.dtree,u.dhst);E+=14+3*b+n.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var A=0;A<286;A++)u.lhst[A]=0;for(var A=0;A<30;A++)u.dhst[A]=0;for(var A=0;A<19;A++)u.ihst[A]=0;var D=k<T&&k<E?0:T<E?1:2;if(d(l,h,t),d(l,h+1,D),h+=3,D==0){for(;h&7;)h++;h=n.F._copyExact(o,s,c,l,h)}else{var C,F;if(D==1&&(C=u.fltree,F=u.fdtree),D==2){n.F.makeCodes(u.ltree,w),n.F.revCodes(u.ltree,w),n.F.makeCodes(u.dtree,g),n.F.revCodes(u.dtree,g),n.F.makeCodes(u.itree,p),n.F.revCodes(u.itree,p),C=u.ltree,F=u.dtree,f(l,h,m-257),h+=5,f(l,h,y-1),h+=5,f(l,h,b-4),h+=4;for(var L=0;L<b;L++)f(l,h+L*3,u.itree[(u.ordr[L]<<1)+1]);h+=3*b,h=n.F._codeTiny(I,u.itree,l,h),h=n.F._codeTiny(x,u.itree,l,h)}for(var U=s,ye=0;ye<r;ye+=2){for(var ne=i[ye],xe=ne>>>23,at=U+(ne&(1<<23)-1);U<at;)h=n.F._writeLit(o[U++],C,l,h);if(xe!=0){var Le=i[ye+1],dn=Le>>16,Ie=Le>>8&255,fe=Le&255;h=n.F._writeLit(257+Ie,C,l,h),f(l,h,xe-u.of0[Ie]),h+=u.exb[Ie],h=n.F._writeLit(fe,F,l,h),d(l,h,dn-u.df0[fe]),h+=u.dxb[fe],U+=xe}}h=n.F._writeLit(256,C,l,h)}return h},n.F._copyExact=function(t,i,r,a,o){var s=o>>>3;return a[s]=r,a[s+1]=r>>>8,a[s+2]=255-a[s],a[s+3]=255-a[s+1],s+=4,a.set(new Uint8Array(t.buffer,i,r),s),o+(r+4<<3)},n.F.getTrees=function(){for(var t=n.F.U,i=n.F._hufTree(t.lhst,t.ltree,15),r=n.F._hufTree(t.dhst,t.dtree,15),a=[],o=n.F._lenCodes(t.ltree,a),s=[],c=n.F._lenCodes(t.dtree,s),l=0;l<a.length;l+=2)t.ihst[a[l]]++;for(var l=0;l<s.length;l+=2)t.ihst[s[l]]++;for(var h=n.F._hufTree(t.ihst,t.itree,7),u=19;u>4&&t.itree[(t.ordr[u-1]<<1)+1]==0;)u--;return[i,r,h,o,c,u,a,s]},n.F.getSecond=function(t){for(var i=[],r=0;r<t.length;r+=2)i.push(t[r+1]);return i},n.F.nonZero=function(t){for(var i="",r=0;r<t.length;r+=2)t[r+1]!=0&&(i+=(r>>1)+",");return i},n.F.contSize=function(t,i){for(var r=0,a=0;a<i.length;a++)r+=i[a]*t[(a<<1)+1];return r},n.F._codeTiny=function(t,i,r,a){for(var o=0;o<t.length;o+=2){var s=t[o],c=t[o+1];a=n.F._writeLit(s,i,r,a);var l=s==16?2:s==17?3:7;s>15&&(n.F._putsE(r,a,c,l),a+=l)}return a},n.F._lenCodes=function(t,i){for(var r=t.length;r!=2&&t[r-1]==0;)r-=2;for(var a=0;a<r;a+=2){var o=t[a+1],s=a+3<r?t[a+3]:-1,c=a+5<r?t[a+5]:-1,l=a==0?-1:t[a-1];if(o==0&&s==o&&c==o){for(var h=a+5;h+2<r&&t[h+2]==o;)h+=2;var u=Math.min(h+1-a>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),a+=u*2-2}else if(o==l&&s==o&&c==o){for(var h=a+5;h+2<r&&t[h+2]==o;)h+=2;var u=Math.min(h+1-a>>>1,6);i.push(16,u-3),a+=u*2-2}else i.push(o,0)}return r>>>1},n.F._hufTree=function(t,i,r){var a=[],o=t.length,s=i.length,c=0;for(c=0;c<s;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<o;c++)t[c]!=0&&a.push({lit:c,f:t[c]});var l=a.length,h=a.slice(0);if(l==0)return 0;if(l==1){var u=a[0].lit,h=u==0?1:0;return i[(u<<1)+1]=1,i[(h<<1)+1]=1,1}a.sort(function(m,y){return m.f-y.f});var d=a[0],f=a[1],_=0,w=1,g=2;for(a[0]={lit:-1,f:d.f+f.f,l:d,r:f,d:0};w!=l-1;)_!=w&&(g==l||a[_].f<a[g].f)?d=a[_++]:d=a[g++],_!=w&&(g==l||a[_].f<a[g].f)?f=a[_++]:f=a[g++],a[w++]={lit:-1,f:d.f+f.f,l:d,r:f};var p=n.F.setDepth(a[w-1],0);for(p>r&&(n.F.restrictDepth(h,r,p),p=r),c=0;c<l;c++)i[(h[c].lit<<1)+1]=h[c].d;return p},n.F.setDepth=function(t,i){return t.lit!=-1?(t.d=i,i):Math.max(n.F.setDepth(t.l,i+1),n.F.setDepth(t.r,i+1))},n.F.restrictDepth=function(t,i,r){var a=0,o=1<<r-i,s=0;for(t.sort(function(l,h){return h.d==l.d?l.f-h.f:h.d-l.d}),a=0;a<t.length&&t[a].d>i;a++){var c=t[a].d;t[a].d=i,s+=o-(1<<r-c)}for(s=s>>>r-i;s>0;){var c=t[a].d;c<i?(t[a].d++,s-=1<<i-c-1):a++}for(;a>=0;a--)t[a].d==i&&s<0&&(t[a].d--,s++);s!=0&&console.log("debt left")},n.F._goodIndex=function(t,i){var r=0;return i[r|16]<=t&&(r|=16),i[r|8]<=t&&(r|=8),i[r|4]<=t&&(r|=4),i[r|2]<=t&&(r|=2),i[r|1]<=t&&(r|=1),r},n.F._writeLit=function(t,i,r,a){return n.F._putsF(r,a,i[t<<1]),a+i[(t<<1)+1]},n.F.inflate=function(t,i){var r=Uint8Array;if(t[0]==3&&t[1]==0)return i||new r(0);var a=n.F,o=a._bitsF,s=a._bitsE,c=a._decodeTiny,l=a.makeCodes,h=a.codes2map,u=a._get17,d=a.U,f=i==null;f&&(i=new r(t.length>>>2<<3));for(var _=0,w=0,g=0,p=0,m=0,y=0,b=0,I=0,x=0,k,T;_==0;){if(_=o(t,x,1),w=o(t,x+1,2),x+=3,w==0){x&7&&(x+=8-(x&7));var E=(x>>>3)+4,A=t[E-4]|t[E-3]<<8;f&&(i=n.F._check(i,I+A)),i.set(new r(t.buffer,t.byteOffset+E,A),I),x=E+A<<3,I+=A;continue}if(f&&(i=n.F._check(i,I+131072)),w==1&&(k=d.flmap,T=d.fdmap,y=511,b=31),w==2){g=s(t,x,5)+257,p=s(t,x+5,5)+1,m=s(t,x+10,4)+4,x+=14;for(var D=0;D<38;D+=2)d.itree[D]=0,d.itree[D+1]=0;for(var C=1,D=0;D<m;D++){var F=s(t,x+D*3,3);d.itree[(d.ordr[D]<<1)+1]=F,F>C&&(C=F)}x+=3*m,l(d.itree,C),h(d.itree,C,d.imap),k=d.lmap,T=d.dmap,x=c(d.imap,(1<<C)-1,g+p,t,x,d.ttree);var L=a._copyOut(d.ttree,0,g,d.ltree);y=(1<<L)-1;var U=a._copyOut(d.ttree,g,p,d.dtree);b=(1<<U)-1,l(d.ltree,L),h(d.ltree,L,k),l(d.dtree,U),h(d.dtree,U,T)}for(;;){var ye=k[u(t,x)&y];x+=ye&15;var ne=ye>>>4;if(!(ne>>>8))i[I++]=ne;else{if(ne==256)break;var xe=I+ne-254;if(ne>264){var at=d.ldef[ne-257];xe=I+(at>>>3)+s(t,x,at&7),x+=at&7}var Le=T[u(t,x)&b];x+=Le&15;var dn=Le>>>4,Ie=d.ddef[dn],fe=(Ie>>>4)+o(t,x,Ie&15);for(x+=Ie&15,f&&(i=n.F._check(i,I+131072));I<xe;)i[I]=i[I++-fe],i[I]=i[I++-fe],i[I]=i[I++-fe],i[I]=i[I++-fe];I=xe}}}return i.length==I?i:i.slice(0,I)},n.F._check=function(t,i){var r=t.length;if(i<=r)return t;var a=new Uint8Array(Math.max(r<<1,i));return a.set(t,0),a},n.F._decodeTiny=function(t,i,r,a,o,s){for(var c=n.F._bitsE,l=n.F._get17,h=0;h<r;){var u=t[l(a,o)&i];o+=u&15;var d=u>>>4;if(d<=15)s[h]=d,h++;else{var f=0,_=0;d==16?(_=3+c(a,o,2),o+=2,f=s[h-1]):d==17?(_=3+c(a,o,3),o+=3):d==18&&(_=11+c(a,o,7),o+=7);for(var w=h+_;h<w;)s[h]=f,h++}}return o},n.F._copyOut=function(t,i,r,a){for(var o=0,s=0,c=a.length>>>1;s<r;){var l=t[s+i];a[s<<1]=0,a[(s<<1)+1]=l,l>o&&(o=l),s++}for(;s<c;)a[s<<1]=0,a[(s<<1)+1]=0,s++;return o},n.F.makeCodes=function(t,i){for(var r=n.F.U,a=t.length,o,s,c,l,h,u=r.bl_count,l=0;l<=i;l++)u[l]=0;for(l=1;l<a;l+=2)u[t[l]]++;var d=r.next_code;for(o=0,u[0]=0,s=1;s<=i;s++)o=o+u[s-1]<<1,d[s]=o;for(c=0;c<a;c+=2)h=t[c+1],h!=0&&(t[c]=d[h],d[h]++)},n.F.codes2map=function(t,i,r){for(var a=t.length,o=n.F.U,s=o.rev15,c=0;c<a;c+=2)if(t[c+1]!=0)for(var l=c>>1,h=t[c+1],u=l<<4|h,d=i-h,f=t[c]<<d,_=f+(1<<d);f!=_;){var w=s[f]>>>15-i;r[w]=u,f++}},n.F.revCodes=function(t,i){for(var r=n.F.U.rev15,a=15-i,o=0;o<t.length;o+=2){var s=t[o]<<i-t[o+1];t[o]=r[s]>>>a}},n.F._putsE=function(t,i,r){r=r<<(i&7);var a=i>>>3;t[a]|=r,t[a+1]|=r>>>8},n.F._putsF=function(t,i,r){r=r<<(i&7);var a=i>>>3;t[a]|=r,t[a+1]|=r>>>8,t[a+2]|=r>>>16},n.F._bitsE=function(t,i,r){return(t[i>>>3]|t[(i>>>3)+1]<<8)>>>(i&7)&(1<<r)-1},n.F._bitsF=function(t,i,r){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16)>>>(i&7)&(1<<r)-1},n.F._get17=function(t,i){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16)>>>(i&7)},n.F._get25=function(t,i){return(t[i>>>3]|t[(i>>>3)+1]<<8|t[(i>>>3)+2]<<16|t[(i>>>3)+3]<<24)>>>(i&7)},n.F.U=function(){var t=Uint16Array,i=Uint32Array;return{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new t(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new t(65536),prev:new t(32768)}}(),function(){for(var t=n.F.U,i=32768,r=0;r<i;r++){var a=r;a=(a&2863311530)>>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,t.rev15[r]=(a>>>16|a<<16)>>>17}function o(s,c,l){for(;c--!=0;)s.push(0,l)}for(var r=0;r<32;r++)t.ldef[r]=t.of0[r]<<3|t.exb[r],t.ddef[r]=t.df0[r]<<4|t.dxb[r];o(t.fltree,144,8),o(t.fltree,112,9),o(t.fltree,24,7),o(t.fltree,8,8),n.F.makeCodes(t.fltree,9),n.F.codes2map(t.fltree,9,t.flmap),n.F.revCodes(t.fltree,9),o(t.fdtree,32,5),n.F.makeCodes(t.fdtree,5),n.F.codes2map(t.fdtree,5,t.fdmap),n.F.revCodes(t.fdtree,5),o(t.itree,19,0),o(t.ltree,286,0),o(t.dtree,30,0),o(t.ttree,320,0)}()})(xn);var ya=xn.exports;const In=va(ya);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const xa=4,kn=0,En=1,Ia=2;function Ee(e){let n=e.length;for(;--n>=0;)e[n]=0}const ka=0,An=1,Ea=2,Aa=3,Ta=258,St=29,Oe=256,Be=Oe+1+St,Ae=30,Dt=19,Tn=2*Be+1,de=15,Ct=16,Sa=7,Ut=256,Sn=16,Dn=17,Cn=18,Rt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),st=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Da=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Un=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ca=512,J=new Array((Be+2)*2);Ee(J);const He=new Array(Ae*2);Ee(He);const Ze=new Array(Ca);Ee(Ze);const $e=new Array(Ta-Aa+1);Ee($e);const Mt=new Array(St);Ee(Mt);const ct=new Array(Ae);Ee(ct);function Ft(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let Rn,Mn,Fn;function Lt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const Ln=e=>e<256?Ze[e]:Ze[256+(e>>>7)],Ne=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},H=(e,n,t)=>{e.bi_valid>Ct-t?(e.bi_buf|=n<<e.bi_valid&65535,Ne(e,e.bi_buf),e.bi_buf=n>>Ct-e.bi_valid,e.bi_valid+=t-Ct):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},X=(e,n,t)=>{H(e,t[n*2],t[n*2+1])},zn=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},Ua=e=>{e.bi_valid===16?(Ne(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Ra=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,o=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,h,u,d,f,_,w=0;for(d=0;d<=de;d++)e.bl_count[d]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Tn;l++)h=e.heap[l],d=t[t[h*2+1]*2+1]+1,d>c&&(d=c,w++),t[h*2+1]=d,!(h>i)&&(e.bl_count[d]++,f=0,h>=s&&(f=o[h-s]),_=t[h*2],e.opt_len+=_*(d+f),a&&(e.static_len+=_*(r[h*2+1]+f)));if(w!==0){do{for(d=c-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[c]--,w-=2}while(w>0);for(d=c;d!==0;d--)for(h=e.bl_count[d];h!==0;)u=e.heap[--l],!(u>i)&&(t[u*2+1]!==d&&(e.opt_len+=(d-t[u*2+1])*t[u*2],t[u*2+1]=d),h--)}},Pn=(e,n,t)=>{const i=new Array(de+1);let r=0,a,o;for(a=1;a<=de;a++)r=r+t[a-1]<<1,i[a]=r;for(o=0;o<=n;o++){let s=e[o*2+1];s!==0&&(e[o*2]=zn(i[s]++,s))}},Ma=()=>{let e,n,t,i,r;const a=new Array(de+1);for(t=0,i=0;i<St-1;i++)for(Mt[i]=t,e=0;e<1<<Rt[i];e++)$e[t++]=i;for($e[t-1]=i,r=0,i=0;i<16;i++)for(ct[i]=r,e=0;e<1<<st[i];e++)Ze[r++]=i;for(r>>=7;i<Ae;i++)for(ct[i]=r<<7,e=0;e<1<<st[i]-7;e++)Ze[256+r++]=i;for(n=0;n<=de;n++)a[n]=0;for(e=0;e<=143;)J[e*2+1]=8,e++,a[8]++;for(;e<=255;)J[e*2+1]=9,e++,a[9]++;for(;e<=279;)J[e*2+1]=7,e++,a[7]++;for(;e<=287;)J[e*2+1]=8,e++,a[8]++;for(Pn(J,Be+1,a),e=0;e<Ae;e++)He[e*2+1]=5,He[e*2]=zn(e,5);Rn=new Ft(J,Rt,Oe+1,Be,de),Mn=new Ft(He,st,0,Ae,de),Fn=new Ft(new Array(0),Da,0,Dt,Sa)},On=e=>{let n;for(n=0;n<Be;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ae;n++)e.dyn_dtree[n*2]=0;for(n=0;n<Dt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Ut*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Bn=e=>{e.bi_valid>8?Ne(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Hn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},zt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&Hn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!Hn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},Zn=(e,n,t)=>{let i,r,a=0,o,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?X(e,r,n):(o=$e[r],X(e,o+Oe+1,n),s=Rt[o],s!==0&&(r-=Mt[o],H(e,r,s)),i--,o=Ln(i),X(e,o,t),s=st[o],s!==0&&(i-=ct[o],H(e,i,s)));while(a<e.sym_next);X(e,Ut,n)},Pt=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Tn,o=0;o<a;o++)t[o*2]!==0?(e.heap[++e.heap_len]=c=o,e.depth[o]=0):t[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,t[l*2]=1,e.depth[l]=0,e.opt_len--,r&&(e.static_len-=i[l*2+1]);for(n.max_code=c,o=e.heap_len>>1;o>=1;o--)zt(e,t,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],zt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,t[l*2]=t[o*2]+t[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,t[o*2+1]=t[s*2+1]=l,e.heap[1]=l++,zt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ra(e,n),Pn(t,c,e.bl_count)},$n=(e,n,t)=>{let i,r=-1,a,o=n[0*2+1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=o,o=n[(i+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[Sn*2]++):s<=10?e.bl_tree[Dn*2]++:e.bl_tree[Cn*2]++,s=0,r=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},Nn=(e,n,t)=>{let i,r=-1,a,o=n[0*2+1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),i=0;i<=t;i++)if(a=o,o=n[(i+1)*2+1],!(++s<c&&a===o)){if(s<l)do X(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(X(e,a,e.bl_tree),s--),X(e,Sn,e.bl_tree),H(e,s-3,2)):s<=10?(X(e,Dn,e.bl_tree),H(e,s-3,3)):(X(e,Cn,e.bl_tree),H(e,s-11,7));s=0,r=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},Fa=e=>{let n;for($n(e,e.dyn_ltree,e.l_desc.max_code),$n(e,e.dyn_dtree,e.d_desc.max_code),Pt(e,e.bl_desc),n=Dt-1;n>=3&&e.bl_tree[Un[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},La=(e,n,t,i)=>{let r;for(H(e,n-257,5),H(e,t-1,5),H(e,i-4,4),r=0;r<i;r++)H(e,e.bl_tree[Un[r]*2+1],3);Nn(e,e.dyn_ltree,n-1),Nn(e,e.dyn_dtree,t-1)},za=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return kn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return En;for(t=32;t<Oe;t++)if(e.dyn_ltree[t*2]!==0)return En;return kn};let qn=!1;const Pa=e=>{qn||(Ma(),qn=!0),e.l_desc=new Lt(e.dyn_ltree,Rn),e.d_desc=new Lt(e.dyn_dtree,Mn),e.bl_desc=new Lt(e.bl_tree,Fn),e.bi_buf=0,e.bi_valid=0,On(e)},jn=(e,n,t,i)=>{H(e,(ka<<1)+(i?1:0),3),Bn(e),Ne(e,t),Ne(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Oa=e=>{H(e,An<<1,3),X(e,Ut,J),Ua(e)},Ba=(e,n,t,i)=>{let r,a,o=0;e.level>0?(e.strm.data_type===Ia&&(e.strm.data_type=za(e)),Pt(e,e.l_desc),Pt(e,e.d_desc),o=Fa(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?jn(e,n,t,i):e.strategy===xa||a===r?(H(e,(An<<1)+(i?1:0),3),Zn(e,J,He)):(H(e,(Ea<<1)+(i?1:0),3),La(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Zn(e,e.dyn_ltree,e.dyn_dtree)),On(e),i&&Bn(e)},Ha=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[($e[t]+Oe+1)*2]++,e.dyn_dtree[Ln(n)*2]++),e.sym_next===e.sym_end);var Za=Pa,$a=jn,Na=Ba,qa=Ha,ja=Oa,Ga={_tr_init:Za,_tr_stored_block:$a,_tr_flush_block:Na,_tr_tally:qa,_tr_align:ja},qe=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,o=0;for(;t!==0;){o=t>2e3?2e3:t,t-=o;do r=r+n[i++]|0,a=a+r|0;while(--o);r%=65521,a%=65521}return r|a<<16|0};const Xa=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Va=new Uint32Array(Xa());var P=(e,n,t,i)=>{const r=Va,a=i+t;e^=-1;for(let o=i;o<a;o++)e=e>>>8^r[(e^n[o])&255];return e^-1},ue={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_e={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ya,_tr_stored_block:Ot,_tr_flush_block:Ka,_tr_tally:ie,_tr_align:Ja}=Ga,{Z_NO_FLUSH:re,Z_PARTIAL_FLUSH:Qa,Z_FULL_FLUSH:Wa,Z_FINISH:N,Z_BLOCK:Gn,Z_OK:O,Z_STREAM_END:Xn,Z_STREAM_ERROR:V,Z_DATA_ERROR:eo,Z_BUF_ERROR:Bt,Z_DEFAULT_COMPRESSION:to,Z_FILTERED:no,Z_HUFFMAN_ONLY:ft,Z_RLE:io,Z_FIXED:ro,Z_DEFAULT_STRATEGY:ao,Z_UNKNOWN:oo,Z_DEFLATED:ht}=_e,lo=9,so=15,co=8,fo=29,Ht=256+1+fo,ho=30,uo=19,_o=2*Ht+1,go=15,R=3,ae=258,Y=ae+R+1,wo=32,Te=42,Zt=57,$t=69,Nt=73,qt=91,jt=103,ge=113,je=666,B=1,Se=2,we=3,De=4,po=3,pe=(e,n)=>(e.msg=ue[n],n),Vn=e=>e*2-(e>4?9:0),oe=e=>{let n=e.length;for(;--n>=0;)e[n]=0},mo=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let le=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask;const Z=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},$=(e,n)=>{Ka(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,Z(e.strm)},M=(e,n)=>{e.pending_buf[e.pending++]=n},Ge=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Gt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=qe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=P(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},Yn=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,o=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-Y?e.strstart-(e.w_size-Y):0,l=e.window,h=e.w_mask,u=e.prev,d=e.strstart+ae;let f=l[i+o-1],_=l[i+o];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(l[r+o]!==_||l[r+o-1]!==f||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(a=ae-(d-i),i=d-ae,a>o){if(e.match_start=n,o=a,a>=s)break;f=l[i+o-1],_=l[i+o]}}while((n=u[n&h])>c&&--t!==0);return o<=e.lookahead?o:e.lookahead},Ce=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-Y)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),mo(e),i+=n),e.strm.avail_in===0)break;if(t=Gt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=R)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=le(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=le(e,e.ins_h,e.window[r+R-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<R)););}while(e.lookahead<Y&&e.strm.avail_in!==0)},Kn=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,o=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==N||n===re||i!==r+e.strm.avail_in)))break;o=n===N&&i===r+e.strm.avail_in?1:0,Ot(e,0,0,o),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Z(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Gt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?De:n!==re&&n!==N&&e.strm.avail_in===0&&e.strstart===e.block_start?Se:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Gt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===N)&&n!==re&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,o=n===N&&e.strm.avail_in===0&&i===r?1:0,Ot(e,e.block_start,i,o),e.block_start+=i,Z(e.strm)),o?we:B)},Xt=(e,n)=>{let t,i;for(;;){if(e.lookahead<Y){if(Ce(e),e.lookahead<Y&&n===re)return B;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=le(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Y&&(e.match_length=Yn(e,t)),e.match_length>=R)if(i=ie(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do e.strstart++,e.ins_h=le(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=le(e,e.ins_h,e.window[e.strstart+1]);else i=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=e.strstart<R-1?e.strstart:R-1,n===N?($(e,!0),e.strm.avail_out===0?we:De):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Se},Ue=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<Y){if(Ce(e),e.lookahead<Y&&n===re)return B;if(e.lookahead===0)break}if(t=0,e.lookahead>=R&&(e.ins_h=le(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-Y&&(e.match_length=Yn(e,t),e.match_length<=5&&(e.strategy===no||e.match_length===R&&e.strstart-e.match_start>4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-R,i=ie(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=le(e,e.ins_h,e.window[e.strstart+R-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=R-1,e.strstart++,i&&($(e,!1),e.strm.avail_out===0))return B}else if(e.match_available){if(i=ie(e,0,e.window[e.strstart-1]),i&&$(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return B}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,n===N?($(e,!0),e.strm.avail_out===0?we:De):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Se},bo=(e,n)=>{let t,i,r,a;const o=e.window;for(;;){if(e.lookahead<=ae){if(Ce(e),e.lookahead<=ae&&n===re)return B;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(r=e.strstart-1,i=o[r],i===o[++r]&&i===o[++r]&&i===o[++r])){a=e.strstart+ae;do;while(i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&r<a);e.match_length=ae-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(t=ie(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=0,n===N?($(e,!0),e.strm.avail_out===0?we:De):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Se},vo=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Ce(e),e.lookahead===0)){if(n===re)return B;break}if(e.match_length=0,t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&($(e,!1),e.strm.avail_out===0))return B}return e.insert=0,n===N?($(e,!0),e.strm.avail_out===0?we:De):e.sym_next&&($(e,!1),e.strm.avail_out===0)?B:Se};function K(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Xe=[new K(0,0,0,0,Kn),new K(4,4,8,4,Xt),new K(4,5,16,8,Xt),new K(4,6,32,32,Xt),new K(4,4,16,16,Ue),new K(8,16,32,32,Ue),new K(8,16,128,128,Ue),new K(8,32,128,256,Ue),new K(32,128,258,1024,Ue),new K(32,258,258,4096,Ue)],yo=e=>{e.window_size=2*e.w_size,oe(e.head),e.max_lazy_match=Xe[e.level].max_lazy,e.good_match=Xe[e.level].good_length,e.nice_match=Xe[e.level].nice_length,e.max_chain_length=Xe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=R-1,e.match_available=0,e.ins_h=0};function xo(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ht,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(_o*2),this.dyn_dtree=new Uint16Array((2*ho+1)*2),this.bl_tree=new Uint16Array((2*uo+1)*2),oe(this.dyn_ltree),oe(this.dyn_dtree),oe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(go+1),this.heap=new Uint16Array(2*Ht+1),oe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ht+1),oe(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ve=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Te&&n.status!==Zt&&n.status!==$t&&n.status!==Nt&&n.status!==qt&&n.status!==jt&&n.status!==ge&&n.status!==je?1:0},Jn=e=>{if(Ve(e))return pe(e,V);e.total_in=e.total_out=0,e.data_type=oo;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Zt:n.wrap?Te:ge,e.adler=n.wrap===2?0:1,n.last_flush=-2,Ya(n),O},Qn=e=>{const n=Jn(e);return n===O&&yo(e.state),n},Io=(e,n)=>Ve(e)||e.state.wrap!==2?V:(e.state.gzhead=n,O),Wn=(e,n,t,i,r,a)=>{if(!e)return V;let o=1;if(n===to&&(n=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>lo||t!==ht||i<8||i>15||n<0||n>9||a<0||a>ro||i===8&&o!==1)return pe(e,V);i===8&&(i=9);const s=new xo;return e.state=s,s.strm=e,s.status=Te,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+R-1)/R),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,Qn(e)},ko=(e,n)=>Wn(e,n,ht,so,co,ao),Eo=(e,n)=>{if(Ve(e)||n>Gn||n<0)return e?pe(e,V):V;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===je&&n!==N)return pe(e,e.avail_out===0?Bt:V);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(Z(e),e.avail_out===0)return t.last_flush=-1,O}else if(e.avail_in===0&&Vn(n)<=Vn(i)&&n!==N)return pe(e,Bt);if(t.status===je&&e.avail_in!==0)return pe(e,Bt);if(t.status===Te&&t.wrap===0&&(t.status=ge),t.status===Te){let r=ht+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=ft||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=wo),r+=31-r%31,Ge(t,r),t.strstart!==0&&(Ge(t,e.adler>>>16),Ge(t,e.adler&65535)),e.adler=1,t.status=ge,Z(e),t.pending!==0)return t.last_flush=-1,O}if(t.status===Zt){if(e.adler=0,M(t,31),M(t,139),M(t,8),t.gzhead)M(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),M(t,t.gzhead.time&255),M(t,t.gzhead.time>>8&255),M(t,t.gzhead.time>>16&255),M(t,t.gzhead.time>>24&255),M(t,t.level===9?2:t.strategy>=ft||t.level<2?4:0),M(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(M(t,t.gzhead.extra.length&255),M(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=P(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=$t;else if(M(t,0),M(t,0),M(t,0),M(t,0),M(t,0),M(t,t.level===9?2:t.strategy>=ft||t.level<2?4:0),M(t,po),t.status=ge,Z(e),t.pending!==0)return t.last_flush=-1,O}if(t.status===$t){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,Z(e),t.pending!==0)return t.last_flush=-1,O;r=0,a-=s}let o=new Uint8Array(t.gzhead.extra);t.pending_buf.set(o.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Nt}if(t.status===Nt){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),Z(e),t.pending!==0)return t.last_flush=-1,O;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,M(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=qt}if(t.status===qt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r)),Z(e),t.pending!==0)return t.last_flush=-1,O;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,M(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=P(e.adler,t.pending_buf,t.pending-r,r))}t.status=jt}if(t.status===jt){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Z(e),t.pending!==0))return t.last_flush=-1,O;M(t,e.adler&255),M(t,e.adler>>8&255),e.adler=0}if(t.status=ge,Z(e),t.pending!==0)return t.last_flush=-1,O}if(e.avail_in!==0||t.lookahead!==0||n!==re&&t.status!==je){let r=t.level===0?Kn(t,n):t.strategy===ft?vo(t,n):t.strategy===io?bo(t,n):Xe[t.level].func(t,n);if((r===we||r===De)&&(t.status=je),r===B||r===we)return e.avail_out===0&&(t.last_flush=-1),O;if(r===Se&&(n===Qa?Ja(t):n!==Gn&&(Ot(t,0,0,!1),n===Wa&&(oe(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Z(e),e.avail_out===0))return t.last_flush=-1,O}return n!==N?O:t.wrap<=0?Xn:(t.wrap===2?(M(t,e.adler&255),M(t,e.adler>>8&255),M(t,e.adler>>16&255),M(t,e.adler>>24&255),M(t,e.total_in&255),M(t,e.total_in>>8&255),M(t,e.total_in>>16&255),M(t,e.total_in>>24&255)):(Ge(t,e.adler>>>16),Ge(t,e.adler&65535)),Z(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?O:Xn)},Ao=e=>{if(Ve(e))return V;const n=e.state.status;return e.state=null,n===ge?pe(e,eo):O},To=(e,n)=>{let t=n.length;if(Ve(e))return V;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==Te||i.lookahead)return V;if(r===1&&(e.adler=qe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(oe(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(t-i.w_size,t),0),n=c,t=i.w_size}const a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Ce(i);i.lookahead>=R;){let c=i.strstart,l=i.lookahead-(R-1);do i.ins_h=le(i,i.ins_h,i.window[c+R-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=R-1,Ce(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=R-1,i.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,i.wrap=r,O};var So=ko,Do=Wn,Co=Qn,Uo=Jn,Ro=Io,Mo=Eo,Fo=Ao,Lo=To,zo="pako deflate (from Nodeca project)",Ye={deflateInit:So,deflateInit2:Do,deflateReset:Co,deflateResetKeep:Uo,deflateSetHeader:Ro,deflate:Mo,deflateEnd:Fo,deflateSetDictionary:Lo,deflateInfo:zo};const Po=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Oo=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Po(t,i)&&(e[i]=t[i])}}return e},Bo=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let o=e[i];t.set(o,r),r+=o.length}return t},dt={assign:Oo,flattenChunks:Bo};let ei=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ei=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Ho=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,o=e.length,s=0;for(r=0;r<o;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<o&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<o&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Zo=(e,n)=>{if(n<65534&&e.subarray&&ei)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var $o=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let o=e[i++];if(o<128){a[r++]=o;continue}let s=Ke[o];if(s>4){a[r++]=65533,i+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&i<t;)o=o<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|o&1023)}return Zo(a,r)},No=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Je={string2buf:Ho,buf2string:$o,utf8border:No};function qo(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ti=qo;const ni=Object.prototype.toString,{Z_NO_FLUSH:jo,Z_SYNC_FLUSH:Go,Z_FULL_FLUSH:Xo,Z_FINISH:Vo,Z_OK:ut,Z_STREAM_END:Yo,Z_DEFAULT_COMPRESSION:Ko,Z_DEFAULT_STRATEGY:Jo,Z_DEFLATED:Qo}=_e;function Qe(e){this.options=dt.assign({level:Ko,method:Qo,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jo},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ti,this.strm.avail_out=0;let t=Ye.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==ut)throw new Error(ue[t]);if(n.header&&Ye.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Je.string2buf(n.dictionary):ni.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Ye.deflateSetDictionary(this.strm,i),t!==ut)throw new Error(ue[t]);this._dict_set=!0}}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Vo:jo,typeof e=="string"?t.input=Je.string2buf(e):ni.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Go||a===Xo)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Ye.deflate(t,a),r===Yo)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Ye.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===ut;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Qe.prototype.onData=function(e){this.chunks.push(e)},Qe.prototype.onEnd=function(e){e===ut&&(this.result=dt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Vt(e,n){const t=new Qe(n);if(t.push(e,!0),t.err)throw t.msg||ue[t.err];return t.result}function Wo(e,n){return n=n||{},n.raw=!0,Vt(e,n)}function el(e,n){return n=n||{},n.gzip=!0,Vt(e,n)}var tl=Qe,nl=Vt,il=Wo,rl=el,al=_e,ol={Deflate:tl,deflate:nl,deflateRaw:il,gzip:rl,constants:al};const _t=16209,ll=16191;var sl=function(n,t){let i,r,a,o,s,c,l,h,u,d,f,_,w,g,p,m,y,b,I,x,k,T,E,A;const D=n.state;i=n.next_in,E=n.input,r=i+(n.avail_in-5),a=n.next_out,A=n.output,o=a-(t-n.avail_out),s=a+(n.avail_out-257),c=D.dmax,l=D.wsize,h=D.whave,u=D.wnext,d=D.window,f=D.hold,_=D.bits,w=D.lencode,g=D.distcode,p=(1<<D.lenbits)-1,m=(1<<D.distbits)-1;e:do{_<15&&(f+=E[i++]<<_,_+=8,f+=E[i++]<<_,_+=8),y=w[f&p];t:for(;;){if(b=y>>>24,f>>>=b,_-=b,b=y>>>16&255,b===0)A[a++]=y&65535;else if(b&16){I=y&65535,b&=15,b&&(_<b&&(f+=E[i++]<<_,_+=8),I+=f&(1<<b)-1,f>>>=b,_-=b),_<15&&(f+=E[i++]<<_,_+=8,f+=E[i++]<<_,_+=8),y=g[f&m];n:for(;;){if(b=y>>>24,f>>>=b,_-=b,b=y>>>16&255,b&16){if(x=y&65535,b&=15,_<b&&(f+=E[i++]<<_,_+=8,_<b&&(f+=E[i++]<<_,_+=8)),x+=f&(1<<b)-1,x>c){n.msg="invalid distance too far back",D.mode=_t;break e}if(f>>>=b,_-=b,b=a-o,x>b){if(b=x-b,b>h&&D.sane){n.msg="invalid distance too far back",D.mode=_t;break e}if(k=0,T=d,u===0){if(k+=l-b,b<I){I-=b;do A[a++]=d[k++];while(--b);k=a-x,T=A}}else if(u<b){if(k+=l+u-b,b-=u,b<I){I-=b;do A[a++]=d[k++];while(--b);if(k=0,u<I){b=u,I-=b;do A[a++]=d[k++];while(--b);k=a-x,T=A}}}else if(k+=u-b,b<I){I-=b;do A[a++]=d[k++];while(--b);k=a-x,T=A}for(;I>2;)A[a++]=T[k++],A[a++]=T[k++],A[a++]=T[k++],I-=3;I&&(A[a++]=T[k++],I>1&&(A[a++]=T[k++]))}else{k=a-x;do A[a++]=A[k++],A[a++]=A[k++],A[a++]=A[k++],I-=3;while(I>2);I&&(A[a++]=A[k++],I>1&&(A[a++]=A[k++]))}}else if(b&64){n.msg="invalid distance code",D.mode=_t;break e}else{y=g[(y&65535)+(f&(1<<b)-1)];continue n}break}}else if(b&64)if(b&32){D.mode=ll;break e}else{n.msg="invalid literal/length code",D.mode=_t;break e}else{y=w[(y&65535)+(f&(1<<b)-1)];continue t}break}}while(i<r&&a<s);I=_>>3,i-=I,_-=I<<3,f&=(1<<_)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),D.hold=f,D.bits=_};const Re=15,ii=852,ri=592,ai=0,Yt=1,oi=2,cl=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),fl=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),hl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dl=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var We=(e,n,t,i,r,a,o,s)=>{const c=s.bits;let l=0,h=0,u=0,d=0,f=0,_=0,w=0,g=0,p=0,m=0,y,b,I,x,k,T=null,E;const A=new Uint16Array(Re+1),D=new Uint16Array(Re+1);let C=null,F,L,U;for(l=0;l<=Re;l++)A[l]=0;for(h=0;h<i;h++)A[n[t+h]]++;for(f=c,d=Re;d>=1&&A[d]===0;d--);if(f>d&&(f=d),d===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(u=1;u<d&&A[u]===0;u++);for(f<u&&(f=u),g=1,l=1;l<=Re;l++)if(g<<=1,g-=A[l],g<0)return-1;if(g>0&&(e===ai||d!==1))return-1;for(D[1]=0,l=1;l<Re;l++)D[l+1]=D[l]+A[l];for(h=0;h<i;h++)n[t+h]!==0&&(o[D[n[t+h]]++]=h);if(e===ai?(T=C=o,E=20):e===Yt?(T=cl,C=fl,E=257):(T=hl,C=dl,E=0),m=0,h=0,l=u,k=a,_=f,w=0,I=-1,p=1<<f,x=p-1,e===Yt&&p>ii||e===oi&&p>ri)return 1;for(;;){F=l-w,o[h]+1<E?(L=0,U=o[h]):o[h]>=E?(L=C[o[h]-E],U=T[o[h]-E]):(L=32+64,U=0),y=1<<l-w,b=1<<_,u=b;do b-=y,r[k+(m>>w)+b]=F<<24|L<<16|U|0;while(b!==0);for(y=1<<l-1;m&y;)y>>=1;if(y!==0?(m&=y-1,m+=y):m=0,h++,--A[l]===0){if(l===d)break;l=n[t+o[h]]}if(l>f&&(m&x)!==I){for(w===0&&(w=f),k+=u,_=l-w,g=1<<_;_+w<d&&(g-=A[_+w],!(g<=0));)_++,g<<=1;if(p+=1<<_,e===Yt&&p>ii||e===oi&&p>ri)return 1;I=m&x,r[I]=f<<24|_<<16|k-a|0}}return m!==0&&(r[k+m]=l-w<<24|64<<16|0),s.bits=f,0};const ul=0,li=1,si=2,{Z_FINISH:ci,Z_BLOCK:_l,Z_TREES:gt,Z_OK:me,Z_STREAM_END:gl,Z_NEED_DICT:wl,Z_STREAM_ERROR:q,Z_DATA_ERROR:fi,Z_MEM_ERROR:hi,Z_BUF_ERROR:pl,Z_DEFLATED:di}=_e,wt=16180,ui=16181,_i=16182,gi=16183,wi=16184,pi=16185,mi=16186,bi=16187,vi=16188,yi=16189,pt=16190,Q=16191,Kt=16192,xi=16193,Jt=16194,Ii=16195,ki=16196,Ei=16197,Ai=16198,mt=16199,bt=16200,Ti=16201,Si=16202,Di=16203,Ci=16204,Ui=16205,Qt=16206,Ri=16207,Mi=16208,z=16209,Fi=16210,Li=16211,ml=852,bl=592,vl=15,zi=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function yl(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const be=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<wt||n.mode>Li?1:0},Pi=e=>{if(be(e))return q;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=wt,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(ml),n.distcode=n.distdyn=new Int32Array(bl),n.sane=1,n.back=-1,me},Oi=e=>{if(be(e))return q;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Pi(e)},Bi=(e,n)=>{let t;if(be(e))return q;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?q:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Oi(e))},Hi=(e,n)=>{if(!e)return q;const t=new yl;e.state=t,t.strm=e,t.window=null,t.mode=wt;const i=Bi(e,n);return i!==me&&(e.state=null),i},xl=e=>Hi(e,vl);let Zi=!0,Wt,en;const Il=e=>{if(Zi){Wt=new Int32Array(512),en=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(We(li,e.lens,0,288,Wt,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;We(si,e.lens,0,32,en,0,e.work,{bits:5}),Zi=!1}e.lencode=Wt,e.lenbits=9,e.distcode=en,e.distbits=5},$i=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},kl=(e,n)=>{let t,i,r,a,o,s,c,l,h,u,d,f,_,w,g=0,p,m,y,b,I,x,k,T;const E=new Uint8Array(4);let A,D;const C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(be(e)||!e.output||!e.input&&e.avail_in!==0)return q;t=e.state,t.mode===Q&&(t.mode=Kt),o=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=t.hold,h=t.bits,u=s,d=c,T=me;e:for(;;)switch(t.mode){case wt:if(t.wrap===0){t.mode=Kt;break}for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,E[0]=l&255,E[1]=l>>>8&255,t.check=P(t.check,E,2,0),l=0,h=0,t.mode=ui;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((l&15)!==di){e.msg="unknown compression method",t.mode=z;break}if(l>>>=4,h-=4,k=(l&15)+8,t.wbits===0&&(t.wbits=k),k>15||k>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=l&512?yi:Q,l=0,h=0;break;case ui:for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.flags=l,(t.flags&255)!==di){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=P(t.check,E,2,0)),l=0,h=0,t.mode=_i;case _i:for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,t.check=P(t.check,E,4,0)),l=0,h=0,t.mode=gi;case gi:for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=P(t.check,E,2,0)),l=0,h=0,t.mode=wi;case wi:if(t.flags&1024){for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=P(t.check,E,2,0)),l=0,h=0}else t.head&&(t.head.extra=null);t.mode=pi;case pi:if(t.flags&1024&&(f=t.length,f>s&&(f=s),f&&(t.head&&(k=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+f),k)),t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,t.length-=f),t.length))break e;t.length=0,t.mode=mi;case mi:if(t.flags&2048){if(s===0)break e;f=0;do k=i[a+f++],t.head&&k&&t.length<65536&&(t.head.name+=String.fromCharCode(k));while(k&&f<s);if(t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,k)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=bi;case bi:if(t.flags&4096){if(s===0)break e;f=0;do k=i[a+f++],t.head&&k&&t.length<65536&&(t.head.comment+=String.fromCharCode(k));while(k&&f<s);if(t.flags&512&&t.wrap&4&&(t.check=P(t.check,i,f,a)),s-=f,a+=f,k)break e}else t.head&&(t.head.comment=null);t.mode=vi;case vi:if(t.flags&512){for(;h<16;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&4&&l!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}l=0,h=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=Q;break;case yi:for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}e.adler=t.check=zi(l),l=0,h=0,t.mode=pt;case pt:if(t.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,wl;e.adler=t.check=1,t.mode=Q;case Q:if(n===_l||n===gt)break e;case Kt:if(t.last){l>>>=h&7,h-=h&7,t.mode=Qt;break}for(;h<3;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}switch(t.last=l&1,l>>>=1,h-=1,l&3){case 0:t.mode=xi;break;case 1:if(Il(t),t.mode=mt,n===gt){l>>>=2,h-=2;break e}break;case 2:t.mode=ki;break;case 3:e.msg="invalid block type",t.mode=z}l>>>=2,h-=2;break;case xi:for(l>>>=h&7,h-=h&7;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=l&65535,l=0,h=0,t.mode=Jt,n===gt)break e;case Jt:t.mode=Ii;case Ii:if(f=t.length,f){if(f>s&&(f=s),f>c&&(f=c),f===0)break e;r.set(i.subarray(a,a+f),o),s-=f,a+=f,c-=f,o+=f,t.length-=f;break}t.mode=Q;break;case ki:for(;h<14;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.nlen=(l&31)+257,l>>>=5,h-=5,t.ndist=(l&31)+1,l>>>=5,h-=5,t.ncode=(l&15)+4,l>>>=4,h-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=Ei;case Ei:for(;t.have<t.ncode;){for(;h<3;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.lens[C[t.have++]]=l&7,l>>>=3,h-=3}for(;t.have<19;)t.lens[C[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,A={bits:t.lenbits},T=We(ul,t.lens,0,19,t.lencode,0,t.work,A),t.lenbits=A.bits,T){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=Ai;case Ai:for(;t.have<t.nlen+t.ndist;){for(;g=t.lencode[l&(1<<t.lenbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(y<16)l>>>=p,h-=p,t.lens[t.have++]=y;else{if(y===16){for(D=p+2;h<D;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(l>>>=p,h-=p,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}k=t.lens[t.have-1],f=3+(l&3),l>>>=2,h-=2}else if(y===17){for(D=p+3;h<D;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=p,h-=p,k=0,f=3+(l&7),l>>>=3,h-=3}else{for(D=p+7;h<D;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=p,h-=p,k=0,f=11+(l&127),l>>>=7,h-=7}if(t.have+f>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;f--;)t.lens[t.have++]=k}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,A={bits:t.lenbits},T=We(li,t.lens,0,t.nlen,t.lencode,0,t.work,A),t.lenbits=A.bits,T){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,A={bits:t.distbits},T=We(si,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,A),t.distbits=A.bits,T){e.msg="invalid distances set",t.mode=z;break}if(t.mode=mt,n===gt)break e;case mt:t.mode=bt;case bt:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,sl(e,d),o=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=t.hold,h=t.bits,t.mode===Q&&(t.back=-1);break}for(t.back=0;g=t.lencode[l&(1<<t.lenbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(m&&!(m&240)){for(b=p,I=m,x=y;g=t.lencode[x+((l&(1<<b+I)-1)>>b)],p=g>>>24,m=g>>>16&255,y=g&65535,!(b+p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=b,h-=b,t.back+=b}if(l>>>=p,h-=p,t.back+=p,t.length=y,m===0){t.mode=Ui;break}if(m&32){t.back=-1,t.mode=Q;break}if(m&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=m&15,t.mode=Ti;case Ti:if(t.extra){for(D=t.extra;h<D;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,h-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Si;case Si:for(;g=t.distcode[l&(1<<t.distbits)-1],p=g>>>24,m=g>>>16&255,y=g&65535,!(p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(!(m&240)){for(b=p,I=m,x=y;g=t.distcode[x+((l&(1<<b+I)-1)>>b)],p=g>>>24,m=g>>>16&255,y=g&65535,!(b+p<=h);){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}l>>>=b,h-=b,t.back+=b}if(l>>>=p,h-=p,t.back+=p,m&64){e.msg="invalid distance code",t.mode=z;break}t.offset=y,t.extra=m&15,t.mode=Di;case Di:if(t.extra){for(D=t.extra;h<D;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,h-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Ci;case Ci:if(c===0)break e;if(f=d-c,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}f>t.wnext?(f-=t.wnext,_=t.wsize-f):_=t.wnext-f,f>t.length&&(f=t.length),w=t.window}else w=r,_=o-t.offset,f=t.length;f>c&&(f=c),c-=f,t.length-=f;do r[o++]=w[_++];while(--f);t.length===0&&(t.mode=bt);break;case Ui:if(c===0)break e;r[o++]=t.length,c--,t.mode=bt;break;case Qt:if(t.wrap){for(;h<32;){if(s===0)break e;s--,l|=i[a++]<<h,h+=8}if(d-=c,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?P(t.check,r,d,o-d):qe(t.check,r,d,o-d)),d=c,t.wrap&4&&(t.flags?l:zi(l))!==t.check){e.msg="incorrect data check",t.mode=z;break}l=0,h=0}t.mode=Ri;case Ri:if(t.wrap&&t.flags){for(;h<32;){if(s===0)break e;s--,l+=i[a++]<<h,h+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}l=0,h=0}t.mode=Mi;case Mi:T=gl;break e;case z:T=fi;break e;case Fi:return hi;case Li:default:return q}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=l,t.bits=h,(t.wsize||d!==e.avail_out&&t.mode<z&&(t.mode<Qt||n!==ci))&&$i(e,e.output,e.next_out,d-e.avail_out),u-=e.avail_in,d-=e.avail_out,e.total_in+=u,e.total_out+=d,t.total+=d,t.wrap&4&&d&&(e.adler=t.check=t.flags?P(t.check,r,d,e.next_out-d):qe(t.check,r,d,e.next_out-d)),e.data_type=t.bits+(t.last?64:0)+(t.mode===Q?128:0)+(t.mode===mt||t.mode===Jt?256:0),(u===0&&d===0||n===ci)&&T===me&&(T=pl),T},El=e=>{if(be(e))return q;let n=e.state;return n.window&&(n.window=null),e.state=null,me},Al=(e,n)=>{if(be(e))return q;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,me):q},Tl=(e,n)=>{const t=n.length;let i,r,a;return be(e)||(i=e.state,i.wrap!==0&&i.mode!==pt)?q:i.mode===pt&&(r=1,r=qe(r,n,t,0),r!==i.check)?fi:(a=$i(e,n,t,t),a?(i.mode=Fi,hi):(i.havedict=1,me))};var Sl=Oi,Dl=Bi,Cl=Pi,Ul=xl,Rl=Hi,Ml=kl,Fl=El,Ll=Al,zl=Tl,Pl="pako inflate (from Nodeca project)",W={inflateReset:Sl,inflateReset2:Dl,inflateResetKeep:Cl,inflateInit:Ul,inflateInit2:Rl,inflate:Ml,inflateEnd:Fl,inflateGetHeader:Ll,inflateSetDictionary:zl,inflateInfo:Pl};function Ol(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Bl=Ol;const Ni=Object.prototype.toString,{Z_NO_FLUSH:Hl,Z_FINISH:Zl,Z_OK:et,Z_STREAM_END:tn,Z_NEED_DICT:nn,Z_STREAM_ERROR:$l,Z_DATA_ERROR:qi,Z_MEM_ERROR:Nl}=_e;function tt(e){this.options=dt.assign({chunkSize:65536,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ti,this.strm.avail_out=0;let t=W.inflateInit2(this.strm,n.windowBits);if(t!==et)throw new Error(ue[t]);if(this.header=new Bl,W.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Je.string2buf(n.dictionary):Ni.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=W.inflateSetDictionary(this.strm,n.dictionary),t!==et)))throw new Error(ue[t])}tt.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(n===~~n?o=n:o=n===!0?Zl:Hl,Ni.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=W.inflate(t,o),a===nn&&r&&(a=W.inflateSetDictionary(t,r),a===et?a=W.inflate(t,o):a===qi&&(a=nn));t.avail_in>0&&a===tn&&t.state.wrap>0&&e[t.next_in]!==0;)W.inflateReset(t),a=W.inflate(t,o);switch(a){case $l:case qi:case nn:case Nl:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===tn))if(this.options.to==="string"){let c=Je.utf8border(t.output,t.next_out),l=t.next_out-c,h=Je.buf2string(t.output,c);t.next_out=l,t.avail_out=i-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(h)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===et&&s===0)){if(a===tn)return a=W.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},tt.prototype.onData=function(e){this.chunks.push(e)},tt.prototype.onEnd=function(e){e===et&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=dt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rn(e,n){const t=new tt(n);if(t.push(e),t.err)throw t.msg||ue[t.err];return t.result}function ql(e,n){return n=n||{},n.raw=!0,rn(e,n)}var jl=tt,Gl=rn,Xl=ql,Vl=rn,Yl=_e,Kl={Inflate:jl,inflate:Gl,inflateRaw:Xl,ungzip:Vl,constants:Yl};const{Deflate:Jl,deflate:Ql,deflateRaw:Wl,gzip:es}=ol,{Inflate:ts,inflate:ns,inflateRaw:is,ungzip:rs}=Kl;var as=Jl,os=Ql,ls=Wl,ss=es,cs=ts,fs=ns,hs=is,ds=rs,us=_e,_s={Deflate:as,deflate:os,deflateRaw:ls,gzip:ss,Inflate:cs,inflate:fs,inflateRaw:hs,ungzip:ds,constants:us};const S={};S.toRGBA8=function(e){const n=e.width,t=e.height;if(e.tabs.acTL===null)return[S.toRGBA8.decodeImage(e.data,n,t,e).buffer];const i=[];e.frames[0].data===null&&(e.frames[0].data=e.data);const r=n*t*4,a=new Uint8Array(r),o=new Uint8Array(r),s=new Uint8Array(r);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],h=l.rect.x,u=l.rect.y,d=l.rect.width,f=l.rect.height,_=S.toRGBA8.decodeImage(l.data,d,f,e);if(c!==0)for(let w=0;w<r;w++)s[w]=a[w];if(l.blend===0?S._copyTile(_,d,f,a,n,t,h,u,0):l.blend===1&&S._copyTile(_,d,f,a,n,t,h,u,1),i.push(a.buffer.slice(0)),l.dispose===1)S._copyTile(o,d,f,a,n,t,h,u,0);else if(l.dispose===2)for(let w=0;w<r;w++)a[w]=s[w]}return i},S.toRGBA8.decodeImage=function(e,n,t,i){const r=n*t,a=S.decode._getBPP(i),o=Math.ceil(n*a/8),s=new Uint8Array(r*4),c=new Uint32Array(s.buffer),l=i.ctype,h=i.depth,u=S._bin.readUshort;if(l===6){const d=r<<2;if(h===8)for(let f=0;f<d;f+=4)s[f]=e[f],s[f+1]=e[f+1],s[f+2]=e[f+2],s[f+3]=e[f+3];if(h===16)for(let f=0;f<d;f++)s[f]=e[f<<1]}else if(l===2){const d=i.tabs.tRNS;if(d===null){if(h===8)for(let f=0;f<r;f++){const _=f*3;c[f]=-16777216|e[_+2]<<16|e[_+1]<<8|e[_]}if(h===16)for(let f=0;f<r;f++){const _=f*6;c[f]=-16777216|e[_+4]<<16|e[_+2]<<8|e[_]}}else{const f=d[0],_=d[1],w=d[2];if(h===8)for(let g=0;g<r;g++){const p=g<<2,m=g*3;c[g]=-16777216|e[m+2]<<16|e[m+1]<<8|e[m],e[m]===f&&e[m+1]===_&&e[m+2]===w&&(s[p+3]=0)}if(h===16)for(let g=0;g<r;g++){const p=g<<2,m=g*6;c[g]=-16777216|e[m+4]<<16|e[m+2]<<8|e[m],u(e,m)===f&&u(e,m+2)===_&&u(e,m+4)===w&&(s[p+3]=0)}}}else if(l===3){const d=i.tabs.PLTE,f=i.tabs.tRNS,_=f?f.length:0;if(h===1)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>3)]>>7-((m&7)<<0)&1,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===2)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>2)]>>6-((m&3)<<1)&3,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===4)for(let w=0;w<t;w++){const g=w*o,p=w*n;for(let m=0;m<n;m++){const y=p+m<<2,b=e[g+(m>>1)]>>4-((m&1)<<2)&15,I=3*b;s[y]=d[I],s[y+1]=d[I+1],s[y+2]=d[I+2],s[y+3]=b<_?f[b]:255}}if(h===8)for(let w=0;w<r;w++){const g=w<<2,p=e[w],m=3*p;s[g]=d[m],s[g+1]=d[m+1],s[g+2]=d[m+2],s[g+3]=p<_?f[p]:255}}else if(l===4){if(h===8)for(let d=0;d<r;d++){const f=d<<2,_=d<<1,w=e[_];s[f]=w,s[f+1]=w,s[f+2]=w,s[f+3]=e[_+1]}if(h===16)for(let d=0;d<r;d++){const f=d<<2,_=d<<2,w=e[_];s[f]=w,s[f+1]=w,s[f+2]=w,s[f+3]=e[_+2]}}else if(l===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let f=0;f<t;f++){const _=f*o,w=f*n;if(h===1)for(let g=0;g<n;g++){const p=255*(e[_+(g>>>3)]>>>7-(g&7)&1),m=p===d*255?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===2)for(let g=0;g<n;g++){const p=85*(e[_+(g>>>2)]>>>6-((g&3)<<1)&3),m=p===d*85?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===4)for(let g=0;g<n;g++){const p=17*(e[_+(g>>>1)]>>>4-((g&1)<<2)&15),m=p===d*17?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===8)for(let g=0;g<n;g++){const p=e[_+g],m=p===d?0:255;c[w+g]=m<<24|p<<16|p<<8|p}else if(h===16)for(let g=0;g<n;g++){const p=e[_+(g<<1)],m=u(e,_+(g<<1))===d?0:255;c[w+g]=m<<24|p<<16|p<<8|p}}}return s},S.decode=function(e){const n=new Uint8Array(e);let t=8;const i=S._bin,r=i.readUshort,a=i.readUint,o={tabs:{},frames:[]},s=new Uint8Array(n.length);let c=0,l,h=0;const u=[137,80,78,71,13,10,26,10];for(let d=0;d<8;d++)if(n[d]!==u[d])throw"The input is not a PNG file!";for(;t<n.length;){const d=i.readUint(n,t);t+=4;const f=i.readASCII(n,t,4);if(t+=4,f==="IHDR")S.decode._IHDR(n,t,o);else if(f==="CgBI")o.tabs[f]=n.slice(t,t+4);else if(f==="IDAT"){for(let _=0;_<d;_++)s[c+_]=n[t+_];c+=d}else if(f==="acTL")o.tabs[f]={num_frames:a(n,t),num_plays:a(n,t+4)},l=new Uint8Array(n.length);else if(f==="fcTL"){if(h!==0){const p=o.frames[o.frames.length-1];p.data=S.decode._decompress(o,l.slice(0,h),p.rect.width,p.rect.height),h=0}const _={x:a(n,t+12),y:a(n,t+16),width:a(n,t+4),height:a(n,t+8)};let w=r(n,t+22);w=r(n,t+20)/(w===0?100:w);const g={rect:_,delay:Math.round(w*1e3),dispose:n[t+24],blend:n[t+25]};o.frames.push(g)}else if(f==="fdAT"){for(let _=0;_<d-4;_++)l[h+_]=n[t+_+4];h+=d-4}else if(f==="pHYs")o.tabs[f]=[i.readUint(n,t),i.readUint(n,t+4),n[t+8]];else if(f==="cHRM"){o.tabs[f]=[];for(let _=0;_<8;_++)o.tabs[f].push(i.readUint(n,t+_*4))}else if(f==="tEXt"||f==="zTXt"){o.tabs[f]===null&&(o.tabs[f]={});const _=i.nextZero(n,t),w=i.readASCII(n,t,_-t);let g;const p=t+d-_-1;if(f==="tEXt")g=i.readASCII(n,_+1,p);else{const m=S.decode._inflate(n.slice(_+2,_+2+p));g=i.readUTF8(m,0,m.length)}o.tabs[f][w]=g}else if(f==="iTXt"){o.tabs[f]==null&&(o.tabs[f]={});let _=0,w=t;_=i.nextZero(n,w);const g=i.readASCII(n,w,_-w);w=_+1;const p=n[w];w+=2,_=i.nextZero(n,w),w=_+1,_=i.nextZero(n,w),w=_+1;let m;const y=d-(w-t);if(p===0)m=i.readUTF8(n,w,y);else{const b=S.decode._inflate(n.slice(w,w+y));m=i.readUTF8(b,0,b.length)}o.tabs[f][g]=m}else if(f==="PLTE")o.tabs[f]=i.readBytes(n,t,d);else if(f==="hIST"){const _=o.tabs.PLTE.length/3;o.tabs[f]=[];for(let w=0;w<_;w++)o.tabs[f].push(r(n,t+w*2))}else if(f==="tRNS")o.ctype===3?o.tabs[f]=i.readBytes(n,t,d):o.ctype===0?o.tabs[f]=r(n,t):o.ctype===2&&(o.tabs[f]=[r(n,t),r(n,t+2),r(n,t+4)]);else if(f==="gAMA")o.tabs[f]=i.readUint(n,t)/1e5;else if(f==="sRGB")o.tabs[f]=n[t];else if(f==="bKGD")o.ctype===0||o.ctype===4?o.tabs[f]=[r(n,t)]:o.ctype===2||o.ctype===6?o.tabs[f]=[r(n,t),r(n,t+2),r(n,t+4)]:o.ctype===3&&(o.tabs[f]=n[t]);else if(f==="IEND")break;t+=d,t+=4}if(h!==0){const d=o.frames[o.frames.length-1];d.data=S.decode._decompress(o,l.slice(0,h),d.rect.width,d.rect.height),h=0}return o.data=S.decode._decompress(o,s,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},S.decode._decompress=function(e,n,t,i){const r=S.decode._getBPP(e),a=Math.ceil(t*r/8),o=new Uint8Array((a+1+e.interlace)*i);return e.tabs.CgBI?n=S.inflateRaw(n,o):n=S.decode._inflate(n,o),e.interlace===0?n=S.decode._filterZero(n,e,0,t,i):e.interlace===1&&(n=S.decode._readInterlace(n,e)),n},S.decode._inflate=function(e,n){return S.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),n)},S.inflateRaw=function(){const e={};return e.H={},e.H.N=function(n,t){const i=Uint8Array;let r=0,a=0,o=0,s=0,c=0,l=0,h=0,u=0,d=0,f,_;if(n[0]===3&&n[1]===0)return t||new i(0);const w=e.H,g=w.b,p=w.e,m=w.R,y=w.n,b=w.A,I=w.Z,x=w.m,k=t===null;for(k&&(t=new i(n.length>>>2<<3));r===0;){if(r=g(n,d,1),a=g(n,d+1,2),d+=3,a===0){d&7&&(d+=8-(d&7));const T=(d>>>3)+4,E=n[T-4]|n[T-3]<<8;k&&(t=e.H.W(t,u+E)),t.set(new i(n.buffer,n.byteOffset+T,E),u),d=T+E<<3,u+=E;continue}if(k&&(t=e.H.W(t,u+131072)),a===1&&(f=x.J,_=x.h,l=511,h=31),a===2){o=p(n,d,5)+257,s=p(n,d+5,5)+1,c=p(n,d+10,4)+4,d+=14;let T=1;for(let D=0;D<38;D+=2)x.Q[D]=0,x.Q[D+1]=0;for(let D=0;D<c;D++){const C=p(n,d+D*3,3);x.Q[(x.X[D]<<1)+1]=C,C>T&&(T=C)}d+=3*c,y(x.Q,T),b(x.Q,T,x.u),f=x.w,_=x.d,d=m(x.u,(1<<T)-1,o+s,n,d,x.v);const E=w.V(x.v,0,o,x.C);l=(1<<E)-1;const A=w.V(x.v,o,s,x.D);h=(1<<A)-1,y(x.C,E),b(x.C,E,f),y(x.D,A),b(x.D,A,_)}for(;;){const T=f[I(n,d)&l];d+=T&15;const E=T>>>4;if(!(E>>>8))t[u++]=E;else{if(E===256)break;{let A=u+E-254;if(E>264){const U=x.q[E-257];A=u+(U>>>3)+p(n,d,U&7),d+=U&7}const D=_[I(n,d)&h];d+=D&15;const C=D>>>4,F=x.c[C],L=(F>>>4)+g(n,d,F&15);for(d+=F&15;u<A;)t[u]=t[u++-L],t[u]=t[u++-L],t[u]=t[u++-L],t[u]=t[u++-L];u=A}}}}return t.length===u?t:t.slice(0,u)},e.H.W=function(n,t){const i=n.length;if(t<=i)return n;const r=new Uint8Array(i<<1);return r.set(n,0),r},e.H.R=function(n,t,i,r,a,o){const s=e.H.e,c=e.H.Z;let l=0;for(;l<i;){const h=n[c(r,a)&t];a+=h&15;const u=h>>>4;if(u<=15)o[l]=u,l++;else{let d=0,f=0;u===16?(f=3+s(r,a,2),a+=2,d=o[l-1]):u===17?(f=3+s(r,a,3),a+=3):u===18&&(f=11+s(r,a,7),a+=7);const _=l+f;for(;l<_;)o[l]=d,l++}}return a},e.H.V=function(n,t,i,r){let a=0,o=0;const s=r.length>>>1;for(;o<i;){const c=n[o+t];r[o<<1]=0,r[(o<<1)+1]=c,c>a&&(a=c),o++}for(;o<s;)r[o<<1]=0,r[(o<<1)+1]=0,o++;return a},e.H.n=function(n,t){const i=e.H.m,r=n.length;let a,o,s,c,l;const h=i.j;for(let d=0;d<=t;d++)h[d]=0;for(c=1;c<r;c+=2)h[n[c]]++;const u=i.K;for(a=0,h[0]=0,o=1;o<=t;o++)a=a+h[o-1]<<1,u[o]=a;for(s=0;s<r;s+=2)l=n[s+1],l!==0&&(n[s]=u[l],u[l]++)},e.H.A=function(n,t,i){const r=n.length,o=e.H.m.r;for(let s=0;s<r;s+=2)if(n[s+1]!==0){const c=s>>1,l=n[s+1],h=c<<4|l,u=t-l;let d=n[s]<<u;const f=d+(1<<u);for(;d!==f;){const _=o[d]>>>15-t;i[_]=h,d++}}},e.H.l=function(n,t){const i=e.H.m.r,r=15-t;for(let a=0;a<n.length;a+=2){const o=n[a]<<t-n[a+1];n[a]=i[o]>>>r}},e.H.M=function(n,t,i){i=i<<(t&7);const r=t>>>3;n[r]|=i,n[r+1]|=i>>>8},e.H.I=function(n,t,i){i=i<<(t&7);const r=t>>>3;n[r]|=i,n[r+1]|=i>>>8,n[r+2]|=i>>>16},e.H.e=function(n,t,i){return(n[t>>>3]|n[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(n,t,i){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(n,t){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(n,t){return(n[t>>>3]|n[(t>>>3)+1]<<8|n[(t>>>3)+2]<<16|n[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){const n=Uint16Array,t=Uint32Array;return{K:new n(16),j:new n(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new n(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new n(512),_:[],h:new n(32),$:[],w:new n(32768),C:[],v:[],d:new n(32768),D:[],u:new n(512),Q:[],r:new n(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new n(65536),g:new n(32768)}}(),function(){const n=e.H.m,t=32768;for(let r=0;r<t;r++){let a=r;a=(a&2863311530)>>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,n.r[r]=(a>>>16|a<<16)>>>17}function i(r,a,o){for(;a--!==0;)r.push(0,o)}for(let r=0;r<32;r++)n.q[r]=n.S[r]<<3|n.T[r],n.c[r]=n.p[r]<<4|n.z[r];i(n._,144,8),i(n._,112,9),i(n._,24,7),i(n._,8,8),e.H.n(n._,9),e.H.A(n._,9,n.J),e.H.l(n._,9),i(n.$,32,5),e.H.n(n.$,5),e.H.A(n.$,5,n.h),e.H.l(n.$,5),i(n.Q,19,0),i(n.C,286,0),i(n.D,30,0),i(n.v,320,0)}(),e.H.N}(),S.decode._readInterlace=function(e,n){const t=n.width,i=n.height,r=S.decode._getBPP(n),a=r>>3,o=Math.ceil(t*r/8),s=new Uint8Array(i*o);let c=0;const l=[0,0,4,0,2,0,1],h=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1];let f=0;for(;f<7;){const _=u[f],w=d[f];let g=0,p=0,m=l[f];for(;m<i;)m+=_,p++;let y=h[f];for(;y<t;)y+=w,g++;const b=Math.ceil(g*r/8);S.decode._filterZero(e,n,c,g,p);let I=0,x=l[f];for(;x<i;){let k=h[f],T=c+I*b<<3;for(;k<t;){if(r===1){let E=e[T>>3];E=E>>7-(T&7)&1,s[x*o+(k>>3)]|=E<<7-((k&7)<<0)}if(r===2){let E=e[T>>3];E=E>>6-(T&7)&3,s[x*o+(k>>2)]|=E<<6-((k&3)<<1)}if(r===4){let E=e[T>>3];E=E>>4-(T&7)&15,s[x*o+(k>>1)]|=E<<4-((k&1)<<2)}if(r>=8){const E=x*o+k*a;for(let A=0;A<a;A++)s[E+A]=e[(T>>3)+A]}T+=r,k+=w}I++,x+=_}g*p!==0&&(c+=p*(1+b)),f=f+1}return s},S.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},S.decode._filterZero=function(e,n,t,i,r){let a=S.decode._getBPP(n);const o=Math.ceil(i*a/8),s=S.decode._paeth;a=Math.ceil(a/8);let c=0,l=1,h=e[t],u=0;if(h>1&&(e[t]=[0,0,1][h-2]),h===3)for(u=a;u<o;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let d=0;d<r;d++)if(c=t+d*o,l=c+d+1,h=e[l-1],u=0,h===0)for(;u<o;u++)e[c+u]=e[l+u];else if(h===1){for(;u<a;u++)e[c+u]=e[l+u];for(;u<o;u++)e[c+u]=e[l+u]+e[c+u-a]}else if(h===2)for(;u<o;u++)e[c+u]=e[l+u]+e[c+u-o];else if(h===3){for(;u<a;u++)e[c+u]=e[l+u]+(e[c+u-o]>>>1);for(;u<o;u++)e[c+u]=e[l+u]+(e[c+u-o]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[l+u]+s(0,e[c+u-o],0);for(;u<o;u++)e[c+u]=e[l+u]+s(e[c+u-a],e[c+u-o],e[c+u-a-o])}return e},S.decode._paeth=function(e,n,t){const i=e+n-t,r=i-e,a=i-n,o=i-t;return r*r<=a*a&&r*r<=o*o?e:a*a<=o*o?n:t},S.decode._IHDR=function(e,n,t){const i=S._bin;t.width=i.readUint(e,n),n+=4,t.height=i.readUint(e,n),n+=4,t.depth=e[n],n++,t.ctype=e[n],n++,t.compress=e[n],n++,t.filter=e[n],n++,t.interlace=e[n],n++},S._bin={nextZero:function(e,n){for(;e[n]!==0;)n++;return n},readUshort:function(e,n){return e[n]<<8|e[n+1]},writeUshort:function(e,n,t){e[n]=t>>8&255,e[n+1]=t&255},readUint:function(e,n){return e[n]*16777216+(e[n+1]<<16|e[n+2]<<8|e[n+3])},writeUint:function(e,n,t){e[n]=t>>24&255,e[n+1]=t>>16&255,e[n+2]=t>>8&255,e[n+3]=t&255},readASCII:function(e,n,t){let i="";for(let r=0;r<t;r++)i+=String.fromCharCode(e[n+r]);return i},writeASCII:function(e,n,t){for(let i=0;i<t.length;i++)e[n+i]=t.charCodeAt(i)},readBytes:function(e,n,t){const i=[];for(let r=0;r<t;r++)i.push(e[n+r]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,n,t){let i="",r;for(let a=0;a<t;a++)i+="%"+S._bin.pad(e[n+a].toString(16));try{r=decodeURIComponent(i)}catch{return S._bin.readASCII(e,n,t)}return r}},S._copyTile=function(e,n,t,i,r,a,o,s,c){const l=Math.min(n,r),h=Math.min(t,a);let u=0,d=0;for(let f=0;f<h;f++)for(let _=0;_<l;_++)if(o>=0&&s>=0?(u=f*n+_<<2,d=(s+f)*r+o+_<<2):(u=(-s+f)*n-o+_<<2,d=f*r+_<<2),c===0)i[d]=e[u],i[d+1]=e[u+1],i[d+2]=e[u+2],i[d+3]=e[u+3];else if(c===1){const w=e[u+3]*.00392156862745098,g=e[u]*w,p=e[u+1]*w,m=e[u+2]*w,y=i[d+3]*(1/255),b=i[d]*y,I=i[d+1]*y,x=i[d+2]*y,k=1-w,T=w+y*k,E=T===0?0:1/T;i[d+3]=255*T,i[d+0]=(g+b*k)*E,i[d+1]=(p+I*k)*E,i[d+2]=(m+x*k)*E}else if(c===2){const w=e[u+3],g=e[u],p=e[u+1],m=e[u+2],y=i[d+3],b=i[d],I=i[d+1],x=i[d+2];w===y&&g===b&&p===I&&m===x?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=g,i[d+1]=p,i[d+2]=m,i[d+3]=w)}else if(c===3){const w=e[u+3],g=e[u],p=e[u+1],m=e[u+2],y=i[d+3],b=i[d],I=i[d+1],x=i[d+2];if(w===y&&g===b&&p===I&&m===x)continue;if(w<220&&y>20)return!1}return!0},S.encode=function(e,n,t,i,r,a,o){i===null&&(i=0),o===null&&(o=!1);const s=S.encode.compress(e,n,t,i,[!1,!1,!1,0,o]);return S.encode.compressPNG(s,-1),S.encode._main(s,n,t,r,a)},S.encodeLL=function(e,n,t,i,r,a,o,s){const c={ctype:0+(i===1?0:2)+(r===0?0:4),depth:a,frames:[]},l=(i+r)*a,h=l*n;for(let d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:n,height:t},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(h/8)});return S.encode.compressPNG(c,0,!0),S.encode._main(c,n,t,o,s)},S.encode._main=function(e,n,t,i,r){r||(r={});const a=S.crc.crc,o=S._bin.writeUint,s=S._bin.writeUshort,c=S._bin.writeASCII;let l=8;const h=e.frames.length>1;let u=!1,d=8+(16+5+4)+(h?20:0);if(r.sRGB!==null&&r.sRGB!==void 0&&(d+=13),r.pHYs!==null&&r.pHYs!==void 0&&(d+=21),e.ctype===3){const g=e.plte.length;for(let p=0;p<g;p++)e.plte[p]>>>24!==255&&(u=!0);d+=8+g*3+4+(u?8+g*1+4:0)}for(let g=0;g<e.frames.length;g++){const p=e.frames[g];h&&(d+=38),d+=p.cimg.length+12,g!==0&&(d+=4)}d+=12;const f=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(let g=0;g<8;g++)f[g]=_[g];if(o(f,l,13),l+=4,c(f,l,"IHDR"),l+=4,o(f,l,n),l+=4,o(f,l,t),l+=4,f[l]=e.depth,l++,f[l]=e.ctype,l++,f[l]=0,l++,f[l]=0,l++,f[l]=0,l++,o(f,l,a(f,l-17,17)),l+=4,r.sRGB!==null&&r.sRGB!==void 0&&(o(f,l,1),l+=4,c(f,l,"sRGB"),l+=4,f[l]=r.sRGB,l++,o(f,l,a(f,l-5,5)),l+=4),r.pHYs!==null&&r.pHYs!==void 0&&(o(f,l,9),l+=4,c(f,l,"pHYs"),l+=4,o(f,l,r.pHYs[0]),l+=4,o(f,l,r.pHYs[1]),l+=4,f[l]=r.pHYs[2],l++,o(f,l,a(f,l-13,13)),l+=4),h&&(o(f,l,8),l+=4,c(f,l,"acTL"),l+=4,o(f,l,e.frames.length),l+=4,o(f,l,r.loop!=null?r.loop:0),l+=4,o(f,l,a(f,l-12,12)),l+=4),e.ctype===3){const g=e.plte.length;o(f,l,g*3),l+=4,c(f,l,"PLTE"),l+=4;for(let p=0;p<g;p++){const m=p*3,y=e.plte[p],b=y&255,I=y>>>8&255,x=y>>>16&255;f[l+m+0]=b,f[l+m+1]=I,f[l+m+2]=x}if(l+=g*3,o(f,l,a(f,l-g*3-4,g*3+4)),l+=4,u){o(f,l,g),l+=4,c(f,l,"tRNS"),l+=4;for(let p=0;p<g;p++)f[l+p]=e.plte[p]>>>24&255;l+=g,o(f,l,a(f,l-g-4,g+4)),l+=4}}let w=0;for(let g=0;g<e.frames.length;g++){const p=e.frames[g];h&&(o(f,l,26),l+=4,c(f,l,"fcTL"),l+=4,o(f,l,w++),l+=4,o(f,l,p.rect.width),l+=4,o(f,l,p.rect.height),l+=4,o(f,l,p.rect.x),l+=4,o(f,l,p.rect.y),l+=4,s(f,l,i[g]),l+=2,s(f,l,1e3),l+=2,f[l]=p.dispose,l++,f[l]=p.blend,l++,o(f,l,a(f,l-30,30)),l+=4);const m=p.cimg,y=m.length;o(f,l,y+(g===0?0:4)),l+=4;const b=l;c(f,l,g===0?"IDAT":"fdAT"),l+=4,g!==0&&(o(f,l,w++),l+=4),f.set(m,l),l+=y,o(f,l,a(f,b,l-b)),l+=4}return o(f,l,0),l+=4,c(f,l,"IEND"),l+=4,o(f,l,a(f,l-4,4)),l+=4,f.buffer},S.encode.compressPNG=function(e,n,t){for(let i=0;i<e.frames.length;i++){const r=e.frames[i],a=r.rect.height,o=new Uint8Array(a*r.bpl+a);r.cimg=S.encode._filterZero(r.img,a,r.bpp,r.bpl,o,n,t)}},S.encode.compress=function(e,n,t,i,r){const a=r[0],o=r[1],s=r[2],c=r[3],l=r[4];let h=6,u=8,d=255;for(let y=0;y<e.length;y++){const b=new Uint8Array(e[y]),I=b.length;for(let x=0;x<I;x+=4)d&=b[x+3]}const f=d!==255,_=S.encode.framize(e,n,t,a,o,s),w={},g=[],p=[];if(i!==0){const y=[];for(let T=0;T<_.length;T++)y.push(_[T].img.buffer);const b=S.encode.concatRGBA(y),I=S.quantize(b,i);let x=0;const k=new Uint8Array(I.abuf);for(let T=0;T<_.length;T++){const E=_[T].img,A=E.length;p.push(new Uint8Array(I.inds.buffer,x>>2,A>>2));for(let D=0;D<A;D+=4)E[D]=k[x+D],E[D+1]=k[x+D+1],E[D+2]=k[x+D+2],E[D+3]=k[x+D+3];x+=A}for(let T=0;T<I.plte.length;T++)g.push(I.plte[T].est.rgba)}else for(let y=0;y<_.length;y++){const b=_[y],I=new Uint32Array(b.img.buffer),x=b.rect.width,k=I.length,T=new Uint8Array(k);p.push(T);for(let E=0;E<k;E++){const A=I[E];if(E!==0&&A===I[E-1])T[E]=T[E-1];else if(E>x&&A===I[E-x])T[E]=T[E-x];else{let D=w[A];if(D===null&&(w[A]=D=g.length,g.push(A),g.length>=300))break;T[E]=D}}}const m=g.length;m<=256&&l===!1&&(m<=2?u=1:m<=4?u=2:m<=16?u=4:u=8,u=Math.max(u,c));for(let y=0;y<_.length;y++){const b=_[y],I=b.rect.width,x=b.rect.height;let k=b.img,T=4*I,E=4;if(m<=256&&l===!1){T=Math.ceil(u*I/8);const A=new Uint8Array(T*x),D=p[y];for(let C=0;C<x;C++){const F=C*T,L=C*I;if(u===8)for(let U=0;U<I;U++)A[F+U]=D[L+U];else if(u===4)for(let U=0;U<I;U++)A[F+(U>>1)]|=D[L+U]<<4-(U&1)*4;else if(u===2)for(let U=0;U<I;U++)A[F+(U>>2)]|=D[L+U]<<6-(U&3)*2;else if(u===1)for(let U=0;U<I;U++)A[F+(U>>3)]|=D[L+U]<<7-(U&7)*1}k=A,h=3,E=1}else if(f===!1&&_.length===1){const A=new Uint8Array(I*x*3),D=I*x;for(let C=0;C<D;C++){const F=C*3,L=C*4;A[F]=k[L],A[F+1]=k[L+1],A[F+2]=k[L+2]}k=A,h=2,E=3,T=3*I}b.img=k,b.bpl=T,b.bpp=E}return{ctype:h,depth:u,plte:g,frames:_}},S.encode.framize=function(e,n,t,i,r,a){const o=[];for(let s=0;s<e.length;s++){const c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer);let h,u=0,d=0,f=n,_=t,w=i?1:0;if(s!==0){const g=a||i||s===1||o[s-2].dispose!==0?1:2;let p=0,m=1e9;for(let b=0;b<g;b++){const I=new Uint32Array(e[s-1-b]);let x=n,k=t,T=-1,E=-1;for(let D=0;D<t;D++)for(let C=0;C<n;C++){const F=D*n+C;l[F]!==I[F]&&(C<x&&(x=C),C>T&&(T=C),D<k&&(k=D),D>E&&(E=D))}T===-1&&(x=k=T=E=0),r&&((x&1)===1&&x--,(k&1)===1&&k--);const A=(T-x+1)*(E-k+1);A<m&&(m=A,p=b,u=x,d=k,f=T-x+1,_=E-k+1)}const y=new Uint8Array(e[s-1-p]);p===1&&(o[s-1].dispose=2),h=new Uint8Array(f*_*4),S._copyTile(y,n,t,h,f,_,-u,-d,0),w=S._copyTile(c,n,t,h,f,_,-u,-d,3)?1:0,w===1?S.encode._prepareDiff(c,n,t,h,{x:u,y:d,width:f,height:_}):S._copyTile(c,n,t,h,f,_,-u,-d,0)}else h=c.slice(0);o.push({rect:{x:u,y:d,width:f,height:_},img:h,blend:w,dispose:0})}if(i)for(let s=0;s<o.length;s++){const c=o[s];if(c.blend===1)continue;const l=c.rect,h=o[s-1].rect,u=Math.min(l.x,h.x),d=Math.min(l.y,h.y),f=Math.max(l.x+l.width,h.x+h.width),_=Math.max(l.y+l.height,h.y+h.height),w={x:u,y:d,width:f-u,height:_-d};o[s-1].dispose=1,s-1!==0&&S.encode._updateFrame(e,n,t,o,s-1,w,r),S.encode._updateFrame(e,n,t,o,s,w,r)}return o},S.encode._updateFrame=function(e,n,t,i,r,a,o){const s=Uint8Array,c=Uint32Array,l=new s(e[r-1]),h=new c(e[r-1]),u=r+1<e.length?new s(e[r+1]):null,d=new s(e[r]),f=new c(d.buffer);let _=n,w=t,g=-1,p=-1;for(let y=0;y<a.height;y++)for(let b=0;b<a.width;b++){const I=a.x+b,x=a.y+y,k=x*n+I,T=f[k];T===0||i[r-1].dispose===0&&h[k]===T&&(u===null||u[k*4+3]!==0)||(I<_&&(_=I),I>g&&(g=I),x<w&&(w=x),x>p&&(p=x))}g===-1&&(_=w=g=p=0),o&&((_&1)===1&&_--,(w&1)===1&&w--),a={x:_,y:w,width:g-_+1,height:p-w+1};const m=i[r];m.rect=a,m.blend=1,m.img=new Uint8Array(a.width*a.height*4),i[r-1].dispose===0?(S._copyTile(l,n,t,m.img,a.width,a.height,-a.x,-a.y,0),S.encode._prepareDiff(d,n,t,m.img,a)):S._copyTile(d,n,t,m.img,a.width,a.height,-a.x,-a.y,0)},S.encode._prepareDiff=function(e,n,t,i,r){S._copyTile(e,n,t,i,r.width,r.height,-r.x,-r.y,2)},S.encode._filterZero=function(e,n,t,i,r,a,o){const s=[];let c=[0,1,2,3,4];a!==-1?c=[a]:(n*i>5e5||t===1)&&(c=[0]);let l;o&&(l={level:0});const h=r.length>1e7&&In!=null?In:_s;for(let f=0;f<c.length;f++){for(let _=0;_<n;_++)S.encode._filterLine(r,e,_,i,t,c[f]);s.push(h.deflate(r,l))}let u,d=1e9;for(let f=0;f<s.length;f++)s[f].length<d&&(u=f,d=s[f].length);return s[u]},S.encode._filterLine=function(e,n,t,i,r,a){const o=t*i;let s=o+t;const c=S.decode._paeth;if(e[s]=a,s++,a===0)if(i<500)for(let l=0;l<i;l++)e[s+l]=n[o+l];else e.set(new Uint8Array(n.buffer,o,i),s);else if(a===1){for(let l=0;l<r;l++)e[s+l]=n[o+l];for(let l=r;l<i;l++)e[s+l]=n[o+l]-n[o+l-r]+256&255}else if(t===0){for(let l=0;l<r;l++)e[s+l]=n[o+l];if(a===2)for(let l=r;l<i;l++)e[s+l]=n[o+l];if(a===3)for(let l=r;l<i;l++)e[s+l]=n[o+l]-(n[o+l-r]>>1)+256&255;if(a===4)for(let l=r;l<i;l++)e[s+l]=n[o+l]-c(n[o+l-r],0,0)+256&255}else{if(a===2)for(let l=0;l<i;l++)e[s+l]=n[o+l]+256-n[o+l-i]&255;if(a===3){for(let l=0;l<r;l++)e[s+l]=n[o+l]+256-(n[o+l-i]>>1)&255;for(let l=r;l<i;l++)e[s+l]=n[o+l]+256-(n[o+l-i]+n[o+l-r]>>1)&255}if(a===4){for(let l=0;l<r;l++)e[s+l]=n[o+l]+256-c(0,n[o+l-i],0)&255;for(let l=r;l<i;l++)e[s+l]=n[o+l]+256-c(n[o+l-r],n[o+l-i],n[o+l-r-i])&255}}},S.crc={table:function(){const e=new Uint32Array(256);for(let n=0;n<256;n++){let t=n;for(let i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[n]=t}return e}(),update:function(e,n,t,i){for(let r=0;r<i;r++)e=S.crc.table[(e^n[t+r])&255]^e>>>8;return e},crc:function(e,n,t){return S.crc.update(4294967295,e,n,t)^4294967295}},S.quantize=function(e,n){const t=new Uint8Array(e),i=t.slice(0),r=new Uint32Array(i.buffer),a=S.quantize.getKDtree(i,n),o=a[0],s=a[1],c=S.quantize.planeDst,l=t,h=r,u=l.length,d=new Uint8Array(t.length>>2);let f;if(t.length<2e7)for(let _=0;_<u;_+=4){const w=l[_]*.00392156862745098,g=l[_+1]*(1/255),p=l[_+2]*(1/255),m=l[_+3]*(1/255);f=S.quantize.getNearest(o,w,g,p,m),d[_>>2]=f.ind,h[_>>2]=f.est.rgba}else for(let _=0;_<u;_+=4){const w=l[_]*.00392156862745098,g=l[_+1]*(1/255),p=l[_+2]*(1/255),m=l[_+3]*(1/255);for(f=o;f.left;)f=c(f.est,w,g,p,m)<=0?f.left:f.right;d[_>>2]=f.ind,h[_>>2]=f.est.rgba}return{abuf:i.buffer,inds:d,plte:s}},S.quantize.getKDtree=function(e,n,t){t===null&&(t=1e-4);const i=new Uint32Array(e.buffer),r={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=S.quantize.stats(e,r.i0,r.i1),r.est=S.quantize.estats(r.bst);const a=[r];for(;a.length<n;){let o=0,s=0;for(let f=0;f<a.length;f++)a[f].est.L>o&&(o=a[f].est.L,s=f);if(o<t)break;const c=a[s],l=S.quantize.splitPixels(e,i,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=S.quantize.stats(e,u.i0,u.i1),u.est=S.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let f=0;f<16;f++)d.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)d.bst.m[f]=c.bst.m[f]-u.bst.m[f];d.est=S.quantize.estats(d.bst),c.left=u,c.right=d,a[s]=u,a.push(d)}a.sort(function(o,s){return s.bst.N-o.bst.N});for(let o=0;o<a.length;o++)a[o].ind=o;return[r,a]},S.quantize.getNearest=function(e,n,t,i,r){if(e.left==null)return e.tdst=S.quantize.dist(e.est.q,n,t,i,r),e;const a=S.quantize.planeDst(e.est,n,t,i,r);let o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);const c=S.quantize.getNearest(o,n,t,i,r);if(c.tdst<=a*a)return c;const l=S.quantize.getNearest(s,n,t,i,r);return l.tdst<c.tdst?l:c},S.quantize.planeDst=function(e,n,t,i,r){const a=e.e;return a[0]*n+a[1]*t+a[2]*i+a[3]*r-e.eMq},S.quantize.dist=function(e,n,t,i,r){const a=n-e[0],o=t-e[1],s=i-e[2],c=r-e[3];return a*a+o*o+s*s+c*c},S.quantize.splitPixels=function(e,n,t,i,r,a){const o=S.quantize.vecDot;for(i-=4;t<i;){for(;o(e,t,r)<=a;)t+=4;for(;o(e,i,r)>a;)i-=4;if(t>=i)break;const s=n[t>>2];n[t>>2]=n[i>>2],n[i>>2]=s,t+=4,i-=4}for(;o(e,t,r)>a;)t-=4;return t+4},S.quantize.vecDot=function(e,n,t){return e[n]*t[0]+e[n+1]*t[1]+e[n+2]*t[2]+e[n+3]*t[3]},S.quantize.stats=function(e,n,t){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],a=t-n>>2;for(let o=n;o<t;o+=4){const s=e[o]*.00392156862745098,c=e[o+1]*(1/255),l=e[o+2]*(1/255),h=e[o+3]*(1/255);r[0]+=s,r[1]+=c,r[2]+=l,r[3]+=h,i[0]+=s*s,i[1]+=s*c,i[2]+=s*l,i[3]+=s*h,i[5]+=c*c,i[6]+=c*l,i[7]+=c*h,i[10]+=l*l,i[11]+=l*h,i[15]+=h*h}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:r,N:a}},S.quantize.estats=function(e){const n=e.R,t=e.m,i=e.N,r=t[0],a=t[1],o=t[2],s=t[3],c=i===0?0:1/i,l=[n[0]-r*r*c,n[1]-r*a*c,n[2]-r*o*c,n[3]-r*s*c,n[4]-a*r*c,n[5]-a*a*c,n[6]-a*o*c,n[7]-a*s*c,n[8]-o*r*c,n[9]-o*a*c,n[10]-o*o*c,n[11]-o*s*c,n[12]-s*r*c,n[13]-s*a*c,n[14]-s*o*c,n[15]-s*s*c],h=l,u=S.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],f=0,_=0;if(i!==0)for(let p=0;p<16&&(d=u.multVec(h,d),_=Math.sqrt(u.dot(d,d)),d=u.sml(1/_,d),!(p!==0&&Math.abs(_-f)<1e-9));p++)f=_;const w=[r*c,a*c,o*c,s*c],g=u.dot(u.sml(255,w),d);return{Cov:l,q:w,e:d,L:f,eMq255:g,eMq:u.dot(d,w),rgba:(Math.round(255*w[3])<<24|Math.round(255*w[2])<<16|Math.round(255*w[1])<<8|Math.round(255*w[0])<<0)>>>0}},S.M4={multVec:function(e,n){return[e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3],e[4]*n[0]+e[5]*n[1]+e[6]*n[2]+e[7]*n[3],e[8]*n[0]+e[9]*n[1]+e[10]*n[2]+e[11]*n[3],e[12]*n[0]+e[13]*n[1]+e[14]*n[2]+e[15]*n[3]]},dot:function(e,n){return e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3]},sml:function(e,n){return[e*n[0],e*n[1],e*n[2],e*n[3]]}},S.encode.concatRGBA=function(e){let n=0;for(let r=0;r<e.length;r++)n+=e[r].byteLength;const t=new Uint8Array(n);let i=0;for(let r=0;r<e.length;r++){const a=new Uint8Array(e[r]),o=a.length;for(let s=0;s<o;s+=4){let c=a[s],l=a[s+1],h=a[s+2];const u=a[s+3];u===0&&(c=l=h=0),t[i+s]=c,t[i+s+1]=l,t[i+s+2]=h,t[i+s+3]=u}i+=o}return t.buffer};const an=(e,n)=>{const t=new Image;t.onload=function(){n(null,{width:t.width,height:t.height})},t.onerror=function(i){n(i,null)},t.src=e},gs=(e,n)=>{e||n("no files",null);for(let t=0,i=e.length;t<i;t++){const r=e[t],{type:a}=r,o=a.split("/");if(o[0]!=="image")return;let s=o[1].toUpperCase();const c=new FileReader;c.onload=function(l){const h=l.target.result,u=ji(h);u&&(s=u);const d=new Blob([h]);on(d,function(f){f?an(f,_=>{if(_){const w=ln(f,_.width,_.height);if(w){const g={name:r.name,fileType:s,size:r.size,width:_.width,height:_.height,imgUrl:f,imageData:w,blob:d};n(null,g)}else n("no imageData",null)}else n("no image raw info",null)}):n("no image url",null)})},c.readAsArrayBuffer(r)}},ji=e=>{let n="";if(e){const i=new DataView(e).getUint32(0,!1);switch(Number(i).toString(16).toUpperCase()){case"FFD8FFDB":n="JPG";break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":n="JPEG";break;case"89504E47":n="PNG";break;case"47494638":n="GIF";break;case"52494646":n="WEBP";break}}return n},on=(e,n)=>{if(!e){n("no obj",null);return}const t=new FileReader;t.onload=function(i){i.target?n(null,i.target.result):n("can't read",null)},t.readAsDataURL(e)},ln=(e,n,t)=>{if(e&&n&&t){const i=new Image;i.src=e;const r=document.createElement("canvas"),a=r.getContext("2d");return r.width=n,r.height=t,a.drawImage(i,0,0,n,t),a.getImageData(0,0,n,t)}return null},ws=(e,n=0,t=0)=>{if(e&&n&&t){const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.drawImage(e,0,0,n,t),r.getImageData(0,0,n,t)}return null},ps=(e,n=0,t=0)=>{if(e&&n&&t){const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.drawImage(e,0,0,n,t),r.getImageData(0,0,n,t)}return null},ms=e=>{const n=e.width,t=e.height,i=n*t*3,r=i+54,a=[66,77,r&255,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],o=[40,0,0,0,n&255,n>>8&255,n>>16&255,n>>24&255,t&255,t>>8&255,t>>16&255,t>>24&255,1,0,24,0,0,0,0,0,i&255,i>>8&255,i>>16&255,i>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=(4-n*3%4)%4,c=e.data;let l="";const h=n<<2;let u=t;const d=String.fromCharCode;do{const _=h*(u-1);let w="";for(let g=0;g<n;g++){const p=g<<2;w+=d(c[_+p+2])+d(c[_+p+1])+d(c[_+p])}for(let g=0;g<s;g++)w+=String.fromCharCode(0);l+=w}while(--u);function f(_){if(!window.btoa)throw"btoa undefined";let w="";if(typeof _=="string")w=_;else for(let g=0;g<_.length;g++)w+=String.fromCharCode(_[g]);return btoa(w)}return f(a.concat(o))+f(l)},bs=e=>{if(!e)return null;const{width:n,height:t}=e,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n,i.height=t,r.putImageData(e,0,0,0,0,n,t),i.toDataURL("image/png")},vs=(e,n="PNG",t)=>{if(!e){t("no imageData",null);return}const{width:i,height:r}=e,a=document.createElement("canvas"),o=a.getContext("2d");a.width=i,a.height=r,o.putImageData(e,0,0,0,0,i,r);const s=`image/${n?n.toLowerCase():"png"}`;a.toBlob(c=>{t(null,c)},s,1)},ys=(e,n)=>{on(e,function(t,i){if(i){const r=new Image;r.src=i}else n(t)})},xs=(e,n)=>{if(!e)return;const t=document.createElement("a");t.style.visibility="hidden",document.body.appendChild(t),t.download=n;const i=window.URL.createObjectURL(e);t.href=i,t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(i)};function Is(e,n){const t=new Image;t.onload=function(){n(null,t)},t.onerror=function(){n(new Error("Could not load image at "+e),null)},t.src=e}function ks(){const e=document.getElementsByTagName("img"),n=lt().height;let t=0;return()=>{for(let i=t;i<e.length;i++)e[i].getBoundingClientRect().top<n&&(e[i].src=e[i].getAttribute("data-src")??"",t=i+1)}}function Es(e,n){an(e,t=>{if(!t)return n("no image info",null);const i=ln(e,t.width,t.height);if(!i)return n("no canvas image info",null);const r=i.data;let a=0;const o=[],s=[],c=[];for(let d=0;d<r.length;d+=4)o[a]=r[d],s[a]=r[d+1],c[a]=r[d+2],a+=1;const l=sn(o),h=sn(s),u=sn(c);return n(null,"rgb("+l+","+h+","+u+")")})}function sn(e){const n={},t=[],i=[];for(let s=0;s<e.length;s++)n[e[s]]?t.push(e[s]):n[e[s]]=1;let r=0;for(let s=0;s<t.length;s++){r=0;for(let c=0;c<t.length;c++)t[s]===t[c]&&(r+=1),i[s]=r}const a=Math.max.apply(null,i);let o=0;for(;o<i.length;o++)if(i[o]===a)return;return t[o]}const As=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[(o*t+t-s-1)*4],r[c+1]=n[(o*t+t-s-1)*4+1],r[c+2]=n[(o*t+t-s-1)*4+2],r[c+3]=n[(o*t+t-s-1)*4+3]}return new ImageData(r,t,i)}return null},Ts=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[((i-o-1)*t+s)*4],r[c+1]=n[((i-o-1)*t+s)*4+1],r[c+2]=n[((i-o-1)*t+s)*4+2],r[c+3]=n[((i-o-1)*t+s)*4+3]}return new ImageData(r,t,i)}return null},Ss=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<t;o++)for(let s=0;s<i;s++){const c=(o*i+s)*4;r[c]=n[(s*t+t-o-1)*4],r[c+1]=n[(s*t+t-o-1)*4+1],r[c+2]=n[(s*t+t-o-1)*4+2],r[c+3]=n[(s*t+t-o-1)*4+3]}return new ImageData(r,i,t)}return null},Ds=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<t;o++)for(let s=0;s<i;s++){const c=(o*i+s)*4;r[c]=n[((i-s-1)*t+o)*4],r[c+1]=n[((i-s-1)*t+o)*4+1],r[c+2]=n[((i-s-1)*t+o)*4+2],r[c+3]=n[((i-s-1)*t+o)*4+3]}return new ImageData(r,i,t)}return null},Cs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+1]+n[c+2])/3;r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Us=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,h=(n[c]+n[c+1]+n[c+2])/3>127?255:0;r[c]=h,r[c+1]=h,r[c+2]=h,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Rs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=255-n[c],r[c+1]=255-n[c+1],r[c+2]=255-n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ms=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=0,r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Fs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=n[c+1],r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ls=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=0,r[c+2]=n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},zs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=n[c+1],r[c+2]=0,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Ps=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=0,r[c+2]=n[c+1],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Os=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=0,r[c+1]=n[c+1],r[c+2]=n[c+1],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Bs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c+1]+n[c+2])/2;r[c]=n[c],r[c+1]=l,r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Hs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+2])/2;r[c]=l,r[c+1]=n[c+1],r[c+2]=l,r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},Zs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4,l=(n[c]+n[c+1])/2;r[c]=l,r[c+1]=l,r[c+2]=n[c+2],r[c+3]=n[c+3]}return new ImageData(r,t,i)}return null},$s=e=>e?Gi(e,[-1,-1,-1,-1,9,-1,-1,-1,-1]):null,Ns=e=>e?Gi(e,[-1,-1,-1,-1,8,-1,-1,-1,-1]):null,qs=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;r[c]=n[c],r[c+1]=n[c+1],r[c+2]=n[c+2],r[c+3]=255}return new ImageData(r,t,i)}return null},js=e=>{if(e){const{data:n,width:t,height:i}=e,r=new Uint8ClampedArray(n.length);for(let o=0;o<i;o++)for(let s=0;s<t;s++){const c=(o*t+s)*4;if(n[c+3]===0)r[c]=255,r[c+1]=255,r[c+2]=255,r[c+3]=255;else{const l=Xi([n[c],n[c+1],n[c+2],n[c+3]],[255,255,255,255]);r[c]=l[0],r[c+1]=l[1],r[c+2]=l[2],r[c+3]=l[3]}}return new ImageData(r,t,i)}return null},Gs=(e,n,t,i,r,a=!1,o)=>{if(e){const{data:s,width:c,height:l}=e;let h=r,u=i,d=n,f=t;if(h<0?h=0:h>c&&(h=c),u<0?u=0:u>l&&(u=l),d<1?d=1:d>c&&(d=c),f<1?f=1:f>l&&(f=l),h+d>c&&(d=c-h),u+f>l&&(f=l-u),a){const _=new Uint8ClampedArray(s.length);for(let g=0;g<l;g++)for(let p=0;p<c;p++){const m=(g*c+p)*4;p>=h&&p<=h+d&&g>=u&&g<=u+f?(_[m]=s[m],_[m+1]=s[m+1],_[m+2]=s[m+2],_[m+3]=s[m+3]):(_[m]=255,_[m+1]=255,_[m+2]=255,_[m+3]=o&&["JPG","JPEG"].includes(o.toUpperCase())?255:0)}return new ImageData(_,c,l)}else{const _=new Uint8ClampedArray(d*f*4);for(let g=u;g<=u+f;g++)for(let p=h;p<=h+d;p++){const m=((g-u)*d+p-h)*4,y=(g*c+p)*4;_[m]=s[y],_[m+1]=s[y+1],_[m+2]=s[y+2],_[m+3]=s[y+3]}return new ImageData(_,d,f)}}return null},Xs=(e,n,t,i)=>{if(e){const{data:r,width:a,height:o}=e;let s=n;s>Math.floor(a/2)&&(s=Math.floor(a/2)),s>Math.floor(o/2)&&(s=Math.floor(o/2)),s<0&&(s=0);const c=new Uint8ClampedArray(r.length);for(let h=0;h<o;h++)for(let u=0;u<a;u++){const d=(h*a+u)*4;let f=-1;u<s?h<s?f=Math.sqrt(Math.pow(s-u-1,2)+Math.pow(s-h-1,2)):h>o-s-1&&(f=Math.sqrt(Math.pow(s-u-1,2)+Math.pow(h-(o-s),2))):u>a-s-1&&(h<s?f=Math.sqrt(Math.pow(u-(a-s),2)+Math.pow(s-h-1,2)):h>o-s-1&&(f=Math.sqrt(Math.pow(u-(a-s),2)+Math.pow(h-(o-s),2)))),Math.round(f)>s?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||t.toUpperCase()==="PNG"?0:255):(c[d]=r[d],c[d+1]=r[d+1],c[d+2]=r[d+2],c[d+3]=i||t.toUpperCase()==="PNG"?r[d+3]:255)}return new ImageData(c,a,o)}return null},Vs=(e,n,t,i,r,a=1e4)=>{if(e){const o=new Image;o.src=e;const s=document.createElement("canvas"),c=s.getContext("2d");return s.width=a,s.height=a,c.drawImage(o,0,0,n,t,0,0,i,r),c.getImageData(0,0,i,r)}return null},Ys=(e,n)=>{if(e){const{data:t,width:i,height:r}=e,a=new Uint8ClampedArray(t.length);for(let s=0;s<r;s++)for(let c=0;c<i;c++){const l=(s*i+c)*4;a[l]=Math.max(Math.min(t[l]+n,255),0),a[l+1]=Math.max(Math.min(t[l+1]+n,255),0),a[l+2]=Math.max(Math.min(t[l+2]+n,255),0),a[l+3]=t[l+3]}return new ImageData(a,i,r)}return null},Ks=(e,n,t=!1)=>{if(e){const{data:i,width:r,height:a}=e,o=new Uint8ClampedArray(i.length);for(let c=0;c<a;c++)for(let l=0;l<r;l++){const h=(c*r+l)*4;i[h+3]===0?(o[h]=255,o[h+1]=255,o[h+2]=255):(o[h]=i[h],o[h+1]=i[h+1],o[h+2]=i[h+2]);let u=i[h+3];t?u=Math.max(Math.min(Math.floor(255*n),255),0):u=Math.max(Math.min(Math.floor(u+255*n),255),0),o[h+3]=u}return new ImageData(o,r,a)}return null},Js=(e,n,t,i)=>{if(e&&n){const{data:r,width:a,height:o}=e,{data:s,width:c,height:l}=n;let h=t,u=i;t+l>o&&(h=o-l),i+c>a&&(u=a-c);const d=new Uint8ClampedArray(r.length);for(let _=0;_<o;_++)for(let w=0;w<a;w++){const g=(_*a+w)*4;if(w<u||w>u+c||_<=h||_>=h+l)d[g]=r[g],d[g+1]=r[g+1],d[g+2]=r[g+2],d[g+3]=r[g+3];else{const p=(_*a+w-((h+1)*a+(_-(h+1))*(a-c))+c-u-1)*4,m=[s[p],s[p+1],s[p+2],s[p+3]],y=[r[g],r[g+1],r[g+2],r[g+3]],b=Xi(m,y);d[g]=b[0],d[g+1]=b[1],d[g+2]=b[2],d[g+3]=b[3]}}return new ImageData(d,a,o)}return null},Qs=(e,n,t,i,r,a=10)=>{if(e){const{data:o,width:s,height:c}=e;let l=r,h=i,u=n,d=t;l<0?l=0:l>s&&(l=s),h<0?h=0:h>c&&(h=c),u<1?u=1:u>s&&(u=s),d<1?d=1:d>c&&(d=c),l+u>s&&(u=s-l),h+d>c&&(d=c-h);const f=new Uint8ClampedArray(o.length);for(let w=0;w<c;w++)for(let g=0;g<s;g++){const p=(w*s+g)*4;if(g>=l&&g<=l+u&&w>=h&&w<=h+d){const m=Math.floor((g-l)/a),y=Math.floor((w-h)/a);let b=Math.floor(a*(m+1)-a/2+l),I=Math.floor(a*(y+1)-a/2+h);b>s-1&&(b=s-1),I>c-1&&(I=c-1);const x=(I*s+b)*4;f[p]=o[x],f[p+1]=o[x+1],f[p+2]=o[x+2],f[p+3]=o[x+3]}else f[p]=o[p],f[p+1]=o[p+1],f[p+2]=o[p+2],f[p+3]=o[p+3]}return new ImageData(f,s,c)}return null},Ws=async(e,n,t,i,r,a)=>{if(e&&i){const o=r/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const s=new Image;s.src=e;const c=document.createElement("canvas"),l=c.getContext("2d");c.width=n,c.height=t,l.drawImage(s,0,0,n,t),c.toBlob(h=>{a&&a(h)},`image/${i.toLowerCase()}`,o)}else{const s=Math.floor(o*256),c=S.encode([e.data.buffer],n,t,s),l=new Blob([c]);a&&a(l)}}else a&&a(null)},ec=(e,n,t={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(e){if(n&&t){const{data:i,width:r,height:a}=e,{data:o}=n,s=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:l}=t;for(let u=0;u<a;u++)for(let d=0;d<r;d++){const f=(u*r+d)*4,_=o[f],w=o[f+1],g=o[f+2],p=o[f+3];_===c.r&&w===c.g&&g===c.b&&p===c.a&&l.a!==0?(s[f]=l.r,s[f+1]=l.g,s[f+2]=l.b,s[f+3]=l.a):(s[f]=i[f],s[f+1]=i[f+1],s[f+2]=i[f+2],s[f+3]=i[f+3])}return new ImageData(s,r,a)}return e}return null},Gi=(e,n)=>{if(e){const{data:t,width:i,height:r}=e,a=new Uint8ClampedArray(t.length);for(let s=0;s<r;s++)for(let c=0;c<i;c++){const l=(s*i+c)*4;for(let h=0;h<3;h++){const u=l+h;c===0||c===i-1||s===0||s===r-1?a[u]=t[u]:a[u]=n[0]*t[u-i*4-4]+n[1]*t[u-i*4]+n[2]*t[u-i*4+4]+n[3]*t[u-4]+n[4]*t[u]+n[5]*t[u+4]+n[6]*t[u+i*4-4]+n[7]*t[u+i*4]+n[8]*t[u+i*4+4]}a[l+3]=t[l+3]}return new ImageData(a,i,r)}return null},Xi=(e,n)=>{if(e&&e.length===4&&n&&n.length===4){const t=e[3],i=n[3];if(t===255||i===0)return e;if(t===0)return n;{const r=t/255,a=i/255,o=Math.max(Math.min(Math.floor(e[0]*r+n[0]*a*(1-r)),255),0),s=Math.max(Math.min(Math.floor(e[1]*r+n[1]*a*(1-r)),255),0),c=Math.max(Math.min(Math.floor(e[2]*r+n[2]*a*(1-r)),255),0),l=Math.max(Math.min(Math.floor((r+a*(1-r))*255),255),0);return[o,s,c,l]}}return[255,255,255,255]};function tc(){var e=null;if(window.ActiveXObject)for(var n=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],t=0;t<n.length;t++)try{e=new window.ActiveXObject(n[t]);break}catch{continue}else e=new XMLHttpRequest;return e}function nc(e){if(e.action){if(e.method.toLowerCase()==="post")return{url:e.action,data:new FormData(e)};for(var n="",t=0;t<e.elements.length;t++){var i=e.elements[t];if(i.hasAttribute("name")){var r=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(r==="FILE")for(var a=0;a<i.files.length;n+="&"+escape(i.name)+"="+escape(i.files[a++].name));else(r!=="RADIO"&&r!=="CHECKBOX"||i.checked)&&(n+="&"+escape(i.name)+"="+escape(i.value))}}return{url:e.action.replace(/(?:\?.*)?$/,n.replace(/^&/,"?")),data:null}}}function ic(e,n){return new Promise((t,i)=>{var r=new XMLHttpRequest,a=function(){i("The request for "+e+" is timed out for "+n+".")},o=function(s){r.readyState===4&&(r.status===200?t(r.response):i(r.statusText))};r.open("GET",e),r.onload=o,r.timeout=n,r.ontimeout=a,r.upload.addEventListener("progress",function(s){if(s.lengthComputable){const c=Math.round(s.loaded*100/s.total);console.log(c+"%")}},!1),r.upload.addEventListener("load",function(s){},!1),r.send(null)})}function rc(e,n,t){return fetch(e,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},n)).then(i=>i.json())}function ac(e,n){var t=new XMLHttpRequest;t.open("HEAD",e),t.filepath=e,t.callback=n,t.onload=function(){var i=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),r=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(i)||r>i)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(i)&&this.callback(r,i))},t.send()}function oc(e,n){if(n)window.localStorage.setItem(e,typeof n=="string"?n:JSON.stringify(n));else return window.localStorage.getItem(e)}const lc=(e={x:0,y:0})=>window.scrollTo(e.x,e.y);function vt(e){try{window.history.scrollRestoration=e}catch{}}"scrollRestoration"in window.history&&(vt("manual"),window.addEventListener("beforeunload",()=>{vt("auto")}),window.addEventListener("load",()=>{vt("manual")}));let yt;const Vi=new WeakMap;function cn(e,n){let t=Vi.get(e);t||(t=new Map,Vi.set(e,t));let i=t.get(n);return i||(i=new Yi,t.set(n,i)),i}class Yi{subscribers;constructor(){this.subscribers=new Set}depend(){yt&&this.subscribers.add(yt)}notify(){this.subscribers.forEach(n=>n())}}function sc(e){yt=e,e(),yt=null}function cc(e){return Object.keys(e).forEach(n=>{let t=e[n];const i=cn(e,n);Object.defineProperty(e,n,{get(){return i.depend(),t},set(r){r!=t&&(t=r,i.notify())}})}),e}function fc(e){return new Proxy(e,{get(n,t,i){return cn(e,t).depend(),Reflect.get(n,t,i)},set(n,t,i,r){const a=cn(e,t);return e[t]!=i&&(e[t]=i,a.notify()),Reflect.set(n,t,i,r)}})}const Me={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}},Bounce:{In:function(e){return 1-Me.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Me.Bounce.In(e*2)*.5:Me.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return n**e},Out:function(n){return 1-(1-n)**e},InOut:function(n){return n<.5?(n*2)**e/2:(1-(2-n*2)**e)/2+.5}}}};let nt;typeof self>"u"&&typeof process<"u"&&process.hrtime?nt=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?nt=self.performance.now.bind(self.performance):Date.now!==void 0?nt=Date.now:nt=function(){return new Date().getTime()};const Fe=nt;class Ki{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(n=>this._tweens[n])}removeAll(){this._tweens={}}add(n){this._tweens[n.getId()]=n,this._tweensAddedDuringUpdate[n.getId()]=n}remove(n){delete this._tweens[n.getId()],delete this._tweensAddedDuringUpdate[n.getId()]}update(n=Fe(),t=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const a=this._tweens[i[r]],o=!t;a&&a.update(n,o)===!1&&!t&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const ve={Linear:function(e,n){const t=e.length-1,i=t*n,r=Math.floor(i),a=ve.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[t],e[t-1],t-i):a(e[r],e[r+1>t?t:r+1],i-r)},Bezier:function(e,n){let t=0;const i=e.length-1,r=Math.pow,a=ve.Utils.Bernstein;for(let o=0;o<=i;o++)t+=r(1-n,i-o)*r(n,o)*e[o]*a(i,o);return t},CatmullRom:function(e,n){const t=e.length-1;let i=t*n,r=Math.floor(i);const a=ve.Utils.CatmullRom;return e[0]===e[t]?(n<0&&(r=Math.floor(i=t*(1+n))),a(e[(r-1+t)%t],e[r],e[(r+1)%t],e[(r+2)%t],i-r)):n<0?e[0]-(a(e[0],e[0],e[1],e[1],-i)-e[0]):n>1?e[t]-(a(e[t],e[t],e[t-1],e[t-1],i-t)-e[t]):a(e[r?r-1:0],e[r],e[t<r+1?t:r+1],e[t<r+2?t:r+2],i-r)},Utils:{Linear:function(e,n,t){return(n-e)*t+e},Factorial:function(){const e=[1];return function(n){let t=1;if(e[n])return e[n];for(let i=n;i>1;i--)t*=i;return e[n]=t,t}}(),Bernstein:function(e,n){const t=ve.Utils.Factorial;return t(e)/t(n)/t(e-n)},CatmullRom:function(e,n,t,i,r){const a=(t-e)*.5,o=(i-n)*.5,s=r*r,c=r*s;return(2*n-2*t+a+o)*c+(-3*n+3*t-2*a-o)*s+a*r+n}}};class it{static _nextId=0;static nextId(){return it._nextId++}}const j=new Ki;class hc{constructor(n,t=j){this._object=n,this._group=t}_id=it.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Me.Linear.None;_interpolationFunction=ve.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(n,t){return this._valuesEnd=Object.create(n),t!==void 0&&(this._durationTime=t),this}duration(n=1e3){return this._durationTime=n,this}start(n=Fe()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(n,t,i,r){for(const a in i){const o=n[a],s=Array.isArray(o),c=s?"array":typeof o,l=!s&&Array.isArray(i[a]);if(!(c==="undefined"||c==="function")){if(l){let h=i[a];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,o)),i[a]=[o].concat(h)}if((c==="object"||s)&&o&&!l){t[a]=s?[]:{};for(const h in o)t[a][h]=o[h];r[a]=s?[]:{},this._setupProperties(o,t[a],i[a],r[a])}else typeof t[a]>"u"&&(t[a]=o),s||(t[a]*=1),l?r[a]=i[a].slice().reverse():r[a]=t[a]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(n=Fe()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=n,this._group&&this._group.remove(this),this)}resume(n=Fe()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let n=0,t=this._chainedTweens.length;n<t;n++)this._chainedTweens[n].stop();return this}group(n=j){return this._group=n,this}delay(n=0){return this._delayTime=n,this}repeat(n=0){return this._initialRepeat=n,this._repeat=n,this}repeatDelay(n){return this._repeatDelayTime=n,this}yoyo(n=!1){return this._yoyo=n,this}easing(n=Me.Linear.None){return this._easingFunction=n,this}interpolation(n=ve.Linear){return this._interpolationFunction=n,this}chain(...n){return this._chainedTweens=n,this}onStart(n){return this._onStartCallback=n,this}onEveryStart(n){return this._onEveryStartCallback=n,this}onUpdate(n){return this._onUpdateCallback=n,this}onRepeat(n){return this._onRepeatCallback=n,this}onComplete(n){return this._onCompleteCallback=n,this}onStop(n){return this._onStopCallback=n,this}update(n=Fe(),t=!0){if(this._isPaused)return!0;let i,r;const a=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(n>a)return!1;t&&this.start(n)}if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(n-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=n+this._repeatDelayTime:this._startTime=n+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let s=0,c=this._chainedTweens.length;s<c;s++)this._chainedTweens[s].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(n,t,i,r){for(const a in i){if(t[a]===void 0)continue;const o=t[a]||0;let s=i[a];const c=Array.isArray(n[a]),l=Array.isArray(s);!c&&l?n[a]=this._interpolationFunction(s,r):typeof s=="object"&&s?this._updateProperties(n[a],o,s,r):(s=this._handleRelativeValue(o,s),typeof s=="number"&&(n[a]=o+(s-o)*r))}}_handleRelativeValue(n,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?n+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(n){const t=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=i,this._valuesEnd[n]=t}}const dc=it.nextId,uc=j.getAll.bind(j),_c=j.removeAll.bind(j),gc=j.add.bind(j),wc=j.remove.bind(j),pc=j.update.bind(j),mc={Easing:Me,Group:Ki,Interpolation:ve,now:Fe,Sequence:it,nextId:dc,Tween:hc,getAll:uc,removeAll:_c,add:gc,remove:wc,update:pc};class se{constructor(n){n=n||[1,0,0,1,0,0],this.m=[n[0],n[1],n[2],n[3],n[4],n[5]]}unit(){return this.m=[1,0,0,1,0,0],this}multiply(n){const t=this.m;let i;n instanceof se?i=n.m:i=n;const r=t[0]*i[0]+t[2]*i[1],a=t[1]*i[0]+t[3]*i[1],o=t[0]*i[2]+t[2]*i[3],s=t[1]*i[2]+t[3]*i[3],c=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return t[0]=r,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l,this}inverse(){const n=new se(this.m),t=n.m,i=1/(t[0]*t[3]-t[1]*t[2]),r=t[3]*i,a=-t[1]*i,o=-t[2]*i,s=t[0]*i,c=i*(t[2]*t[5]-t[3]*t[4]),l=i*(t[1]*t[4]-t[0]*t[5]);return t[0]=r,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l,n}translate(n,t){return this.multiply([1,0,0,1,n,t])}rotate(n){const t=n*Math.PI/180,i=Math.cos(t),r=Math.sin(t);return this.multiply([i,r,-r,i,0,0])}skew(n,t){t|=0;const i=n*Math.PI/180,r=t*Math.PI/180,a=Math.tan(i),o=Math.tan(r);return this.multiply([1,o,a,1,0,0])}scale(n,t){return this.multiply([n,0,0,t,0,0])}transformPoint=function(n,t){const i=n,r=t;return n=i*this.m[0]+r*this.m[2]+this.m[4],t=i*this.m[1]+r*this.m[3]+this.m[5],[n,t]};transformVector(n,t){const i=n,r=t;return n=i*this.m[0]+r*this.m[2],t=i*this.m[1]+r*this.m[3],[n,t]}}function Ji(e){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),n}function bc(e,n){const t=Ji(e),{x:i,y:r}=t.getPointAtLength(n);return[i,r]}function vc(e,n){return Ji(e).getTotalLength(n)}let G=null;function yc({d:e},n,t){G||(G=document.createElement("canvas").getContext("2d"));const i=new Path2D(e);return G.isPointInPath(i,n,t)}function Qi({d:e},n,t,{lineWidth:i=1,lineCap:r="butt",lineJoin:a="miter"}){if(G||(G=document.createElement("canvas").getContext("2d")),G.isPointInStroke){G.save(),G.lineWidth=i,G.lineCap=r,G.lineJoin=a;const o=new Path2D(e),s=G.isPointInStroke(o,n,t);return G.restore(),s}}var fn={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},xc=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function Ic(e){var n=[];return e.replace(xc,function(t,i,r){var a=i.toLowerCase();for(r=Ec(r),a=="m"&&r.length>2&&(n.push([i].concat(r.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(r.length==fn[a])return r.unshift(i),n.push(r);if(r.length<fn[a])throw new Error("malformed path data");n.push([i].concat(r.splice(0,fn[a])))}}),n}var kc=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Ec(e){var n=e.match(kc);return n?n.map(Number):[]}function Ac(e){var n=0,t=0,i=0,r=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=i,a[7]+=r;break;case"v":a[1]+=r;break;case"h":a[1]+=i;break;default:for(var c=1;c<a.length;)a[c++]+=i,a[c++]+=r}switch(s){case"Z":i=n,r=t;break;case"H":i=a[1];break;case"V":r=a[1];break;case"M":i=n=a[1],r=t=a[2];break;default:i=a[a.length-2],r=a[a.length-1]}return a})}const rt=Math.PI*2;function Wi(e,n,t,i){const r=e*i-n*t<0?-1:1;let a=e*t+n*i;return a>1&&(a=1),a<-1&&(a=-1),r*Math.acos(a)}function Tc(e,n,t,i,r,a,o,s,c,l){const h=l*(e-t)/2+c*(n-i)/2,u=-c*(e-t)/2+l*(n-i)/2,d=o*o,f=s*s,_=h*h,w=u*u;let g=d*f-d*w-f*_;g<0&&(g=0),g/=d*w+f*_,g=Math.sqrt(g)*(r===a?-1:1);const p=g*o/s*u,m=g*-s/o*h,y=l*p-c*m+(e+t)/2,b=c*p+l*m+(n+i)/2,I=(h-p)/o,x=(u-m)/s,k=(-h-p)/o,T=(-u-m)/s,E=Wi(1,0,I,x);let A=Wi(I,x,k,T);return a===0&&A>0&&(A-=rt),a===1&&A<0&&(A+=rt),[y,b,E,A]}function Sc(e,n){const t=1.3333333333333333*Math.tan(n/4),i=Math.cos(e),r=Math.sin(e),a=Math.cos(e+n),o=Math.sin(e+n);return[i,r,i-r*t,r+i*t,a+o*t,o-a*t,a,o]}function Dc(e,n,t,i,r,a,o,s,c){const l=Math.sin(c*rt/360),h=Math.cos(c*rt/360),u=h*(e-t)/2+l*(n-i)/2,d=-l*(e-t)/2+h*(n-i)/2;if(u===0&&d===0)return[];if(o===0||s===0)return[];o=Math.abs(o),s=Math.abs(s);const f=u*u/(o*o)+d*d/(s*s);f>1&&(o*=Math.sqrt(f),s*=Math.sqrt(f));const _=Tc(e,n,t,i,r,a,o,s,l,h),w=[];let g=_[2],p=_[3];const m=Math.max(Math.ceil(Math.abs(p)/(rt/4)),1);p/=m;for(let y=0;y<m;y++)w.push(Sc(g,p)),g+=p;return w.map(y=>{for(let b=0;b<y.length;b+=2){let I=y[b+0],x=y[b+1];I*=o,x*=s;const k=h*I-l*x,T=l*I+h*x;y[b+0]=k+_[0],y[b+1]=T+_[1]}return y})}function Cc(e){for(var n,t=[],i=0,r=0,a=0,o=0,s=null,c=null,l=0,h=0,u=0,d=e.length;u<d;u++){var f=e[u],_=f[0];switch(_){case"M":a=f[1],o=f[2];break;case"A":var w=Dc(l,h,f[6],f[7],f[4],f[5],f[1],f[2],f[3]);if(!w.length)continue;w=w.map(b=>{const[I,x,k,T,E,A,D,C]=b;return{x1:k,y1:T,x2:E,y2:A,x:D,y:C}});for(var g=0,p;g<w.length;g++)p=w[g],f=["C",p.x1,p.y1,p.x2,p.y2,p.x,p.y],g<w.length-1&&t.push(f);break;case"S":var m=l,y=h;(n=="C"||n=="S")&&(m+=m-i,y+=y-r),f=["C",m,y,f[1],f[2],f[3],f[4]];break;case"T":n=="Q"||n=="T"?(s=l*2-s,c=h*2-c):(s=l,c=h),f=er(l,h,s,c,f[1],f[2]);break;case"Q":s=f[1],c=f[2],f=er(l,h,f[1],f[2],f[3],f[4]);break;case"L":f=xt(l,h,f[1],f[2]);break;case"H":f=xt(l,h,f[1],h);break;case"V":f=xt(l,h,l,f[1]);break;case"Z":f=xt(l,h,a,o);break}n=_,l=f[f.length-2],h=f[f.length-1],f.length>4?(i=f[f.length-4],r=f[f.length-3]):(i=l,r=h),t.push(f)}return t}function xt(e,n,t,i){return["C",e,n,t,i,t,i]}function er(e,n,t,i,r,a){return["C",e/3+.6666666666666666*t,n/3+.6666666666666666*i,r/3+.6666666666666666*t,a/3+.6666666666666666*i,r,a]}function Uc(e){return typeof e!="string"?!1:(e=e.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}const It=Symbol("initialPath"),ee=Symbol("path"),ce=Symbol("bounds"),kt=Symbol("savedPaths"),te=Symbol("renderProps"),hn=Symbol("beginPath");class Rc{constructor(n){if(!Uc(n))throw new Error("Not an SVG path!");this[It]=Ac(Ic(n)),this[ee]=Cc(this[It]),this[ce]=null,this[kt]=[],this[te]={},this[hn]=!1}save(){return this[kt].push({path:this[ee],bounds:this[ce],renderProps:Object.assign({},this[te])}),this}restore(){if(this[kt].length){const{path:n,bounds:t,renderProps:i}=this[kt].pop();this[ee]=n,this[ce]=t,this[te]=i}return this}get bounds(){if(!this[ce]){const n=this[ee];if(this[ce]=[0,0,0,0],n.length){const t=[1/0,1/0,-1/0,-1/0];for(let i=0,r=n.length;i<r;i++){const a=n[i].slice(1);for(let o=0;o<a.length;o+=2)a[o+0]<t[0]&&(t[0]=a[o+0]),a[o+1]<t[1]&&(t[1]=a[o+1]),a[o+0]>t[2]&&(t[2]=a[o+0]),a[o+1]>t[3]&&(t[3]=a[o+1])}this[ce]=t}}return this[ce]}get size(){const n=this.bounds;return[n[2]-n[0],n[3]-n[1]]}get center(){const[n,t,i,r]=this.bounds;return[(n+i)/2,(t+r)/2]}get d(){let n=this[ee].map(t=>{const[i,...r]=t;return i+r.join()}).join("");return this.isClosed&&(n+="Z"),n}get path(){return this[ee]}get isClosed(){const n=this[It][this[It].length-1];return n&&n[0]==="Z"}isPointInPath(n,t){return yc(this,n,t)}isPointInStroke(n,t,{lineWidth:i=1,lineCap:r="butt",lineJoin:a="miter"}){if(Qi)return Qi(this,n,t,{lineWidth:i,lineCap:r,lineJoin:a})}getPointAtLength(n){return bc(this.d,n)}getTotalLength(){return vc(this.d)}transform(...n){this[ce]=null;const t=new se(n),i=this[ee];return this[ee]=i.map(r=>{const[a,...o]=r,s=[a];for(let c=0;c<o.length;c+=2){const l=o[c],h=o[c+1],[u,d]=t.transformPoint(l,h);s.push(u,d)}return s}),this}translate(n,t){const i=new se().translate(n,t);return this.transform(...i.m)}rotate(n){const t=new se().rotate(n);return this.transform(...t.m)}scale(n,t){t==null&&(t=n);const i=new se().scale(n,t);return this.transform(...i.m)}skew(n,t){const i=new se().skew(n,t);return this.transform(...i.m)}trim(){const[n,t]=this.bounds;return this.translate(-n,-t),this}beginPath(){return this[hn]=!0,this}toCanvas(n){const t=this[ee],i=this[te];return t.length&&(this[hn]&&n.beginPath(),t.forEach(r=>{const[a,...o]=r;a==="M"?n.moveTo(...o):n.bezierCurveTo(...o)}),this.isClosed&&n.closePath()),Object.assign(n,i),{stroke(){return n.stroke(),this},fill(){return n.fill(),this}}}strokeStyle(n){return this[te].strokeStyle=n,this}fillStyle(n){return this[te].fillStyle=n,this}lineWidth(n){return this[te].lineWidth=n,this}lineCap(n){return this[te].lineCap=n,this}lineJoin(n){return this[te].lineJoin=n,this}}return v.BaseError=ot,v.DOMKeyboardKeyCode=he,v.Dep=Yi,v.EnvironmentError=un,v.FileSelectCancelError=Et,v.IllegalFileError=_n,v.SvgPath=Rc,v.TWEEN=mc,v.WebSocket=ze,v.addEventListener=ha,v.addWatermark=Js,v.animateCanvas=ba,v.animateInWeb=yn,v.blobToExport=xs,v.blobToImage=ys,v.changeBrightness=Ys,v.changeDiaphaneity=Ks,v.changeSize=Vs,v.clearCookies=vr,v.compression=Ws,v.copyToClipboard=Qr,v.createXMLHttpRequest=tc,v.fetchUseFetch=rc,v.fetchUseXMLHttpRequest=ic,v.fileOrBlobToDataURL=on,v.flipSideToSide=As,v.flipUpsideDown=Ts,v.fn2ObjectURL=_r,v.getBrowserClient=Ur,v.getBrowserClientVersion=Rr,v.getBrowserLanguage=Fr,v.getCanvasImgData=ln,v.getCanvasImgDataByBitmap=ps,v.getCanvasImgDataByVideo=ws,v.getCookie=mr,v.getCookieObject=br,v.getDocumentElement=ke,v.getElementLeftInPage=pn,v.getElementPositionInPage=kr,v.getElementPositionInPage2=Ir,v.getElementPositionInViewport=Er,v.getElementTopInPage=mn,v.getFileExtension=gn,v.getFileType=ur,v.getFixedWidthText=la,v.getFormElementData=nc,v.getImageDataByAIData=ec,v.getImageMainColor=Es,v.getImageType=ji,v.getImgInfo=gs,v.getMouseButton=Dr,v.getMousePositionInPage=Tr,v.getMousePositionInViewport=Sr,v.getOperatingSystem=Pe,v.getOperatingSystemVersion=Cr,v.getPageClient=Tt,v.getPageScroll=At,v.getPageSize=yr,v.getPageVerticalScrollPercent=Ar,v.getRawImgInfo=an,v.getRelatedTarget=wa,v.getSelectedText=Wr,v.getTarget=ga,v.getTextWidth=oa,v.getTimeZone=Lr,v.getUrlParams=Gr,v.getUrlParams2=Xr,v.getUserGeolocationPromise=Mr,v.getViewportSize=lt,v.handleDragAndDropFiles=nr,v.handleHashChange=Yr,v.handleHistoryChange=Kr,v.handleInputFiles=tr,v.handleURLChange=Vr,v.htmlDecode=ca,v.htmlEncode=sa,v.ifWebFileHasChanged=ac,v.imageDataToBitmap=ms,v.imageDataToBlob=vs,v.imageDataToDataURL=bs,v.isAndroid=vn,v.isAppleDevice=zr,v.isAudio=lr,v.isBrowser=Br,v.isBrowserSupportFileAPI=pa,v.isDarkMode=Or,v.isElementInViewport=xr,v.isExcelDocument=cr,v.isFocus=ea,v.isIOS=bn,v.isImage=ar,v.isJsonDocument=hr,v.isMobile=Pr,v.isNode=Hr,v.isPowerPointDocument=fr,v.isTabInView=na,v.isURL=jr,v.isURLRelative=qr,v.isVideo=or,v.isWordDocument=sr,v.isXmlDocument=dr,v.jpgToPng=qs,v.lazyloadImages=ks,v.leftRotate=Ss,v.loadImage=Is,v.loadScript=aa,v.localstorage=oc,v.marginSharpen=Ns,v.microTask=wr,v.mosaic=Qs,v.navigateBack=ia,v.navigateBack2=ra,v.onDocumentReady=gr,v.patchDOM=wn,v.pngToJpg=js,v.preventDefault=_a,v.radiusClip=Xs,v.reactiveVue2=cc,v.reactiveVue3=fc,v.readeFile=rr,v.rectClip=Gs,v.removeEventListener=da,v.rightRotate=Ds,v.scrollTo=lc,v.selectFile=ir,v.setCookie=pr,v.setRem=Zr,v.setScrollRestoration=vt,v.setTheme=Jr,v.sharpen=$s,v.siblings=ta,v.stopPropagation=ua,v.templateCompile=fa,v.toBlackAndWhite=Us,v.toBlue=Ls,v.toBlueAndGreen=Os,v.toBlueAndGrey=Zs,v.toGreen=Fs,v.toGreenAndGrey=Hs,v.toGrey=Cs,v.toOpposite=Rs,v.toRed=Ms,v.toRedAndBlue=Ps,v.toRedAndGreen=zs,v.toRedAndGrey=Bs,v.urlsafe_b64decode=Nr,v.urlsafe_b64encode=$r,v.waitForStyleSheetsLoaded=ma,v.watchEffect=sc,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),v}({});
|
|
11
|
+
})`}function za(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Ba(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function Na(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ja(t){t.preventDefault?t.preventDefault:t.returnValue=!1}function Ha(t){return t.target||t.srcElement}const qa=typeof document<"u"&&document.ontouchstart?"touchstart":"click";function Za(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout(function(){e(n+i)},i);return t=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Vi=t=>{function e(n){const i=window.requestAnimationFrame(e);t(n,i)}window.requestAnimationFrame(e)},Ga=(t,e)=>{const i=document.getElementById(t).getContext("2d");Vi((r,s)=>{e(i,r,s)})};function Xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yi={exports:{}};(function(t){var e={};t.exports=e,e.parse=function(n,i){for(var r=e.bin.readUshort,s=e.bin.readUint,l=0,o={},a=new Uint8Array(n),c=a.length-4;s(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var f=r(a,l);l+=2,r(a,l),l+=2;var u=s(a,l);l+=4;var d=s(a,l);l+=4,l=d;for(var h=0;h<f;h++){s(a,l),l+=4,l+=4,l+=4,l+=4,s(a,l),l+=4;var u=s(a,l);l+=4;var _=s(a,l);l+=4;var p=r(a,l),g=r(a,l+2),m=r(a,l+4);l+=6,l+=8;var y=s(a,l);l+=4,l+=p+g+m,e._readLocal(a,y,o,u,_,i)}return o},e._readLocal=function(n,i,r,s,o,a){var c=e.bin.readUshort,l=e.bin.readUint;l(n,i),i+=4,c(n,i),i+=2,c(n,i),i+=2;var f=c(n,i);i+=2,l(n,i),i+=4,l(n,i),i+=4,i+=8;var u=c(n,i);i+=2;var d=c(n,i);i+=2;var h=e.bin.readUTF8(n,i,u);if(i+=u,i+=d,a){r[h]={size:o,csize:s};return}var _=new Uint8Array(n.buffer,i);if(f==0)r[h]=new Uint8Array(_.buffer.slice(i,i+s));else if(f==8){var p=new Uint8Array(o);e.inflateRaw(_,p),r[h]=p}else throw"unknown compression method: "+f},e.inflateRaw=function(n,i){return e.F.inflate(n,i)},e.inflate=function(n,i){return n[0],n[1],e.inflateRaw(new Uint8Array(n.buffer,n.byteOffset+2,n.length-6),i)},e.deflate=function(n,i){i==null&&(i={level:6});var r=0,s=new Uint8Array(50+Math.floor(n.length*1.1));s[r]=120,s[r+1]=156,r+=2,r=e.F.deflateRaw(n,s,r,i.level);var o=e.adler(n,0,n.length);return s[r+0]=o>>>24&255,s[r+1]=o>>>16&255,s[r+2]=o>>>8&255,s[r+3]=o>>>0&255,new Uint8Array(s.buffer,0,r+4)},e.deflateRaw=function(n,i){i==null&&(i={level:6});var r=new Uint8Array(50+Math.floor(n.length*1.1)),s=e.F.deflateRaw(n,r,s,i.level);return new Uint8Array(r.buffer,0,s)},e.encode=function(n,i){i==null&&(i=!1);var r=0,s=e.bin.writeUint,o=e.bin.writeUshort,a={};for(var c in n){var l=!e._noNeed(c)&&!i,f=n[c],u=e.crc.crc(f,0,f.length);a[c]={cpr:l,usize:f.length,crc:u,file:l?e.deflateRaw(f):f}}for(var c in a)r+=a[c].file.length+30+46+2*e.bin.sizeUTF8(c);r+=22;var d=new Uint8Array(r),h=0,_=[];for(var c in a){var p=a[c];_.push(h),h=e._writeHeader(d,h,c,p,0)}var g=0,m=h;for(var c in a){var p=a[c];_.push(h),h=e._writeHeader(d,h,c,p,1,_[g++])}var y=h-m;return s(d,h,101010256),h+=4,h+=4,o(d,h,g),h+=2,o(d,h,g),h+=2,s(d,h,y),h+=4,s(d,h,m),h+=4,h+=2,d.buffer},e._noNeed=function(n){var i=n.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},e._writeHeader=function(n,i,r,s,o,a){var c=e.bin.writeUint,l=e.bin.writeUshort,f=s.file;c(n,i,o==0?67324752:33639248),i+=4,o==1&&(i+=2),l(n,i,20),i+=2,l(n,i,0),i+=2,l(n,i,s.cpr?8:0),i+=2,c(n,i,0),i+=4,c(n,i,s.crc),i+=4,c(n,i,f.length),i+=4,c(n,i,s.usize),i+=4,l(n,i,e.bin.sizeUTF8(r)),i+=2,l(n,i,0),i+=2,o==1&&(i+=2,i+=2,i+=6,c(n,i,a),i+=4);var u=e.bin.writeUTF8(n,i,r);return i+=u,o==0&&(n.set(f,i),i+=f.length),i},e.crc={table:function(){for(var n=new Uint32Array(256),i=0;i<256;i++){for(var r=i,s=0;s<8;s++)r&1?r=3988292384^r>>>1:r=r>>>1;n[i]=r}return n}(),update:function(n,i,r,s){for(var o=0;o<s;o++)n=e.crc.table[(n^i[r+o])&255]^n>>>8;return n},crc:function(n,i,r){return e.crc.update(4294967295,n,i,r)^4294967295}},e.adler=function(n,i,r){for(var s=1,o=0,a=i,c=i+r;a<c;){for(var l=Math.min(a+5552,c);a<l;)s+=n[a++],o+=s;s=s%65521,o=o%65521}return o<<16|s},e.bin={readUshort:function(n,i){return n[i]|n[i+1]<<8},writeUshort:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255},readUint:function(n,i){return n[i+3]*16777216+(n[i+2]<<16|n[i+1]<<8|n[i])},writeUint:function(n,i,r){n[i]=r&255,n[i+1]=r>>8&255,n[i+2]=r>>16&255,n[i+3]=r>>24&255},readASCII:function(n,i,r){for(var s="",o=0;o<r;o++)s+=String.fromCharCode(n[i+o]);return s},writeASCII:function(n,i,r){for(var s=0;s<r.length;s++)n[i+s]=r.charCodeAt(s)},pad:function(n){return n.length<2?"0"+n:n},readUTF8:function(n,i,r){for(var s="",o,a=0;a<r;a++)s+="%"+e.bin.pad(n[i+a].toString(16));try{o=decodeURIComponent(s)}catch{return e.bin.readASCII(n,i,r)}return o},writeUTF8:function(n,i,r){for(var s=r.length,o=0,a=0;a<s;a++){var c=r.charCodeAt(a);if(!(c&4294967168))n[i+o]=c,o++;else if(!(c&4294965248))n[i+o]=192|c>>6,n[i+o+1]=128|c>>0&63,o+=2;else if(!(c&4294901760))n[i+o]=224|c>>12,n[i+o+1]=128|c>>6&63,n[i+o+2]=128|c>>0&63,o+=3;else if(!(c&4292870144))n[i+o]=240|c>>18,n[i+o+1]=128|c>>12&63,n[i+o+2]=128|c>>6&63,n[i+o+3]=128|c>>0&63,o+=4;else throw"e"}return o},sizeUTF8:function(n){for(var i=n.length,r=0,s=0;s<i;s++){var o=n.charCodeAt(s);if(!(o&4294967168))r++;else if(!(o&4294965248))r+=2;else if(!(o&4294901760))r+=3;else if(!(o&4292870144))r+=4;else throw"e"}return r}},e.F={},e.F.deflateRaw=function(n,i,r,s){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=o[s],c=e.F.U,l=e.F._goodIndex;e.F._hash;var f=e.F._putsE,u=0,d=r<<3,h=0,_=n.length;if(s==0){for(;u<_;){var p=Math.min(65535,_-u);f(i,d,u+p==_?1:0),d=e.F._copyExact(n,u,p,i,d+8),u+=p}return d>>>3}var g=c.lits,m=c.strt,y=c.prev,b=0,v=0,E=0,x=0,S=0,C=0;for(_>2&&(C=e.F._hash(n,0),m[C]=0),u=0;u<_;u++){if(S=C,u+1<_-2){C=e.F._hash(n,u+1);var T=u+1&32767;y[T]=m[C],m[C]=T}if(h<=u){(b>14e3||v>26697)&&_-u>100&&(h<u&&(g[b]=u-h,b+=2,h=u),d=e.F._writeBlock(u==_-1||h==_?1:0,g,b,x,n,E,u-E,i,d),b=v=x=0,E=u);var A=0;u<_-2&&(A=e.F._bestMatch(n,u,y,S,Math.min(a[2],_-u),a[3]));var p=A>>>16,D=A&65535;if(A!=0){var p=A>>>16,D=A&65535,P=l(p,c.of0);c.lhst[257+P]++;var U=l(D,c.df0);c.dhst[U]++,x+=c.exb[P]+c.dxb[U],g[b]=p<<23|u-h,g[b+1]=D<<16|P<<8|U,b+=2,h=u+p}else c.lhst[n[u]]++;v++}}for((E!=u||n.length==0)&&(h<u&&(g[b]=u-h,b+=2,h=u),d=e.F._writeBlock(1,g,b,x,n,E,u-E,i,d),b=0,v=0,b=v=x=0,E=u);d&7;)d++;return d>>>3},e.F._bestMatch=function(n,i,r,s,o,a){var c=i&32767,l=r[c],f=c-l+32768&32767;if(l==c||s!=e.F._hash(n,i-f))return 0;for(var u=0,d=0,h=Math.min(32767,i);f<=h&&--a!=0&&l!=c;){if(u==0||n[i+u]==n[i+u-f]){var _=e.F._howLong(n,i,f);if(_>u){if(u=_,d=f,u>=o)break;f+2<_&&(_=f+2);for(var p=0,g=0;g<_-2;g++){var m=i-f+g+32768&32767,y=r[m],b=m-y+32768&32767;b>p&&(p=b,l=m)}}}c=l,l=r[c],f+=c-l+32768&32767}return u<<16|d},e.F._howLong=function(n,i,r){if(n[i]!=n[i-r]||n[i+1]!=n[i+1-r]||n[i+2]!=n[i+2-r])return 0;var s=i,o=Math.min(n.length,i+258);for(i+=3;i<o&&n[i]==n[i-r];)i++;return i-s},e.F._hash=function(n,i){return(n[i]<<8|n[i+1])+(n[i+2]<<4)&65535},e.saved=0,e.F._writeBlock=function(n,i,r,s,o,a,c,l,f){var u=e.F.U,d=e.F._putsF,h=e.F._putsE,_,p,g,m,y,b,v,E,x;u.lhst[256]++,_=e.F.getTrees(),p=_[0],g=_[1],m=_[2],y=_[3],b=_[4],v=_[5],E=_[6],x=_[7];var S=(f+3&7?8-(f+3&7):0)+32+(c<<3),C=s+e.F.contSize(u.fltree,u.lhst)+e.F.contSize(u.fdtree,u.dhst),T=s+e.F.contSize(u.ltree,u.lhst)+e.F.contSize(u.dtree,u.dhst);T+=14+3*v+e.F.contSize(u.itree,u.ihst)+(u.ihst[16]*2+u.ihst[17]*3+u.ihst[18]*7);for(var A=0;A<286;A++)u.lhst[A]=0;for(var A=0;A<30;A++)u.dhst[A]=0;for(var A=0;A<19;A++)u.ihst[A]=0;var D=S<C&&S<T?0:C<T?1:2;if(d(l,f,n),d(l,f+1,D),f+=3,D==0){for(;f&7;)f++;f=e.F._copyExact(o,a,c,l,f)}else{var P,U;if(D==1&&(P=u.fltree,U=u.fdtree),D==2){e.F.makeCodes(u.ltree,p),e.F.revCodes(u.ltree,p),e.F.makeCodes(u.dtree,g),e.F.revCodes(u.dtree,g),e.F.makeCodes(u.itree,m),e.F.revCodes(u.itree,m),P=u.ltree,U=u.dtree,h(l,f,y-257),f+=5,h(l,f,b-1),f+=5,h(l,f,v-4),f+=4;for(var z=0;z<v;z++)h(l,f+z*3,u.itree[(u.ordr[z]<<1)+1]);f+=3*v,f=e.F._codeTiny(E,u.itree,l,f),f=e.F._codeTiny(x,u.itree,l,f)}for(var R=a,Ot=0;Ot<r;Ot+=2){for(var _t=i[Ot],Ut=_t>>>23,De=R+(_t&(1<<23)-1);R<De;)f=e.F._writeLit(o[R++],P,l,f);if(Ut!=0){var Jt=i[Ot+1],Li=Jt>>16,Ft=Jt>>8&255,St=Jt&255;f=e.F._writeLit(257+Ft,P,l,f),h(l,f,Ut-u.of0[Ft]),f+=u.exb[Ft],f=e.F._writeLit(St,U,l,f),d(l,f,Li-u.df0[St]),f+=u.dxb[St],R+=Ut}}f=e.F._writeLit(256,P,l,f)}return f},e.F._copyExact=function(n,i,r,s,o){var a=o>>>3;return s[a]=r,s[a+1]=r>>>8,s[a+2]=255-s[a],s[a+3]=255-s[a+1],a+=4,s.set(new Uint8Array(n.buffer,i,r),a),o+(r+4<<3)},e.F.getTrees=function(){for(var n=e.F.U,i=e.F._hufTree(n.lhst,n.ltree,15),r=e.F._hufTree(n.dhst,n.dtree,15),s=[],o=e.F._lenCodes(n.ltree,s),a=[],c=e.F._lenCodes(n.dtree,a),l=0;l<s.length;l+=2)n.ihst[s[l]]++;for(var l=0;l<a.length;l+=2)n.ihst[a[l]]++;for(var f=e.F._hufTree(n.ihst,n.itree,7),u=19;u>4&&n.itree[(n.ordr[u-1]<<1)+1]==0;)u--;return[i,r,f,o,c,u,s,a]},e.F.getSecond=function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(n[r+1]);return i},e.F.nonZero=function(n){for(var i="",r=0;r<n.length;r+=2)n[r+1]!=0&&(i+=(r>>1)+",");return i},e.F.contSize=function(n,i){for(var r=0,s=0;s<i.length;s++)r+=i[s]*n[(s<<1)+1];return r},e.F._codeTiny=function(n,i,r,s){for(var o=0;o<n.length;o+=2){var a=n[o],c=n[o+1];s=e.F._writeLit(a,i,r,s);var l=a==16?2:a==17?3:7;a>15&&(e.F._putsE(r,s,c,l),s+=l)}return s},e.F._lenCodes=function(n,i){for(var r=n.length;r!=2&&n[r-1]==0;)r-=2;for(var s=0;s<r;s+=2){var o=n[s+1],a=s+3<r?n[s+3]:-1,c=s+5<r?n[s+5]:-1,l=s==0?-1:n[s-1];if(o==0&&a==o&&c==o){for(var f=s+5;f+2<r&&n[f+2]==o;)f+=2;var u=Math.min(f+1-s>>>1,138);u<11?i.push(17,u-3):i.push(18,u-11),s+=u*2-2}else if(o==l&&a==o&&c==o){for(var f=s+5;f+2<r&&n[f+2]==o;)f+=2;var u=Math.min(f+1-s>>>1,6);i.push(16,u-3),s+=u*2-2}else i.push(o,0)}return r>>>1},e.F._hufTree=function(n,i,r){var s=[],o=n.length,a=i.length,c=0;for(c=0;c<a;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<o;c++)n[c]!=0&&s.push({lit:c,f:n[c]});var l=s.length,f=s.slice(0);if(l==0)return 0;if(l==1){var u=s[0].lit,f=u==0?1:0;return i[(u<<1)+1]=1,i[(f<<1)+1]=1,1}s.sort(function(y,b){return y.f-b.f});var d=s[0],h=s[1],_=0,p=1,g=2;for(s[0]={lit:-1,f:d.f+h.f,l:d,r:h,d:0};p!=l-1;)_!=p&&(g==l||s[_].f<s[g].f)?d=s[_++]:d=s[g++],_!=p&&(g==l||s[_].f<s[g].f)?h=s[_++]:h=s[g++],s[p++]={lit:-1,f:d.f+h.f,l:d,r:h};var m=e.F.setDepth(s[p-1],0);for(m>r&&(e.F.restrictDepth(f,r,m),m=r),c=0;c<l;c++)i[(f[c].lit<<1)+1]=f[c].d;return m},e.F.setDepth=function(n,i){return n.lit!=-1?(n.d=i,i):Math.max(e.F.setDepth(n.l,i+1),e.F.setDepth(n.r,i+1))},e.F.restrictDepth=function(n,i,r){var s=0,o=1<<r-i,a=0;for(n.sort(function(l,f){return f.d==l.d?l.f-f.f:f.d-l.d}),s=0;s<n.length&&n[s].d>i;s++){var c=n[s].d;n[s].d=i,a+=o-(1<<r-c)}for(a=a>>>r-i;a>0;){var c=n[s].d;c<i?(n[s].d++,a-=1<<i-c-1):s++}for(;s>=0;s--)n[s].d==i&&a<0&&(n[s].d--,a++);a!=0&&console.log("debt left")},e.F._goodIndex=function(n,i){var r=0;return i[r|16]<=n&&(r|=16),i[r|8]<=n&&(r|=8),i[r|4]<=n&&(r|=4),i[r|2]<=n&&(r|=2),i[r|1]<=n&&(r|=1),r},e.F._writeLit=function(n,i,r,s){return e.F._putsF(r,s,i[n<<1]),s+i[(n<<1)+1]},e.F.inflate=function(n,i){var r=Uint8Array;if(n[0]==3&&n[1]==0)return i||new r(0);var s=e.F,o=s._bitsF,a=s._bitsE,c=s._decodeTiny,l=s.makeCodes,f=s.codes2map,u=s._get17,d=s.U,h=i==null;h&&(i=new r(n.length>>>2<<3));for(var _=0,p=0,g=0,m=0,y=0,b=0,v=0,E=0,x=0,S,C;_==0;){if(_=o(n,x,1),p=o(n,x+1,2),x+=3,p==0){x&7&&(x+=8-(x&7));var T=(x>>>3)+4,A=n[T-4]|n[T-3]<<8;h&&(i=e.F._check(i,E+A)),i.set(new r(n.buffer,n.byteOffset+T,A),E),x=T+A<<3,E+=A;continue}if(h&&(i=e.F._check(i,E+131072)),p==1&&(S=d.flmap,C=d.fdmap,b=511,v=31),p==2){g=a(n,x,5)+257,m=a(n,x+5,5)+1,y=a(n,x+10,4)+4,x+=14;for(var D=0;D<38;D+=2)d.itree[D]=0,d.itree[D+1]=0;for(var P=1,D=0;D<y;D++){var U=a(n,x+D*3,3);d.itree[(d.ordr[D]<<1)+1]=U,U>P&&(P=U)}x+=3*y,l(d.itree,P),f(d.itree,P,d.imap),S=d.lmap,C=d.dmap,x=c(d.imap,(1<<P)-1,g+m,n,x,d.ttree);var z=s._copyOut(d.ttree,0,g,d.ltree);b=(1<<z)-1;var R=s._copyOut(d.ttree,g,m,d.dtree);v=(1<<R)-1,l(d.ltree,z),f(d.ltree,z,S),l(d.dtree,R),f(d.dtree,R,C)}for(;;){var Ot=S[u(n,x)&b];x+=Ot&15;var _t=Ot>>>4;if(!(_t>>>8))i[E++]=_t;else{if(_t==256)break;var Ut=E+_t-254;if(_t>264){var De=d.ldef[_t-257];Ut=E+(De>>>3)+a(n,x,De&7),x+=De&7}var Jt=C[u(n,x)&v];x+=Jt&15;var Li=Jt>>>4,Ft=d.ddef[Li],St=(Ft>>>4)+o(n,x,Ft&15);for(x+=Ft&15,h&&(i=e.F._check(i,E+131072));E<Ut;)i[E]=i[E++-St],i[E]=i[E++-St],i[E]=i[E++-St],i[E]=i[E++-St];E=Ut}}}return i.length==E?i:i.slice(0,E)},e.F._check=function(n,i){var r=n.length;if(i<=r)return n;var s=new Uint8Array(Math.max(r<<1,i));return s.set(n,0),s},e.F._decodeTiny=function(n,i,r,s,o,a){for(var c=e.F._bitsE,l=e.F._get17,f=0;f<r;){var u=n[l(s,o)&i];o+=u&15;var d=u>>>4;if(d<=15)a[f]=d,f++;else{var h=0,_=0;d==16?(_=3+c(s,o,2),o+=2,h=a[f-1]):d==17?(_=3+c(s,o,3),o+=3):d==18&&(_=11+c(s,o,7),o+=7);for(var p=f+_;f<p;)a[f]=h,f++}}return o},e.F._copyOut=function(n,i,r,s){for(var o=0,a=0,c=s.length>>>1;a<r;){var l=n[a+i];s[a<<1]=0,s[(a<<1)+1]=l,l>o&&(o=l),a++}for(;a<c;)s[a<<1]=0,s[(a<<1)+1]=0,a++;return o},e.F.makeCodes=function(n,i){for(var r=e.F.U,s=n.length,o,a,c,l,f,u=r.bl_count,l=0;l<=i;l++)u[l]=0;for(l=1;l<s;l+=2)u[n[l]]++;var d=r.next_code;for(o=0,u[0]=0,a=1;a<=i;a++)o=o+u[a-1]<<1,d[a]=o;for(c=0;c<s;c+=2)f=n[c+1],f!=0&&(n[c]=d[f],d[f]++)},e.F.codes2map=function(n,i,r){for(var s=n.length,o=e.F.U,a=o.rev15,c=0;c<s;c+=2)if(n[c+1]!=0)for(var l=c>>1,f=n[c+1],u=l<<4|f,d=i-f,h=n[c]<<d,_=h+(1<<d);h!=_;){var p=a[h]>>>15-i;r[p]=u,h++}},e.F.revCodes=function(n,i){for(var r=e.F.U.rev15,s=15-i,o=0;o<n.length;o+=2){var a=n[o]<<i-n[o+1];n[o]=r[a]>>>s}},e.F._putsE=function(n,i,r){r=r<<(i&7);var s=i>>>3;n[s]|=r,n[s+1]|=r>>>8},e.F._putsF=function(n,i,r){r=r<<(i&7);var s=i>>>3;n[s]|=r,n[s+1]|=r>>>8,n[s+2]|=r>>>16},e.F._bitsE=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8)>>>(i&7)&(1<<r)-1},e.F._bitsF=function(n,i,r){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)&(1<<r)-1},e.F._get17=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16)>>>(i&7)},e.F._get25=function(n,i){return(n[i>>>3]|n[(i>>>3)+1]<<8|n[(i>>>3)+2]<<16|n[(i>>>3)+3]<<24)>>>(i&7)},e.F.U=function(){var n=Uint16Array,i=Uint32Array;return{next_code:new n(16),bl_count:new n(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new n(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i(32),flmap:new n(512),fltree:[],fdmap:new n(32),fdtree:[],lmap:new n(32768),ltree:[],ttree:[],dmap:new n(32768),dtree:[],imap:new n(512),itree:[],rev15:new n(32768),lhst:new i(286),dhst:new i(30),ihst:new i(19),lits:new i(15e3),strt:new n(65536),prev:new n(32768)}}(),function(){for(var n=e.F.U,i=32768,r=0;r<i;r++){var s=r;s=(s&2863311530)>>>1|(s&1431655765)<<1,s=(s&3435973836)>>>2|(s&858993459)<<2,s=(s&4042322160)>>>4|(s&252645135)<<4,s=(s&4278255360)>>>8|(s&16711935)<<8,n.rev15[r]=(s>>>16|s<<16)>>>17}function o(a,c,l){for(;c--!=0;)a.push(0,l)}for(var r=0;r<32;r++)n.ldef[r]=n.of0[r]<<3|n.exb[r],n.ddef[r]=n.df0[r]<<4|n.dxb[r];o(n.fltree,144,8),o(n.fltree,112,9),o(n.fltree,24,7),o(n.fltree,8,8),e.F.makeCodes(n.fltree,9),e.F.codes2map(n.fltree,9,n.flmap),e.F.revCodes(n.fltree,9),o(n.fdtree,32,5),e.F.makeCodes(n.fdtree,5),e.F.codes2map(n.fdtree,5,n.fdmap),e.F.revCodes(n.fdtree,5),o(n.itree,19,0),o(n.ltree,286,0),o(n.dtree,30,0),o(n.ttree,320,0)}()})(Yi);var $a=Yi.exports;const Wi=Xa($a);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Va=4,Ki=0,Ji=1,Ya=2;function Bt(t){let e=t.length;for(;--e>=0;)t[e]=0}const Wa=0,Qi=1,Ka=2,Ja=3,Qa=258,yn=29,ee=256,ne=ee+1+yn,Nt=30,vn=19,tr=2*ne+1,Tt=15,bn=16,tl=7,xn=256,er=16,nr=17,ir=18,En=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Le=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),el=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),rr=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nl=512,ot=new Array((ne+2)*2);Bt(ot);const ie=new Array(Nt*2);Bt(ie);const re=new Array(nl);Bt(re);const se=new Array(Qa-Ja+1);Bt(se);const Sn=new Array(yn);Bt(Sn);const Oe=new Array(Nt);Bt(Oe);function kn(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}let sr,or,ar;function Tn(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const lr=t=>t<256?re[t]:re[256+(t>>>7)],oe=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},G=(t,e,n)=>{t.bi_valid>bn-n?(t.bi_buf|=e<<t.bi_valid&65535,oe(t,t.bi_buf),t.bi_buf=e>>bn-t.bi_valid,t.bi_valid+=n-bn):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},Q=(t,e,n)=>{G(t,n[e*2],n[e*2+1])},cr=(t,e)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--e>0);return n>>>1},il=t=>{t.bi_valid===16?(oe(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},rl=(t,e)=>{const n=e.dyn_tree,i=e.max_code,r=e.stat_desc.static_tree,s=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let l,f,u,d,h,_,p=0;for(d=0;d<=Tt;d++)t.bl_count[d]=0;for(n[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l<tr;l++)f=t.heap[l],d=n[n[f*2+1]*2+1]+1,d>c&&(d=c,p++),n[f*2+1]=d,!(f>i)&&(t.bl_count[d]++,h=0,f>=a&&(h=o[f-a]),_=n[f*2],t.opt_len+=_*(d+h),s&&(t.static_len+=_*(r[f*2+1]+h)));if(p!==0){do{for(d=c-1;t.bl_count[d]===0;)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(d=c;d!==0;d--)for(f=t.bl_count[d];f!==0;)u=t.heap[--l],!(u>i)&&(n[u*2+1]!==d&&(t.opt_len+=(d-n[u*2+1])*n[u*2],n[u*2+1]=d),f--)}},hr=(t,e,n)=>{const i=new Array(Tt+1);let r=0,s,o;for(s=1;s<=Tt;s++)r=r+n[s-1]<<1,i[s]=r;for(o=0;o<=e;o++){let a=t[o*2+1];a!==0&&(t[o*2]=cr(i[a]++,a))}},sl=()=>{let t,e,n,i,r;const s=new Array(Tt+1);for(n=0,i=0;i<yn-1;i++)for(Sn[i]=n,t=0;t<1<<En[i];t++)se[n++]=i;for(se[n-1]=i,r=0,i=0;i<16;i++)for(Oe[i]=r,t=0;t<1<<Le[i];t++)re[r++]=i;for(r>>=7;i<Nt;i++)for(Oe[i]=r<<7,t=0;t<1<<Le[i]-7;t++)re[256+r++]=i;for(e=0;e<=Tt;e++)s[e]=0;for(t=0;t<=143;)ot[t*2+1]=8,t++,s[8]++;for(;t<=255;)ot[t*2+1]=9,t++,s[9]++;for(;t<=279;)ot[t*2+1]=7,t++,s[7]++;for(;t<=287;)ot[t*2+1]=8,t++,s[8]++;for(hr(ot,ne+1,s),t=0;t<Nt;t++)ie[t*2+1]=5,ie[t*2]=cr(t,5);sr=new kn(ot,En,ee+1,ne,Tt),or=new kn(ie,Le,0,Nt,Tt),ar=new kn(new Array(0),el,0,vn,tl)},fr=t=>{let e;for(e=0;e<ne;e++)t.dyn_ltree[e*2]=0;for(e=0;e<Nt;e++)t.dyn_dtree[e*2]=0;for(e=0;e<vn;e++)t.bl_tree[e*2]=0;t.dyn_ltree[xn*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},ur=t=>{t.bi_valid>8?oe(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},dr=(t,e,n,i)=>{const r=e*2,s=n*2;return t[r]<t[s]||t[r]===t[s]&&i[e]<=i[n]},An=(t,e,n)=>{const i=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&dr(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!dr(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i},_r=(t,e,n)=>{let i,r,s=0,o,a;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+s++]&255,i+=(t.pending_buf[t.sym_buf+s++]&255)<<8,r=t.pending_buf[t.sym_buf+s++],i===0?Q(t,r,e):(o=se[r],Q(t,o+ee+1,e),a=En[o],a!==0&&(r-=Sn[o],G(t,r,a)),i--,o=lr(i),Q(t,o,n),a=Le[o],a!==0&&(i-=Oe[o],G(t,i,a)));while(s<t.sym_next);Q(t,xn,e)},Cn=(t,e)=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,s=e.stat_desc.elems;let o,a,c=-1,l;for(t.heap_len=0,t.heap_max=tr,o=0;o<s;o++)n[o*2]!==0?(t.heap[++t.heap_len]=c=o,t.depth[o]=0):n[o*2+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=c<2?++c:0,n[l*2]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=i[l*2+1]);for(e.max_code=c,o=t.heap_len>>1;o>=1;o--)An(t,n,o);l=s;do o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],An(t,n,1),a=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=a,n[l*2]=n[o*2]+n[a*2],t.depth[l]=(t.depth[o]>=t.depth[a]?t.depth[o]:t.depth[a])+1,n[o*2+1]=n[a*2+1]=l,t.heap[1]=l++,An(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],rl(t,e),hr(n,c,t.bl_count)},gr=(t,e,n)=>{let i,r=-1,s,o=e[0*2+1],a=0,c=7,l=4;for(o===0&&(c=138,l=3),e[(n+1)*2+1]=65535,i=0;i<=n;i++)s=o,o=e[(i+1)*2+1],!(++a<c&&s===o)&&(a<l?t.bl_tree[s*2]+=a:s!==0?(s!==r&&t.bl_tree[s*2]++,t.bl_tree[er*2]++):a<=10?t.bl_tree[nr*2]++:t.bl_tree[ir*2]++,a=0,r=s,o===0?(c=138,l=3):s===o?(c=6,l=3):(c=7,l=4))},pr=(t,e,n)=>{let i,r=-1,s,o=e[0*2+1],a=0,c=7,l=4;for(o===0&&(c=138,l=3),i=0;i<=n;i++)if(s=o,o=e[(i+1)*2+1],!(++a<c&&s===o)){if(a<l)do Q(t,s,t.bl_tree);while(--a!==0);else s!==0?(s!==r&&(Q(t,s,t.bl_tree),a--),Q(t,er,t.bl_tree),G(t,a-3,2)):a<=10?(Q(t,nr,t.bl_tree),G(t,a-3,3)):(Q(t,ir,t.bl_tree),G(t,a-11,7));a=0,r=s,o===0?(c=138,l=3):s===o?(c=6,l=3):(c=7,l=4)}},ol=t=>{let e;for(gr(t,t.dyn_ltree,t.l_desc.max_code),gr(t,t.dyn_dtree,t.d_desc.max_code),Cn(t,t.bl_desc),e=vn-1;e>=3&&t.bl_tree[rr[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},al=(t,e,n,i)=>{let r;for(G(t,e-257,5),G(t,n-1,5),G(t,i-4,4),r=0;r<i;r++)G(t,t.bl_tree[rr[r]*2+1],3);pr(t,t.dyn_ltree,e-1),pr(t,t.dyn_dtree,n-1)},ll=t=>{let e=4093624447,n;for(n=0;n<=31;n++,e>>>=1)if(e&1&&t.dyn_ltree[n*2]!==0)return Ki;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Ji;for(n=32;n<ee;n++)if(t.dyn_ltree[n*2]!==0)return Ji;return Ki};let mr=!1;const cl=t=>{mr||(sl(),mr=!0),t.l_desc=new Tn(t.dyn_ltree,sr),t.d_desc=new Tn(t.dyn_dtree,or),t.bl_desc=new Tn(t.bl_tree,ar),t.bi_buf=0,t.bi_valid=0,fr(t)},wr=(t,e,n,i)=>{G(t,(Wa<<1)+(i?1:0),3),ur(t),oe(t,n),oe(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},hl=t=>{G(t,Qi<<1,3),Q(t,xn,ot),il(t)},fl=(t,e,n,i)=>{let r,s,o=0;t.level>0?(t.strm.data_type===Ya&&(t.strm.data_type=ll(t)),Cn(t,t.l_desc),Cn(t,t.d_desc),o=ol(t),r=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=r&&(r=s)):r=s=n+5,n+4<=r&&e!==-1?wr(t,e,n,i):t.strategy===Va||s===r?(G(t,(Qi<<1)+(i?1:0),3),_r(t,ot,ie)):(G(t,(Ka<<1)+(i?1:0),3),al(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),_r(t,t.dyn_ltree,t.dyn_dtree)),fr(t),i&&ur(t)},ul=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,e===0?t.dyn_ltree[n*2]++:(t.matches++,e--,t.dyn_ltree[(se[n]+ee+1)*2]++,t.dyn_dtree[lr(e)*2]++),t.sym_next===t.sym_end);var dl=cl,_l=wr,gl=fl,pl=ul,ml=hl,wl={_tr_init:dl,_tr_stored_block:_l,_tr_flush_block:gl,_tr_tally:pl,_tr_align:ml},ae=(t,e,n,i)=>{let r=t&65535|0,s=t>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+e[i++]|0,s=s+r|0;while(--o);r%=65521,s%=65521}return r|s<<16|0};const yl=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},vl=new Uint32Array(yl());var j=(t,e,n,i)=>{const r=vl,s=i+n;t^=-1;for(let o=i;o<s;o++)t=t>>>8^r[(t^e[o])&255];return t^-1},At={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ct={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:bl,_tr_stored_block:In,_tr_flush_block:xl,_tr_tally:gt,_tr_align:El}=wl,{Z_NO_FLUSH:pt,Z_PARTIAL_FLUSH:Sl,Z_FULL_FLUSH:kl,Z_FINISH:V,Z_BLOCK:yr,Z_OK:H,Z_STREAM_END:vr,Z_STREAM_ERROR:tt,Z_DATA_ERROR:Tl,Z_BUF_ERROR:Dn,Z_DEFAULT_COMPRESSION:Al,Z_FILTERED:Cl,Z_HUFFMAN_ONLY:Ue,Z_RLE:Il,Z_FIXED:Dl,Z_DEFAULT_STRATEGY:Pl,Z_UNKNOWN:Rl,Z_DEFLATED:Fe}=Ct,Ml=9,Ll=15,Ol=8,Ul=29,Pn=256+1+Ul,Fl=30,zl=19,Bl=2*Pn+1,Nl=15,M=3,mt=258,et=mt+M+1,jl=32,jt=42,Rn=57,Mn=69,Ln=73,On=91,Un=103,It=113,le=666,q=1,Ht=2,Dt=3,qt=4,Hl=3,Pt=(t,e)=>(t.msg=At[e],e),br=t=>t*2-(t>4?9:0),wt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ql=t=>{let e,n,i,r=t.w_size;e=t.hash_size,i=e;do n=t.head[--i],t.head[i]=n>=r?n-r:0;while(--e);e=r,i=e;do n=t.prev[--i],t.prev[i]=n>=r?n-r:0;while(--e)};let yt=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const X=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,e.pending===0&&(e.pending_out=0))},$=(t,e)=>{xl(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},O=(t,e)=>{t.pending_buf[t.pending++]=e},ce=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Fn=(t,e,n,i)=>{let r=t.avail_in;return r>i&&(r=i),r===0?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),t.state.wrap===1?t.adler=ae(t.adler,e,r,n):t.state.wrap===2&&(t.adler=j(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},xr=(t,e)=>{let n=t.max_chain_length,i=t.strstart,r,s,o=t.prev_length,a=t.nice_match;const c=t.strstart>t.w_size-et?t.strstart-(t.w_size-et):0,l=t.window,f=t.w_mask,u=t.prev,d=t.strstart+mt;let h=l[i+o-1],_=l[i+o];t.prev_length>=t.good_match&&(n>>=2),a>t.lookahead&&(a=t.lookahead);do if(r=e,!(l[r+o]!==_||l[r+o-1]!==h||l[r]!==l[i]||l[++r]!==l[i+1])){i+=2,r++;do;while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<d);if(s=mt-(d-i),i=d-mt,s>o){if(t.match_start=e,o=s,s>=a)break;h=l[i+o-1],_=l[i+o]}}while((e=u[e&f])>c&&--n!==0);return o<=t.lookahead?o:t.lookahead},Zt=t=>{const e=t.w_size;let n,i,r;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-et)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ql(t),i+=e),t.strm.avail_in===0)break;if(n=Fn(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=M)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=yt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[r+M-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<M)););}while(t.lookahead<et&&t.strm.avail_in!==0)},Er=(t,e)=>{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,r,s,o=0,a=t.strm.avail_in;do{if(i=65535,s=t.bi_valid+42>>3,t.strm.avail_out<s||(s=t.strm.avail_out-s,r=t.strstart-t.block_start,i>r+t.strm.avail_in&&(i=r+t.strm.avail_in),i>s&&(i=s),i<n&&(i===0&&e!==V||e===pt||i!==r+t.strm.avail_in)))break;o=e===V&&i===r+t.strm.avail_in?1:0,In(t,0,0,o),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,X(t.strm),r&&(r>i&&(r=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,i-=r),i&&(Fn(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(o===0);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?qt:e!==pt&&e!==V&&t.strm.avail_in===0&&t.strstart===t.block_start?Ht:(s=t.window_size-t.strstart,t.strm.avail_in>s&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(Fn(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water<t.strstart&&(t.high_water=t.strstart),s=t.bi_valid+42>>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,n=s>t.w_size?t.w_size:s,r=t.strstart-t.block_start,(r>=n||(r||e===V)&&e!==pt&&t.strm.avail_in===0&&r<=s)&&(i=r>s?s:r,o=e===V&&t.strm.avail_in===0&&i===r?1:0,In(t,t.block_start,i,o),t.block_start+=i,X(t.strm)),o?Dt:q)},zn=(t,e)=>{let n,i;for(;;){if(t.lookahead<et){if(Zt(t),t.lookahead<et&&e===pt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-et&&(t.match_length=xr(t,n)),t.match_length>=M)if(i=gt(t,t.strstart-t.match_start,t.match_length-M),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=M){t.match_length--;do t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else i=gt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=t.strstart<M-1?t.strstart:M-1,e===V?($(t,!0),t.strm.avail_out===0?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Gt=(t,e)=>{let n,i,r;for(;;){if(t.lookahead<et){if(Zt(t),t.lookahead<et&&e===pt)return q;if(t.lookahead===0)break}if(n=0,t.lookahead>=M&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=M-1,n!==0&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-et&&(t.match_length=xr(t,n),t.match_length<=5&&(t.strategy===Cl||t.match_length===M&&t.strstart-t.match_start>4096)&&(t.match_length=M-1)),t.prev_length>=M&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-M,i=gt(t,t.strstart-1-t.prev_match,t.prev_length-M),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+M-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=M-1,t.strstart++,i&&($(t,!1),t.strm.avail_out===0))return q}else if(t.match_available){if(i=gt(t,0,t.window[t.strstart-1]),i&&$(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return q}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=gt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<M-1?t.strstart:M-1,e===V?($(t,!0),t.strm.avail_out===0?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Zl=(t,e)=>{let n,i,r,s;const o=t.window;for(;;){if(t.lookahead<=mt){if(Zt(t),t.lookahead<=mt&&e===pt)return q;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=M&&t.strstart>0&&(r=t.strstart-1,i=o[r],i===o[++r]&&i===o[++r]&&i===o[++r])){s=t.strstart+mt;do;while(i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&r<s);t.match_length=mt-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=M?(n=gt(t,1,t.match_length-M),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=gt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===V?($(t,!0),t.strm.avail_out===0?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht},Gl=(t,e)=>{let n;for(;;){if(t.lookahead===0&&(Zt(t),t.lookahead===0)){if(e===pt)return q;break}if(t.match_length=0,n=gt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&($(t,!1),t.strm.avail_out===0))return q}return t.insert=0,e===V?($(t,!0),t.strm.avail_out===0?Dt:qt):t.sym_next&&($(t,!1),t.strm.avail_out===0)?q:Ht};function nt(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}const he=[new nt(0,0,0,0,Er),new nt(4,4,8,4,zn),new nt(4,5,16,8,zn),new nt(4,6,32,32,zn),new nt(4,4,16,16,Gt),new nt(8,16,32,32,Gt),new nt(8,16,128,128,Gt),new nt(8,32,128,256,Gt),new nt(32,128,258,1024,Gt),new nt(32,258,258,4096,Gt)],Xl=t=>{t.window_size=2*t.w_size,wt(t.head),t.max_lazy_match=he[t.level].max_lazy,t.good_match=he[t.level].good_length,t.nice_match=he[t.level].nice_length,t.max_chain_length=he[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=M-1,t.match_available=0,t.ins_h=0};function $l(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Fe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Bl*2),this.dyn_dtree=new Uint16Array((2*Fl+1)*2),this.bl_tree=new Uint16Array((2*zl+1)*2),wt(this.dyn_ltree),wt(this.dyn_dtree),wt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Nl+1),this.heap=new Uint16Array(2*Pn+1),wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Pn+1),wt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const fe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==jt&&e.status!==Rn&&e.status!==Mn&&e.status!==Ln&&e.status!==On&&e.status!==Un&&e.status!==It&&e.status!==le?1:0},Sr=t=>{if(fe(t))return Pt(t,tt);t.total_in=t.total_out=0,t.data_type=Rl;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Rn:e.wrap?jt:It,t.adler=e.wrap===2?0:1,e.last_flush=-2,bl(e),H},kr=t=>{const e=Sr(t);return e===H&&Xl(t.state),e},Vl=(t,e)=>fe(t)||t.state.wrap!==2?tt:(t.state.gzhead=e,H),Tr=(t,e,n,i,r,s)=>{if(!t)return tt;let o=1;if(e===Al&&(e=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>Ml||n!==Fe||i<8||i>15||e<0||e>9||s<0||s>Dl||i===8&&o!==1)return Pt(t,tt);i===8&&(i=9);const a=new $l;return t.state=a,a.strm=t,a.status=jt,a.wrap=o,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+M-1)/M),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=e,a.strategy=s,a.method=n,kr(t)},Yl=(t,e)=>Tr(t,e,Fe,Ll,Ol,Pl),Wl=(t,e)=>{if(fe(t)||e>yr||e<0)return t?Pt(t,tt):tt;const n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===le&&e!==V)return Pt(t,t.avail_out===0?Dn:tt);const i=n.last_flush;if(n.last_flush=e,n.pending!==0){if(X(t),t.avail_out===0)return n.last_flush=-1,H}else if(t.avail_in===0&&br(e)<=br(i)&&e!==V)return Pt(t,Dn);if(n.status===le&&t.avail_in!==0)return Pt(t,Dn);if(n.status===jt&&n.wrap===0&&(n.status=It),n.status===jt){let r=Fe+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Ue||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,r|=s<<6,n.strstart!==0&&(r|=jl),r+=31-r%31,ce(n,r),n.strstart!==0&&(ce(n,t.adler>>>16),ce(n,t.adler&65535)),t.adler=1,n.status=It,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===Rn){if(t.adler=0,O(n,31),O(n,139),O(n,8),n.gzhead)O(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),O(n,n.gzhead.time&255),O(n,n.gzhead.time>>8&255),O(n,n.gzhead.time>>16&255),O(n,n.gzhead.time>>24&255),O(n,n.level===9?2:n.strategy>=Ue||n.level<2?4:0),O(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(O(n,n.gzhead.extra.length&255),O(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=j(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Mn;else if(O(n,0),O(n,0),O(n,0),O(n,0),O(n,0),O(n,n.level===9?2:n.strategy>=Ue||n.level<2?4:0),O(n,Hl),n.status=It,X(t),n.pending!==0)return n.last_flush=-1,H}if(n.status===Mn){if(n.gzhead.extra){let r=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex+=a,X(t),n.pending!==0)return n.last_flush=-1,H;r=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=Ln}if(n.status===Ln){if(n.gzhead.name){let r=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,O(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=On}if(n.status===On){if(n.gzhead.comment){let r=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r)),X(t),n.pending!==0)return n.last_flush=-1,H;r=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,O(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=j(t.adler,n.pending_buf,n.pending-r,r))}n.status=Un}if(n.status===Un){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(X(t),n.pending!==0))return n.last_flush=-1,H;O(n,t.adler&255),O(n,t.adler>>8&255),t.adler=0}if(n.status=It,X(t),n.pending!==0)return n.last_flush=-1,H}if(t.avail_in!==0||n.lookahead!==0||e!==pt&&n.status!==le){let r=n.level===0?Er(n,e):n.strategy===Ue?Gl(n,e):n.strategy===Il?Zl(n,e):he[n.level].func(n,e);if((r===Dt||r===qt)&&(n.status=le),r===q||r===Dt)return t.avail_out===0&&(n.last_flush=-1),H;if(r===Ht&&(e===Sl?El(n):e!==yr&&(In(n,0,0,!1),e===kl&&(wt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),X(t),t.avail_out===0))return n.last_flush=-1,H}return e!==V?H:n.wrap<=0?vr:(n.wrap===2?(O(n,t.adler&255),O(n,t.adler>>8&255),O(n,t.adler>>16&255),O(n,t.adler>>24&255),O(n,t.total_in&255),O(n,t.total_in>>8&255),O(n,t.total_in>>16&255),O(n,t.total_in>>24&255)):(ce(n,t.adler>>>16),ce(n,t.adler&65535)),X(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?H:vr)},Kl=t=>{if(fe(t))return tt;const e=t.state.status;return t.state=null,e===It?Pt(t,Tl):H},Jl=(t,e)=>{let n=e.length;if(fe(t))return tt;const i=t.state,r=i.wrap;if(r===2||r===1&&i.status!==jt||i.lookahead)return tt;if(r===1&&(t.adler=ae(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){r===0&&(wt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(e.subarray(n-i.w_size,n),0),e=c,n=i.w_size}const s=t.avail_in,o=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Zt(i);i.lookahead>=M;){let c=i.strstart,l=i.lookahead-(M-1);do i.ins_h=yt(i,i.ins_h,i.window[c+M-1]),i.prev[c&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=c,c++;while(--l);i.strstart=c,i.lookahead=M-1,Zt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=M-1,i.match_available=0,t.next_in=o,t.input=a,t.avail_in=s,i.wrap=r,H};var Ql=Yl,tc=Tr,ec=kr,nc=Sr,ic=Vl,rc=Wl,sc=Kl,oc=Jl,ac="pako deflate (from Nodeca project)",ue={deflateInit:Ql,deflateInit2:tc,deflateReset:ec,deflateResetKeep:nc,deflateSetHeader:ic,deflate:rc,deflateEnd:sc,deflateSetDictionary:oc,deflateInfo:ac};const lc=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var cc=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const i in n)lc(n,i)&&(t[i]=n[i])}}return t},hc=t=>{let e=0;for(let i=0,r=t.length;i<r;i++)e+=t[i].length;const n=new Uint8Array(e);for(let i=0,r=0,s=t.length;i<s;i++){let o=t[i];n.set(o,r),r+=o.length}return n},ze={assign:cc,flattenChunks:hc};let Ar=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ar=!1}const de=new Uint8Array(256);for(let t=0;t<256;t++)de[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;de[254]=de[254]=1;var fc=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,i,r,s,o=t.length,a=0;for(r=0;r<o;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),s=0,r=0;s<a;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|n&63):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|n&63):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|n&63);return e};const uc=(t,e)=>{if(e<65534&&t.subarray&&Ar)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n};var dc=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let i,r;const s=new Array(n*2);for(r=0,i=0;i<n;){let o=t[i++];if(o<128){s[r++]=o;continue}let a=de[o];if(a>4){s[r++]=65533,i+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&i<n;)o=o<<6|t[i++]&63,a--;if(a>1){s[r++]=65533;continue}o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|o&1023)}return uc(s,r)},_c=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+de[t[n]]>e?n:e},_e={string2buf:fc,buf2string:dc,utf8border:_c};function gc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Cr=gc;const Ir=Object.prototype.toString,{Z_NO_FLUSH:pc,Z_SYNC_FLUSH:mc,Z_FULL_FLUSH:wc,Z_FINISH:yc,Z_OK:Be,Z_STREAM_END:vc,Z_DEFAULT_COMPRESSION:bc,Z_DEFAULT_STRATEGY:xc,Z_DEFLATED:Ec}=Ct;function ge(t){this.options=ze.assign({level:bc,method:Ec,chunkSize:16384,windowBits:15,memLevel:8,strategy:xc},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cr,this.strm.avail_out=0;let n=ue.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Be)throw new Error(At[n]);if(e.header&&ue.deflateSetHeader(this.strm,e.header),e.dictionary){let i;if(typeof e.dictionary=="string"?i=_e.string2buf(e.dictionary):Ir.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,n=ue.deflateSetDictionary(this.strm,i),n!==Be)throw new Error(At[n]);this._dict_set=!0}}ge.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize;let r,s;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?yc:pc,typeof t=="string"?n.input=_e.string2buf(t):Ir.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(s===mc||s===wc)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(r=ue.deflate(n,s),r===vc)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=ue.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Be;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},ge.prototype.onData=function(t){this.chunks.push(t)},ge.prototype.onEnd=function(t){t===Be&&(this.result=ze.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Bn(t,e){const n=new ge(e);if(n.push(t,!0),n.err)throw n.msg||At[n.err];return n.result}function Sc(t,e){return e=e||{},e.raw=!0,Bn(t,e)}function kc(t,e){return e=e||{},e.gzip=!0,Bn(t,e)}var Tc=ge,Ac=Bn,Cc=Sc,Ic=kc,Dc=Ct,Pc={Deflate:Tc,deflate:Ac,deflateRaw:Cc,gzip:Ic,constants:Dc};const Ne=16209,Rc=16191;var Mc=function(e,n){let i,r,s,o,a,c,l,f,u,d,h,_,p,g,m,y,b,v,E,x,S,C,T,A;const D=e.state;i=e.next_in,T=e.input,r=i+(e.avail_in-5),s=e.next_out,A=e.output,o=s-(n-e.avail_out),a=s+(e.avail_out-257),c=D.dmax,l=D.wsize,f=D.whave,u=D.wnext,d=D.window,h=D.hold,_=D.bits,p=D.lencode,g=D.distcode,m=(1<<D.lenbits)-1,y=(1<<D.distbits)-1;t:do{_<15&&(h+=T[i++]<<_,_+=8,h+=T[i++]<<_,_+=8),b=p[h&m];e:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v===0)A[s++]=b&65535;else if(v&16){E=b&65535,v&=15,v&&(_<v&&(h+=T[i++]<<_,_+=8),E+=h&(1<<v)-1,h>>>=v,_-=v),_<15&&(h+=T[i++]<<_,_+=8,h+=T[i++]<<_,_+=8),b=g[h&y];n:for(;;){if(v=b>>>24,h>>>=v,_-=v,v=b>>>16&255,v&16){if(x=b&65535,v&=15,_<v&&(h+=T[i++]<<_,_+=8,_<v&&(h+=T[i++]<<_,_+=8)),x+=h&(1<<v)-1,x>c){e.msg="invalid distance too far back",D.mode=Ne;break t}if(h>>>=v,_-=v,v=s-o,x>v){if(v=x-v,v>f&&D.sane){e.msg="invalid distance too far back",D.mode=Ne;break t}if(S=0,C=d,u===0){if(S+=l-v,v<E){E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}}else if(u<v){if(S+=l+u-v,v-=u,v<E){E-=v;do A[s++]=d[S++];while(--v);if(S=0,u<E){v=u,E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}}}else if(S+=u-v,v<E){E-=v;do A[s++]=d[S++];while(--v);S=s-x,C=A}for(;E>2;)A[s++]=C[S++],A[s++]=C[S++],A[s++]=C[S++],E-=3;E&&(A[s++]=C[S++],E>1&&(A[s++]=C[S++]))}else{S=s-x;do A[s++]=A[S++],A[s++]=A[S++],A[s++]=A[S++],E-=3;while(E>2);E&&(A[s++]=A[S++],E>1&&(A[s++]=A[S++]))}}else if(v&64){e.msg="invalid distance code",D.mode=Ne;break t}else{b=g[(b&65535)+(h&(1<<v)-1)];continue n}break}}else if(v&64)if(v&32){D.mode=Rc;break t}else{e.msg="invalid literal/length code",D.mode=Ne;break t}else{b=p[(b&65535)+(h&(1<<v)-1)];continue e}break}}while(i<r&&s<a);E=_>>3,i-=E,_-=E<<3,h&=(1<<_)-1,e.next_in=i,e.next_out=s,e.avail_in=i<r?5+(r-i):5-(i-r),e.avail_out=s<a?257+(a-s):257-(s-a),D.hold=h,D.bits=_};const Xt=15,Dr=852,Pr=592,Rr=0,Nn=1,Mr=2,Lc=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Oc=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Uc=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Fc=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var pe=(t,e,n,i,r,s,o,a)=>{const c=a.bits;let l=0,f=0,u=0,d=0,h=0,_=0,p=0,g=0,m=0,y=0,b,v,E,x,S,C=null,T;const A=new Uint16Array(Xt+1),D=new Uint16Array(Xt+1);let P=null,U,z,R;for(l=0;l<=Xt;l++)A[l]=0;for(f=0;f<i;f++)A[e[n+f]]++;for(h=c,d=Xt;d>=1&&A[d]===0;d--);if(h>d&&(h=d),d===0)return r[s++]=1<<24|64<<16|0,r[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u<d&&A[u]===0;u++);for(h<u&&(h=u),g=1,l=1;l<=Xt;l++)if(g<<=1,g-=A[l],g<0)return-1;if(g>0&&(t===Rr||d!==1))return-1;for(D[1]=0,l=1;l<Xt;l++)D[l+1]=D[l]+A[l];for(f=0;f<i;f++)e[n+f]!==0&&(o[D[e[n+f]]++]=f);if(t===Rr?(C=P=o,T=20):t===Nn?(C=Lc,P=Oc,T=257):(C=Uc,P=Fc,T=0),y=0,f=0,l=u,S=s,_=h,p=0,E=-1,m=1<<h,x=m-1,t===Nn&&m>Dr||t===Mr&&m>Pr)return 1;for(;;){U=l-p,o[f]+1<T?(z=0,R=o[f]):o[f]>=T?(z=P[o[f]-T],R=C[o[f]-T]):(z=32+64,R=0),b=1<<l-p,v=1<<_,u=v;do v-=b,r[S+(y>>p)+v]=U<<24|z<<16|R|0;while(v!==0);for(b=1<<l-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,f++,--A[l]===0){if(l===d)break;l=e[n+o[f]]}if(l>h&&(y&x)!==E){for(p===0&&(p=h),S+=u,_=l-p,g=1<<_;_+p<d&&(g-=A[_+p],!(g<=0));)_++,g<<=1;if(m+=1<<_,t===Nn&&m>Dr||t===Mr&&m>Pr)return 1;E=y&x,r[E]=h<<24|_<<16|S-s|0}}return y!==0&&(r[S+y]=l-p<<24|64<<16|0),a.bits=h,0};const zc=0,Lr=1,Or=2,{Z_FINISH:Ur,Z_BLOCK:Bc,Z_TREES:je,Z_OK:Rt,Z_STREAM_END:Nc,Z_NEED_DICT:jc,Z_STREAM_ERROR:Y,Z_DATA_ERROR:Fr,Z_MEM_ERROR:zr,Z_BUF_ERROR:Hc,Z_DEFLATED:Br}=Ct,He=16180,Nr=16181,jr=16182,Hr=16183,qr=16184,Zr=16185,Gr=16186,Xr=16187,$r=16188,Vr=16189,qe=16190,at=16191,jn=16192,Yr=16193,Hn=16194,Wr=16195,Kr=16196,Jr=16197,Qr=16198,Ze=16199,Ge=16200,ts=16201,es=16202,ns=16203,is=16204,rs=16205,qn=16206,ss=16207,os=16208,B=16209,as=16210,ls=16211,qc=852,Zc=592,Gc=15,cs=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function Xc(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Mt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<He||e.mode>ls?1:0},hs=t=>{if(Mt(t))return Y;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=He,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(qc),e.distcode=e.distdyn=new Int32Array(Zc),e.sane=1,e.back=-1,Rt},fs=t=>{if(Mt(t))return Y;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,hs(t)},us=(t,e)=>{let n;if(Mt(t))return Y;const i=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Y:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,fs(t))},ds=(t,e)=>{if(!t)return Y;const n=new Xc;t.state=n,n.strm=t,n.window=null,n.mode=He;const i=us(t,e);return i!==Rt&&(t.state=null),i},$c=t=>ds(t,Gc);let _s=!0,Zn,Gn;const Vc=t=>{if(_s){Zn=new Int32Array(512),Gn=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(pe(Lr,t.lens,0,288,Zn,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;pe(Or,t.lens,0,32,Gn,0,t.work,{bits:5}),_s=!1}t.lencode=Zn,t.lenbits=9,t.distcode=Gn,t.distbits=5},gs=(t,e,n,i)=>{let r;const s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(r=s.wsize-s.wnext,r>i&&(r=i),s.window.set(e.subarray(n-i,n-i+r),s.wnext),i-=r,i?(s.window.set(e.subarray(n-i,n),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0},Yc=(t,e)=>{let n,i,r,s,o,a,c,l,f,u,d,h,_,p,g=0,m,y,b,v,E,x,S,C;const T=new Uint8Array(4);let A,D;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Mt(t)||!t.output||!t.input&&t.avail_in!==0)return Y;n=t.state,n.mode===at&&(n.mode=jn),o=t.next_out,r=t.output,c=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,u=a,d=c,C=Rt;t:for(;;)switch(n.mode){case He:if(n.wrap===0){n.mode=jn;break}for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0),l=0,f=0,n.mode=Nr;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=B;break}if((l&15)!==Br){t.msg="unknown compression method",n.mode=B;break}if(l>>>=4,f-=4,S=(l&15)+8,n.wbits===0&&(n.wbits=S),S>15||S>n.wbits){t.msg="invalid window size",n.mode=B;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=l&512?Vr:at,l=0,f=0;break;case Nr:for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.flags=l,(n.flags&255)!==Br){t.msg="unknown compression method",n.mode=B;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=B;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0,n.mode=jr;case jr:for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=j(n.check,T,4,0)),l=0,f=0,n.mode=Hr;case Hr:for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0,n.mode=qr;case qr:if(n.flags&1024){for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=j(n.check,T,2,0)),l=0,f=0}else n.head&&(n.head.extra=null);n.mode=Zr;case Zr:if(n.flags&1024&&(h=n.length,h>a&&(h=a),h&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(s,s+h),S)),n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,n.length-=h),n.length))break t;n.length=0,n.mode=Gr;case Gr:if(n.flags&2048){if(a===0)break t;h=0;do S=i[s+h++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,S)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=Xr;case Xr:if(n.flags&4096){if(a===0)break t;h=0;do S=i[s+h++],n.head&&S&&n.length<65536&&(n.head.comment+=String.fromCharCode(S));while(S&&h<a);if(n.flags&512&&n.wrap&4&&(n.check=j(n.check,i,h,s)),a-=h,s+=h,S)break t}else n.head&&(n.head.comment=null);n.mode=$r;case $r:if(n.flags&512){for(;f<16;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&4&&l!==(n.check&65535)){t.msg="header crc mismatch",n.mode=B;break}l=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=at;break;case Vr:for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}t.adler=n.check=cs(l),l=0,f=0,n.mode=qe;case qe:if(n.havedict===0)return t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,jc;t.adler=n.check=1,n.mode=at;case at:if(e===Bc||e===je)break t;case jn:if(n.last){l>>>=f&7,f-=f&7,n.mode=qn;break}for(;f<3;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}switch(n.last=l&1,l>>>=1,f-=1,l&3){case 0:n.mode=Yr;break;case 1:if(Vc(n),n.mode=Ze,e===je){l>>>=2,f-=2;break t}break;case 2:n.mode=Kr;break;case 3:t.msg="invalid block type",n.mode=B}l>>>=2,f-=2;break;case Yr:for(l>>>=f&7,f-=f&7;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=B;break}if(n.length=l&65535,l=0,f=0,n.mode=Hn,e===je)break t;case Hn:n.mode=Wr;case Wr:if(h=n.length,h){if(h>a&&(h=a),h>c&&(h=c),h===0)break t;r.set(i.subarray(s,s+h),o),a-=h,s+=h,c-=h,o+=h,n.length-=h;break}n.mode=at;break;case Kr:for(;f<14;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.nlen=(l&31)+257,l>>>=5,f-=5,n.ndist=(l&31)+1,l>>>=5,f-=5,n.ncode=(l&15)+4,l>>>=4,f-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=B;break}n.have=0,n.mode=Jr;case Jr:for(;n.have<n.ncode;){for(;f<3;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.lens[P[n.have++]]=l&7,l>>>=3,f-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},C=pe(zc,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid code lengths set",n.mode=B;break}n.have=0,n.mode=Qr;case Qr:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(b<16)l>>>=m,f-=m,n.lens[n.have++]=b;else{if(b===16){for(D=m+2;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(l>>>=m,f-=m,n.have===0){t.msg="invalid bit length repeat",n.mode=B;break}S=n.lens[n.have-1],h=3+(l&3),l>>>=2,f-=2}else if(b===17){for(D=m+3;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=m,f-=m,S=0,h=3+(l&7),l>>>=3,f-=3}else{for(D=m+7;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=m,f-=m,S=0,h=11+(l&127),l>>>=7,f-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=B;break}for(;h--;)n.lens[n.have++]=S}}if(n.mode===B)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=B;break}if(n.lenbits=9,A={bits:n.lenbits},C=pe(Lr,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,C){t.msg="invalid literal/lengths set",n.mode=B;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},C=pe(Or,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,C){t.msg="invalid distances set",n.mode=B;break}if(n.mode=Ze,e===je)break t;case Ze:n.mode=Ge;case Ge:if(a>=6&&c>=258){t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,Mc(t,d),o=t.next_out,r=t.output,c=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,l=n.hold,f=n.bits,n.mode===at&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(y&&!(y&240)){for(v=m,E=y,x=b;g=n.lencode[x+((l&(1<<v+E)-1)>>v)],m=g>>>24,y=g>>>16&255,b=g&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,n.length=b,y===0){n.mode=rs;break}if(y&32){n.back=-1,n.mode=at;break}if(y&64){t.msg="invalid literal/length code",n.mode=B;break}n.extra=y&15,n.mode=ts;case ts:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=es;case es:for(;g=n.distcode[l&(1<<n.distbits)-1],m=g>>>24,y=g>>>16&255,b=g&65535,!(m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(!(y&240)){for(v=m,E=y,x=b;g=n.distcode[x+((l&(1<<v+E)-1)>>v)],m=g>>>24,y=g>>>16&255,b=g&65535,!(v+m<=f);){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}l>>>=v,f-=v,n.back+=v}if(l>>>=m,f-=m,n.back+=m,y&64){t.msg="invalid distance code",n.mode=B;break}n.offset=b,n.extra=y&15,n.mode=ns;case ns:if(n.extra){for(D=n.extra;f<D;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=B;break}n.mode=is;case is:if(c===0)break t;if(h=d-c,n.offset>h){if(h=n.offset-h,h>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=B;break}h>n.wnext?(h-=n.wnext,_=n.wsize-h):_=n.wnext-h,h>n.length&&(h=n.length),p=n.window}else p=r,_=o-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do r[o++]=p[_++];while(--h);n.length===0&&(n.mode=Ge);break;case rs:if(c===0)break t;r[o++]=n.length,c--,n.mode=Ge;break;case qn:if(n.wrap){for(;f<32;){if(a===0)break t;a--,l|=i[s++]<<f,f+=8}if(d-=c,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,o-d):ae(n.check,r,d,o-d)),d=c,n.wrap&4&&(n.flags?l:cs(l))!==n.check){t.msg="incorrect data check",n.mode=B;break}l=0,f=0}n.mode=ss;case ss:if(n.wrap&&n.flags){for(;f<32;){if(a===0)break t;a--,l+=i[s++]<<f,f+=8}if(n.wrap&4&&l!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=B;break}l=0,f=0}n.mode=os;case os:C=Nc;break t;case B:C=Fr;break t;case as:return zr;case ls:default:return Y}return t.next_out=o,t.avail_out=c,t.next_in=s,t.avail_in=a,n.hold=l,n.bits=f,(n.wsize||d!==t.avail_out&&n.mode<B&&(n.mode<qn||e!==Ur))&&gs(t,t.output,t.next_out,d-t.avail_out),u-=t.avail_in,d-=t.avail_out,t.total_in+=u,t.total_out+=d,n.total+=d,n.wrap&4&&d&&(t.adler=n.check=n.flags?j(n.check,r,d,t.next_out-d):ae(n.check,r,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===at?128:0)+(n.mode===Ze||n.mode===Hn?256:0),(u===0&&d===0||e===Ur)&&C===Rt&&(C=Hc),C},Wc=t=>{if(Mt(t))return Y;let e=t.state;return e.window&&(e.window=null),t.state=null,Rt},Kc=(t,e)=>{if(Mt(t))return Y;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Rt):Y},Jc=(t,e)=>{const n=e.length;let i,r,s;return Mt(t)||(i=t.state,i.wrap!==0&&i.mode!==qe)?Y:i.mode===qe&&(r=1,r=ae(r,e,n,0),r!==i.check)?Fr:(s=gs(t,e,n,n),s?(i.mode=as,zr):(i.havedict=1,Rt))};var Qc=fs,th=us,eh=hs,nh=$c,ih=ds,rh=Yc,sh=Wc,oh=Kc,ah=Jc,lh="pako inflate (from Nodeca project)",lt={inflateReset:Qc,inflateReset2:th,inflateResetKeep:eh,inflateInit:nh,inflateInit2:ih,inflate:rh,inflateEnd:sh,inflateGetHeader:oh,inflateSetDictionary:ah,inflateInfo:lh};function ch(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var hh=ch;const ps=Object.prototype.toString,{Z_NO_FLUSH:fh,Z_FINISH:uh,Z_OK:me,Z_STREAM_END:Xn,Z_NEED_DICT:$n,Z_STREAM_ERROR:dh,Z_DATA_ERROR:ms,Z_MEM_ERROR:_h}=Ct;function we(t){this.options=ze.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cr,this.strm.avail_out=0;let n=lt.inflateInit2(this.strm,e.windowBits);if(n!==me)throw new Error(At[n]);if(this.header=new hh,lt.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=_e.string2buf(e.dictionary):ps.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=lt.inflateSetDictionary(this.strm,e.dictionary),n!==me)))throw new Error(At[n])}we.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?uh:fh,ps.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),s=lt.inflate(n,o),s===$n&&r&&(s=lt.inflateSetDictionary(n,r),s===me?s=lt.inflate(n,o):s===ms&&(s=$n));n.avail_in>0&&s===Xn&&n.state.wrap>0&&t[n.next_in]!==0;)lt.inflateReset(n),s=lt.inflate(n,o);switch(s){case dh:case ms:case $n:case _h:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Xn))if(this.options.to==="string"){let c=_e.utf8border(n.output,n.next_out),l=n.next_out-c,f=_e.buf2string(n.output,c);n.next_out=l,n.avail_out=i-l,l&&n.output.set(n.output.subarray(c,c+l),0),this.onData(f)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===me&&a===0)){if(s===Xn)return s=lt.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},we.prototype.onData=function(t){this.chunks.push(t)},we.prototype.onEnd=function(t){t===me&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ze.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Vn(t,e){const n=new we(e);if(n.push(t),n.err)throw n.msg||At[n.err];return n.result}function gh(t,e){return e=e||{},e.raw=!0,Vn(t,e)}var ph=we,mh=Vn,wh=gh,yh=Vn,vh=Ct,bh={Inflate:ph,inflate:mh,inflateRaw:wh,ungzip:yh,constants:vh};const{Deflate:xh,deflate:Eh,deflateRaw:Sh,gzip:kh}=Pc,{Inflate:Th,inflate:Ah,inflateRaw:Ch,ungzip:Ih}=bh;var Dh=xh,Ph=Eh,Rh=Sh,Mh=kh,Lh=Th,Oh=Ah,Uh=Ch,Fh=Ih,zh=Ct,Bh={Deflate:Dh,deflate:Ph,deflateRaw:Rh,gzip:Mh,Inflate:Lh,inflate:Oh,inflateRaw:Uh,ungzip:Fh,constants:zh};const I={};I.toRGBA8=function(t){const e=t.width,n=t.height;if(t.tabs.acTL===null)return[I.toRGBA8.decodeImage(t.data,e,n,t).buffer];const i=[];t.frames[0].data===null&&(t.frames[0].data=t.data);const r=e*n*4,s=new Uint8Array(r),o=new Uint8Array(r),a=new Uint8Array(r);for(let c=0;c<t.frames.length;c++){const l=t.frames[c],f=l.rect.x,u=l.rect.y,d=l.rect.width,h=l.rect.height,_=I.toRGBA8.decodeImage(l.data,d,h,t);if(c!==0)for(let p=0;p<r;p++)a[p]=s[p];if(l.blend===0?I._copyTile(_,d,h,s,e,n,f,u,0):l.blend===1&&I._copyTile(_,d,h,s,e,n,f,u,1),i.push(s.buffer.slice(0)),l.dispose===1)I._copyTile(o,d,h,s,e,n,f,u,0);else if(l.dispose===2)for(let p=0;p<r;p++)s[p]=a[p]}return i},I.toRGBA8.decodeImage=function(t,e,n,i){const r=e*n,s=I.decode._getBPP(i),o=Math.ceil(e*s/8),a=new Uint8Array(r*4),c=new Uint32Array(a.buffer),l=i.ctype,f=i.depth,u=I._bin.readUshort;if(l===6){const d=r<<2;if(f===8)for(let h=0;h<d;h+=4)a[h]=t[h],a[h+1]=t[h+1],a[h+2]=t[h+2],a[h+3]=t[h+3];if(f===16)for(let h=0;h<d;h++)a[h]=t[h<<1]}else if(l===2){const d=i.tabs.tRNS;if(d===null){if(f===8)for(let h=0;h<r;h++){const _=h*3;c[h]=-16777216|t[_+2]<<16|t[_+1]<<8|t[_]}if(f===16)for(let h=0;h<r;h++){const _=h*6;c[h]=-16777216|t[_+4]<<16|t[_+2]<<8|t[_]}}else{const h=d[0],_=d[1],p=d[2];if(f===8)for(let g=0;g<r;g++){const m=g<<2,y=g*3;c[g]=-16777216|t[y+2]<<16|t[y+1]<<8|t[y],t[y]===h&&t[y+1]===_&&t[y+2]===p&&(a[m+3]=0)}if(f===16)for(let g=0;g<r;g++){const m=g<<2,y=g*6;c[g]=-16777216|t[y+4]<<16|t[y+2]<<8|t[y],u(t,y)===h&&u(t,y+2)===_&&u(t,y+4)===p&&(a[m+3]=0)}}}else if(l===3){const d=i.tabs.PLTE,h=i.tabs.tRNS,_=h?h.length:0;if(f===1)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>3)]>>7-((y&7)<<0)&1,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===2)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>2)]>>6-((y&3)<<1)&3,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===4)for(let p=0;p<n;p++){const g=p*o,m=p*e;for(let y=0;y<e;y++){const b=m+y<<2,v=t[g+(y>>1)]>>4-((y&1)<<2)&15,E=3*v;a[b]=d[E],a[b+1]=d[E+1],a[b+2]=d[E+2],a[b+3]=v<_?h[v]:255}}if(f===8)for(let p=0;p<r;p++){const g=p<<2,m=t[p],y=3*m;a[g]=d[y],a[g+1]=d[y+1],a[g+2]=d[y+2],a[g+3]=m<_?h[m]:255}}else if(l===4){if(f===8)for(let d=0;d<r;d++){const h=d<<2,_=d<<1,p=t[_];a[h]=p,a[h+1]=p,a[h+2]=p,a[h+3]=t[_+1]}if(f===16)for(let d=0;d<r;d++){const h=d<<2,_=d<<2,p=t[_];a[h]=p,a[h+1]=p,a[h+2]=p,a[h+3]=t[_+2]}}else if(l===0){const d=i.tabs.tRNS?i.tabs.tRNS:-1;for(let h=0;h<n;h++){const _=h*o,p=h*e;if(f===1)for(let g=0;g<e;g++){const m=255*(t[_+(g>>>3)]>>>7-(g&7)&1),y=m===d*255?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===2)for(let g=0;g<e;g++){const m=85*(t[_+(g>>>2)]>>>6-((g&3)<<1)&3),y=m===d*85?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===4)for(let g=0;g<e;g++){const m=17*(t[_+(g>>>1)]>>>4-((g&1)<<2)&15),y=m===d*17?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===8)for(let g=0;g<e;g++){const m=t[_+g],y=m===d?0:255;c[p+g]=y<<24|m<<16|m<<8|m}else if(f===16)for(let g=0;g<e;g++){const m=t[_+(g<<1)],y=u(t,_+(g<<1))===d?0:255;c[p+g]=y<<24|m<<16|m<<8|m}}}return a},I.decode=function(t){const e=new Uint8Array(t);let n=8;const i=I._bin,r=i.readUshort,s=i.readUint,o={tabs:{},frames:[]},a=new Uint8Array(e.length);let c=0,l,f=0;const u=[137,80,78,71,13,10,26,10];for(let d=0;d<8;d++)if(e[d]!==u[d])throw"The input is not a PNG file!";for(;n<e.length;){const d=i.readUint(e,n);n+=4;const h=i.readASCII(e,n,4);if(n+=4,h==="IHDR")I.decode._IHDR(e,n,o);else if(h==="CgBI")o.tabs[h]=e.slice(n,n+4);else if(h==="IDAT"){for(let _=0;_<d;_++)a[c+_]=e[n+_];c+=d}else if(h==="acTL")o.tabs[h]={num_frames:s(e,n),num_plays:s(e,n+4)},l=new Uint8Array(e.length);else if(h==="fcTL"){if(f!==0){const m=o.frames[o.frames.length-1];m.data=I.decode._decompress(o,l.slice(0,f),m.rect.width,m.rect.height),f=0}const _={x:s(e,n+12),y:s(e,n+16),width:s(e,n+4),height:s(e,n+8)};let p=r(e,n+22);p=r(e,n+20)/(p===0?100:p);const g={rect:_,delay:Math.round(p*1e3),dispose:e[n+24],blend:e[n+25]};o.frames.push(g)}else if(h==="fdAT"){for(let _=0;_<d-4;_++)l[f+_]=e[n+_+4];f+=d-4}else if(h==="pHYs")o.tabs[h]=[i.readUint(e,n),i.readUint(e,n+4),e[n+8]];else if(h==="cHRM"){o.tabs[h]=[];for(let _=0;_<8;_++)o.tabs[h].push(i.readUint(e,n+_*4))}else if(h==="tEXt"||h==="zTXt"){o.tabs[h]===null&&(o.tabs[h]={});const _=i.nextZero(e,n),p=i.readASCII(e,n,_-n);let g;const m=n+d-_-1;if(h==="tEXt")g=i.readASCII(e,_+1,m);else{const y=I.decode._inflate(e.slice(_+2,_+2+m));g=i.readUTF8(y,0,y.length)}o.tabs[h][p]=g}else if(h==="iTXt"){o.tabs[h]==null&&(o.tabs[h]={});let _=0,p=n;_=i.nextZero(e,p);const g=i.readASCII(e,p,_-p);p=_+1;const m=e[p];p+=2,_=i.nextZero(e,p),p=_+1,_=i.nextZero(e,p),p=_+1;let y;const b=d-(p-n);if(m===0)y=i.readUTF8(e,p,b);else{const v=I.decode._inflate(e.slice(p,p+b));y=i.readUTF8(v,0,v.length)}o.tabs[h][g]=y}else if(h==="PLTE")o.tabs[h]=i.readBytes(e,n,d);else if(h==="hIST"){const _=o.tabs.PLTE.length/3;o.tabs[h]=[];for(let p=0;p<_;p++)o.tabs[h].push(r(e,n+p*2))}else if(h==="tRNS")o.ctype===3?o.tabs[h]=i.readBytes(e,n,d):o.ctype===0?o.tabs[h]=r(e,n):o.ctype===2&&(o.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]);else if(h==="gAMA")o.tabs[h]=i.readUint(e,n)/1e5;else if(h==="sRGB")o.tabs[h]=e[n];else if(h==="bKGD")o.ctype===0||o.ctype===4?o.tabs[h]=[r(e,n)]:o.ctype===2||o.ctype===6?o.tabs[h]=[r(e,n),r(e,n+2),r(e,n+4)]:o.ctype===3&&(o.tabs[h]=e[n]);else if(h==="IEND")break;n+=d,n+=4}if(f!==0){const d=o.frames[o.frames.length-1];d.data=I.decode._decompress(o,l.slice(0,f),d.rect.width,d.rect.height),f=0}return o.data=I.decode._decompress(o,a,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},I.decode._decompress=function(t,e,n,i){const r=I.decode._getBPP(t),s=Math.ceil(n*r/8),o=new Uint8Array((s+1+t.interlace)*i);return t.tabs.CgBI?e=I.inflateRaw(e,o):e=I.decode._inflate(e,o),t.interlace===0?e=I.decode._filterZero(e,t,0,n,i):t.interlace===1&&(e=I.decode._readInterlace(e,t)),e},I.decode._inflate=function(t,e){return I.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},I.inflateRaw=function(){const t={};return t.H={},t.H.N=function(e,n){const i=Uint8Array;let r=0,s=0,o=0,a=0,c=0,l=0,f=0,u=0,d=0,h,_;if(e[0]===3&&e[1]===0)return n||new i(0);const p=t.H,g=p.b,m=p.e,y=p.R,b=p.n,v=p.A,E=p.Z,x=p.m,S=n===null;for(S&&(n=new i(e.length>>>2<<3));r===0;){if(r=g(e,d,1),s=g(e,d+1,2),d+=3,s===0){d&7&&(d+=8-(d&7));const C=(d>>>3)+4,T=e[C-4]|e[C-3]<<8;S&&(n=t.H.W(n,u+T)),n.set(new i(e.buffer,e.byteOffset+C,T),u),d=C+T<<3,u+=T;continue}if(S&&(n=t.H.W(n,u+131072)),s===1&&(h=x.J,_=x.h,l=511,f=31),s===2){o=m(e,d,5)+257,a=m(e,d+5,5)+1,c=m(e,d+10,4)+4,d+=14;let C=1;for(let D=0;D<38;D+=2)x.Q[D]=0,x.Q[D+1]=0;for(let D=0;D<c;D++){const P=m(e,d+D*3,3);x.Q[(x.X[D]<<1)+1]=P,P>C&&(C=P)}d+=3*c,b(x.Q,C),v(x.Q,C,x.u),h=x.w,_=x.d,d=y(x.u,(1<<C)-1,o+a,e,d,x.v);const T=p.V(x.v,0,o,x.C);l=(1<<T)-1;const A=p.V(x.v,o,a,x.D);f=(1<<A)-1,b(x.C,T),v(x.C,T,h),b(x.D,A),v(x.D,A,_)}for(;;){const C=h[E(e,d)&l];d+=C&15;const T=C>>>4;if(!(T>>>8))n[u++]=T;else{if(T===256)break;{let A=u+T-254;if(T>264){const R=x.q[T-257];A=u+(R>>>3)+m(e,d,R&7),d+=R&7}const D=_[E(e,d)&f];d+=D&15;const P=D>>>4,U=x.c[P],z=(U>>>4)+g(e,d,U&15);for(d+=U&15;u<A;)n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z],n[u]=n[u++-z];u=A}}}}return n.length===u?n:n.slice(0,u)},t.H.W=function(e,n){const i=e.length;if(n<=i)return e;const r=new Uint8Array(i<<1);return r.set(e,0),r},t.H.R=function(e,n,i,r,s,o){const a=t.H.e,c=t.H.Z;let l=0;for(;l<i;){const f=e[c(r,s)&n];s+=f&15;const u=f>>>4;if(u<=15)o[l]=u,l++;else{let d=0,h=0;u===16?(h=3+a(r,s,2),s+=2,d=o[l-1]):u===17?(h=3+a(r,s,3),s+=3):u===18&&(h=11+a(r,s,7),s+=7);const _=l+h;for(;l<_;)o[l]=d,l++}}return s},t.H.V=function(e,n,i,r){let s=0,o=0;const a=r.length>>>1;for(;o<i;){const c=e[o+n];r[o<<1]=0,r[(o<<1)+1]=c,c>s&&(s=c),o++}for(;o<a;)r[o<<1]=0,r[(o<<1)+1]=0,o++;return s},t.H.n=function(e,n){const i=t.H.m,r=e.length;let s,o,a,c,l;const f=i.j;for(let d=0;d<=n;d++)f[d]=0;for(c=1;c<r;c+=2)f[e[c]]++;const u=i.K;for(s=0,f[0]=0,o=1;o<=n;o++)s=s+f[o-1]<<1,u[o]=s;for(a=0;a<r;a+=2)l=e[a+1],l!==0&&(e[a]=u[l],u[l]++)},t.H.A=function(e,n,i){const r=e.length,o=t.H.m.r;for(let a=0;a<r;a+=2)if(e[a+1]!==0){const c=a>>1,l=e[a+1],f=c<<4|l,u=n-l;let d=e[a]<<u;const h=d+(1<<u);for(;d!==h;){const _=o[d]>>>15-n;i[_]=f,d++}}},t.H.l=function(e,n){const i=t.H.m.r,r=15-n;for(let s=0;s<e.length;s+=2){const o=e[s]<<n-e[s+1];e[s]=i[o]>>>r}},t.H.M=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8},t.H.I=function(e,n,i){i=i<<(n&7);const r=n>>>3;e[r]|=i,e[r+1]|=i>>>8,e[r+2]|=i>>>16},t.H.e=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.H.b=function(e,n,i){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.H.Z=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16)>>>(n&7)},t.H.i=function(e,n){return(e[n>>>3]|e[(n>>>3)+1]<<8|e[(n>>>3)+2]<<16|e[(n>>>3)+3]<<24)>>>(n&7)},t.H.m=function(){const e=Uint16Array,n=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new n(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new e(65536),g:new e(32768)}}(),function(){const e=t.H.m,n=32768;for(let r=0;r<n;r++){let s=r;s=(s&2863311530)>>>1|(s&1431655765)<<1,s=(s&3435973836)>>>2|(s&858993459)<<2,s=(s&4042322160)>>>4|(s&252645135)<<4,s=(s&4278255360)>>>8|(s&16711935)<<8,e.r[r]=(s>>>16|s<<16)>>>17}function i(r,s,o){for(;s--!==0;)r.push(0,o)}for(let r=0;r<32;r++)e.q[r]=e.S[r]<<3|e.T[r],e.c[r]=e.p[r]<<4|e.z[r];i(e._,144,8),i(e._,112,9),i(e._,24,7),i(e._,8,8),t.H.n(e._,9),t.H.A(e._,9,e.J),t.H.l(e._,9),i(e.$,32,5),t.H.n(e.$,5),t.H.A(e.$,5,e.h),t.H.l(e.$,5),i(e.Q,19,0),i(e.C,286,0),i(e.D,30,0),i(e.v,320,0)}(),t.H.N}(),I.decode._readInterlace=function(t,e){const n=e.width,i=e.height,r=I.decode._getBPP(e),s=r>>3,o=Math.ceil(n*r/8),a=new Uint8Array(i*o);let c=0;const l=[0,0,4,0,2,0,1],f=[0,4,0,2,0,1,0],u=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1];let h=0;for(;h<7;){const _=u[h],p=d[h];let g=0,m=0,y=l[h];for(;y<i;)y+=_,m++;let b=f[h];for(;b<n;)b+=p,g++;const v=Math.ceil(g*r/8);I.decode._filterZero(t,e,c,g,m);let E=0,x=l[h];for(;x<i;){let S=f[h],C=c+E*v<<3;for(;S<n;){if(r===1){let T=t[C>>3];T=T>>7-(C&7)&1,a[x*o+(S>>3)]|=T<<7-((S&7)<<0)}if(r===2){let T=t[C>>3];T=T>>6-(C&7)&3,a[x*o+(S>>2)]|=T<<6-((S&3)<<1)}if(r===4){let T=t[C>>3];T=T>>4-(C&7)&15,a[x*o+(S>>1)]|=T<<4-((S&1)<<2)}if(r>=8){const T=x*o+S*s;for(let A=0;A<s;A++)a[T+A]=t[(C>>3)+A]}C+=r,S+=p}E++,x+=_}g*m!==0&&(c+=m*(1+v)),h=h+1}return a},I.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},I.decode._filterZero=function(t,e,n,i,r){let s=I.decode._getBPP(e);const o=Math.ceil(i*s/8),a=I.decode._paeth;s=Math.ceil(s/8);let c=0,l=1,f=t[n],u=0;if(f>1&&(t[n]=[0,0,1][f-2]),f===3)for(u=s;u<o;u++)t[u+1]=t[u+1]+(t[u+1-s]>>>1)&255;for(let d=0;d<r;d++)if(c=n+d*o,l=c+d+1,f=t[l-1],u=0,f===0)for(;u<o;u++)t[c+u]=t[l+u];else if(f===1){for(;u<s;u++)t[c+u]=t[l+u];for(;u<o;u++)t[c+u]=t[l+u]+t[c+u-s]}else if(f===2)for(;u<o;u++)t[c+u]=t[l+u]+t[c+u-o];else if(f===3){for(;u<s;u++)t[c+u]=t[l+u]+(t[c+u-o]>>>1);for(;u<o;u++)t[c+u]=t[l+u]+(t[c+u-o]+t[c+u-s]>>>1)}else{for(;u<s;u++)t[c+u]=t[l+u]+a(0,t[c+u-o],0);for(;u<o;u++)t[c+u]=t[l+u]+a(t[c+u-s],t[c+u-o],t[c+u-s-o])}return t},I.decode._paeth=function(t,e,n){const i=t+e-n,r=i-t,s=i-e,o=i-n;return r*r<=s*s&&r*r<=o*o?t:s*s<=o*o?e:n},I.decode._IHDR=function(t,e,n){const i=I._bin;n.width=i.readUint(t,e),e+=4,n.height=i.readUint(t,e),e+=4,n.depth=t[e],e++,n.ctype=t[e],e++,n.compress=t[e],e++,n.filter=t[e],e++,n.interlace=t[e],e++},I._bin={nextZero:function(t,e){for(;t[e]!==0;)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,n){t[e]=n>>8&255,t[e+1]=n&255},readUint:function(t,e){return t[e]*16777216+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n&255},readASCII:function(t,e,n){let i="";for(let r=0;r<n;r++)i+=String.fromCharCode(t[e+r]);return i},writeASCII:function(t,e,n){for(let i=0;i<n.length;i++)t[e+i]=n.charCodeAt(i)},readBytes:function(t,e,n){const i=[];for(let r=0;r<n;r++)i.push(t[e+r]);return i},pad:function(t){return t.length<2?"0"+t:t},readUTF8:function(t,e,n){let i="",r;for(let s=0;s<n;s++)i+="%"+I._bin.pad(t[e+s].toString(16));try{r=decodeURIComponent(i)}catch{return I._bin.readASCII(t,e,n)}return r}},I._copyTile=function(t,e,n,i,r,s,o,a,c){const l=Math.min(e,r),f=Math.min(n,s);let u=0,d=0;for(let h=0;h<f;h++)for(let _=0;_<l;_++)if(o>=0&&a>=0?(u=h*e+_<<2,d=(a+h)*r+o+_<<2):(u=(-a+h)*e-o+_<<2,d=h*r+_<<2),c===0)i[d]=t[u],i[d+1]=t[u+1],i[d+2]=t[u+2],i[d+3]=t[u+3];else if(c===1){const p=t[u+3]*.00392156862745098,g=t[u]*p,m=t[u+1]*p,y=t[u+2]*p,b=i[d+3]*(1/255),v=i[d]*b,E=i[d+1]*b,x=i[d+2]*b,S=1-p,C=p+b*S,T=C===0?0:1/C;i[d+3]=255*C,i[d+0]=(g+v*S)*T,i[d+1]=(m+E*S)*T,i[d+2]=(y+x*S)*T}else if(c===2){const p=t[u+3],g=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];p===b&&g===v&&m===E&&y===x?(i[d]=0,i[d+1]=0,i[d+2]=0,i[d+3]=0):(i[d]=g,i[d+1]=m,i[d+2]=y,i[d+3]=p)}else if(c===3){const p=t[u+3],g=t[u],m=t[u+1],y=t[u+2],b=i[d+3],v=i[d],E=i[d+1],x=i[d+2];if(p===b&&g===v&&m===E&&y===x)continue;if(p<220&&b>20)return!1}return!0},I.encode=function(t,e,n,i,r,s,o){i===null&&(i=0),o===null&&(o=!1);const a=I.encode.compress(t,e,n,i,[!1,!1,!1,0,o]);return I.encode.compressPNG(a,-1),I.encode._main(a,e,n,r,s)},I.encodeLL=function(t,e,n,i,r,s,o,a){const c={ctype:0+(i===1?0:2)+(r===0?0:4),depth:s,frames:[]},l=(i+r)*s,f=l*e;for(let d=0;d<t.length;d++)c.frames.push({rect:{x:0,y:0,width:e,height:n},img:new Uint8Array(t[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(f/8)});return I.encode.compressPNG(c,0,!0),I.encode._main(c,e,n,o,a)},I.encode._main=function(t,e,n,i,r){r||(r={});const s=I.crc.crc,o=I._bin.writeUint,a=I._bin.writeUshort,c=I._bin.writeASCII;let l=8;const f=t.frames.length>1;let u=!1,d=8+(16+5+4)+(f?20:0);if(r.sRGB!==null&&r.sRGB!==void 0&&(d+=13),r.pHYs!==null&&r.pHYs!==void 0&&(d+=21),t.ctype===3){const g=t.plte.length;for(let m=0;m<g;m++)t.plte[m]>>>24!==255&&(u=!0);d+=8+g*3+4+(u?8+g*1+4:0)}for(let g=0;g<t.frames.length;g++){const m=t.frames[g];f&&(d+=38),d+=m.cimg.length+12,g!==0&&(d+=4)}d+=12;const h=new Uint8Array(d),_=[137,80,78,71,13,10,26,10];for(let g=0;g<8;g++)h[g]=_[g];if(o(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,o(h,l,e),l+=4,o(h,l,n),l+=4,h[l]=t.depth,l++,h[l]=t.ctype,l++,h[l]=0,l++,h[l]=0,l++,h[l]=0,l++,o(h,l,s(h,l-17,17)),l+=4,r.sRGB!==null&&r.sRGB!==void 0&&(o(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=r.sRGB,l++,o(h,l,s(h,l-5,5)),l+=4),r.pHYs!==null&&r.pHYs!==void 0&&(o(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,o(h,l,r.pHYs[0]),l+=4,o(h,l,r.pHYs[1]),l+=4,h[l]=r.pHYs[2],l++,o(h,l,s(h,l-13,13)),l+=4),f&&(o(h,l,8),l+=4,c(h,l,"acTL"),l+=4,o(h,l,t.frames.length),l+=4,o(h,l,r.loop!=null?r.loop:0),l+=4,o(h,l,s(h,l-12,12)),l+=4),t.ctype===3){const g=t.plte.length;o(h,l,g*3),l+=4,c(h,l,"PLTE"),l+=4;for(let m=0;m<g;m++){const y=m*3,b=t.plte[m],v=b&255,E=b>>>8&255,x=b>>>16&255;h[l+y+0]=v,h[l+y+1]=E,h[l+y+2]=x}if(l+=g*3,o(h,l,s(h,l-g*3-4,g*3+4)),l+=4,u){o(h,l,g),l+=4,c(h,l,"tRNS"),l+=4;for(let m=0;m<g;m++)h[l+m]=t.plte[m]>>>24&255;l+=g,o(h,l,s(h,l-g-4,g+4)),l+=4}}let p=0;for(let g=0;g<t.frames.length;g++){const m=t.frames[g];f&&(o(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,o(h,l,p++),l+=4,o(h,l,m.rect.width),l+=4,o(h,l,m.rect.height),l+=4,o(h,l,m.rect.x),l+=4,o(h,l,m.rect.y),l+=4,a(h,l,i[g]),l+=2,a(h,l,1e3),l+=2,h[l]=m.dispose,l++,h[l]=m.blend,l++,o(h,l,s(h,l-30,30)),l+=4);const y=m.cimg,b=y.length;o(h,l,b+(g===0?0:4)),l+=4;const v=l;c(h,l,g===0?"IDAT":"fdAT"),l+=4,g!==0&&(o(h,l,p++),l+=4),h.set(y,l),l+=b,o(h,l,s(h,v,l-v)),l+=4}return o(h,l,0),l+=4,c(h,l,"IEND"),l+=4,o(h,l,s(h,l-4,4)),l+=4,h.buffer},I.encode.compressPNG=function(t,e,n){for(let i=0;i<t.frames.length;i++){const r=t.frames[i],s=r.rect.height,o=new Uint8Array(s*r.bpl+s);r.cimg=I.encode._filterZero(r.img,s,r.bpp,r.bpl,o,e,n)}},I.encode.compress=function(t,e,n,i,r){const s=r[0],o=r[1],a=r[2],c=r[3],l=r[4];let f=6,u=8,d=255;for(let b=0;b<t.length;b++){const v=new Uint8Array(t[b]),E=v.length;for(let x=0;x<E;x+=4)d&=v[x+3]}const h=d!==255,_=I.encode.framize(t,e,n,s,o,a),p={},g=[],m=[];if(i!==0){const b=[];for(let C=0;C<_.length;C++)b.push(_[C].img.buffer);const v=I.encode.concatRGBA(b),E=I.quantize(v,i);let x=0;const S=new Uint8Array(E.abuf);for(let C=0;C<_.length;C++){const T=_[C].img,A=T.length;m.push(new Uint8Array(E.inds.buffer,x>>2,A>>2));for(let D=0;D<A;D+=4)T[D]=S[x+D],T[D+1]=S[x+D+1],T[D+2]=S[x+D+2],T[D+3]=S[x+D+3];x+=A}for(let C=0;C<E.plte.length;C++)g.push(E.plte[C].est.rgba)}else for(let b=0;b<_.length;b++){const v=_[b],E=new Uint32Array(v.img.buffer),x=v.rect.width,S=E.length,C=new Uint8Array(S);m.push(C);for(let T=0;T<S;T++){const A=E[T];if(T!==0&&A===E[T-1])C[T]=C[T-1];else if(T>x&&A===E[T-x])C[T]=C[T-x];else{let D=p[A];if(D===null&&(p[A]=D=g.length,g.push(A),g.length>=300))break;C[T]=D}}}const y=g.length;y<=256&&l===!1&&(y<=2?u=1:y<=4?u=2:y<=16?u=4:u=8,u=Math.max(u,c));for(let b=0;b<_.length;b++){const v=_[b],E=v.rect.width,x=v.rect.height;let S=v.img,C=4*E,T=4;if(y<=256&&l===!1){C=Math.ceil(u*E/8);const A=new Uint8Array(C*x),D=m[b];for(let P=0;P<x;P++){const U=P*C,z=P*E;if(u===8)for(let R=0;R<E;R++)A[U+R]=D[z+R];else if(u===4)for(let R=0;R<E;R++)A[U+(R>>1)]|=D[z+R]<<4-(R&1)*4;else if(u===2)for(let R=0;R<E;R++)A[U+(R>>2)]|=D[z+R]<<6-(R&3)*2;else if(u===1)for(let R=0;R<E;R++)A[U+(R>>3)]|=D[z+R]<<7-(R&7)*1}S=A,f=3,T=1}else if(h===!1&&_.length===1){const A=new Uint8Array(E*x*3),D=E*x;for(let P=0;P<D;P++){const U=P*3,z=P*4;A[U]=S[z],A[U+1]=S[z+1],A[U+2]=S[z+2]}S=A,f=2,T=3,C=3*E}v.img=S,v.bpl=C,v.bpp=T}return{ctype:f,depth:u,plte:g,frames:_}},I.encode.framize=function(t,e,n,i,r,s){const o=[];for(let a=0;a<t.length;a++){const c=new Uint8Array(t[a]),l=new Uint32Array(c.buffer);let f,u=0,d=0,h=e,_=n,p=i?1:0;if(a!==0){const g=s||i||a===1||o[a-2].dispose!==0?1:2;let m=0,y=1e9;for(let v=0;v<g;v++){const E=new Uint32Array(t[a-1-v]);let x=e,S=n,C=-1,T=-1;for(let D=0;D<n;D++)for(let P=0;P<e;P++){const U=D*e+P;l[U]!==E[U]&&(P<x&&(x=P),P>C&&(C=P),D<S&&(S=D),D>T&&(T=D))}C===-1&&(x=S=C=T=0),r&&((x&1)===1&&x--,(S&1)===1&&S--);const A=(C-x+1)*(T-S+1);A<y&&(y=A,m=v,u=x,d=S,h=C-x+1,_=T-S+1)}const b=new Uint8Array(t[a-1-m]);m===1&&(o[a-1].dispose=2),f=new Uint8Array(h*_*4),I._copyTile(b,e,n,f,h,_,-u,-d,0),p=I._copyTile(c,e,n,f,h,_,-u,-d,3)?1:0,p===1?I.encode._prepareDiff(c,e,n,f,{x:u,y:d,width:h,height:_}):I._copyTile(c,e,n,f,h,_,-u,-d,0)}else f=c.slice(0);o.push({rect:{x:u,y:d,width:h,height:_},img:f,blend:p,dispose:0})}if(i)for(let a=0;a<o.length;a++){const c=o[a];if(c.blend===1)continue;const l=c.rect,f=o[a-1].rect,u=Math.min(l.x,f.x),d=Math.min(l.y,f.y),h=Math.max(l.x+l.width,f.x+f.width),_=Math.max(l.y+l.height,f.y+f.height),p={x:u,y:d,width:h-u,height:_-d};o[a-1].dispose=1,a-1!==0&&I.encode._updateFrame(t,e,n,o,a-1,p,r),I.encode._updateFrame(t,e,n,o,a,p,r)}return o},I.encode._updateFrame=function(t,e,n,i,r,s,o){const a=Uint8Array,c=Uint32Array,l=new a(t[r-1]),f=new c(t[r-1]),u=r+1<t.length?new a(t[r+1]):null,d=new a(t[r]),h=new c(d.buffer);let _=e,p=n,g=-1,m=-1;for(let b=0;b<s.height;b++)for(let v=0;v<s.width;v++){const E=s.x+v,x=s.y+b,S=x*e+E,C=h[S];C===0||i[r-1].dispose===0&&f[S]===C&&(u===null||u[S*4+3]!==0)||(E<_&&(_=E),E>g&&(g=E),x<p&&(p=x),x>m&&(m=x))}g===-1&&(_=p=g=m=0),o&&((_&1)===1&&_--,(p&1)===1&&p--),s={x:_,y:p,width:g-_+1,height:m-p+1};const y=i[r];y.rect=s,y.blend=1,y.img=new Uint8Array(s.width*s.height*4),i[r-1].dispose===0?(I._copyTile(l,e,n,y.img,s.width,s.height,-s.x,-s.y,0),I.encode._prepareDiff(d,e,n,y.img,s)):I._copyTile(d,e,n,y.img,s.width,s.height,-s.x,-s.y,0)},I.encode._prepareDiff=function(t,e,n,i,r){I._copyTile(t,e,n,i,r.width,r.height,-r.x,-r.y,2)},I.encode._filterZero=function(t,e,n,i,r,s,o){const a=[];let c=[0,1,2,3,4];s!==-1?c=[s]:(e*i>5e5||n===1)&&(c=[0]);let l;o&&(l={level:0});const f=r.length>1e7&&Wi!=null?Wi:Bh;for(let h=0;h<c.length;h++){for(let _=0;_<e;_++)I.encode._filterLine(r,t,_,i,n,c[h]);a.push(f.deflate(r,l))}let u,d=1e9;for(let h=0;h<a.length;h++)a[h].length<d&&(u=h,d=a[h].length);return a[u]},I.encode._filterLine=function(t,e,n,i,r,s){const o=n*i;let a=o+n;const c=I.decode._paeth;if(t[a]=s,a++,s===0)if(i<500)for(let l=0;l<i;l++)t[a+l]=e[o+l];else t.set(new Uint8Array(e.buffer,o,i),a);else if(s===1){for(let l=0;l<r;l++)t[a+l]=e[o+l];for(let l=r;l<i;l++)t[a+l]=e[o+l]-e[o+l-r]+256&255}else if(n===0){for(let l=0;l<r;l++)t[a+l]=e[o+l];if(s===2)for(let l=r;l<i;l++)t[a+l]=e[o+l];if(s===3)for(let l=r;l<i;l++)t[a+l]=e[o+l]-(e[o+l-r]>>1)+256&255;if(s===4)for(let l=r;l<i;l++)t[a+l]=e[o+l]-c(e[o+l-r],0,0)+256&255}else{if(s===2)for(let l=0;l<i;l++)t[a+l]=e[o+l]+256-e[o+l-i]&255;if(s===3){for(let l=0;l<r;l++)t[a+l]=e[o+l]+256-(e[o+l-i]>>1)&255;for(let l=r;l<i;l++)t[a+l]=e[o+l]+256-(e[o+l-i]+e[o+l-r]>>1)&255}if(s===4){for(let l=0;l<r;l++)t[a+l]=e[o+l]+256-c(0,e[o+l-i],0)&255;for(let l=r;l<i;l++)t[a+l]=e[o+l]+256-c(e[o+l-r],e[o+l-i],e[o+l-r-i])&255}}},I.crc={table:function(){const t=new Uint32Array(256);for(let e=0;e<256;e++){let n=e;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;t[e]=n}return t}(),update:function(t,e,n,i){for(let r=0;r<i;r++)t=I.crc.table[(t^e[n+r])&255]^t>>>8;return t},crc:function(t,e,n){return I.crc.update(4294967295,t,e,n)^4294967295}},I.quantize=function(t,e){const n=new Uint8Array(t),i=n.slice(0),r=new Uint32Array(i.buffer),s=I.quantize.getKDtree(i,e),o=s[0],a=s[1],c=I.quantize.planeDst,l=n,f=r,u=l.length,d=new Uint8Array(n.length>>2);let h;if(n.length<2e7)for(let _=0;_<u;_+=4){const p=l[_]*.00392156862745098,g=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);h=I.quantize.getNearest(o,p,g,m,y),d[_>>2]=h.ind,f[_>>2]=h.est.rgba}else for(let _=0;_<u;_+=4){const p=l[_]*.00392156862745098,g=l[_+1]*(1/255),m=l[_+2]*(1/255),y=l[_+3]*(1/255);for(h=o;h.left;)h=c(h.est,p,g,m,y)<=0?h.left:h.right;d[_>>2]=h.ind,f[_>>2]=h.est.rgba}return{abuf:i.buffer,inds:d,plte:a}},I.quantize.getKDtree=function(t,e,n){n===null&&(n=1e-4);const i=new Uint32Array(t.buffer),r={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=I.quantize.stats(t,r.i0,r.i1),r.est=I.quantize.estats(r.bst);const s=[r];for(;s.length<e;){let o=0,a=0;for(let h=0;h<s.length;h++)s[h].est.L>o&&(o=s[h].est.L,a=h);if(o<n)break;const c=s[a],l=I.quantize.splitPixels(t,i,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=I.quantize.stats(t,u.i0,u.i1),u.est=I.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let h=0;h<16;h++)d.bst.R[h]=c.bst.R[h]-u.bst.R[h];for(let h=0;h<4;h++)d.bst.m[h]=c.bst.m[h]-u.bst.m[h];d.est=I.quantize.estats(d.bst),c.left=u,c.right=d,s[a]=u,s.push(d)}s.sort(function(o,a){return a.bst.N-o.bst.N});for(let o=0;o<s.length;o++)s[o].ind=o;return[r,s]},I.quantize.getNearest=function(t,e,n,i,r){if(t.left==null)return t.tdst=I.quantize.dist(t.est.q,e,n,i,r),t;const s=I.quantize.planeDst(t.est,e,n,i,r);let o=t.left,a=t.right;s>0&&(o=t.right,a=t.left);const c=I.quantize.getNearest(o,e,n,i,r);if(c.tdst<=s*s)return c;const l=I.quantize.getNearest(a,e,n,i,r);return l.tdst<c.tdst?l:c},I.quantize.planeDst=function(t,e,n,i,r){const s=t.e;return s[0]*e+s[1]*n+s[2]*i+s[3]*r-t.eMq},I.quantize.dist=function(t,e,n,i,r){const s=e-t[0],o=n-t[1],a=i-t[2],c=r-t[3];return s*s+o*o+a*a+c*c},I.quantize.splitPixels=function(t,e,n,i,r,s){const o=I.quantize.vecDot;for(i-=4;n<i;){for(;o(t,n,r)<=s;)n+=4;for(;o(t,i,r)>s;)i-=4;if(n>=i)break;const a=e[n>>2];e[n>>2]=e[i>>2],e[i>>2]=a,n+=4,i-=4}for(;o(t,n,r)>s;)n-=4;return n+4},I.quantize.vecDot=function(t,e,n){return t[e]*n[0]+t[e+1]*n[1]+t[e+2]*n[2]+t[e+3]*n[3]},I.quantize.stats=function(t,e,n){const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],s=n-e>>2;for(let o=e;o<n;o+=4){const a=t[o]*.00392156862745098,c=t[o+1]*(1/255),l=t[o+2]*(1/255),f=t[o+3]*(1/255);r[0]+=a,r[1]+=c,r[2]+=l,r[3]+=f,i[0]+=a*a,i[1]+=a*c,i[2]+=a*l,i[3]+=a*f,i[5]+=c*c,i[6]+=c*l,i[7]+=c*f,i[10]+=l*l,i[11]+=l*f,i[15]+=f*f}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:r,N:s}},I.quantize.estats=function(t){const e=t.R,n=t.m,i=t.N,r=n[0],s=n[1],o=n[2],a=n[3],c=i===0?0:1/i,l=[e[0]-r*r*c,e[1]-r*s*c,e[2]-r*o*c,e[3]-r*a*c,e[4]-s*r*c,e[5]-s*s*c,e[6]-s*o*c,e[7]-s*a*c,e[8]-o*r*c,e[9]-o*s*c,e[10]-o*o*c,e[11]-o*a*c,e[12]-a*r*c,e[13]-a*s*c,e[14]-a*o*c,e[15]-a*a*c],f=l,u=I.M4;let d=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,_=0;if(i!==0)for(let m=0;m<16&&(d=u.multVec(f,d),_=Math.sqrt(u.dot(d,d)),d=u.sml(1/_,d),!(m!==0&&Math.abs(_-h)<1e-9));m++)h=_;const p=[r*c,s*c,o*c,a*c],g=u.dot(u.sml(255,p),d);return{Cov:l,q:p,e:d,L:h,eMq255:g,eMq:u.dot(d,p),rgba:(Math.round(255*p[3])<<24|Math.round(255*p[2])<<16|Math.round(255*p[1])<<8|Math.round(255*p[0])<<0)>>>0}},I.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},I.encode.concatRGBA=function(t){let e=0;for(let r=0;r<t.length;r++)e+=t[r].byteLength;const n=new Uint8Array(e);let i=0;for(let r=0;r<t.length;r++){const s=new Uint8Array(t[r]),o=s.length;for(let a=0;a<o;a+=4){let c=s[a],l=s[a+1],f=s[a+2];const u=s[a+3];u===0&&(c=l=f=0),n[i+a]=c,n[i+a+1]=l,n[i+a+2]=f,n[i+a+3]=u}i+=o}return n.buffer};const Xe=new Map,Yn=(t,e)=>{if(Xe.has(t))return e(null,Xe.get(t));const n=new Image;n.onload=function(){Xe.set(t,{width:n.width,height:n.height,element:n}),e(null,Xe.get(t))},n.onerror=function(i){e(i,null)},n.src=t},Wn=(t,e)=>{Yn(t,(n,i)=>{if(!i)return e(n,null);const r=document.createElement("canvas"),s=r.getContext("2d");return r.width=i.width,r.height=i.height,s.drawImage(i.element,0,0,r.width,r.height),s.getImageData(0,0,r.width,r.height)})},ws=t=>{let e="";if(t){const i=new DataView(t).getUint32(0,!1);switch(Number(i).toString(16).toUpperCase()){case"FFD8FFDB":e="JPG";break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":e="JPEG";break;case"89504E47":e="PNG";break;case"47494638":e="GIF";break;case"52494646":e="WEBP";break}}return e},Nh=(t,e)=>{for(let n=0,i=t.length;n<i;n++){const r=t[n],{type:s}=r,o=s.split("/");if(o[0]!=="image")return;let a=o[1].toUpperCase();const c=new FileReader;c.onload=function(l){if(!l.target)return e("no reader target",null);const f=l.target.result,u=ws(f);u&&(a=u);const d=new Blob([f]);Kn(d,(h,_)=>{if(!_)return e(h,null);Yn(_,(p,g)=>{if(!g)return e(p,null);Wn(_,(m,y)=>{if(!y)return e(m,null);const b={name:r.name,fileType:a,size:r.size,width:g.width,height:g.height,imgUrl:_,imageData:y,blob:d};return e(null,b)})})})},c.readAsArrayBuffer(r)}},jh=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},Hh=(t,e=0,n=0)=>{const i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.drawImage(t,0,0,e,n),r.getImageData(0,0,e,n)},qh=t=>{const e=t.width,n=t.height,i=e*n*3,r=i+54,s=[66,77,r&255,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],o=[40,0,0,0,e&255,e>>8&255,e>>16&255,e>>24&255,n&255,n>>8&255,n>>16&255,n>>24&255,1,0,24,0,0,0,0,0,i&255,i>>8&255,i>>16&255,i>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=(4-e*3%4)%4,c=t.data;let l="";const f=e<<2;let u=n;const d=String.fromCharCode;do{const _=f*(u-1);let p="";for(let g=0;g<e;g++){const m=g<<2;p+=d(c[_+m+2])+d(c[_+m+1])+d(c[_+m])}for(let g=0;g<a;g++)p+=String.fromCharCode(0);l+=p}while(--u);function h(_){if(!window.btoa)throw"btoa undefined";let p="";if(typeof _=="string")p=_;else for(let g=0;g<_.length;g++)p+=String.fromCharCode(_[g]);return btoa(p)}return h(s.concat(o))+h(l)},Zh=t=>{const{width:e,height:n}=t,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=e,i.height=n,r.putImageData(t,0,0,0,0,e,n),i.toDataURL("image/png")},Gh=(t,e,n)=>{const{width:i,height:r}=t,s=document.createElement("canvas"),o=s.getContext("2d");s.width=i,s.height=r,o.putImageData(t,0,0,0,0,i,r);const a=`image/${e?e.toLowerCase():"png"}`;s.toBlob(c=>{n?.(null,c)},a,1)},Kn=(t,e)=>{const n=new FileReader;n.onload=function(i){i.target?e(null,i.target.result):e("can't readAsDataURL",null)},n.readAsDataURL(t)},Xh=(t,e)=>{Kn(t,function(n,i){if(i){const r=new Image;r.src=i}else e(n)})},$h=(t,e)=>{const n=window.URL.createObjectURL(t),i=document.createElement("a");i.style.visibility="hidden",document.body.appendChild(i),i.download=e,i.href=n,i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)},ys=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),Vh=(t,e="image/svg+xml",n="utf-8")=>{const i=new XMLSerializer().serializeToString(t);return ys(i,e,n)};function Yh(t,e){Wn(t,(n,i)=>{if(!i)return e(n,null);const r=i.data;let s=0;const o=[],a=[],c=[];for(let d=0;d<r.length;d+=4)o[s]=r[d],a[s]=r[d+1],c[s]=r[d+2],s+=1;const l=Jn(o),f=Jn(a),u=Jn(c);return e(null,"rgb("+l+","+f+","+u+")")})}function Jn(t){const e={},n=[],i=[];for(let a=0;a<t.length;a++)e[t[a]]?n.push(t[a]):e[t[a]]=1;let r=0;for(let a=0;a<n.length;a++){r=0;for(let c=0;c<n.length;c++)n[a]===n[c]&&(r+=1),i[a]=r}const s=Math.max.apply(null,i);let o=0;for(;o<i.length;o++)if(i[o]===s)return;return n[o]}const Wh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[(o*n+n-a-1)*4],r[c+1]=e[(o*n+n-a-1)*4+1],r[c+2]=e[(o*n+n-a-1)*4+2],r[c+3]=e[(o*n+n-a-1)*4+3]}return new ImageData(r,n,i)},Kh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[((i-o-1)*n+a)*4],r[c+1]=e[((i-o-1)*n+a)*4+1],r[c+2]=e[((i-o-1)*n+a)*4+2],r[c+3]=e[((i-o-1)*n+a)*4+3]}return new ImageData(r,n,i)},Jh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<n;o++)for(let a=0;a<i;a++){const c=(o*i+a)*4;r[c]=e[(a*n+n-o-1)*4],r[c+1]=e[(a*n+n-o-1)*4+1],r[c+2]=e[(a*n+n-o-1)*4+2],r[c+3]=e[(a*n+n-o-1)*4+3]}return new ImageData(r,i,n)},Qh=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<n;o++)for(let a=0;a<i;a++){const c=(o*i+a)*4;r[c]=e[((i-a-1)*n+o)*4],r[c+1]=e[((i-a-1)*n+o)*4+1],r[c+2]=e[((i-a-1)*n+o)*4+2],r[c+3]=e[((i-a-1)*n+o)*4+3]}return new ImageData(r,i,n)},tf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+1]+e[c+2])/3;r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},ef=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=.2126*e[c]+.7152*e[c+1]+.0722*e[c+2];r[c]=l,r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},nf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,f=(e[c]+e[c+1]+e[c+2])/3>127?255:0;r[c]=f,r[c+1]=f,r[c+2]=f,r[c+3]=e[c+3]}return new ImageData(r,n,i)},rf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=255-e[c],r[c+1]=255-e[c+1],r[c+2]=255-e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},sf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},of=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},af=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=0,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},lf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=0,r[c+3]=e[c+3]}return new ImageData(r,n,i)},cf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=0,r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},hf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=0,r[c+1]=e[c+1],r[c+2]=e[c+1],r[c+3]=e[c+3]}return new ImageData(r,n,i)},ff=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c+1]+e[c+2])/2;r[c]=e[c],r[c+1]=l,r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},uf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+2])/2;r[c]=l,r[c+1]=e[c+1],r[c+2]=l,r[c+3]=e[c+3]}return new ImageData(r,n,i)},df=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4,l=(e[c]+e[c+1])/2;r[c]=l,r[c+1]=l,r[c+2]=e[c+2],r[c+3]=e[c+3]}return new ImageData(r,n,i)},_f=t=>vs(t,[-1,-1,-1,-1,9,-1,-1,-1,-1]),gf=t=>vs(t,[-1,-1,-1,-1,8,-1,-1,-1,-1]),pf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;r[c]=e[c],r[c+1]=e[c+1],r[c+2]=e[c+2],r[c+3]=255}return new ImageData(r,n,i)},mf=t=>{const{data:e,width:n,height:i}=t,r=new Uint8ClampedArray(e.length);for(let o=0;o<i;o++)for(let a=0;a<n;a++){const c=(o*n+a)*4;if(e[c+3]===0)r[c]=255,r[c+1]=255,r[c+2]=255,r[c+3]=255;else{const l=bs([e[c],e[c+1],e[c+2],e[c+3]],[255,255,255,255]);r[c]=l[0],r[c+1]=l[1],r[c+2]=l[2],r[c+3]=l[3]}}return new ImageData(r,n,i)},wf=(t,e,n,i,r,s=!1,o)=>{const{data:a,width:c,height:l}=t;let f=r,u=i,d=e,h=n;if(f<0?f=0:f>c&&(f=c),u<0?u=0:u>l&&(u=l),d<1?d=1:d>c&&(d=c),h<1?h=1:h>l&&(h=l),f+d>c&&(d=c-f),u+h>l&&(h=l-u),s){const _=new Uint8ClampedArray(a.length);for(let g=0;g<l;g++)for(let m=0;m<c;m++){const y=(g*c+m)*4;m>=f&&m<=f+d&&g>=u&&g<=u+h?(_[y]=a[y],_[y+1]=a[y+1],_[y+2]=a[y+2],_[y+3]=a[y+3]):(_[y]=255,_[y+1]=255,_[y+2]=255,_[y+3]=o&&["JPG","JPEG"].includes(o.toUpperCase())?255:0)}return new ImageData(_,c,l)}else{const _=new Uint8ClampedArray(d*h*4);for(let g=u;g<=u+h;g++)for(let m=f;m<=f+d;m++){const y=((g-u)*d+m-f)*4,b=(g*c+m)*4;_[y]=a[b],_[y+1]=a[b+1],_[y+2]=a[b+2],_[y+3]=a[b+3]}return new ImageData(_,d,h)}},yf=(t,e,n,i)=>{const{data:r,width:s,height:o}=t;let a=e;a>Math.floor(s/2)&&(a=Math.floor(s/2)),a>Math.floor(o/2)&&(a=Math.floor(o/2)),a<0&&(a=0);const c=new Uint8ClampedArray(r.length);for(let f=0;f<o;f++)for(let u=0;u<s;u++){const d=(f*s+u)*4;let h=-1;u<a?f<a?h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(a-f-1,2)):f>o-a-1&&(h=Math.sqrt(Math.pow(a-u-1,2)+Math.pow(f-(o-a),2))):u>s-a-1&&(f<a?h=Math.sqrt(Math.pow(u-(s-a),2)+Math.pow(a-f-1,2)):f>o-a-1&&(h=Math.sqrt(Math.pow(u-(s-a),2)+Math.pow(f-(o-a),2)))),Math.round(h)>a?(c[d]=255,c[d+1]=255,c[d+2]=255,c[d+3]=i||n.toUpperCase()==="PNG"?0:255):(c[d]=r[d],c[d+1]=r[d+1],c[d+2]=r[d+2],c[d+3]=i||n.toUpperCase()==="PNG"?r[d+3]:255)}return new ImageData(c,s,o)},vf=(t,e,n,i,r,s=1e4)=>{const o=new Image;o.src=t;const a=document.createElement("canvas"),c=a.getContext("2d");return a.width=s,a.height=s,c.drawImage(o,0,0,e,n,0,0,i,r),c.getImageData(0,0,i,r)},bf=(t,e)=>{const{data:n,width:i,height:r}=t,s=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;s[l]=Math.max(Math.min(n[l]+e,255),0),s[l+1]=Math.max(Math.min(n[l+1]+e,255),0),s[l+2]=Math.max(Math.min(n[l+2]+e,255),0),s[l+3]=n[l+3]}return new ImageData(s,i,r)},xf=(t,e,n=!1)=>{const{data:i,width:r,height:s}=t,o=new Uint8ClampedArray(i.length);for(let c=0;c<s;c++)for(let l=0;l<r;l++){const f=(c*r+l)*4;i[f+3]===0?(o[f]=255,o[f+1]=255,o[f+2]=255):(o[f]=i[f],o[f+1]=i[f+1],o[f+2]=i[f+2]);let u=i[f+3];n?u=Math.max(Math.min(Math.floor(255*e),255),0):u=Math.max(Math.min(Math.floor(u+255*e),255),0),o[f+3]=u}return new ImageData(o,r,s)},Ef=(t,e,n,i)=>{const{data:r,width:s,height:o}=t,{data:a,width:c,height:l}=e;let f=n,u=i;n+l>o&&(f=o-l),i+c>s&&(u=s-c);const d=new Uint8ClampedArray(r.length);for(let _=0;_<o;_++)for(let p=0;p<s;p++){const g=(_*s+p)*4;if(p<u||p>u+c||_<=f||_>=f+l)d[g]=r[g],d[g+1]=r[g+1],d[g+2]=r[g+2],d[g+3]=r[g+3];else{const m=(_*s+p-((f+1)*s+(_-(f+1))*(s-c))+c-u-1)*4,y=[a[m],a[m+1],a[m+2],a[m+3]],b=[r[g],r[g+1],r[g+2],r[g+3]],v=bs(y,b);d[g]=v[0],d[g+1]=v[1],d[g+2]=v[2],d[g+3]=v[3]}}return new ImageData(d,s,o)},Sf=(t,e,n,i,r,s=10)=>{const{data:o,width:a,height:c}=t;let l=r,f=i,u=e,d=n;l<0?l=0:l>a&&(l=a),f<0?f=0:f>c&&(f=c),u<1?u=1:u>a&&(u=a),d<1?d=1:d>c&&(d=c),l+u>a&&(u=a-l),f+d>c&&(d=c-f);const h=new Uint8ClampedArray(o.length);for(let p=0;p<c;p++)for(let g=0;g<a;g++){const m=(p*a+g)*4;if(g>=l&&g<=l+u&&p>=f&&p<=f+d){const y=Math.floor((g-l)/s),b=Math.floor((p-f)/s);let v=Math.floor(s*(y+1)-s/2+l),E=Math.floor(s*(b+1)-s/2+f);v>a-1&&(v=a-1),E>c-1&&(E=c-1);const x=(E*a+v)*4;h[m]=o[x],h[m+1]=o[x+1],h[m+2]=o[x+2],h[m+3]=o[x+3]}else h[m]=o[m],h[m+1]=o[m+1],h[m+2]=o[m+2],h[m+3]=o[m+3]}return new ImageData(h,a,c)},kf=async(t,e,n,i,r,s)=>{const o=r/100;if(["JPG","JPEG"].includes(i.toUpperCase())){const a=new Image;a.src=t;const c=document.createElement("canvas"),l=c.getContext("2d");c.width=e,c.height=n,l.drawImage(a,0,0,e,n),c.toBlob(f=>{s(f)},`image/${i.toLowerCase()}`,o)}else{const a=Math.floor(o*256),c=I.encode([t.data.buffer],e,n,a),l=new Blob([c]);s&&s(l)}},Tf=(t,e,n={backgroundColor:{r:0,g:0,b:0,a:255},changeIntoColor:{r:0,g:0,b:0,a:0}})=>{if(e&&n){const{data:i,width:r,height:s}=t,{data:o}=e,a=new Uint8ClampedArray(i.length),{backgroundColor:c,changeIntoColor:l}=n;for(let u=0;u<s;u++)for(let d=0;d<r;d++){const h=(u*r+d)*4,_=o[h],p=o[h+1],g=o[h+2],m=o[h+3];_===c.r&&p===c.g&&g===c.b&&m===c.a&&l.a!==0?(a[h]=l.r,a[h+1]=l.g,a[h+2]=l.b,a[h+3]=l.a):(a[h]=i[h],a[h+1]=i[h+1],a[h+2]=i[h+2],a[h+3]=i[h+3])}return new ImageData(a,r,s)}return t},vs=(t,e)=>{const{data:n,width:i,height:r}=t,s=new Uint8ClampedArray(n.length);for(let a=0;a<r;a++)for(let c=0;c<i;c++){const l=(a*i+c)*4;for(let f=0;f<3;f++){const u=l+f;c===0||c===i-1||a===0||a===r-1?s[u]=n[u]:s[u]=e[0]*n[u-i*4-4]+e[1]*n[u-i*4]+e[2]*n[u-i*4+4]+e[3]*n[u-4]+e[4]*n[u]+e[5]*n[u+4]+e[6]*n[u+i*4-4]+e[7]*n[u+i*4]+e[8]*n[u+i*4+4]}s[l+3]=n[l+3]}return new ImageData(s,i,r)},bs=(t,e)=>{if(t&&t.length===4&&e&&e.length===4){const n=t[3],i=e[3];if(n===255||i===0)return t;if(n===0)return e;{const r=n/255,s=i/255,o=Math.max(Math.min(Math.floor(t[0]*r+e[0]*s*(1-r)),255),0),a=Math.max(Math.min(Math.floor(t[1]*r+e[1]*s*(1-r)),255),0),c=Math.max(Math.min(Math.floor(t[2]*r+e[2]*s*(1-r)),255),0),l=Math.max(Math.min(Math.floor((r+s*(1-r))*255),255),0);return[o,a,c,l]}}return[255,255,255,255]};function Af(){var t=null;if(window.ActiveXObject)for(var e=["Microsoft.XMLHTTP","MSXML6.XMLHTTP","MSXML5.XMLHTTP","MSXML4.XMLHTTP","MSXML3.XMLHTTP","MSXML2.XMLHTTP","MSXML.XMLHTTP"],n=0;n<e.length;n++)try{t=new window.ActiveXObject(e[n]);break}catch{continue}else t=new XMLHttpRequest;return t}function Cf(t){if(t.action){if(t.method.toLowerCase()==="post")return{url:t.action,data:new FormData(t)};for(var e="",n=0;n<t.elements.length;n++){var i=t.elements[n];if(i.hasAttribute("name")){var r=i.nodeName.toUpperCase()==="INPUT"?i.getAttribute("type").toUpperCase():"TEXT";if(r==="FILE")for(var s=0;s<i.files.length;e+="&"+escape(i.name)+"="+escape(i.files[s++].name));else(r!=="RADIO"&&r!=="CHECKBOX"||i.checked)&&(e+="&"+escape(i.name)+"="+escape(i.value))}}return{url:t.action.replace(/(?:\?.*)?$/,e.replace(/^&/,"?")),data:null}}}function If(t,e){return new Promise((n,i)=>{var r=new XMLHttpRequest,s=function(){i("The request for "+t+" is timed out for "+e+".")},o=function(a){r.readyState===4&&(r.status===200?n(r.response):i(r.statusText))};r.open("GET",t),r.onload=o,r.timeout=e,r.ontimeout=s,r.upload.addEventListener("progress",function(a){if(a.lengthComputable){const c=Math.round(a.loaded*100/a.total);console.log(c+"%")}},!1),r.upload.addEventListener("load",function(a){},!1),r.send(null)})}function Df(t,e,n){return fetch(t,Object.assign({method:"POST",headers:{},body:{},mode:"",credentials:"",cache:"",redirect:"follow",referrerPolicy:"no-referrer"},e)).then(i=>i.json())}function Pf(t,e){var n=new XMLHttpRequest;n.open("HEAD",t),n.filepath=t,n.callback=e,n.onload=function(){var i=parseFloat(window.localStorage.getItem("lm_"+this.filepath)),r=Date.parse(this.getResponseHeader("Last-Modified"));(isNaN(i)||r>i)&&(window.localStorage.setItem("lm_"+this.filepath,Date.now()),isFinite(i)&&this.callback(r,i))},n.send()}function Qn(t,e){if(e)window.localStorage.setItem(t,typeof e=="string"?e:JSON.stringify(e));else return window.localStorage.getItem(t)}function Rf(t=""){t=t||Qn("theme")||"",t||(t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Qn("theme",t),document.documentElement.classList.toggle("dark",t==="dark")}const Mf=(t={x:0,y:0})=>window.scrollTo(t.x,t.y);function $e(t){try{window.history.scrollRestoration=t}catch{}}"scrollRestoration"in window.history&&($e("manual"),window.addEventListener("beforeunload",()=>{$e("auto")}),window.addEventListener("load",()=>{$e("manual")}));let Ve;const xs=new WeakMap;function ti(t,e){let n=xs.get(t);n||(n=new Map,xs.set(t,n));let i=n.get(e);return i||(i=new Es,n.set(e,i)),i}class Es{subscribers;constructor(){this.subscribers=new Set}depend(){Ve&&this.subscribers.add(Ve)}notify(){this.subscribers.forEach(e=>e())}}function Lf(t){Ve=t,t(),Ve=null}function Of(t){return Object.keys(t).forEach(e=>{let n=t[e];const i=ti(t,e);Object.defineProperty(t,e,{get(){return i.depend(),n},set(r){r!=n&&(n=r,i.notify())}})}),t}function Uf(t){return new Proxy(t,{get(e,n,i){return ti(t,n).depend(),Reflect.get(e,n,i)},set(e,n,i,r){const s=ti(t,n);return t[n]!=i&&(t[n]=i,s.notify()),Reflect.set(e,n,i,r)}})}function Ff(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1].toLowerCase()}function zf(t){return Ff(t)==="array"}var ei={exports:{}},$t=typeof Reflect=="object"?Reflect:null,Ss=$t&&typeof $t.apply=="function"?$t.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},Ye;$t&&typeof $t.ownKeys=="function"?Ye=$t.ownKeys:Object.getOwnPropertySymbols?Ye=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ye=function(t){return Object.getOwnPropertyNames(t)};function Bf(t){console&&console.warn&&console.warn(t)}var ks=Number.isNaN||function(t){return t!==t};function F(){F.init.call(this)}ei.exports=F,ei.exports.once=qf,F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var Ts=10;function We(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(F,"defaultMaxListeners",{enumerable:!0,get:function(){return Ts},set:function(t){if(typeof t!="number"||t<0||ks(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ts=t}}),F.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},F.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ks(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function As(t){return t._maxListeners===void 0?F.defaultMaxListeners:t._maxListeners}F.prototype.getMaxListeners=function(){return As(this)},F.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=t==="error",r=this._events;if(r!==void 0)i=i&&r.error===void 0;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=r[t];if(a===void 0)return!1;if(typeof a=="function")Ss(a,this,e);else for(var c=a.length,l=Rs(a,c),n=0;n<c;++n)Ss(l[n],this,e);return!0};function Cs(t,e,n,i){var r,s,o;if(We(n),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),o=s[e]),o===void 0)o=s[e]=n,++t._eventsCount;else if(typeof o=="function"?o=s[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),r=As(t),r>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,Bf(a)}return t}F.prototype.addListener=function(t,e){return Cs(this,t,e,!1)},F.prototype.on=F.prototype.addListener,F.prototype.prependListener=function(t,e){return Cs(this,t,e,!0)};function Nf(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Is(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=Nf.bind(i);return r.listener=n,i.wrapFn=r,r}F.prototype.once=function(t,e){return We(e),this.on(t,Is(this,t,e)),this},F.prototype.prependOnceListener=function(t,e){return We(e),this.prependListener(t,Is(this,t,e)),this},F.prototype.removeListener=function(t,e){var n,i,r,s,o;if(We(e),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,r=s;break}if(r<0)return this;r===0?n.shift():jf(n,r),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,o||e)}return this},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(t){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var r=Object.keys(n),s;for(i=0;i<r.length;++i)s=r[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this};function Ds(t,e,n){var i=t._events;if(i===void 0)return[];var r=i[e];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?Hf(r):Rs(r,r.length)}F.prototype.listeners=function(t){return Ds(this,t,!0)},F.prototype.rawListeners=function(t){return Ds(this,t,!1)},F.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Ps.call(t,e)},F.prototype.listenerCount=Ps;function Ps(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}F.prototype.eventNames=function(){return this._eventsCount>0?Ye(this._events):[]};function Rs(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function jf(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Hf(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function qf(t,e){return new Promise(function(n,i){function r(o){t.removeListener(e,s),i(o)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",r),n([].slice.call(arguments))}Ms(t,e,s,{once:!0}),e!=="error"&&Zf(t,r,{once:!0})})}function Zf(t,e,n){typeof t.on=="function"&&Ms(t,"error",e,n)}function Ms(t,e,n,i){if(typeof t.on=="function")i.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function r(s){i.once&&t.removeEventListener(e,r),n(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var Gf=ei.exports;class H0 extends Gf.EventEmitter{constructor(){super()}on(e,n){return super.on(e,n)}addListener(e,n){return super.on(e,n)}once(e,n){return super.once(e,n)}removeListener(e,n){return super.removeListener(e,n)}removeAllListeners(e){return super.removeAllListeners(e)}emit(e,n){return super.emit(e,n)}off(e,n){return super.off(e,n)}listeners(e){return super.listeners(e)}rawListeners(e){return super.rawListeners(e)}listenerCount(e){return super.listenerCount(e)}prependListener(e,n){return super.prependListener(e,n)}prependOnceListener(e,n){return super.prependOnceListener(e,n)}}function Ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:Xf}=Object.prototype,{getPrototypeOf:ni}=Object,Ke=(t=>e=>{const n=Xf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),e=>Ke(e)===t),Je=t=>e=>typeof e===t,{isArray:Vt}=Array,ye=Je("undefined");function $f(t){return t!==null&&!ye(t)&&t.constructor!==null&&!ye(t.constructor)&&W(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Os=it("ArrayBuffer");function Vf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Os(t.buffer),e}const Yf=Je("string"),W=Je("function"),Us=Je("number"),Qe=t=>t!==null&&typeof t=="object",Wf=t=>t===!0||t===!1,tn=t=>{if(Ke(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Kf=it("Date"),Jf=it("File"),Qf=it("Blob"),tu=it("FileList"),eu=t=>Qe(t)&&W(t.pipe),nu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||W(t.append)&&((e=Ke(t))==="formdata"||e==="object"&&W(t.toString)&&t.toString()==="[object FormData]"))},iu=it("URLSearchParams"),ru=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Vt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(i=0;i<o;i++)a=s[i],e.call(null,t[a],a,t)}}function Fs(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const zs=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Bs=t=>!ye(t)&&t!==zs;function ii(){const{caseless:t}=Bs(this)&&this||{},e={},n=(i,r)=>{const s=t&&Fs(e,r)||r;tn(e[s])&&tn(i)?e[s]=ii(e[s],i):tn(i)?e[s]=ii({},i):Vt(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&ve(arguments[i],n);return e}const su=(t,e,n,{allOwnKeys:i}={})=>(ve(e,(r,s)=>{n&&W(r)?t[s]=Ls(r,n):t[s]=r},{allOwnKeys:i}),t),ou=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),au=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},lu=(t,e,n,i)=>{let r,s,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)o=r[s],(!i||i(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},cu=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},hu=t=>{if(!t)return null;if(Vt(t))return t;let e=t.length;if(!Us(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},fu=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),uu=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const r=i.value;e.call(t,r[0],r[1])}},du=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},_u=it("HTMLFormElement"),gu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),Ns=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),pu=it("RegExp"),js=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ve(n,(r,s)=>{let o;(o=e(r,s,t))!==!1&&(i[s]=o||r)}),Object.defineProperties(t,i)},mu=t=>{js(t,(e,n)=>{if(W(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(W(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wu=(t,e)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return Vt(t)?i(t):i(String(t).split(e)),n},yu=()=>{},vu=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ri="abcdefghijklmnopqrstuvwxyz",Hs="0123456789",qs={DIGIT:Hs,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Hs},bu=(t=16,e=qs.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xu(t){return!!(t&&W(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Eu=t=>{const e=new Array(10),n=(i,r)=>{if(Qe(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const s=Vt(i)?[]:{};return ve(i,(o,a)=>{const c=n(o,r+1);!ye(c)&&(s[a]=c)}),e[r]=void 0,s}}return i};return n(t,0)},Su=it("AsyncFunction"),ku=t=>t&&(Qe(t)||W(t))&&W(t.then)&&W(t.catch),k={isArray:Vt,isArrayBuffer:Os,isBuffer:$f,isFormData:nu,isArrayBufferView:Vf,isString:Yf,isNumber:Us,isBoolean:Wf,isObject:Qe,isPlainObject:tn,isUndefined:ye,isDate:Kf,isFile:Jf,isBlob:Qf,isRegExp:pu,isFunction:W,isStream:eu,isURLSearchParams:iu,isTypedArray:fu,isFileList:tu,forEach:ve,merge:ii,extend:su,trim:ru,stripBOM:ou,inherits:au,toFlatObject:lu,kindOf:Ke,kindOfTest:it,endsWith:cu,toArray:hu,forEachEntry:uu,matchAll:du,isHTMLForm:_u,hasOwnProperty:Ns,hasOwnProp:Ns,reduceDescriptors:js,freezeMethods:mu,toObjectSet:wu,toCamelCase:gu,noop:yu,toFiniteNumber:vu,findKey:Fs,global:zs,isContextDefined:Bs,ALPHABET:qs,generateString:bu,isSpecCompliantForm:xu,toJSONObject:Eu,isAsyncFn:Su,isThenable:ku};function L(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}k.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Zs=L.prototype,Gs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Gs[t]={value:t}}),Object.defineProperties(L,Gs),Object.defineProperty(Zs,"isAxiosError",{value:!0}),L.from=(t,e,n,i,r,s)=>{const o=Object.create(Zs);return k.toFlatObject(t,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),L.call(o,t.message,e,n,i,r),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const Tu=null;function si(t){return k.isPlainObject(t)||k.isArray(t)}function Xs(t){return k.endsWith(t,"[]")?t.slice(0,-2):t}function $s(t,e,n){return t?t.concat(e).map(function(i,r){return i=Xs(i),!n&&r?"["+i+"]":i}).join(n?".":""):e}function Au(t){return k.isArray(t)&&!t.some(si)}const Cu=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function en(t,e,n){if(!k.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!k.isUndefined(_[h])});const i=n.metaTokens,r=n.visitor||l,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(e);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(k.isDate(h))return h.toISOString();if(!a&&k.isBlob(h))throw new L("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(h)||k.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,_,p){let g=h;if(h&&!p&&typeof h=="object"){if(k.endsWith(_,"{}"))_=i?_:_.slice(0,-2),h=JSON.stringify(h);else if(k.isArray(h)&&Au(h)||(k.isFileList(h)||k.endsWith(_,"[]"))&&(g=k.toArray(h)))return _=Xs(_),g.forEach(function(m,y){!(k.isUndefined(m)||m===null)&&e.append(o===!0?$s([_],y,s):o===null?_:_+"[]",c(m))}),!1}return si(h)?!0:(e.append($s(p,_,s),c(h)),!1)}const f=[],u=Object.assign(Cu,{defaultVisitor:l,convertValue:c,isVisitable:si});function d(h,_){if(!k.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(h),k.forEach(h,function(p,g){(!(k.isUndefined(p)||p===null)&&r.call(e,p,k.isString(g)?g.trim():g,_,u))===!0&&d(p,_?_.concat(g):[g])}),f.pop()}}if(!k.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Vs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function oi(t,e){this._pairs=[],t&&en(t,this,e)}const Ys=oi.prototype;Ys.append=function(t,e){this._pairs.push([t,e])},Ys.toString=function(t){const e=t?function(n){return t.call(this,n,Vs)}:Vs;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Iu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ws(t,e,n){if(!e)return t;const i=n&&n.encode||Iu,r=n&&n.serialize;let s;if(r?s=r(e,n):s=k.isURLSearchParams(e)?e.toString():new oi(e,n).toString(i),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Du{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){k.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ks=Du,Js={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pu=typeof URLSearchParams<"u"?URLSearchParams:oi,Ru=typeof FormData<"u"?FormData:null,Mu=typeof Blob<"u"?Blob:null,Lu=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ou=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rt={isBrowser:!0,classes:{URLSearchParams:Pu,FormData:Ru,Blob:Mu},isStandardBrowserEnv:Lu,isStandardBrowserWebWorkerEnv:Ou,protocols:["http","https","file","blob","url","data"]};function Uu(t,e){return en(t,new rt.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return rt.isNode&&k.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Fu(t){return k.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zu(t){const e={},n=Object.keys(t);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],e[s]=t[s];return e}function Qs(t){function e(n,i,r,s){let o=n[s++];const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&k.isArray(r)?r.length:o,c?(k.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),e(n,i,r[o],s)&&k.isArray(r[o])&&(r[o]=zu(r[o])),!a)}if(k.isFormData(t)&&k.isFunction(t.entries)){const n={};return k.forEachEntry(t,(i,r)=>{e(Fu(i),r,n,0)}),n}return null}function Bu(t,e,n){if(k.isString(t))try{return(e||JSON.parse)(t),k.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const ai={transitional:Js,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=k.isObject(t);if(r&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i&&i?JSON.stringify(Qs(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Uu(t,this.formSerializer).toString();if((s=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return en(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),Bu(t)):t}],transformResponse:[function(t){const e=this.transitional||ai.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(t&&k.isString(t)&&(n&&!this.responseType||i)){const r=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(r)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],t=>{ai.headers[t]={}});const li=ai,Nu=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ju=t=>{const e={};let n,i,r;return t&&t.split(`
|
|
12
|
+
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&Nu[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},to=Symbol("internals");function be(t){return t&&String(t).trim().toLowerCase()}function nn(t){return t===!1||t==null?t:k.isArray(t)?t.map(nn):String(t)}function Hu(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const qu=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ci(t,e,n,i,r){if(k.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!k.isString(e)){if(k.isString(i))return e.indexOf(i)!==-1;if(k.isRegExp(i))return i.test(e)}}function Zu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Gu(t,e){const n=k.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,s,o){return this[i].call(this,e,r,s,o)},configurable:!0})})}class rn{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function s(a,c,l){const f=be(c);if(!f)throw new Error("header name must be a non-empty string");const u=k.findKey(r,f);(!u||r[u]===void 0||l===!0||l===void 0&&r[u]!==!1)&&(r[u||c]=nn(a))}const o=(a,c)=>k.forEach(a,(l,f)=>s(l,f,c));return k.isPlainObject(e)||e instanceof this.constructor?o(e,n):k.isString(e)&&(e=e.trim())&&!qu(e)?o(ju(e),n):e!=null&&s(n,e,i),this}get(e,n){if(e=be(e),e){const i=k.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Hu(r);if(k.isFunction(n))return n.call(this,r,i);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=be(e),e){const i=k.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||ci(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function s(o){if(o=be(o),o){const a=k.findKey(i,o);a&&(!n||ci(i,i[a],a,n))&&(delete i[a],r=!0)}}return k.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!e||ci(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,i={};return k.forEach(this,(r,s)=>{const o=k.findKey(i,s);if(o){n[o]=nn(r),delete n[s];return}const a=e?Zu(s):String(s).trim();a!==s&&delete n[s],n[a]=nn(r),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return k.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&k.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
13
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const n=(this[to]=this[to]={accessors:{}}).accessors,i=this.prototype;function r(s){const o=be(s);n[o]||(Gu(i,s),n[o]=!0)}return k.isArray(e)?e.forEach(r):r(e),this}}rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(rn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),k.freezeMethods(rn);const ct=rn;function hi(t,e){const n=this||li,i=e||n,r=ct.from(i.headers);let s=i.data;return k.forEach(t,function(o){s=o.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function eo(t){return!!(t&&t.__CANCEL__)}function xe(t,e,n){L.call(this,t??"canceled",L.ERR_CANCELED,e,n),this.name="CanceledError"}k.inherits(xe,L,{__CANCEL__:!0});function Xu(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $u=rt.isStandardBrowserEnv?function(){return{write:function(t,e,n,i,r,s){const o=[];o.push(t+"="+encodeURIComponent(e)),k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(i)&&o.push("path="+i),k.isString(r)&&o.push("domain="+r),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Vu(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Yu(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function no(t,e){return t&&!Vu(e)?Yu(t,e):e}const Wu=rt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(r){let s=r;return t&&(e.setAttribute("href",s),s=e.href),e.setAttribute("href",s),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(r){const s=k.isString(r)?i(r):r;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Ku(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ju(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,s=0,o;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),l=i[s];o||(o=c),n[r]=a,i[r]=c;let f=s,u=0;for(;f!==r;)u+=n[f++],f=f%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),c-o<e)return;const d=l&&c-l;return d?Math.round(u*1e3/d):void 0}}function io(t,e){let n=0;const i=Ju(50,250);return r=>{const s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-n,c=i(a),l=s<=o;n=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-s)/c:void 0,event:r};f[e?"download":"upload"]=!0,t(f)}}const Qu=typeof XMLHttpRequest<"u",td=Qu&&function(t){return new Promise(function(e,n){let i=t.data;const r=ct.from(t.headers).normalize(),s=t.responseType;let o;function a(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}let c;k.isFormData(i)&&(rt.isStandardBrowserEnv||rt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?k.isString(c=r.getContentType())&&r.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(h+":"+_))}const f=no(t.baseURL,t.url);l.open(t.method.toUpperCase(),Ws(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!l)return;const h=ct.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:t,request:l};Xu(function(p){e(p),a()},function(p){n(p),a()},_),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(n(new L("Request aborted",L.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let h=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const _=t.transitional||Js;t.timeoutErrorMessage&&(h=t.timeoutErrorMessage),n(new L(h,_.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,t,l)),l=null},rt.isStandardBrowserEnv){const h=(t.withCredentials||Wu(f))&&t.xsrfCookieName&&$u.read(t.xsrfCookieName);h&&r.set(t.xsrfHeaderName,h)}i===void 0&&r.setContentType(null),"setRequestHeader"in l&&k.forEach(r.toJSON(),function(h,_){l.setRequestHeader(_,h)}),k.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",io(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",io(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=h=>{l&&(n(!h||h.type?new xe(null,t,l):h),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const d=Ku(f);if(d&&rt.protocols.indexOf(d)===-1){n(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,t));return}l.send(i||null)})},fi={http:Tu,xhr:td};k.forEach(fi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ro=t=>`- ${t}`,ed=t=>k.isFunction(t)||t===null||t===!1,so={getAdapter:t=>{t=k.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let s=0;s<e;s++){n=t[s];let o;if(i=n,!ed(n)&&(i=fi[(o=String(n)).toLowerCase()],i===void 0))throw new L(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+s]=i}if(!i){const s=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
|
|
14
|
+
`+s.map(ro).join(`
|
|
15
|
+
`):" "+ro(s[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:fi};function ui(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xe(null,t)}function oo(t){return ui(t),t.headers=ct.from(t.headers),t.data=hi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),so.getAdapter(t.adapter||li.adapter)(t).then(function(e){return ui(t),e.data=hi.call(t,t.transformResponse,e),e.headers=ct.from(e.headers),e},function(e){return eo(e)||(ui(t),e&&e.response&&(e.response.data=hi.call(t,t.transformResponse,e.response),e.response.headers=ct.from(e.response.headers))),Promise.reject(e)})}const ao=t=>t instanceof ct?t.toJSON():t;function Yt(t,e){e=e||{};const n={};function i(l,f,u){return k.isPlainObject(l)&&k.isPlainObject(f)?k.merge.call({caseless:u},l,f):k.isPlainObject(f)?k.merge({},f):k.isArray(f)?f.slice():f}function r(l,f,u){if(k.isUndefined(f)){if(!k.isUndefined(l))return i(void 0,l,u)}else return i(l,f,u)}function s(l,f){if(!k.isUndefined(f))return i(void 0,f)}function o(l,f){if(k.isUndefined(f)){if(!k.isUndefined(l))return i(void 0,l)}else return i(void 0,f)}function a(l,f,u){if(u in e)return i(l,f);if(u in t)return i(void 0,l)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,f)=>r(ao(l),ao(f),!0)};return k.forEach(Object.keys(Object.assign({},t,e)),function(l){const f=c[l]||r,u=f(t[l],e[l],l);k.isUndefined(u)&&f!==a||(n[l]=u)}),n}const lo="1.5.1",di={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{di[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const co={};di.transitional=function(t,e,n){function i(r,s){return"[Axios v"+lo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(t===!1)throw new L(i(s," has been removed"+(e?" in "+e:"")),L.ERR_DEPRECATED);return e&&!co[s]&&(co[s]=!0,console.warn(i(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,s,o):!0}};function nd(t,e,n){if(typeof t!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const s=i[r],o=e[s];if(o){const a=t[s],c=a===void 0||o(a,s,t);if(c!==!0)throw new L("option "+s+" must be "+c,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+s,L.ERR_BAD_OPTION)}}const _i={assertOptions:nd,validators:di},vt=_i.validators;class sn{constructor(e){this.defaults=e,this.interceptors={request:new Ks,response:new Ks}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Yt(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&_i.assertOptions(i,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:_i.assertOptions(r,{encode:vt.function,serialize:vt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&k.merge(s.common,s[n.method]);s&&k.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=ct.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const l=[];this.interceptors.response.forEach(function(_){l.push(_.fulfilled,_.rejected)});let f,u=0,d;if(!c){const _=[oo.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,l),d=_.length,f=Promise.resolve(n);u<d;)f=f.then(_[u++],_[u++]);return f}d=a.length;let h=n;for(u=0;u<d;){const _=a[u++],p=a[u++];try{h=_(h)}catch(g){p.call(this,g);break}}try{f=oo.call(this,h)}catch(_){return Promise.reject(_)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(e){e=Yt(this.defaults,e);const n=no(e.baseURL,e.url);return Ws(n,e.params,e.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(t){sn.prototype[t]=function(e,n){return this.request(Yt(n||{},{method:t,url:e,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(t){function e(n){return function(i,r,s){return this.request(Yt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}sn.prototype[t]=e(),sn.prototype[t+"Form"]=e(!0)});const on=sn;class gi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const o=new Promise(a=>{i.subscribe(a),s=a}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},e(function(r,s,o){i.reason||(i.reason=new xe(r,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new gi(function(n){e=n}),cancel:e}}}const id=gi;function rd(t){return function(e){return t.apply(null,e)}}function sd(t){return k.isObject(t)&&t.isAxiosError===!0}const pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pi).forEach(([t,e])=>{pi[e]=t});const od=pi;function ho(t){const e=new on(t),n=Ls(on.prototype.request,e);return k.extend(n,on.prototype,e,{allOwnKeys:!0}),k.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return ho(Yt(t,i))},n}const N=ho(li);N.Axios=on,N.CanceledError=xe,N.CancelToken=id,N.isCancel=eo,N.VERSION=lo,N.toFormData=en,N.AxiosError=L,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=rd,N.isAxiosError=sd,N.mergeConfig=Yt,N.AxiosHeaders=ct,N.formToJSON=t=>Qs(k.isHTMLForm(t)?new FormData(t):t),N.getAdapter=so.getAdapter,N.HttpStatusCode=od,N.default=N;var mi=function(t,e){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},mi(t,e)};function bt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mi(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function wi(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Se(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function ht(t){return typeof t=="function"}function yi(t){var e=function(i){Error.call(i),i.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var vi=yi(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
16
|
+
`+e.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
17
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function an(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ke=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=wi(o),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else o.remove(this);var f=this.initialTeardown;if(ht(f))try{f()}catch(p){s=p instanceof vi?p.errors:[p]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=wi(u),h=d.next();!h.done;h=d.next()){var _=h.value;try{_o(_)}catch(p){s=s??[],p instanceof vi?s=Se(Se([],Ee(s)),Ee(p.errors)):s.push(p)}}}catch(p){i={error:p}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new vi(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)_o(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&an(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&an(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),fo=ke.EMPTY;function uo(t){return t instanceof ke||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function _o(t){ht(t)?t():t.unsubscribe()}var go={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ad={setTimeout:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,Se([t,e],Ee(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function ld(t){ad.setTimeout(function(){throw t})}function po(){}function ln(t){t()}var bi=function(t){bt(e,t);function e(n){var i=t.call(this)||this;return i.isStopped=!1,n?(i.destination=n,uo(n)&&n.add(i)):i.destination=ud,i}return e.create=function(n,i,r){return new Ei(n,i,r)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ke),cd=Function.prototype.bind;function xi(t,e){return cd.call(t,e)}var hd=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(i){cn(i)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(i){cn(i)}else cn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){cn(n)}},t}(),Ei=function(t){bt(e,t);function e(n,i,r){var s=t.call(this)||this,o;if(ht(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&go.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&xi(n.next,a),error:n.error&&xi(n.error,a),complete:n.complete&&xi(n.complete,a)}):o=n}return s.destination=new hd(o),s}return e}(bi);function cn(t){ld(t)}function fd(t){throw t}var ud={closed:!0,next:po,error:fd,complete:po},dd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _d(t){return t}function gd(t){return t.length===0?_d:t.length===1?t[0]:function(e){return t.reduce(function(n,i){return i(n)},e)}}var mo=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,i){var r=this,s=md(e)?e:new Ei(e,n,i);return ln(function(){var o=r,a=o.operator,c=o.source;s.add(a?a.call(s,c):c?r._subscribe(s):r._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var i=this;return n=wo(n),new n(function(r,s){var o=new Ei({next:function(a){try{e(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[dd]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return gd(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=wo(e),new e(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},t.create=function(e){return new t(e)},t}();function wo(t){var e;return(e=t??go.Promise)!==null&&e!==void 0?e:Promise}function pd(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}function md(t){return t&&t instanceof bi||pd(t)&&uo(t)}(function(t){bt(e,t);function e(n,i,r,s,o,a){var c=t.call(this,n)||this;return c.onFinalize=o,c.shouldUnsubscribe=a,c._next=i?function(l){try{i(l)}catch(f){n.error(f)}}:t.prototype._next,c._error=s?function(l){try{s(l)}catch(f){n.error(f)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(l){n.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(bi);var wd=yi(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yd=function(t){bt(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var i=new yo(this,this);return i.operator=n,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new wd},e.prototype.next=function(n){var i=this;ln(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=wi(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(n)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(n){var i=this;ln(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},e.prototype.complete=function(){var n=this;ln(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?fo:(this.currentObservers=null,a.push(n),new ke(function(){i.currentObservers=null,an(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},e.prototype.asObservable=function(){var n=new mo;return n.source=this,n},e.create=function(n,i){return new yo(n,i)},e}(mo),yo=function(t){bt(e,t);function e(n,i){var r=t.call(this)||this;return r.destination=n,r.source=i,r}return e.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},e.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},e.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},e.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:fo},e}(yd),vd={now:function(){return Date.now()},delegate:void 0},bd=function(t){bt(e,t);function e(n,i){return t.call(this)||this}return e.prototype.schedule=function(n,i){return this},e}(ke),Si={setInterval:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Si.delegate;return r?.setInterval?r.setInterval.apply(r,Se([t,e],Ee(n))):setInterval.apply(void 0,Se([t,e],Ee(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},xd=function(t){bt(e,t);function e(n,i){var r=t.call(this,n,i)||this;return r.scheduler=n,r.work=i,r.pending=!1,r}return e.prototype.schedule=function(n,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=n;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,i),this},e.prototype.requestAsyncId=function(n,i,r){return r===void 0&&(r=0),Si.setInterval(n.flush.bind(n,this),r)},e.prototype.recycleAsyncId=function(n,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&Si.clearInterval(i)},e.prototype.execute=function(n,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,i){var r=!1,s;try{this.work(n)}catch(o){r=!0,s=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,i=n.id,r=n.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,an(s,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(bd),vo=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,i){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(i,n)},t.now=vd.now,t}(),Ed=function(t){bt(e,t);function e(n,i){i===void 0&&(i=vo.now);var r=t.call(this,n,i)||this;return r.actions=[],r._active=!1,r}return e.prototype.flush=function(n){var i=this.actions;if(this._active){i.push(n);return}var r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=i.shift());if(this._active=!1,r){for(;n=i.shift();)n.unsubscribe();throw r}},e}(vo);new Ed(xd);function Sd(t){switch(t.responseType){case"json":{if("response"in t)return t.response;var e=t;return JSON.parse(e.responseText)}case"document":return t.responseXML;case"text":default:{if("response"in t)return t.response;var e=t;return e.responseText}}}var bo=yi(function(t){return function(e,n,i){this.message=e,this.name="AjaxError",this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType;var r;try{r=Sd(n)}catch{r=n.responseText}this.response=r}});(function(){function t(e,n){return bo.call(this,"ajax timeout",e,n),this.name="AjaxTimeoutError",this}return t.prototype=Object.create(bo.prototype),t})();const kd=t=>t*Math.PI/180,Td=t=>t*180/Math.PI,xo=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},Ad=function(t,e){return{x:t.x+(e.x-t.x)/2,y:t.y+(e.y-t.y)/2}},ki=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.atan2(i,n)},Ti=(t,e)=>({x:Math.cos(e)*t,y:Math.sin(e)*t}),Eo=(t,e=0,n=0)=>{if(t.vx+=t.ax??0,t.vy+=t.ay??0,t.vy+=e,n>0){const i=Math.atan2(t.vy,t.vx);let r=Math.sqrt(t.vx*t.vx+t.vy*t.vy);r>n?r-=n:r=0,t.vx=Math.cos(i)*r,t.vy=Math.sin(i)*r}t.x+=t.vx,t.y+=t.vy},Cd=(t,e,n=.05,i=1,r=0)=>{const s=e.x-t.x,o=e.y-t.y;t.vx=s*n,t.vy=o*n,t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},So=(t,e,n=.03,i=.95,r=0)=>{(zf(e)?e:[e]).forEach(o=>{const a=o.x-t.x,c=o.y-t.y,l=a*n,f=c*n;t.vx+=l,t.vy+=f}),t.vy+=r,t.vx*=i,t.vy*=i,t.x+=t.vx,t.y+=t.vy},Id=(t,e,n=100,i=.03,r=.95,s=0)=>{const o=ki(t,e),a={x:e.x-Math.cos(o)*n,y:e.y-Math.sin(o)*n};So(t,a,i,r,s)};function Dd(t,e){return{vx:e.x-t.x,vy:e.y-t.y}}const Pd=function(t,e){return!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y)},ko=function(t,e){return!(e.x<t.x||e.x>t.x+t.width||e.y<t.y||e.y>t.y+t.height)},Rd=(t,e)=>{const n=e.x,i=e.y,r=t.length;let s=!1;const o=2e-10;for(let a=0,c=r-1;a<r;c=a,a++){const l=t[a].x,f=t[a].y,u=t[c].x,d=t[c].y;if(l===n&&f===i||u===n&&d===i||i===f&&i===d)return!0;if(i>=f&&i<d||i<f&&i>=d){const h=(u-l)/(d-f),_=l+h*(i-f);if(_===n||Math.abs(_-n)<o)return!0;_>n&&(s=!s)}}return s};function xt(t,e,n,i,r=!1){return{x:r?t*i+e*n:t*i-e*n,y:r?e*i-t*n:e*i+t*n}}function Md(t,e){const n=e.x-t.x,i=e.y-t.y;if(Math.sqrt(n*n+i*i)<t.radius+e.radius){const s=Math.atan2(i,n),o=Math.sin(s),a=Math.cos(s),c={x:0,y:0},l=xt(n,i,o,a,!0),f=xt(t.vx,t.vy,o,a,!0),u=xt(e.vx,e.vy,o,a,!0),d=f.x-u.x;f.x=((t.mass-e.mass)*f.x+2*e.mass*u.x)/(t.mass+e.mass),u.x=d+f.x;const h=Math.abs(f.x)+Math.abs(u.x),_=t.radius+e.radius-Math.abs(c.x-l.x);c.x+=f.x/h*_,l.x+=u.x/h*_;const p=xt(c.x,c.y,o,a,!1),g=xt(l.x,l.y,o,a,!1);e.x=t.x+g.x,e.y=t.y+g.y,t.x=t.x+p.x,t.y=t.y+p.y;const m=xt(f.x,f.y,o,a,!1),y=xt(u.x,u.y,o,a,!1);t.vx=m.x,t.vy=m.y,e.vx=y.x,e.vy=y.y}}function Ld(t,e=0,n=0,i,r,s=-1){t.x+t.radius>i?(t.x=i-t.radius,t.vx*=s):t.x-t.radius<e&&(t.x=e+t.radius,t.vx*=s),t.y+t.radius>r?(t.y=r-t.radius,t.vy*=s):t.y-t.radius<n&&(t.y=n+t.radius,t.vy*=s)}const Od=t=>/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(t),Ud=()=>Math.random()*16777215,Fd=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,zd=()=>`#${(~~(Math.random()*(1<<24))).toString(16)}`,st=function(t,e){return e===!0?typeof t=="number"?t|0:(typeof t=="string"&&t[0]==="#"&&(t=t.slice(1)),window.parseInt(t,16)):(typeof t=="number"&&(t="00000"+(t|0).toString(16),t="#"+t.substring(t.length-6)),t)},Ai=function(t,e){typeof t=="string"&&t[0]==="#"&&(t=window.parseInt(t.slice(1),16)),e=e===void 0?1:e;const n=t>>16&255,i=t>>8&255,r=t&255,s=e<0?0:e>1?1:e;return s===1?"rgb("+n+","+i+","+r+")":"rgba("+n+","+i+","+r+","+s+")"},Bd=t=>{const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);return n?"#"+((1<<24)+(parseInt(n[1])<<16)+(parseInt(n[2])<<8)+parseInt(n[3])).toString(16).slice(1):""},To=function(){const t={code:""},e=n=>{t.code=n.code.toLowerCase()};return window.addEventListener("keydown",e,!1),t},Ci=function(t){const e={x:0,y:0,isDown:!1},n=s=>{e.isDown=!0,document.addEventListener("mouseup",i,!1),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=s=>{e.isDown=!1,e.x=0,e.y=0,document.removeEventListener("mouseup",i,!1),t.style.userSelect="",t.style.webkitUserSelect=""},r=s=>{const o=Me(t,s);e.x=o.x,e.y=o.y};return t.addEventListener("mousedown",n,!1),document.addEventListener("mousemove",r,!1),e},Nd=function(t){const e={x:0,y:0,isDown:!1},n=s=>{s.preventDefault(),e.isDown=!0},i=s=>{e.isDown=!1,e.x=0,e.y=0},r=s=>{const o=s.changedTouches[0],a=Me(t,o);e.x=a.x,e.y=a.y};return t.addEventListener("touchstart",n,!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1),t.addEventListener("touchmove",r,!1),e},jd=function(t){const e={x:0,y:0,isDown:!1},n=s=>{e.isDown=!0,t.setPointerCapture(s.pointerId),t.style.userSelect="none",t.style.webkitUserSelect="none"},i=s=>{e.isDown=!1,e.x=0,e.y=0,t.style.userSelect="",t.style.webkitUserSelect=""},r=s=>{const a=Me(t,s);e.x=a.x,e.y=a.y};return t.addEventListener("pointerdown",n,!1),t.addEventListener("pointerup",i,!1),t.addEventListener("pointercancel",i,!1),t.addEventListener("pointermove",r,!1),e};class ft{m;constructor(e=[1,0,0,1,0,0]){this.m=[e[0],e[1],e[2],e[3],e[4],e[5]]}unit(){return this.m=[1,0,0,1,0,0],this}multiply(e){const n=this.m;let i;e instanceof ft?i=e.m:i=e;const r=n[0]*i[0]+n[2]*i[1],s=n[1]*i[0]+n[3]*i[1],o=n[0]*i[2]+n[2]*i[3],a=n[1]*i[2]+n[3]*i[3],c=n[0]*i[4]+n[2]*i[5]+n[4],l=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=c,n[5]=l,this}inverse(){const e=new ft(this.m),n=e.m,i=1/(n[0]*n[3]-n[1]*n[2]),r=n[3]*i,s=-n[1]*i,o=-n[2]*i,a=n[0]*i,c=i*(n[2]*n[5]-n[3]*n[4]),l=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=c,n[5]=l,e}translate(e,n){return this.multiply([1,0,0,1,e,n])}rotate(e){const n=e*Math.PI/180,i=Math.cos(n),r=Math.sin(n);return this.multiply([i,r,-r,i,0,0])}skew(e,n=0){const i=e*Math.PI/180,r=n*Math.PI/180,s=Math.tan(i),o=Math.tan(r);return this.multiply([1,o,s,1,0,0])}scale(e,n){return this.multiply([e,0,0,n,0,0])}transformPoint(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2]+this.m[4],n=i*this.m[1]+r*this.m[3]+this.m[5],[e,n]}transformVector(e,n){const i=e,r=n;return e=i*this.m[0]+r*this.m[2],n=i*this.m[1]+r*this.m[3],[e,n]}}class hn{x;y;z;constructor(e=[0,0,0],n=[0,0,0]){const[i,r,s]=e,[o,a,c]=n;this.x=i-o,this.y=r-a,this.z=s-c}get length(){const{x:e,y:n,z:i}=this;return Math.sqrt(e*e+n*n+i*i)}unit(){const e=this.length;return new hn([this.x/e,this.y/e,this.z/e])}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}cross(e){const n=this.x,i=this.y,r=this.z,s=e.x,o=e.y,a=e.z;return new hn([i*a-r*o,r*s-n*a,n*o-s*i])}}const Wt={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-Wt.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?Wt.Bounce.In(t*2)*.5:Wt.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}}};let Te;typeof self>"u"&&typeof process<"u"&&process.hrtime?Te=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Te=self.performance.now.bind(self.performance):Date.now!==void 0?Te=Date.now:Te=function(){return new Date().getTime()};const Kt=Te;class Ao{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Kt(),n=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const s=this._tweens[i[r]],o=!n;s&&s.update(e,o)===!1&&!n&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Lt={Linear:function(t,e){const n=t.length-1,i=n*e,r=Math.floor(i),s=Lt.Utils.Linear;return e<0?s(t[0],t[1],i):e>1?s(t[n],t[n-1],n-i):s(t[r],t[r+1>n?n:r+1],i-r)},Bezier:function(t,e){let n=0;const i=t.length-1,r=Math.pow,s=Lt.Utils.Bernstein;for(let o=0;o<=i;o++)n+=r(1-e,i-o)*r(e,o)*t[o]*s(i,o);return n},CatmullRom:function(t,e){const n=t.length-1;let i=n*e,r=Math.floor(i);const s=Lt.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(r=Math.floor(i=n*(1+e))),s(t[(r-1+n)%n],t[r],t[(r+1)%n],t[(r+2)%n],i-r)):e<0?t[0]-(s(t[0],t[0],t[1],t[1],-i)-t[0]):e>1?t[n]-(s(t[n],t[n],t[n-1],t[n-1],i-n)-t[n]):s(t[r?r-1:0],t[r],t[n<r+1?n:r+1],t[n<r+2?n:r+2],i-r)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let i=e;i>1;i--)n*=i;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Lt.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,i,r){const s=(n-t)*.5,o=(i-e)*.5,a=r*r,c=r*a;return(2*e-2*n+s+o)*c+(-3*e+3*n-2*s-o)*a+s*r+e}}};class Ae{static _nextId=0;static nextId(){return Ae._nextId++}}const K=new Ao;class Hd{constructor(e,n=K){this._object=e,this._group=n}_id=Ae.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Wt.Linear.None;_interpolationFunction=Lt.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=Kt()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,n,i,r){for(const s in i){const o=e[s],a=Array.isArray(o),c=a?"array":typeof o,l=!a&&Array.isArray(i[s]);if(!(c==="undefined"||c==="function")){if(l){let f=i[s];if(f.length===0)continue;f=f.map(this._handleRelativeValue.bind(this,o)),i[s]=[o].concat(f)}if((c==="object"||a)&&o&&!l){n[s]=a?[]:{};for(const f in o)n[s][f]=o[f];r[s]=a?[]:{},this._setupProperties(o,n[s],i[s],r[s])}else typeof n[s]>"u"&&(n[s]=o),a||(n[s]*=1),l?r[s]=i[s].slice().reverse():r[s]=n[s]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Kt()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Kt()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=K){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=Wt.Linear.None){return this._easingFunction=e,this}interpolation(e=Lt.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Kt(),n=!0){if(this._isPaused)return!0;let i,r;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>s)return!1;n&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(e-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,n,i,r){for(const s in i){if(n[s]===void 0)continue;const o=n[s]||0;let a=i[s];const c=Array.isArray(e[s]),l=Array.isArray(a);!c&&l?e[s]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(e[s],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[s]=o+(a-o)*r))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=this._valuesStartRepeat[e],i=this._valuesEnd[e];typeof i=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(i):this._valuesStartRepeat[e]=i,this._valuesEnd[e]=n}}const qd=Ae.nextId,Zd=K.getAll.bind(K),Gd=K.removeAll.bind(K),Xd=K.add.bind(K),$d=K.remove.bind(K),Vd=K.update.bind(K),Yd={Easing:Wt,Group:Ao,Interpolation:Lt,now:Kt,Sequence:Ae,nextId:qd,Tween:Hd,getAll:Zd,removeAll:Gd,add:Xd,remove:$d,update:Vd};function Co(t){const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function Wd(t,e){const n=Co(t),{x:i,y:r}=n.getPointAtLength(e);return[i,r]}function Kd(t,e){return Co(t).getTotalLength(e)}let J=null;function Jd({d:t},e,n){J||(J=document.createElement("canvas").getContext("2d"));const i=new Path2D(t);return J.isPointInPath(i,e,n)}function Io({d:t},e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(J||(J=document.createElement("canvas").getContext("2d")),J.isPointInStroke){J.save(),J.lineWidth=i,J.lineCap=r,J.lineJoin=s;const o=new Path2D(t),a=J.isPointInStroke(o,e,n);return J.restore(),a}}var Ii={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Qd=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function t0(t){var e=[];return t.replace(Qd,function(n,i,r){var s=i.toLowerCase();for(r=n0(r),s=="m"&&r.length>2&&(e.push([i].concat(r.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(r.length==Ii[s])return r.unshift(i),e.push(r);if(r.length<Ii[s])throw new Error("malformed path data");e.push([i].concat(r.splice(0,Ii[s])))}}),e}var e0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function n0(t){var e=t.match(e0);return e?e.map(Number):[]}function i0(t){var e=0,n=0,i=0,r=0;return t.map(function(s){s=s.slice();var o=s[0],a=o.toUpperCase();if(o!=a)switch(s[0]=a,o){case"a":s[6]+=i,s[7]+=r;break;case"v":s[1]+=r;break;case"h":s[1]+=i;break;default:for(var c=1;c<s.length;)s[c++]+=i,s[c++]+=r}switch(a){case"Z":i=e,r=n;break;case"H":i=s[1];break;case"V":r=s[1];break;case"M":i=e=s[1],r=n=s[2];break;default:i=s[s.length-2],r=s[s.length-1]}return s})}const Ce=Math.PI*2;function Do(t,e,n,i){const r=t*i-e*n<0?-1:1;let s=t*n+e*i;return s>1&&(s=1),s<-1&&(s=-1),r*Math.acos(s)}function r0(t,e,n,i,r,s,o,a,c,l){const f=l*(t-n)/2+c*(e-i)/2,u=-c*(t-n)/2+l*(e-i)/2,d=o*o,h=a*a,_=f*f,p=u*u;let g=d*h-d*p-h*_;g<0&&(g=0),g/=d*p+h*_,g=Math.sqrt(g)*(r===s?-1:1);const m=g*o/a*u,y=g*-a/o*f,b=l*m-c*y+(t+n)/2,v=c*m+l*y+(e+i)/2,E=(f-m)/o,x=(u-y)/a,S=(-f-m)/o,C=(-u-y)/a,T=Do(1,0,E,x);let A=Do(E,x,S,C);return s===0&&A>0&&(A-=Ce),s===1&&A<0&&(A+=Ce),[b,v,T,A]}function s0(t,e){const n=1.3333333333333333*Math.tan(e/4),i=Math.cos(t),r=Math.sin(t),s=Math.cos(t+e),o=Math.sin(t+e);return[i,r,i-r*n,r+i*n,s+o*n,o-s*n,s,o]}function o0(t,e,n,i,r,s,o,a,c){const l=Math.sin(c*Ce/360),f=Math.cos(c*Ce/360),u=f*(t-n)/2+l*(e-i)/2,d=-l*(t-n)/2+f*(e-i)/2;if(u===0&&d===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const h=u*u/(o*o)+d*d/(a*a);h>1&&(o*=Math.sqrt(h),a*=Math.sqrt(h));const _=r0(t,e,n,i,r,s,o,a,l,f),p=[];let g=_[2],m=_[3];const y=Math.max(Math.ceil(Math.abs(m)/(Ce/4)),1);m/=y;for(let b=0;b<y;b++)p.push(s0(g,m)),g+=m;return p.map(b=>{for(let v=0;v<b.length;v+=2){let E=b[v+0],x=b[v+1];E*=o,x*=a;const S=f*E-l*x,C=l*E+f*x;b[v+0]=S+_[0],b[v+1]=C+_[1]}return b})}function a0(t){for(var e,n=[],i=0,r=0,s=0,o=0,a=null,c=null,l=0,f=0,u=0,d=t.length;u<d;u++){var h=t[u],_=h[0];switch(_){case"M":s=h[1],o=h[2];break;case"A":var p=o0(l,f,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!p.length)continue;p=p.map(v=>{const[E,x,S,C,T,A,D,P]=v;return{x1:S,y1:C,x2:T,y2:A,x:D,y:P}});for(var g=0,m;g<p.length;g++)m=p[g],h=["C",m.x1,m.y1,m.x2,m.y2,m.x,m.y],g<p.length-1&&n.push(h);break;case"S":var y=l,b=f;(e=="C"||e=="S")&&(y+=y-i,b+=b-r),h=["C",y,b,h[1],h[2],h[3],h[4]];break;case"T":e=="Q"||e=="T"?(a=l*2-a,c=f*2-c):(a=l,c=f),h=Po(l,f,a,c,h[1],h[2]);break;case"Q":a=h[1],c=h[2],h=Po(l,f,h[1],h[2],h[3],h[4]);break;case"L":h=fn(l,f,h[1],h[2]);break;case"H":h=fn(l,f,h[1],f);break;case"V":h=fn(l,f,l,h[1]);break;case"Z":h=fn(l,f,s,o);break}e=_,l=h[h.length-2],f=h[h.length-1],h.length>4?(i=h[h.length-4],r=h[h.length-3]):(i=l,r=f),n.push(h)}return n}function fn(t,e,n,i){return["C",t,e,n,i,n,i]}function Po(t,e,n,i,r,s){return["C",t/3+.6666666666666666*n,e/3+.6666666666666666*i,r/3+.6666666666666666*n,s/3+.6666666666666666*i,r,s]}function l0(t){return typeof t!="string"?!1:(t=t.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4)}const un=Symbol("initialPath"),ut=Symbol("path"),Et=Symbol("bounds"),dn=Symbol("savedPaths"),dt=Symbol("renderProps"),Di=Symbol("beginPath");class c0{constructor(e){if(!l0(e))throw new Error("Not an SVG path!");this[un]=i0(t0(e)),this[ut]=a0(this[un]),this[Et]=null,this[dn]=[],this[dt]={},this[Di]=!1}save(){return this[dn].push({path:this[ut],bounds:this[Et],renderProps:Object.assign({},this[dt])}),this}restore(){if(this[dn].length){const{path:e,bounds:n,renderProps:i}=this[dn].pop();this[ut]=e,this[Et]=n,this[dt]=i}return this}get bounds(){if(!this[Et]){const e=this[ut];if(this[Et]=[0,0,0,0],e.length){const n=[1/0,1/0,-1/0,-1/0];for(let i=0,r=e.length;i<r;i++){const s=e[i].slice(1);for(let o=0;o<s.length;o+=2)s[o+0]<n[0]&&(n[0]=s[o+0]),s[o+1]<n[1]&&(n[1]=s[o+1]),s[o+0]>n[2]&&(n[2]=s[o+0]),s[o+1]>n[3]&&(n[3]=s[o+1])}this[Et]=n}}return this[Et]}get size(){const e=this.bounds;return[e[2]-e[0],e[3]-e[1]]}get center(){const[e,n,i,r]=this.bounds;return[(e+i)/2,(n+r)/2]}get d(){let e=this[ut].map(n=>{const[i,...r]=n;return i+r.join()}).join("");return this.isClosed&&(e+="Z"),e}get path(){return this[ut]}get isClosed(){const e=this[un][this[un].length-1];return e&&e[0]==="Z"}isPointInPath(e,n){return Jd(this,e,n)}isPointInStroke(e,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(Io)return Io(this,e,n,{lineWidth:i,lineCap:r,lineJoin:s})}getPointAtLength(e){return Wd(this.d,e)}getTotalLength(){return Kd(this.d)}transform(...e){this[Et]=null;const n=new ft(e),i=this[ut];return this[ut]=i.map(r=>{const[s,...o]=r,a=[s];for(let c=0;c<o.length;c+=2){const l=o[c],f=o[c+1],[u,d]=n.transformPoint(l,f);a.push(u,d)}return a}),this}translate(e,n){const i=new ft().translate(e,n);return this.transform(...i.m)}rotate(e){const n=new ft().rotate(e);return this.transform(...n.m)}scale(e,n){n==null&&(n=e);const i=new ft().scale(e,n);return this.transform(...i.m)}skew(e,n){const i=new ft().skew(e,n);return this.transform(...i.m)}trim(){const[e,n]=this.bounds;return this.translate(-e,-n),this}beginPath(){return this[Di]=!0,this}toCanvas(e){const n=this[ut],i=this[dt];return n.length&&(this[Di]&&e.beginPath(),n.forEach(r=>{const[s,...o]=r;s==="M"?e.moveTo(...o):e.bezierCurveTo(...o)}),this.isClosed&&e.closePath()),Object.assign(e,i),{stroke(){return e.stroke(),this},fill(){return e.fill(),this}}}strokeStyle(e){return this[dt].strokeStyle=e,this}fillStyle(e){return this[dt].fillStyle=e,this}lineWidth(e){return this[dt].lineWidth=e,this}lineCap(e){return this[dt].lineCap=e,this}lineJoin(e){return this[dt].lineJoin=e,this}}const Ro=h0("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function h0(t,e=10){const n={},i=t.split(",");for(let r=0;r<i.length;r+=2){const s="&"+i[r+1]+";",o=parseInt(i[r],e);n[s]="&#"+o+";"}return n["\\xa0"]=" ",n}function Z(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t=t.replace(new RegExp("{"+n[i]+"}","gi"),""+e[n[i]]);return t}function _n(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const i="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=i[Math.floor(Math.random()*i.length)];while(t[e]);return e}function f0(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function u0(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const Ie={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Pi{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const i=this.__ctx.__createElement("stop");if(i.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const s=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);s&&(i.setAttribute("stop-color",Z("rgb({r},{g},{b})",{r:s[1],g:s[2],b:s[3]})),i.setAttribute("stop-opacity",s[4]))}else i.setAttribute("stop-color",n);this.__root.appendChild(i)}}class Mo{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class gn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:i=500,enableMirroring:r=!1}){this.enableMirroring=r,e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=n,this.height=i),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Ie);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=Ie[r].canvas}}__getStyleState(){const e={},n=Object.keys(Ie);for(let i=0,r=n.length;i<r;i++){const s=n[i];e[s]=this[s]}return e}__applyStyleState(e){const n=Object.keys(e);for(let i=0,r=n.length;i<r;i++){const s=n[i];this[s]=e[s]}}__createElement(e,n={},i=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",e),s=Object.keys(n);i&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<s.length;o++){const a=s[o];r.setAttribute(a,n[a])}return r}__applyStyleToCurrentElement(e){let n=this.__currentElement;const i=this.__currentElementsToStyle;i&&(n.setAttribute(e,""),n=i.element,i.children.forEach(s=>{s.setAttribute(e,"")}));const r=Object.keys(Ie);for(let s=0;s<r.length;s++){const o=Ie[r[s]],a=this[r[s]];if(o.apply){if(a instanceof Mo){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Pi)n.setAttribute(o.apply,Z("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(o.svgAttr,Z("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let f=parseFloat(l[4]);const u=this.globalAlpha;u!=null&&(f*=u),n.setAttribute(o.svgAttr+"-opacity",""+f)}else{let c=o.svgAttr;if(r[s]==="globalAlpha"&&(c=e+"-"+o.svgAttr,n.getAttribute(c)))continue;c&&n.setAttribute(c,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const r=Object.keys(Ro);for(let s=0,o=r.length;s<o;s++){const a=r[s],c=Ro[a],l=new RegExp(a,"gi");l.test(n)&&(n=n.replace(l,c))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const r=this.__createElement("g");n.appendChild(r),this.__currentElement=r}let i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=e,this.__currentElement.setAttribute("transform",i)}scale(e,n){n===void 0&&(n=e),this.__addTransform(Z("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(Z("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(Z("translate({x},{y})",{x:e,y:n}))}transform(e,n,i,r,s,o){this.__addTransform(Z("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:i,d:r,e:s,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"?e.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",e.nodeName)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Z("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Z("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,i,r,s,o){this.__currentPosition={x:s,y:o},this.__addPathCommand(Z("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:i,cp2y:r,x:s,y:o}))}quadraticCurveTo(e,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(Z("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:i,y:r}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,i,r,s){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===e&&a===n||e===i&&n===r||s===0){this.lineTo(e,n);return}const c=this.normalize([o-e,a-n]),l=this.normalize([i-e,r-n]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(e,n);return}const f=c[0]*l[0]+c[1]*l[1],u=Math.acos(Math.abs(f)),d=this.normalize([c[0]+l[0],c[1]+l[1]]),h=s/Math.sin(u/2),_=e+h*d[0],p=n+h*d[1],g=[-c[1],c[0]],m=[l[1],-l[0]],y=function(E){const x=E[0];return E[1]>=0?Math.acos(x):-Math.acos(x)},b=y(g),v=y(m);this.lineTo(_+g[0]*s,p+g[1]*s),this.arc(_,p,s,b,v)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,n,i,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+i,n),this.lineTo(e+i,n+r),this.lineTo(e,n+r),this.lineTo(e,n),this.closePath()}fillRect(e,n,i,r){const s=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,i,r){const s=this.__createElement("rect",{x:e,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),i=this.__rootSVG.childNodes[1],r=i.childNodes;for(let s=r.length-1;s>=0;s--)r[s]&&i.removeChild(r[s]);this.__currentElement=i,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,i,r){if(e===0&&n===0&&i===this.width&&r===this.height){this.__clearCanvas();return}const s=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:n,width:i,height:r,fill:"#FFFFFF"},!0);s.appendChild(o)}createLinearGradient(e,n,i,r){const s=this.__createElement("linearGradient",{id:_n(this.__ids),x1:e+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new Pi(s,this)}createRadialGradient(e,n,i,r,s,o){const a=this.__createElement("radialGradient",{id:_n(this.__ids),cx:r+"px",cy:s+"px",r:o+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Pi(a,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),i={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(i.decoration="underline"),this.__fontHref&&(i.href=this.__fontHref),i}__wrapTextLink(e,n){if(e.href){const i=this.__createElement("a");return i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),i.appendChild(n),i}return n}__applyText(e,n,i,r){const s=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":s.family,"font-size":s.size,"font-style":s.style,"font-weight":s.weight,"text-decoration":s.decoration,x:n,y:i,"text-anchor":f0(this.textAlign),"dominant-baseline":u0(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(s,a))}fillText(e,n,i){this.__applyText(e,n,i,"fill")}strokeText(e,n,i){this.__applyText(e,n,i,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,i,r,s,o){if(r===s)return;r=r%(2*Math.PI),s=s%(2*Math.PI),r===s&&(s=(s+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+i*Math.cos(s),c=n+i*Math.sin(s),l=e+i*Math.cos(r),f=n+i*Math.sin(r),u=o?0:1;let d=0,h=s-r;h<0&&(h+=2*Math.PI),o?d=h>Math.PI?0:1:d=h>Math.PI?1:0,this.lineTo(l,f),this.__addPathCommand(Z("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:d,sweepFlag:u,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const e=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=_n(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",i),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",Z("url(#{id})",{id:i})),e.appendChild(r),this.__currentElement=r}drawImage(...e){let n=e[0],i,r,s,o,a=0,c=0,l,f,u,d,h,_,p,g;if(e.length===3)i=e[1],r=e[2],l=n.width,f=n.height,s=l,o=f;else if(e.length===5)i=e[1],r=e[2],s=e[3],o=e[4],l=n.width,f=n.height;else if(e.length===9)a=e[1],c=e[2],l=e[3],f=e[4],i=e[5],r=e[6],s=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const m=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+i+", "+r+")";if(n instanceof gn){if(u=n.getSvg().cloneNode(!0),u.childNodes&&u.childNodes.length>1){for(d=u.childNodes[0];d.childNodes.length;)g=d.childNodes[0].getAttribute("id"),this.__ids[g]=g,this.__SVGdefs.appendChild(d.childNodes[0]);if(h=u.childNodes[1],h){const b=h.getAttribute("transform");let v;b?v=b+" "+y:v=y,h.setAttribute("transform",v),m.appendChild(h)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(_=this.__createElement("image"),_.setAttribute("width",s),_.setAttribute("height",o),_.setAttribute("preserveAspectRatio","none"),(a||c||l!==n.width||f!==n.height)&&(p=this.__document.createElement("canvas"),p.width=s,p.height=o,p.getContext("2d")?.drawImage(n,a,c,l,f,0,0,s,o),n=p),_.setAttribute("transform",y),_.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),m.appendChild(_))}createPattern(e,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=_n(this.__ids);let s;return i.setAttribute("id",r),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(s=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),i.appendChild(s),this.__SVGdefs.appendChild(i)):e instanceof gn&&(i.setAttribute("width",""+e.width),i.setAttribute("height",""+e.height),i.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new Mo(i,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}const d0=gn,_0=function(t,e,n,i,r,s){t.beginPath(),t.moveTo(e,n+s),t.lineTo(e,n+r-s),t.quadraticCurveTo(e,n+r,e+s,n+r),t.lineTo(e+i-s,n+r),t.quadraticCurveTo(e+i,n+r,e+i,n+r-s),t.lineTo(e+i,n+s),t.quadraticCurveTo(e+i,n,e+i-s,n),t.lineTo(e+s,n),t.quadraticCurveTo(e,n,e,n+s),t.stroke()},g0=function(t,e,n,i){var r=e-i,s=0,o=1;t.beginPath(),t.moveTo(r,s);do{if(o>2e4)break;var a=(e+n)*Math.cos(o*Math.PI/72)-(n+i)*Math.cos((e+n)/n*(o*Math.PI/72)),c=(e+n)*Math.sin(o*Math.PI/72)-(n+i)*Math.sin((e+n)/n*(o*Math.PI/72));t.lineTo(a,c),r=a,s=c,o++}while(a!=e-i&&c!=0);t.stroke()},p0=function(t,e){t.save(),t.beginPath(),t.moveTo(e,0);for(var n=0;n<9;n++)t.rotate(Math.PI/5),n%2==0?t.lineTo(e/.525731*.200811,0):t.lineTo(e,0);t.closePath(),t.fill(),t.restore()},m0=function(t,e,n,i,r){var s=0;function o(){t.clearRect(e,n,i,r),t.setLineDash([4,2]),t.lineDashOffset=-s,t.strokeRect(e,n,i,r)}function a(){s++,s>16&&(s=0),o(),setTimeout(a,40)}a()},w0=function(t){t.beginPath(),t.arc(75,75,50,0,Math.PI*2,!0),t.moveTo(110,75),t.arc(75,75,35,0,Math.PI,!1),t.moveTo(65,65),t.arc(60,65,5,0,Math.PI*2,!0),t.moveTo(95,65),t.arc(90,65,5,0,Math.PI*2,!0),t.stroke()};class y0{constructor(e=0,n=0,i="#ffff00",r=0){this.x=e,this.y=n,this.color=i,this.rotation=r}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=2,e.fillStyle=this.color,e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath(),e.fill(),e.stroke(),e.restore()}}class v0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.radius=e,this.vx=0,this.vy=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}getBounds(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}}class b0{constructor(e=40,n="#ff0000"){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.radius=e,this.vx=0,this.vy=0,this.vz=0,this.mass=1,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(n),this.lineWidth=1,this.visible=!0}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class x0{constructor(e=50,n=50,i="#ff0000"){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=st(i),this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.rect(0,0,this.width,this.height),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore()}}class E0{constructor(e,n,i,r){this.x=e===void 0?-100:e,this.y=n===void 0?-100:n,this.z=i===void 0?-100:i,this.brightness=r===void 0?1:r}setBrightness(e){this.brightness=Math.min(Math.max(e,0),1)}}class S0{constructor(e,n,i,r){this.x=0,this.y=0,this.x1=e===void 0?0:e,this.y1=n===void 0?0:n,this.x2=i===void 0?0:i,this.y2=r===void 0?0:r,this.rotation=0,this.scaleX=1,this.scaleY=1,this.lineWidth=1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.beginPath(),e.moveTo(this.x1,this.y1),e.lineTo(this.x2,this.y2),e.closePath(),e.stroke(),e.restore()}getBounds(){if(this.rotation===0){var e=Math.min(this.x1,this.x2),n=Math.min(this.y1,this.y2),i=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:this.x+e,y:this.y+n,width:i-e,height:r-n}}else{var s=Math.sin(this.rotation),o=Math.cos(this.rotation),a=o*this.x1-s*this.y1,c=o*this.x2-s*this.y2,l=o*this.y1+s*this.x1,f=o*this.y2+s*this.x2;return{x:this.x+Math.min(a,c),y:this.y+Math.min(l,f),width:Math.max(a,c)-Math.min(a,c),height:Math.max(l,f)-Math.min(l,f)}}}}class k0{constructor(e,n,i){this.x=e===void 0?0:e,this.y=n===void 0?0:n,this.z=i===void 0?0:i,this.fl=250,this.vpX=0,this.vpY=0,this.cX=0,this.cY=0,this.cZ=0}setVanishingPoint(e,n){this.vpX=e,this.vpY=n}setCenter(e,n,i){this.cX=e,this.cY=n,this.cZ=i}rotateX(e){var n=Math.cos(e),i=Math.sin(e),r=this.y*n-this.z*i,s=this.z*n+this.y*i;this.y=r,this.z=s}rotateY(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.z*i,s=this.z*n+this.x*i;this.x=r,this.z=s}rotateZ(e){var n=Math.cos(e),i=Math.sin(e),r=this.x*n-this.y*i,s=this.y*n+this.x*i;this.x=r,this.y=s}getScreenX(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*e}getScreenY(){var e=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*e}}class T0{constructor(){this.x=0,this.y=0,this.width=25,this.height=20,this.rotation=0,this.showFlame=!1}draw(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.lineWidth=1,e.strokeStyle="#ffffff",e.beginPath(),e.moveTo(10,0),e.lineTo(-10,10),e.lineTo(-5,0),e.lineTo(-10,-10),e.lineTo(10,0),e.closePath(),e.stroke(),this.showFlame&&(e.beginPath(),e.moveTo(-7.5,-5),e.lineTo(-15,0),e.lineTo(-7.5,5),e.closePath(),e.stroke()),e.restore()}}class A0{constructor(e,n,i){this.min=e===void 0?0:e,this.max=n===void 0?100:n,this.value=i===void 0?100:i,this.onchange=null,this.x=0,this.y=0,this.width=16,this.height=100,this.backColor="#cccccc",this.backBorderColor="#999999",this.backWidth=4,this.backX=this.width/2-this.backWidth/2,this.handleColor="#eeeeee",this.handleBorderColor="#cccccc",this.handleHeight=6,this.handleY=0,this.updatePosition()}draw(e){e.save(),e.translate(this.x,this.y),e.fillStyle=this.backColor,e.beginPath(),e.fillRect(this.backX,0,this.backWidth,this.height),e.closePath(),e.strokeStyle=this.handleBorderColor,e.fillStyle=this.handleColor,e.beginPath(),e.rect(0,this.handleY,this.width,this.handleHeight),e.closePath(),e.fill(),e.stroke(),e.restore()}updateValue(){var e=this.value,n=this.height-this.handleHeight,i=this.max-this.min;this.value=(n-this.handleY)/n*i+this.min,typeof this.onchange=="function"&&this.value!==e&&this.onchange()}updatePosition(){var e=this.height-this.handleHeight,n=this.max-this.min;this.handleY=e-(this.value-this.min)/n*e}captureMouse(e){var n=this,i=Ci(e),r={};a(),e.addEventListener("mousedown",function(){ko(r,i.x,i.y)&&(e.addEventListener("mouseup",s,!1),e.addEventListener("mousemove",o,!1))},!1);function s(){e.removeEventListener("mousemove",o,!1),e.removeEventListener("mouseup",s,!1),a()}function o(){var c=i.y-n.y;n.handleY=Math.min(n.height-n.handleHeight,Math.max(c,0)),n.updateValue()}function a(){r.x=n.x,r.y=n.y+n.handleY,r.width=n.width,r.height=n.handleHeight}}}class C0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=Ai(this.color,this.alpha),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}}class I0{constructor(e,n,i,r){this.pointA=e,this.pointB=n,this.pointC=i,this.color=r===void 0?"#ff0000":st(r),this.lineWidth=1,this.alpha=1,this.light=null}draw(e){this.isBackface()||(e.save(),e.lineWidth=this.lineWidth,e.fillStyle=e.strokeStyle=this.getAdjustedColor(),e.beginPath(),e.moveTo(this.pointA.getScreenX(),this.pointA.getScreenY()),e.lineTo(this.pointB.getScreenX(),this.pointB.getScreenY()),e.lineTo(this.pointC.getScreenX(),this.pointC.getScreenY()),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.restore())}getDepth(){return Math.min(this.pointA.z,this.pointB.z,this.pointC.z)}isBackface(){var e=this.pointC.getScreenX()-this.pointA.getScreenX(),n=this.pointC.getScreenY()-this.pointA.getScreenY(),i=this.pointB.getScreenX()-this.pointC.getScreenX(),r=this.pointB.getScreenY()-this.pointC.getScreenY();return e*r>n*i}getAdjustedColor(){var e=st(this.color,!0),n=e>>16,i=e>>8&255,r=e&255,s=this.getLightFactor();return n*=s,i*=s,r*=s,st(n<<16|i<<8|r)}getLightFactor(){var e={x:this.pointA.x-this.pointB.x,y:this.pointA.y-this.pointB.y,z:this.pointA.z-this.pointB.z},n={x:this.pointB.x-this.pointC.x,y:this.pointB.y-this.pointC.y,z:this.pointB.z-this.pointC.z},i={x:e.y*n.z-e.z*n.y,y:-(e.x*n.z-e.z*n.x),z:e.x*n.y-e.y*n.x},r=i.x*this.light.x+i.y*this.light.y+i.z*this.light.z,s=Math.sqrt(i.x*i.x+i.y*i.y+i.z*i.z),o=Math.sqrt(this.light.x*this.light.x+this.light.y*this.light.y+this.light.z*this.light.z);return Math.acos(r/(s*o))/Math.PI*this.light.brightness}}class D0{constructor(){this.x=0,this.y=0,this.xpos=0,this.ypos=0,this.zpos=0,this.scaleX=1,this.scaleY=1,this.color="#ffffff",this.alpha=1,this.lineWidth=1,this.branch=[],this.branch[0]=-140-Math.random()*20,this.branch[1]=-30-Math.random()*30,this.branch[2]=Math.random()*80-40,this.branch[3]=-100-Math.random()*40,this.branch[4]=-60-Math.random()*40,this.branch[5]=Math.random()*60-30,this.branch[6]=-110-Math.random()*20}draw(e){e.save(),e.translate(this.x,this.y),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.strokeStyle=Ai(this.color,this.alpha),e.beginPath(),e.moveTo(0,0),e.lineTo(0,this.branch[0]),e.moveTo(0,this.branch[1]),e.lineTo(this.branch[2],this.branch[3]),e.moveTo(0,this.branch[4]),e.lineTo(this.branch[5],this.branch[6]),e.stroke(),e.restore()}}class P0{constructor(e,n,i){this.x=0,this.y=0,this.width=e,this.height=n,this.vx=0,this.vy=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.color=i===void 0?"#ffffff":st(i),this.lineWidth=1}draw(e){var n=this.height,i=this.width+n,r=n/2;e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.color,e.beginPath(),e.moveTo(0,-r),e.lineTo(i-2*r,-r),e.quadraticCurveTo(-r+i,-r,-r+i,0),e.lineTo(-r+i,n-2*r),e.quadraticCurveTo(-r+i,-r+n,i-2*r,-r+n),e.lineTo(0,-r+n),e.quadraticCurveTo(-r,-r+n,-r,n-2*r),e.lineTo(-r,0),e.quadraticCurveTo(-r,-r,0,-r),e.closePath(),e.fill(),this.lineWidth>0&&e.stroke(),e.beginPath(),e.arc(0,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.beginPath(),e.arc(this.width,0,2,0,Math.PI*2,!0),e.closePath(),e.stroke(),e.restore()}getPin(){return{x:this.x+Math.cos(this.rotation)*this.width,y:this.y+Math.sin(this.rotation)*this.width}}}class R0{canvas;context;mouse;keyboard;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.mouse=Ci(this.canvas),this.keyboard=To()}getMouseRotation(e){return ki(e,this.mouse)}followMouse(e,n){const i=this.getMouseRotation(e),{x:r,y:s}=Ti(n,i);return e.x+=r,e.y+=s,e}followMouseWithAcceleration(e,n=.05){const i=this.getMouseRotation(e),{x:r,y:s}=Ti(n,i);return e.ax=r,e.ay=s,Eo(e),e}getMouseDistance(e){return xo(e,this.mouse)}clearRect(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}lineWidth(e){return this.context.lineWidth=e,this}fillStyle(e){return this.context.fillStyle=e,this}fill(){return this.context.fill(),this}strokeStyle(e){return this.context.strokeStyle=e,this}stroke(){return this.context.stroke(),this}createLinearGradient(e,n,i){const r=this.context.createLinearGradient(e.x,e.y,n.x,n.y);return Object.keys(i).forEach(s=>r.addColorStop(parseFloat(s),i[parseFloat(s)])),r}createRadialGradient(e,n,i){const r=this.context.createRadialGradient(e.x,e.y,e.radius,n.x,n.y,n.radius);return Object.keys(i).forEach(s=>r.addColorStop(parseFloat(s),i[parseFloat(s)])),r}moveTo(e){this.context.moveTo(e.x,e.y)}closePath(){this.context.closePath()}lineTo(e,n){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.lineTo(n.x,n.y),this.context.stroke(),this.context.restore()}drawMouseMoveLine(){const e=()=>{this.context.lineTo(this.mouse.x,this.mouse.y),this.stroke()};this.canvas.addEventListener("mousedown",()=>{this.context.beginPath(),this.context.moveTo(this.mouse.x,this.mouse.y),this.canvas.addEventListener("mousemove",e,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",e,!1)},!1)}drawMouseMoveBrushLine({brush_size:e,brush_density:n,brush_color:i}={brush_size:25,brush_density:50,brush_color:"#000000"}){const r=this.getImageData(),s=r.data,o=st(i,!0),a=()=>{for(let c=0;c<n;c++){const l=Math.random()*Math.PI*2,f=Math.random()*e,u=this.mouse.x+Math.cos(l)*f|0,d=this.mouse.y+Math.sin(l)*f|0,h=(u+d*r.width)*4;s[h]=o>>16&255,s[h+1]=o>>8&255,s[h+2]=o&255,s[h+3]=255}this.putImageData(r)};this.canvas.addEventListener("mousedown",()=>{this.canvas.addEventListener("mousemove",a,!1)},!1),this.canvas.addEventListener("mouseup",()=>{this.canvas.removeEventListener("mousemove",a,!1)},!1)}quadraticCurveTo(e,n,i){this.context.save(),this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.quadraticCurveTo(n.x,n.y,i.x,i.y),this.context.stroke(),this.context.restore()}drawQuadraticCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);for(let i=1;i<n;i+=2)this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y);this.context.stroke()}quadraticThroughCurveTo(e,n,i){n.x=n.x*2-(e.x+i.x)/2,n.y=n.y*2-(e.y+i.y)/2,this.quadraticCurveTo(e,n,i)}drawQuadraticThroughCurveLine(e){const n=e.length;if(n<3)return new Error("points length must >= 3");this.context.beginPath(),this.context.moveTo(e[0].x,e[0].y);let i=1;for(;i<n-2;i++)this.context.quadraticCurveTo(e[i].x,e[i].y,(e[i].x+e[i+1].x)/2,(e[i].y+e[i+1].y)/2);this.context.quadraticCurveTo(e[i].x,e[i].y,e[i+1].x,e[i+1].y),this.context.stroke()}drawQuadraticThroughCurveLineBetter(e){const n=e.length;if(n<3)return new Error("points length must >= 3");const i=(e[0].x+e[n-1].x)/2,r=(e[0].y+e[n-1].y)/2;this.context.beginPath(),this.context.moveTo(i,r);let s=0;for(;s<n-1;s++){const o=(e[s].x+e[s+1].x)/2,a=(e[s].y+e[s+1].y)/2;this.context.quadraticCurveTo(e[s].x,e[s].y,o,a)}this.context.quadraticCurveTo(e[s].x,e[s].y,r,r),this.context.stroke()}fillRect(e){this.context.save(),this.context.fillRect(e.x,e.y,e.width,e.height),this.context.stroke(),this.context.restore()}drawImage(e,n=0,i=0){this.context.drawImage(e,n,i)}getImageData(e={x:0,y:0,width:this.canvas.width,height:this.canvas.height},n){return this.context.getImageData(e.x,e.y,e.width,e.height,n)}putImageData(e,n=0,i=0){return this.context.putImageData(e,n,i)}drawShape(e){e.draw(this.context)}}class Ri{static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(i=>{Ri.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}function Lo(t,e){return!t||t.parentElement===null?e:Lo(t.parentElement,e.concat([t]))}const Mi=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},M0=function(t){return Mi(t,"overflow")+Mi(t,"overflow-y")+Mi(t,"overflow-x")},L0=function(t){return/(auto|scroll)/.test(M0(t))};function O0(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return;const e=Lo(t.parentElement,[]);for(let n=0;n<e.length;n+=1)if(L0(e[n]))return e[n];return document.scrollingElement||document.documentElement}return w.Arrow=y0,w.Ball=v0,w.Ball3d=b0,w.BaseError=Pe,w.Box=x0,w.C2S=d0,w.CanvasPath=R0,w.DOMKeyboardKeyCode=kt,w.Dep=Es,w.EnvironmentError=Oi,w.FileSelectCancelError=pn,w.IllegalFileError=Ui,w.Light=E0,w.Line=S0,w.Matrix=ft,w.Point3d=k0,w.RGBToHex=Bd,w.Segment=P0,w.Ship=T0,w.Slider=A0,w.SvgPath=c0,w.TWEEN=Yd,w.Tree=D0,w.Triangle=C0,w.TriangleLight=I0,w.Vector=hn,w.VideoUtil=Ri,w.WebSocket=Qt,w.addEventListener=za,w.addWatermark=Ef,w.angle2radian=kd,w.animateCanvas=Ga,w.animateInWeb=Vi,w.blobToLinkExport=$h,w.blobToRawImage=Xh,w.captureKeyboard=To,w.captureMouse=Ci,w.capturePointer=jd,w.captureTouch=Nd,w.changeBrightness=bf,w.changeDiaphaneity=xf,w.changeSize=vf,w.checkAnimatedPointCollision=Md,w.checkAnimatedPointWalls=Ld,w.clearCookies=Go,w.clickEvent=qa,w.colorToRGB=Ai,w.compileTemplate=Fa,w.compression=kf,w.copyToClipboard=Sa,w.createXMLHttpRequest=Af,w.drawSpirograph=g0,w.drawStar=p0,w.dynamicStrokeLine=m0,w.fetchUseFetch=Df,w.fetchUseXMLHttpRequest=If,w.fileOrBlobToDataURL=Kn,w.flipSideToSide=Wh,w.flipUpsideDown=Kh,w.getBrowserClient=Qo,w.getBrowserClientVersion=ta,w.getBrowserLanguage=na,w.getCanvasImageData=Wn,w.getCanvasImageDataByBitmap=Hh,w.getCanvasImageDataByVideo=jh,w.getCookie=qo,w.getCookieObject=Zo,w.getDocumentElement=zt,w.getElementLeftInPage=Ni,w.getElementPositionInPage=Bi,w.getElementPositionInPage2=Vo,w.getElementPositionInViewport=Yo,w.getElementTopInPage=ji,w.getFileExtension=Fi,w.getFileType=Oo,w.getFilesImageInfo=Nh,w.getFixedWidthText=Oa,w.getFormElementData=Cf,w.getImageDataByAIData=Tf,w.getImageMainColor=Yh,w.getImageType=ws,w.getInternetExplorerVersion=Gi,w.getMouseButton=Za,w.getMouseOrTouchPositionInElement=Me,w.getMouseOrTouchPositionInPage=Hi,w.getMouseOrTouchPositionInViewport=Ko,w.getOperatingSystem=te,w.getOperatingSystemVersion=Jo,w.getPageClient=wn,w.getPageScroll=mn,w.getPageSize=Xo,w.getPageVerticalScrollPercent=Wo,w.getRawImageInfo=Yn,w.getScrollParent=O0,w.getSelectedText=ka,w.getTarget=Ha,w.getTextWidth=La,w.getTimeZone=ia,w.getURL=$i,w.getUrlParams=ya,w.getUrlParams2=va,w.getUserGeolocationPromise=ea,w.getViewportSize=Re,w.handleDragAndDropFiles=Fo,w.handleHashChange=xa,w.handleHistoryChange=Ea,w.handleInputFiles=Uo,w.handleURLChange=ba,w.hasDocument=ha,w.hasHistory=fa,w.hasProcess=ua,w.hasWindow=Xi,w.htmlElementToBlob=Vh,w.htmlIncodeOrDecode=Ua,w.ifWebFileHasChanged=Pf,w.imageDataToBitmap=qh,w.imageDataToBlob=Gh,w.imageDataToDataURL=Zh,w.isAndroid=Zi,w.isAppleDevice=ra,w.isBrowser=la,w.isBrowserSupportFileAPI=da,w.isDarkMode=oa,w.isElementFocus=Ta,w.isElementInViewport=$o,w.isHexColor=Od,w.isIE=aa,w.isIOS=qi,w.isMobile=sa,w.isNode=ca,w.isPolygonContainPoint=Rd,w.isRectContainPoint=ko,w.isRectIntersectRect=Pd,w.isTabInView=Ca,w.isURL=wa,w.isURLRelative=ma,w.jpgToPng=pf,w.lazyloadImages=Ra,w.leftRotate=Jh,w.loadScript=Pa,w.localstorage=Qn,w.marginSharpen=gf,w.microTask=jo,w.mosaic=Sf,w.navigateBack=Ia,w.navigateBack2=Da,w.newPointDependOnLengthAndRotation=Ti,w.nextFramePoint=Eo,w.nextFramePointEaseToTarget=Cd,w.nextFramePointSpringConnect=Id,w.nextFramePointSpringToTarget=So,w.onDocumentReady=No,w.parseColor=st,w.patchDOM=zi,w.pngToJpg=mf,w.pointDistance=xo,w.pointMiddle=Ad,w.pointRotationRadian=ki,w.preventDefault=ja,w.radian2angle=Td,w.radiusClip=yf,w.randomColorHex=Fd,w.randomColorHex2=zd,w.randomColorNumber=Ud,w.reactiveVue2=Of,w.reactiveVue3=Uf,w.readeFile=Bo,w.rectClip=wf,w.removeEventListener=Ba,w.rightRotate=Qh,w.rotate=xt,w.roundedRect=_0,w.scrollTo=Mf,w.selectFile=zo,w.setCookie=Ho,w.setRem=_a,w.setScrollRestoration=$e,w.setTheme=Rf,w.sharpen=_f,w.siblings=Aa,w.smileFace=w0,w.stopPropagation=Na,w.stringToBlob=ys,w.toBlackAndWhite=nf,w.toBlue=af,w.toBlueAndGreen=hf,w.toBlueAndGrey=df,w.toGreen=of,w.toGreenAndGrey=uf,w.toGrey=tf,w.toGrey2=ef,w.toOpposite=rf,w.toRed=sf,w.toRedAndBlue=cf,w.toRedAndGreen=lf,w.toRedAndGrey=ff,w.trackVelocity=Dd,w.urlsafe_base64decode=pa,w.urlsafe_base64encode=ga,w.waitForStyleSheetsLoaded=Ma,w.watchEffect=Lf,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),w}({});
|
|
12
18
|
//# sourceMappingURL=zyzgroup_core_web.iife.js.map
|