@adaptive-ai/sdk 0.1.4 → 0.1.5

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.
@@ -3,10 +3,10 @@
3
3
  import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
4
4
 
5
5
  declare const AuthProvider: {
6
+ readonly AC1: "AC1";
6
7
  readonly GITHUB_USER: "GITHUB_USER";
7
8
  readonly GITHUB_BOT: "GITHUB_BOT";
8
9
  readonly GOOGLE: "GOOGLE";
9
- readonly AC1: "AC1";
10
10
  readonly SLACK: "SLACK";
11
11
  readonly SLACK_BOT: "SLACK_BOT";
12
12
  readonly DISCORD: "DISCORD";
@@ -15,6 +15,7 @@ declare const AuthProvider: {
15
15
  readonly LINKEDIN: "LINKEDIN";
16
16
  readonly YAHOO: "YAHOO";
17
17
  readonly FIGMA: "FIGMA";
18
+ readonly PLAID: "PLAID";
18
19
  };
19
20
  export type AuthProvider = (typeof AuthProvider)[keyof typeof AuthProvider];
20
21
  export type ProviderInput = {
@@ -1,8 +1,8 @@
1
- import {useState,useEffect,useRef,useCallback}from'react';import {useMutation}from'@tanstack/react-query';import {identity}from'lodash';import {nanoid}from'nanoid';import yt from'superjson';import {rpcClient,RpcError}from'typed-rpc';var vn=Object.create;var _t=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var bn=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var Je=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports);var Sn=(i,r,S,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of bn(r))!En.call(i,e)&&e!==S&&_t(i,e,{get:()=>r[e],enumerable:!(l=wn(r,e))||l.enumerable});return i};var Et=(i,r,S)=>(S=i!=null?vn(_n(i)):{},Sn(_t(S,"default",{value:i,enumerable:true}),i));var Ft=Je((nt,rt)=>{(i=>{let r=(()=>{let R=0;return {escape:function(s){return s.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(s){return s.search(/^(data:)/)!==-1},canvasToBlob:function(s){return s.toBlob?new Promise(function(y){s.toBlob(y);}):(y=>new Promise(function(_){var A=a(y.toDataURL().split(",")[1]),T=A.length,m=new Uint8Array(T);for(let d=0;d<T;d++)m[d]=A.charCodeAt(d);_(new Blob([m],{type:"image/png"}));}))(s)},resolveUrl:function(s,y){var _=globalThis.document.implementation.createHTMLDocument(),A=_.createElement("base"),T=(_.head.appendChild(A),_.createElement("a"));return _.body.appendChild(T),A.href=y,T.href=s,T.href},getAndEncode:function(s){let y=v.impl.urlCache.find(function(_){return _.url===s});return y||(y={url:s,promise:null},v.impl.urlCache.push(y)),y.promise===null&&(v.impl.options.cacheBust&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime()),y.promise=new Promise(function(_){let A=new XMLHttpRequest;function T(M){console.error(M),_("");}function m(){var M=v.impl.options.imagePlaceholder;M?_(M):T("Status:"+A.status+" while fetching resource: "+s);}if(A.timeout=v.impl.options.httpTimeout,A.onerror=m,A.ontimeout=m,A.onloadend=function(){if(A.readyState===XMLHttpRequest.DONE){var M=A.status;if(M===0&&s.toLowerCase().startsWith("file://")||200<=M&&M<=300&&A.response!==null){M=A.response,M instanceof Blob||T("Expected response to be a Blob, but got: "+typeof M);let U=new globalThis.FileReader;U.onloadend=function(){var x=U.result;_(x);};try{U.readAsDataURL(M);}catch(x){T("Failed to read the response as Data URL: "+x.toString());}}else m();}},0<v.impl.options.useCredentialsFilters.length&&(v.impl.options.useCredentials=0<v.impl.options.useCredentialsFilters.filter(M=>0<=s.search(M)).length),v.impl.options.useCredentials&&(A.withCredentials=true),v.impl.options.corsImg&&s.indexOf("http")===0&&s.indexOf(globalThis.window.location.origin)===-1){var d=(v.impl.options.corsImg.method||"GET").toUpperCase()==="POST"?"POST":"GET";A.open(d,(v.impl.options.corsImg.url||"").replace("#{cors}",s),true);let M=false,U=v.impl.options.corsImg.headers||{},x=(Object.keys(U).forEach(function(N){U[N].indexOf("application/json")!==-1&&(M=true),A.setRequestHeader(N,U[N]);}),(N=>{try{return JSON.parse(JSON.stringify(N))}catch(D){T("corsImg.data is missing or invalid:"+D.toString());}})(v.impl.options.corsImg.data||""));Object.keys(x).forEach(function(N){typeof x[N]=="string"&&(x[N]=x[N].replace("#{cors}",s));}),A.responseType="blob",A.send(M?JSON.stringify(x):x);}else A.open("GET",s,true),A.responseType="blob",A.send();})),y.promise},uid:function(){return "u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+R++},asArray:function(s){var y=[],_=s.length;for(let A=0;A<_;A++)y.push(s[A]);return y},escapeXhtml:function(s){return s.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(s){return s!=="data:,"?new Promise(function(y,_){let A=globalThis.document.createElementNS("http://www.w3.org/2000/svg","svg"),T=new globalThis.Image;v.impl.options.useCredentials&&(T.crossOrigin="use-credentials"),T.onload=function(){globalThis.document.body.removeChild(A),globalThis.window&&globalThis.window.requestAnimationFrame?globalThis.window.requestAnimationFrame(function(){y(T);}):y(T);},T.onerror=m=>{globalThis.document.body.removeChild(A),_(m);},A.appendChild(T),T.src=s,globalThis.document.body.appendChild(A);}):Promise.resolve()},width:function(s){var y=b(s,"width");if(!isNaN(y))return y;var y=b(s,"border-left-width"),_=b(s,"border-right-width");return s.scrollWidth+y+_},height:function(s){var y=b(s,"height");if(!isNaN(y))return y;var y=b(s,"border-top-width"),_=b(s,"border-bottom-width");return s.scrollHeight+y+_},getWindow:p,isElement:c,isElementHostForOpenShadowRoot:function(s){return c(s)&&s.shadowRoot!==null},isShadowRoot:O,isInShadowRoot:f,isHTMLElement:function(s){return s instanceof p(s).HTMLElement},isHTMLCanvasElement:function(s){return s instanceof p(s).HTMLCanvasElement},isHTMLInputElement:function(s){return s instanceof p(s).HTMLInputElement},isHTMLImageElement:function(s){return s instanceof p(s).HTMLImageElement},isHTMLLinkElement:function(s){return s instanceof p(s).HTMLLinkElement},isHTMLScriptElement:function(s){return s instanceof p(s).HTMLScriptElement},isHTMLStyleElement:function(s){return s instanceof p(s).HTMLStyleElement},isHTMLTextAreaElement:function(s){return s instanceof p(s).HTMLTextAreaElement},isShadowSlotElement:function(s){return f(s)&&s instanceof p(s).HTMLSlotElement},isSVGElement:function(s){return s instanceof p(s).SVGElement},isSVGRectElement:function(s){return s instanceof p(s).SVGRectElement},isDimensionMissing:function(s){return isNaN(s)||s<=0}};function p(s){return s=s?s.ownerDocument:void 0,(s?s.defaultView:void 0)||globalThis.window||i}function O(s){return s instanceof p(s).ShadowRoot}function f(s){return s!=null&&s.getRootNode!==void 0&&O(s.getRootNode())}function c(s){return s instanceof p(s).Element}function b(s,y){if(s.nodeType===E){let _=o(s).getPropertyValue(y);if(_.slice(-2)==="px")return _=_.slice(0,-2),parseFloat(_)}return NaN}})(),S=(()=>{let R=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return {inlineAll:function(b,s,y){return p(b)?Promise.resolve(b).then(O).then(function(_){let A=Promise.resolve(b);return _.forEach(function(T){A=A.then(function(m){return c(m,T,s,y)});}),A}):Promise.resolve(b)},shouldProcess:p,impl:{readUrls:O,inline:c,urlAsRegex:f}};function p(b){return b.search(R)!==-1}function O(b){for(var s,y=[];(s=R.exec(b))!==null;)y.push(s[2]);return y.filter(function(_){return !r.isDataUrl(_)})}function f(b){return new RegExp(`url\\((["']?)(${r.escape(b)})\\1\\)`,"gm")}function c(b,s,y,_){return Promise.resolve(s).then(function(A){return y?r.resolveUrl(A,y):A}).then(_||r.getAndEncode).then(function(A){var T=f(s);return b.replace(T,`url($1${A}$1)`)})}})(),l={resolveAll:function(){return e().then(function(R){return Promise.all(R.map(function(p){return p.resolve()}))}).then(function(R){return R.join(`
2
- `)})},impl:{readAll:e}};function e(){return Promise.resolve(r.asArray(globalThis.document.styleSheets)).then(function(p){let O=[];return p.forEach(function(f){var c=Object.getPrototypeOf(f);if(Object.prototype.hasOwnProperty.call(c,"cssRules"))try{r.asArray(f.cssRules||[]).forEach(O.push.bind(O));}catch(b){console.error("domtoimage: Error while reading CSS rules from: "+f.href,b.toString());}}),O}).then(function(p){return p.filter(function(O){return O.type===CSSRule.FONT_FACE_RULE}).filter(function(O){return S.shouldProcess(O.style.getPropertyValue("src"))})}).then(function(p){return p.map(R)});function R(p){return {resolve:function(){var O=(p.parentStyleSheet||{}).href;return S.inlineAll(p.cssText,O)},src:function(){return p.style.getPropertyValue("src")}}}}let t={inlineAll:function R(p){if(!r.isElement(p))return Promise.resolve(p);return O(p).then(function(){return r.isHTMLImageElement(p)?g(p).inline():Promise.all(r.asArray(p.childNodes).map(function(f){return R(f)}))});function O(f){let c=["background","background-image"],b=c.map(function(s){let y=f.style.getPropertyValue(s),_=f.style.getPropertyPriority(s);return y?S.inlineAll(y).then(function(A){f.style.setProperty(s,A,_);}):Promise.resolve()});return Promise.all(b).then(function(){return f})}},impl:{newImage:g}};function g(R){return {inline:function(p){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(p||r.getAndEncode).then(function(O){return new Promise(function(f){R.onload=f,R.onerror=f,R.src=O;})})}}}let u={copyDefaultStyles:true,imagePlaceholder:void 0,cacheBust:false,useCredentials:false,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},v={toSvg:n,toPng:function(R,p){return h(R,p).then(function(O){return O.toDataURL()})},toJpeg:function(R,p){return h(R,p).then(function(O){return O.toDataURL("image/jpeg",(p?p.quality:void 0)||1)})},toBlob:function(R,p){return h(R,p).then(r.canvasToBlob)},toPixelData:function(R,p){return h(R,p).then(function(O){return O.getContext("2d").getImageData(0,0,r.width(R),r.height(R)).data})},toCanvas:h,impl:{fontFaces:l,images:t,util:r,inliner:S,urlCache:[],options:{},copyOptions:function(R){R.copyDefaultStyles===void 0?v.impl.options.copyDefaultStyles=u.copyDefaultStyles:v.impl.options.copyDefaultStyles=R.copyDefaultStyles,v.impl.options.imagePlaceholder=(R.imagePlaceholder===void 0?u:R).imagePlaceholder,v.impl.options.cacheBust=(R.cacheBust===void 0?u:R).cacheBust,v.impl.options.corsImg=(R.corsImg===void 0?u:R).corsImg,v.impl.options.useCredentials=(R.useCredentials===void 0?u:R).useCredentials,v.impl.options.useCredentialsFilters=(R.useCredentialsFilters===void 0?u:R).useCredentialsFilters,v.impl.options.httpTimeout=(R.httpTimeout===void 0?u:R).httpTimeout,v.impl.options.styleCaching=(R.styleCaching===void 0?u:R).styleCaching;}}},E=(typeof nt=="object"&&typeof rt=="object"?rt.exports=v:i.domtoimage=v,(globalThis.Node===void 0?void 0:globalThis.Node.ELEMENT_NODE)||1),o=(i===void 0?void 0:i.getComputedStyle)||(globalThis.window===void 0?void 0:globalThis.window.getComputedStyle)||globalThis.getComputedStyle,a=(i===void 0?void 0:i.atob)||(globalThis.window===void 0?void 0:globalThis.window.atob)||globalThis.atob;function n(R,p){v.impl.util.getWindow(R);let f=(p=p||{},v.impl.copyOptions(p),[]);return Promise.resolve(R).then(function(c){if(c.nodeType===E)return c;var b=c,s=globalThis.document.createElement("span");return b.replaceWith(s),s.append(c),f.push({child:b,wrapper:s}),s}).then(function(c){return function b(s,y,_,A){let T=y.filter;if(s===w||r.isHTMLScriptElement(s)||r.isHTMLStyleElement(s)||r.isHTMLLinkElement(s)||_!==null&&T&&!T(s))return Promise.resolve();return Promise.resolve(s).then(m).then(d).then(function(D){return x(D,U(s))}).then(M).then(function(D){return N(D,s)});function m(D){return r.isHTMLCanvasElement(D)?r.makeImage(D.toDataURL()):D.cloneNode(false)}function d(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,false),Promise.resolve(D)}function M(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,true),Promise.resolve(D)}function U(D){return r.isElementHostForOpenShadowRoot(D)?D.shadowRoot:D}function x(D,Q){let k=K(Q),F=Promise.resolve();if(k.length!==0){let G=o($(Q));r.asArray(k).forEach(function(z){F=F.then(function(){return b(z,y,G).then(function(q){q&&D.appendChild(q);})});});}return F.then(function(){return D});function $(G){return r.isShadowRoot(G)?G.host:G}function K(G){if(r.isShadowSlotElement(G)){let z=G.assignedNodes();if(z&&0<z.length)return z}return G.childNodes}}function N(D,Q){return !r.isElement(D)||r.isShadowSlotElement(Q)?Promise.resolve(D):Promise.resolve().then(F).then($).then(K).then(G).then(k).then(function(){return D});function k(){r.isHTMLImageElement(D)&&(D.removeAttribute("loading"),Q.srcset||Q.sizes)&&(D.removeAttribute("srcset"),D.removeAttribute("sizes"),D.src=Q.currentSrc||Q.src);}function F(){function z(V,W){W.font=V.font,W.fontFamily=V.fontFamily,W.fontFeatureSettings=V.fontFeatureSettings,W.fontKerning=V.fontKerning,W.fontSize=V.fontSize,W.fontStretch=V.fontStretch,W.fontStyle=V.fontStyle,W.fontVariant=V.fontVariant,W.fontVariantCaps=V.fontVariantCaps,W.fontVariantEastAsian=V.fontVariantEastAsian,W.fontVariantLigatures=V.fontVariantLigatures,W.fontVariantNumeric=V.fontVariantNumeric,W.fontVariationSettings=V.fontVariationSettings,W.fontWeight=V.fontWeight;}function q(V,W){let ie=o(V);ie.cssText?(W.style.cssText=ie.cssText,z(ie,W.style)):(I(y,V,ie,_,W),_===null&&(["inset-block","inset-block-start","inset-block-end"].forEach(ae=>W.style.removeProperty(ae)),["left","right","top","bottom"].forEach(ae=>{W.style.getPropertyValue(ae)&&W.style.setProperty(ae,"0px");})));}q(Q,D);}function $(){let z=r.uid();function q(V){let W=o(Q,V),ie=W.getPropertyValue("content");if(ie!==""&&ie!=="none"){let Y=function(){let Z=`.${z}:`+V,ne=(W.cssText?oe:j)();return globalThis.document.createTextNode(Z+`{${ne}}`);function oe(){return `${W.cssText} content: ${ie};`}function j(){return r.asArray(W).map(ee).join("; ")+";";function ee(X){let le=W.getPropertyValue(X),ge=W.getPropertyPriority(X)?" !important":"";return X+": "+le+ge}}};let J=D.getAttribute("class")||"",te=(D.setAttribute("class",J+" "+z),globalThis.document.createElement("style"));te.appendChild(Y()),D.appendChild(te);}}[":before",":after"].forEach(function(V){q(V);});}function K(){r.isHTMLTextAreaElement(Q)&&(D.innerHTML=Q.value),r.isHTMLInputElement(Q)&&D.setAttribute("value",Q.value);}function G(){r.isSVGElement(D)&&(D.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.isSVGRectElement(D))&&["width","height"].forEach(function(z){let q=D.getAttribute(z);q&&D.style.setProperty(z,q);});}}}(c,p,null)}).then(p.disableEmbedFonts?Promise.resolve(R):C).then(p.disableInlineImages?Promise.resolve(R):P).then(function(c){p.bgcolor&&(c.style.backgroundColor=p.bgcolor),p.width&&(c.style.width=p.width+"px"),p.height&&(c.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(s){c.style[s]=p.style[s];});let b=null;return typeof p.onclone=="function"&&(b=p.onclone(c)),Promise.resolve(b).then(function(){return c})}).then(function(c){let b=p.width||r.width(R),s=p.height||r.height(R);return Promise.resolve(c).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(r.escapeXhtml).then(function(y){var _=(r.isDimensionMissing(b)?' width="100%"':` width="${b}"`)+(r.isDimensionMissing(s)?' height="100%"':` height="${s}"`);return `<svg xmlns="http://www.w3.org/2000/svg"${(r.isDimensionMissing(b)?"":` width="${b}"`)+(r.isDimensionMissing(s)?"":` height="${s}"`)}><foreignObject${_}>${y}</foreignObject></svg>`}).then(function(y){return "data:image/svg+xml;charset=utf-8,"+y})}).then(function(c){for(;0<f.length;){var b=f.pop();b.wrapper.replaceWith(b.child);}return c}).then(function(c){return v.impl.urlCache=[],w&&(globalThis.document.body.removeChild(w),w=null),H&&clearTimeout(H),H=setTimeout(()=>{H=null,B={};},2e4),c})}function h(R,p){return n(R,p=p||{}).then(r.makeImage).then(function(O){var f=typeof p.scale!="number"?1:p.scale,c=((s,y)=>{let _=p.width||r.width(s),A=p.height||r.height(s);return r.isDimensionMissing(_)&&(_=r.isDimensionMissing(A)?300:2*A),r.isDimensionMissing(A)&&(A=_/2),(s=globalThis.document.createElement("canvas")).width=_*y,s.height=A*y,p.bgcolor&&((y=s.getContext("2d")).fillStyle=p.bgcolor,y.fillRect(0,0,s.width,s.height)),s})(R,f),b=c.getContext("2d");return b.msImageSmoothingEnabled=false,b.imageSmoothingEnabled=false,O&&(b.scale(f,f),b.drawImage(O,0,0)),c})}let w=null;function C(R){return l.resolveAll().then(function(p){var O;return p!==""&&(O=globalThis.document.createElement("style"),R.appendChild(O),O.appendChild(globalThis.document.createTextNode(p))),R})}function P(R){return t.inlineAll(R).then(function(){return R})}function I(R,p,O,f,c){let b=v.impl.options.copyDefaultStyles?((y,_)=>{var A,T=(M=>(y.styleCaching!=="relaxed"?M:M.filter((U,x,N)=>x===0||x===N.length-1)).join(">"))(_=(M=>{var U=[];do if(M.nodeType===E){var x=M.tagName;if(U.push(x),L.includes(x))break}while(M=M.parentNode);return U})(_));{if(B[T])return B[T];_=((M,U)=>{let x=M.body;do{var N=U.pop(),N=M.createElement(N);x.appendChild(N),x=N;}while(0<U.length);return x.textContent="\u200B",x})((A=(()=>{if(w)return w.contentWindow;U=globalThis.document.characterSet||"UTF-8",M=(M=globalThis.document.doctype)?(`<!DOCTYPE ${F(M.name)} ${F(M.publicId)} `+F(M.systemId)).trim()+">":"",(w=globalThis.document.createElement("iframe")).id="domtoimage-sandbox-"+r.uid(),w.style.top="-9999px",w.style.visibility="hidden",w.style.position="fixed",globalThis.document.body.appendChild(w);var M,U,x=w,N="domtoimage-sandbox";try{return x.contentWindow.document.write(M+`<html><head><meta charset='${U}'><title>${N}</title></head><body></body></html>`),x.contentWindow}catch{}var D=globalThis.document.createElement("meta");D.setAttribute("charset",U);try{var Q=globalThis.document.implementation.createHTMLDocument(N),k=(Q.head.appendChild(D),M+Q.documentElement.outerHTML);return x.setAttribute("srcdoc",k),x.contentWindow}catch{}return x.contentDocument.head.appendChild(D),x.contentDocument.title=N,x.contentWindow;function F($){var K;return $?((K=globalThis.document.createElement("div")).innerText=$,K.innerHTML):""}})()).document,_),A=((M,U)=>{let x={},N=M.getComputedStyle(U);return r.asArray(N).forEach(function(D){x[D]=D==="width"||D==="height"?"auto":N.getPropertyValue(D);}),x})(A,_);var m=_;do{var d=m.parentElement;d!==null&&d.removeChild(m),m=d;}while(m&&m.tagName!=="BODY");return B[T]=A}})(R,p):{},s=c.style;r.asArray(O).forEach(function(y){var _,A,T,m;R.filterStyles&&!R.filterStyles(p,y)||(A=O.getPropertyValue(y),T=b[y],_=f?f.getPropertyValue(y):void 0,s.getPropertyValue(y))||(A!==T||f&&A!==_)&&(T=O.getPropertyPriority(y),_=s,A=A,T=T,m=0<=["background-clip"].indexOf(y=y),T?(_.setProperty(y,A,T),m&&_.setProperty("-webkit-"+y,A,T)):(_.setProperty(y,A),m&&_.setProperty("-webkit-"+y,A)));});}let H=null,B={},L=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"];})(nt);});var Bt=Je(()=>{});var on=Je((Ur,rn)=>{var ht=typeof Map=="function"&&Map.prototype,ot=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=ht&&ot&&typeof ot.get=="function"?ot.get:null,Ht=ht&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,it=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=pt&&it&&typeof it.get=="function"?it.get:null,kt=pt&&Set.prototype.forEach,Pn=typeof WeakMap=="function"&&WeakMap.prototype,Be=Pn?WeakMap.prototype.has:null,Ln=typeof WeakSet=="function"&&WeakSet.prototype,He=Ln?WeakSet.prototype.has:null,Dn=typeof WeakRef=="function"&&WeakRef.prototype,Nt=Dn?WeakRef.prototype.deref:null,Fn=Boolean.prototype.valueOf,Bn=Object.prototype.toString,Hn=Function.prototype.toString,kn=String.prototype.match,gt=String.prototype.slice,Ee=String.prototype.replace,Nn=String.prototype.toUpperCase,Qt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,$t=Array.prototype.concat,Ae=Array.prototype.join,Qn=Array.prototype.slice,Wt=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Pe||true)?Symbol.toStringTag:null,Zt=Object.prototype.propertyIsEnumerable,zt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(i){return i.__proto__}:null);function Vt(i,r){if(i===1/0||i===-1/0||i!==i||i&&i>-1e3&&i<1e3||Yt.call(/e/,r))return r;var S=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof i=="number"){var l=i<0?-Wt(-i):Wt(i);if(l!==i){var e=String(l),t=gt.call(r,e.length+1);return Ee.call(e,S,"$&_")+"."+Ee.call(Ee.call(t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ee.call(r,S,"$&_")}var ct=Bt(),Gt=ct.custom,qt=en(Gt)?Gt:null,Jt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};rn.exports=function i(r,S,l,e){var t=S||{};if(we(t,"quoteStyle")&&!we(Jt,t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(we(t,"maxStringLength")&&(typeof t.maxStringLength=="number"?t.maxStringLength<0&&t.maxStringLength!==1/0:t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=we(t,"customInspect")?t.customInspect:true;if(typeof g!="boolean"&&g!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(we(t,"indent")&&t.indent!==null&&t.indent!==" "&&!(parseInt(t.indent,10)===t.indent&&t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(we(t,"numericSeparator")&&typeof t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=t.numericSeparator;if(typeof r>"u")return "undefined";if(r===null)return "null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return nn(r,t);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var v=String(r);return u?Vt(r,v):v}if(typeof r=="bigint"){var E=String(r)+"n";return u?Vt(r,E):E}var o=typeof t.depth>"u"?5:t.depth;if(typeof l>"u"&&(l=0),l>=o&&o>0&&typeof r=="object")return ft(r)?"[Array]":"[Object]";var a=ar(t,l);if(typeof e>"u")e=[];else if(tn(e,r)>=0)return "[Circular]";function n(_,A,T){if(A&&(e=Qn.call(e),e.push(A)),T){var m={depth:t.depth};return we(t,"quoteStyle")&&(m.quoteStyle=t.quoteStyle),i(_,m,l+1,e)}return i(_,t,l+1,e)}if(typeof r=="function"&&!Kt(r)){var h=Zn(r),w=qe(r,n);return "[Function"+(h?": "+h:" (anonymous)")+"]"+(w.length>0?" { "+Ae.call(w,", ")+" }":"")}if(en(r)){var C=Pe?Ee.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):ut.call(r);return typeof r=="object"&&!Pe?Fe(C):C}if(rr(r)){for(var P="<"+Qt.call(String(r.nodeName)),I=r.attributes||[],H=0;H<I.length;H++)P+=" "+I[H].name+"="+jt(Wn(I[H].value),"double",t);return P+=">",r.childNodes&&r.childNodes.length&&(P+="..."),P+="</"+Qt.call(String(r.nodeName))+">",P}if(ft(r)){if(r.length===0)return "[]";var B=qe(r,n);return a&&!ir(B)?"["+dt(B,a)+"]":"[ "+Ae.call(B,", ")+" ]"}if(Vn(r)){var L=qe(r,n);return !("cause"in Error.prototype)&&"cause"in r&&!Zt.call(r,"cause")?"{ ["+String(r)+"] "+Ae.call($t.call("[cause]: "+n(r.cause),L),", ")+" }":L.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ae.call(L,", ")+" }"}if(typeof r=="object"&&g){if(qt&&typeof r[qt]=="function"&&ct)return ct(r,{depth:o-l});if(g!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Jn(r)){var R=[];return Ht&&Ht.call(r,function(_,A){R.push(n(A,r,true)+" => "+n(_,r));}),Xt("Map",Ke.call(r),R,a)}if(tr(r)){var p=[];return kt&&kt.call(r,function(_){p.push(n(_,r));}),Xt("Set",Xe.call(r),p,a)}if(jn(r))return st("WeakMap");if(nr(r))return st("WeakSet");if(er(r))return st("WeakRef");if(qn(r))return Fe(n(Number(r)));if(Xn(r))return Fe(n(lt.call(r)));if(Kn(r))return Fe(Fn.call(r));if(Gn(r))return Fe(n(String(r)));if(typeof globalThis.window<"u"&&r===globalThis.window)return "{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof global<"u"&&r===global)return "{ [object globalThis] }";if(!zn(r)&&!Kt(r)){var O=qe(r,n),f=zt?zt(r)===Object.prototype:r instanceof Object||r.constructor===Object,c=r instanceof Object?"":"null prototype",b=!f&&ke&&Object(r)===r&&ke in r?gt.call(Se(r),8,-1):c?"Object":"",s=f||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",y=s+(b||c?"["+Ae.call($t.call([],b||[],c||[]),": ")+"] ":"");return O.length===0?y+"{}":a?y+"{"+dt(O,a)+"}":y+"{ "+Ae.call(O,", ")+" }"}return String(r)};function jt(i,r,S){var l=S.quoteStyle||r,e=Jt[l];return e+i+e}function Wn(i){return Ee.call(String(i),/"/g,"&quot;")}function Oe(i){return !ke||!(typeof i=="object"&&(ke in i||typeof i[ke]<"u"))}function ft(i){return Se(i)==="[object Array]"&&Oe(i)}function zn(i){return Se(i)==="[object Date]"&&Oe(i)}function Kt(i){return Se(i)==="[object RegExp]"&&Oe(i)}function Vn(i){return Se(i)==="[object Error]"&&Oe(i)}function Gn(i){return Se(i)==="[object String]"&&Oe(i)}function qn(i){return Se(i)==="[object Number]"&&Oe(i)}function Kn(i){return Se(i)==="[object Boolean]"&&Oe(i)}function en(i){if(Pe)return i&&typeof i=="object"&&i instanceof Symbol;if(typeof i=="symbol")return true;if(!i||typeof i!="object"||!ut)return false;try{return ut.call(i),!0}catch{}return false}function Xn(i){if(!i||typeof i!="object"||!lt)return false;try{return lt.call(i),!0}catch{}return false}var Yn=Object.prototype.hasOwnProperty||function(i){return i in this};function we(i,r){return Yn.call(i,r)}function Se(i){return Bn.call(i)}function Zn(i){if(i.name)return i.name;var r=kn.call(Hn.call(i),/^function\s*([\w$]+)/);return r?r[1]:null}function tn(i,r){if(i.indexOf)return i.indexOf(r);for(var S=0,l=i.length;S<l;S++)if(i[S]===r)return S;return -1}function Jn(i){if(!Ke||!i||typeof i!="object")return false;try{Ke.call(i);try{Xe.call(i);}catch{return !0}return i instanceof Map}catch{}return false}function jn(i){if(!Be||!i||typeof i!="object")return false;try{Be.call(i,Be);try{He.call(i,He);}catch{return !0}return i instanceof WeakMap}catch{}return false}function er(i){if(!Nt||!i||typeof i!="object")return false;try{return Nt.call(i),!0}catch{}return false}function tr(i){if(!Xe||!i||typeof i!="object")return false;try{Xe.call(i);try{Ke.call(i);}catch{return !0}return i instanceof Set}catch{}return false}function nr(i){if(!He||!i||typeof i!="object")return false;try{He.call(i,He);try{Be.call(i,Be);}catch{return !0}return i instanceof WeakSet}catch{}return false}function rr(i){return !i||typeof i!="object"?false:typeof HTMLElement<"u"&&i instanceof HTMLElement?true:typeof i.nodeName=="string"&&typeof i.getAttribute=="function"}function nn(i,r){if(i.length>r.maxStringLength){var S=i.length-r.maxStringLength,l="... "+S+" more character"+(S>1?"s":"");return nn(gt.call(i,0,r.maxStringLength),r)+l}var e=$n[r.quoteStyle||"single"];e.lastIndex=0;var t=Ee.call(Ee.call(i,e,"\\$1"),/[\x00-\x1f]/g,or);return jt(t,"single",r)}function or(i){var r=i.charCodeAt(0),S={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return S?"\\"+S:"\\x"+(r<16?"0":"")+Nn.call(r.toString(16))}function Fe(i){return "Object("+i+")"}function st(i){return i+" { ? }"}function Xt(i,r,S,l){var e=l?dt(S,l):Ae.call(S,", ");return i+" ("+r+") {"+e+"}"}function ir(i){for(var r=0;r<i.length;r++)if(tn(i[r],`
1
+ import {useState,useEffect,useRef,useCallback}from'react';import {useMutation}from'@tanstack/react-query';import {identity}from'lodash';import {nanoid}from'nanoid';import yt from'superjson';import {rpcClient,RpcError}from'typed-rpc';var vn=Object.create;var _t=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var bn=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var Je=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports);var Sn=(i,r,S,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of bn(r))!En.call(i,e)&&e!==S&&_t(i,e,{get:()=>r[e],enumerable:!(l=wn(r,e))||l.enumerable});return i};var Et=(i,r,S)=>(S=i!=null?vn(_n(i)):{},Sn(_t(S,"default",{value:i,enumerable:true}),i));var Ft=Je((nt,rt)=>{(i=>{let r=(()=>{let R=0;return {escape:function(s){return s.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(s){return s.search(/^(data:)/)!==-1},canvasToBlob:function(s){return s.toBlob?new Promise(function(y){s.toBlob(y);}):(y=>new Promise(function(_){var A=a(y.toDataURL().split(",")[1]),T=A.length,m=new Uint8Array(T);for(let d=0;d<T;d++)m[d]=A.charCodeAt(d);_(new Blob([m],{type:"image/png"}));}))(s)},resolveUrl:function(s,y){var _=globalThis.document.implementation.createHTMLDocument(),A=_.createElement("base"),T=(_.head.appendChild(A),_.createElement("a"));return _.body.appendChild(T),A.href=y,T.href=s,T.href},getAndEncode:function(s){let y=v.impl.urlCache.find(function(_){return _.url===s});return y||(y={url:s,promise:null},v.impl.urlCache.push(y)),y.promise===null&&(v.impl.options.cacheBust&&(s+=(/\?/.test(s)?"&":"?")+new Date().getTime()),y.promise=new Promise(function(_){let A=new XMLHttpRequest;function T(P){console.error(P),_("");}function m(){var P=v.impl.options.imagePlaceholder;P?_(P):T("Status:"+A.status+" while fetching resource: "+s);}if(A.timeout=v.impl.options.httpTimeout,A.onerror=m,A.ontimeout=m,A.onloadend=function(){if(A.readyState===XMLHttpRequest.DONE){var P=A.status;if(P===0&&s.toLowerCase().startsWith("file://")||200<=P&&P<=300&&A.response!==null){P=A.response,P instanceof Blob||T("Expected response to be a Blob, but got: "+typeof P);let U=new globalThis.FileReader;U.onloadend=function(){var x=U.result;_(x);};try{U.readAsDataURL(P);}catch(x){T("Failed to read the response as Data URL: "+x.toString());}}else m();}},0<v.impl.options.useCredentialsFilters.length&&(v.impl.options.useCredentials=0<v.impl.options.useCredentialsFilters.filter(P=>0<=s.search(P)).length),v.impl.options.useCredentials&&(A.withCredentials=true),v.impl.options.corsImg&&s.indexOf("http")===0&&s.indexOf(globalThis.window.location.origin)===-1){var d=(v.impl.options.corsImg.method||"GET").toUpperCase()==="POST"?"POST":"GET";A.open(d,(v.impl.options.corsImg.url||"").replace("#{cors}",s),true);let P=false,U=v.impl.options.corsImg.headers||{},x=(Object.keys(U).forEach(function(N){U[N].indexOf("application/json")!==-1&&(P=true),A.setRequestHeader(N,U[N]);}),(N=>{try{return JSON.parse(JSON.stringify(N))}catch(D){T("corsImg.data is missing or invalid:"+D.toString());}})(v.impl.options.corsImg.data||""));Object.keys(x).forEach(function(N){typeof x[N]=="string"&&(x[N]=x[N].replace("#{cors}",s));}),A.responseType="blob",A.send(P?JSON.stringify(x):x);}else A.open("GET",s,true),A.responseType="blob",A.send();})),y.promise},uid:function(){return "u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+R++},asArray:function(s){var y=[],_=s.length;for(let A=0;A<_;A++)y.push(s[A]);return y},escapeXhtml:function(s){return s.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(s){return s!=="data:,"?new Promise(function(y,_){let A=globalThis.document.createElementNS("http://www.w3.org/2000/svg","svg"),T=new globalThis.Image;v.impl.options.useCredentials&&(T.crossOrigin="use-credentials"),T.onload=function(){globalThis.document.body.removeChild(A),globalThis.window&&globalThis.window.requestAnimationFrame?globalThis.window.requestAnimationFrame(function(){y(T);}):y(T);},T.onerror=m=>{globalThis.document.body.removeChild(A),_(m);},A.appendChild(T),T.src=s,globalThis.document.body.appendChild(A);}):Promise.resolve()},width:function(s){var y=b(s,"width");if(!isNaN(y))return y;var y=b(s,"border-left-width"),_=b(s,"border-right-width");return s.scrollWidth+y+_},height:function(s){var y=b(s,"height");if(!isNaN(y))return y;var y=b(s,"border-top-width"),_=b(s,"border-bottom-width");return s.scrollHeight+y+_},getWindow:p,isElement:c,isElementHostForOpenShadowRoot:function(s){return c(s)&&s.shadowRoot!==null},isShadowRoot:O,isInShadowRoot:f,isHTMLElement:function(s){return s instanceof p(s).HTMLElement},isHTMLCanvasElement:function(s){return s instanceof p(s).HTMLCanvasElement},isHTMLInputElement:function(s){return s instanceof p(s).HTMLInputElement},isHTMLImageElement:function(s){return s instanceof p(s).HTMLImageElement},isHTMLLinkElement:function(s){return s instanceof p(s).HTMLLinkElement},isHTMLScriptElement:function(s){return s instanceof p(s).HTMLScriptElement},isHTMLStyleElement:function(s){return s instanceof p(s).HTMLStyleElement},isHTMLTextAreaElement:function(s){return s instanceof p(s).HTMLTextAreaElement},isShadowSlotElement:function(s){return f(s)&&s instanceof p(s).HTMLSlotElement},isSVGElement:function(s){return s instanceof p(s).SVGElement},isSVGRectElement:function(s){return s instanceof p(s).SVGRectElement},isDimensionMissing:function(s){return isNaN(s)||s<=0}};function p(s){return s=s?s.ownerDocument:void 0,(s?s.defaultView:void 0)||globalThis.window||i}function O(s){return s instanceof p(s).ShadowRoot}function f(s){return s!=null&&s.getRootNode!==void 0&&O(s.getRootNode())}function c(s){return s instanceof p(s).Element}function b(s,y){if(s.nodeType===E){let _=o(s).getPropertyValue(y);if(_.slice(-2)==="px")return _=_.slice(0,-2),parseFloat(_)}return NaN}})(),S=(()=>{let R=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return {inlineAll:function(b,s,y){return p(b)?Promise.resolve(b).then(O).then(function(_){let A=Promise.resolve(b);return _.forEach(function(T){A=A.then(function(m){return c(m,T,s,y)});}),A}):Promise.resolve(b)},shouldProcess:p,impl:{readUrls:O,inline:c,urlAsRegex:f}};function p(b){return b.search(R)!==-1}function O(b){for(var s,y=[];(s=R.exec(b))!==null;)y.push(s[2]);return y.filter(function(_){return !r.isDataUrl(_)})}function f(b){return new RegExp(`url\\((["']?)(${r.escape(b)})\\1\\)`,"gm")}function c(b,s,y,_){return Promise.resolve(s).then(function(A){return y?r.resolveUrl(A,y):A}).then(_||r.getAndEncode).then(function(A){var T=f(s);return b.replace(T,`url($1${A}$1)`)})}})(),l={resolveAll:function(){return e().then(function(R){return Promise.all(R.map(function(p){return p.resolve()}))}).then(function(R){return R.join(`
2
+ `)})},impl:{readAll:e}};function e(){return Promise.resolve(r.asArray(globalThis.document.styleSheets)).then(function(p){let O=[];return p.forEach(function(f){var c=Object.getPrototypeOf(f);if(Object.prototype.hasOwnProperty.call(c,"cssRules"))try{r.asArray(f.cssRules||[]).forEach(O.push.bind(O));}catch(b){console.error("domtoimage: Error while reading CSS rules from: "+f.href,b.toString());}}),O}).then(function(p){return p.filter(function(O){return O.type===CSSRule.FONT_FACE_RULE}).filter(function(O){return S.shouldProcess(O.style.getPropertyValue("src"))})}).then(function(p){return p.map(R)});function R(p){return {resolve:function(){var O=(p.parentStyleSheet||{}).href;return S.inlineAll(p.cssText,O)},src:function(){return p.style.getPropertyValue("src")}}}}let t={inlineAll:function R(p){if(!r.isElement(p))return Promise.resolve(p);return O(p).then(function(){return r.isHTMLImageElement(p)?g(p).inline():Promise.all(r.asArray(p.childNodes).map(function(f){return R(f)}))});function O(f){let c=["background","background-image"],b=c.map(function(s){let y=f.style.getPropertyValue(s),_=f.style.getPropertyPriority(s);return y?S.inlineAll(y).then(function(A){f.style.setProperty(s,A,_);}):Promise.resolve()});return Promise.all(b).then(function(){return f})}},impl:{newImage:g}};function g(R){return {inline:function(p){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(p||r.getAndEncode).then(function(O){return new Promise(function(f){R.onload=f,R.onerror=f,R.src=O;})})}}}let u={copyDefaultStyles:true,imagePlaceholder:void 0,cacheBust:false,useCredentials:false,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},v={toSvg:n,toPng:function(R,p){return h(R,p).then(function(O){return O.toDataURL()})},toJpeg:function(R,p){return h(R,p).then(function(O){return O.toDataURL("image/jpeg",(p?p.quality:void 0)||1)})},toBlob:function(R,p){return h(R,p).then(r.canvasToBlob)},toPixelData:function(R,p){return h(R,p).then(function(O){return O.getContext("2d").getImageData(0,0,r.width(R),r.height(R)).data})},toCanvas:h,impl:{fontFaces:l,images:t,util:r,inliner:S,urlCache:[],options:{},copyOptions:function(R){R.copyDefaultStyles===void 0?v.impl.options.copyDefaultStyles=u.copyDefaultStyles:v.impl.options.copyDefaultStyles=R.copyDefaultStyles,v.impl.options.imagePlaceholder=(R.imagePlaceholder===void 0?u:R).imagePlaceholder,v.impl.options.cacheBust=(R.cacheBust===void 0?u:R).cacheBust,v.impl.options.corsImg=(R.corsImg===void 0?u:R).corsImg,v.impl.options.useCredentials=(R.useCredentials===void 0?u:R).useCredentials,v.impl.options.useCredentialsFilters=(R.useCredentialsFilters===void 0?u:R).useCredentialsFilters,v.impl.options.httpTimeout=(R.httpTimeout===void 0?u:R).httpTimeout,v.impl.options.styleCaching=(R.styleCaching===void 0?u:R).styleCaching;}}},E=(typeof nt=="object"&&typeof rt=="object"?rt.exports=v:i.domtoimage=v,(globalThis.Node===void 0?void 0:globalThis.Node.ELEMENT_NODE)||1),o=(i===void 0?void 0:i.getComputedStyle)||(globalThis.window===void 0?void 0:globalThis.window.getComputedStyle)||globalThis.getComputedStyle,a=(i===void 0?void 0:i.atob)||(globalThis.window===void 0?void 0:globalThis.window.atob)||globalThis.atob;function n(R,p){v.impl.util.getWindow(R);let f=(p=p||{},v.impl.copyOptions(p),[]);return Promise.resolve(R).then(function(c){if(c.nodeType===E)return c;var b=c,s=globalThis.document.createElement("span");return b.replaceWith(s),s.append(c),f.push({child:b,wrapper:s}),s}).then(function(c){return function b(s,y,_,A){let T=y.filter;if(s===w||r.isHTMLScriptElement(s)||r.isHTMLStyleElement(s)||r.isHTMLLinkElement(s)||_!==null&&T&&!T(s))return Promise.resolve();return Promise.resolve(s).then(m).then(d).then(function(D){return x(D,U(s))}).then(P).then(function(D){return N(D,s)});function m(D){return r.isHTMLCanvasElement(D)?r.makeImage(D.toDataURL()):D.cloneNode(false)}function d(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,false),Promise.resolve(D)}function P(D){return y.adjustClonedNode&&y.adjustClonedNode(s,D,true),Promise.resolve(D)}function U(D){return r.isElementHostForOpenShadowRoot(D)?D.shadowRoot:D}function x(D,Q){let k=K(Q),F=Promise.resolve();if(k.length!==0){let G=o($(Q));r.asArray(k).forEach(function(z){F=F.then(function(){return b(z,y,G).then(function(q){q&&D.appendChild(q);})});});}return F.then(function(){return D});function $(G){return r.isShadowRoot(G)?G.host:G}function K(G){if(r.isShadowSlotElement(G)){let z=G.assignedNodes();if(z&&0<z.length)return z}return G.childNodes}}function N(D,Q){return !r.isElement(D)||r.isShadowSlotElement(Q)?Promise.resolve(D):Promise.resolve().then(F).then($).then(K).then(G).then(k).then(function(){return D});function k(){r.isHTMLImageElement(D)&&(D.removeAttribute("loading"),Q.srcset||Q.sizes)&&(D.removeAttribute("srcset"),D.removeAttribute("sizes"),D.src=Q.currentSrc||Q.src);}function F(){function z(V,W){W.font=V.font,W.fontFamily=V.fontFamily,W.fontFeatureSettings=V.fontFeatureSettings,W.fontKerning=V.fontKerning,W.fontSize=V.fontSize,W.fontStretch=V.fontStretch,W.fontStyle=V.fontStyle,W.fontVariant=V.fontVariant,W.fontVariantCaps=V.fontVariantCaps,W.fontVariantEastAsian=V.fontVariantEastAsian,W.fontVariantLigatures=V.fontVariantLigatures,W.fontVariantNumeric=V.fontVariantNumeric,W.fontVariationSettings=V.fontVariationSettings,W.fontWeight=V.fontWeight;}function q(V,W){let ie=o(V);ie.cssText?(W.style.cssText=ie.cssText,z(ie,W.style)):(I(y,V,ie,_,W),_===null&&(["inset-block","inset-block-start","inset-block-end"].forEach(ae=>W.style.removeProperty(ae)),["left","right","top","bottom"].forEach(ae=>{W.style.getPropertyValue(ae)&&W.style.setProperty(ae,"0px");})));}q(Q,D);}function $(){let z=r.uid();function q(V){let W=o(Q,V),ie=W.getPropertyValue("content");if(ie!==""&&ie!=="none"){let Y=function(){let Z=`.${z}:`+V,ne=(W.cssText?oe:j)();return globalThis.document.createTextNode(Z+`{${ne}}`);function oe(){return `${W.cssText} content: ${ie};`}function j(){return r.asArray(W).map(ee).join("; ")+";";function ee(X){let le=W.getPropertyValue(X),ge=W.getPropertyPriority(X)?" !important":"";return X+": "+le+ge}}};let J=D.getAttribute("class")||"",te=(D.setAttribute("class",J+" "+z),globalThis.document.createElement("style"));te.appendChild(Y()),D.appendChild(te);}}[":before",":after"].forEach(function(V){q(V);});}function K(){r.isHTMLTextAreaElement(Q)&&(D.innerHTML=Q.value),r.isHTMLInputElement(Q)&&D.setAttribute("value",Q.value);}function G(){r.isSVGElement(D)&&(D.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.isSVGRectElement(D))&&["width","height"].forEach(function(z){let q=D.getAttribute(z);q&&D.style.setProperty(z,q);});}}}(c,p,null)}).then(p.disableEmbedFonts?Promise.resolve(R):C).then(p.disableInlineImages?Promise.resolve(R):M).then(function(c){p.bgcolor&&(c.style.backgroundColor=p.bgcolor),p.width&&(c.style.width=p.width+"px"),p.height&&(c.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(s){c.style[s]=p.style[s];});let b=null;return typeof p.onclone=="function"&&(b=p.onclone(c)),Promise.resolve(b).then(function(){return c})}).then(function(c){let b=p.width||r.width(R),s=p.height||r.height(R);return Promise.resolve(c).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(r.escapeXhtml).then(function(y){var _=(r.isDimensionMissing(b)?' width="100%"':` width="${b}"`)+(r.isDimensionMissing(s)?' height="100%"':` height="${s}"`);return `<svg xmlns="http://www.w3.org/2000/svg"${(r.isDimensionMissing(b)?"":` width="${b}"`)+(r.isDimensionMissing(s)?"":` height="${s}"`)}><foreignObject${_}>${y}</foreignObject></svg>`}).then(function(y){return "data:image/svg+xml;charset=utf-8,"+y})}).then(function(c){for(;0<f.length;){var b=f.pop();b.wrapper.replaceWith(b.child);}return c}).then(function(c){return v.impl.urlCache=[],w&&(globalThis.document.body.removeChild(w),w=null),H&&clearTimeout(H),H=setTimeout(()=>{H=null,B={};},2e4),c})}function h(R,p){return n(R,p=p||{}).then(r.makeImage).then(function(O){var f=typeof p.scale!="number"?1:p.scale,c=((s,y)=>{let _=p.width||r.width(s),A=p.height||r.height(s);return r.isDimensionMissing(_)&&(_=r.isDimensionMissing(A)?300:2*A),r.isDimensionMissing(A)&&(A=_/2),(s=globalThis.document.createElement("canvas")).width=_*y,s.height=A*y,p.bgcolor&&((y=s.getContext("2d")).fillStyle=p.bgcolor,y.fillRect(0,0,s.width,s.height)),s})(R,f),b=c.getContext("2d");return b.msImageSmoothingEnabled=false,b.imageSmoothingEnabled=false,O&&(b.scale(f,f),b.drawImage(O,0,0)),c})}let w=null;function C(R){return l.resolveAll().then(function(p){var O;return p!==""&&(O=globalThis.document.createElement("style"),R.appendChild(O),O.appendChild(globalThis.document.createTextNode(p))),R})}function M(R){return t.inlineAll(R).then(function(){return R})}function I(R,p,O,f,c){let b=v.impl.options.copyDefaultStyles?((y,_)=>{var A,T=(P=>(y.styleCaching!=="relaxed"?P:P.filter((U,x,N)=>x===0||x===N.length-1)).join(">"))(_=(P=>{var U=[];do if(P.nodeType===E){var x=P.tagName;if(U.push(x),L.includes(x))break}while(P=P.parentNode);return U})(_));{if(B[T])return B[T];_=((P,U)=>{let x=P.body;do{var N=U.pop(),N=P.createElement(N);x.appendChild(N),x=N;}while(0<U.length);return x.textContent="\u200B",x})((A=(()=>{if(w)return w.contentWindow;U=globalThis.document.characterSet||"UTF-8",P=(P=globalThis.document.doctype)?(`<!DOCTYPE ${F(P.name)} ${F(P.publicId)} `+F(P.systemId)).trim()+">":"",(w=globalThis.document.createElement("iframe")).id="domtoimage-sandbox-"+r.uid(),w.style.top="-9999px",w.style.visibility="hidden",w.style.position="fixed",globalThis.document.body.appendChild(w);var P,U,x=w,N="domtoimage-sandbox";try{return x.contentWindow.document.write(P+`<html><head><meta charset='${U}'><title>${N}</title></head><body></body></html>`),x.contentWindow}catch{}var D=globalThis.document.createElement("meta");D.setAttribute("charset",U);try{var Q=globalThis.document.implementation.createHTMLDocument(N),k=(Q.head.appendChild(D),P+Q.documentElement.outerHTML);return x.setAttribute("srcdoc",k),x.contentWindow}catch{}return x.contentDocument.head.appendChild(D),x.contentDocument.title=N,x.contentWindow;function F($){var K;return $?((K=globalThis.document.createElement("div")).innerText=$,K.innerHTML):""}})()).document,_),A=((P,U)=>{let x={},N=P.getComputedStyle(U);return r.asArray(N).forEach(function(D){x[D]=D==="width"||D==="height"?"auto":N.getPropertyValue(D);}),x})(A,_);var m=_;do{var d=m.parentElement;d!==null&&d.removeChild(m),m=d;}while(m&&m.tagName!=="BODY");return B[T]=A}})(R,p):{},s=c.style;r.asArray(O).forEach(function(y){var _,A,T,m;R.filterStyles&&!R.filterStyles(p,y)||(A=O.getPropertyValue(y),T=b[y],_=f?f.getPropertyValue(y):void 0,s.getPropertyValue(y))||(A!==T||f&&A!==_)&&(T=O.getPropertyPriority(y),_=s,A=A,T=T,m=0<=["background-clip"].indexOf(y=y),T?(_.setProperty(y,A,T),m&&_.setProperty("-webkit-"+y,A,T)):(_.setProperty(y,A),m&&_.setProperty("-webkit-"+y,A)));});}let H=null,B={},L=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"];})(nt);});var Bt=Je(()=>{});var on=Je((Or,rn)=>{var ht=typeof Map=="function"&&Map.prototype,ot=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=ht&&ot&&typeof ot.get=="function"?ot.get:null,Ht=ht&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,it=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=pt&&it&&typeof it.get=="function"?it.get:null,kt=pt&&Set.prototype.forEach,Mn=typeof WeakMap=="function"&&WeakMap.prototype,Be=Mn?WeakMap.prototype.has:null,Ln=typeof WeakSet=="function"&&WeakSet.prototype,He=Ln?WeakSet.prototype.has:null,Dn=typeof WeakRef=="function"&&WeakRef.prototype,Nt=Dn?WeakRef.prototype.deref:null,Fn=Boolean.prototype.valueOf,Bn=Object.prototype.toString,Hn=Function.prototype.toString,kn=String.prototype.match,gt=String.prototype.slice,Ee=String.prototype.replace,Nn=String.prototype.toUpperCase,Qt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,$t=Array.prototype.concat,Ae=Array.prototype.join,Qn=Array.prototype.slice,Wt=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||true)?Symbol.toStringTag:null,Zt=Object.prototype.propertyIsEnumerable,zt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(i){return i.__proto__}:null);function Vt(i,r){if(i===1/0||i===-1/0||i!==i||i&&i>-1e3&&i<1e3||Yt.call(/e/,r))return r;var S=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof i=="number"){var l=i<0?-Wt(-i):Wt(i);if(l!==i){var e=String(l),t=gt.call(r,e.length+1);return Ee.call(e,S,"$&_")+"."+Ee.call(Ee.call(t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ee.call(r,S,"$&_")}var ct=Bt(),Gt=ct.custom,qt=en(Gt)?Gt:null,Jt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};rn.exports=function i(r,S,l,e){var t=S||{};if(we(t,"quoteStyle")&&!we(Jt,t.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(we(t,"maxStringLength")&&(typeof t.maxStringLength=="number"?t.maxStringLength<0&&t.maxStringLength!==1/0:t.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=we(t,"customInspect")?t.customInspect:true;if(typeof g!="boolean"&&g!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(we(t,"indent")&&t.indent!==null&&t.indent!==" "&&!(parseInt(t.indent,10)===t.indent&&t.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(we(t,"numericSeparator")&&typeof t.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=t.numericSeparator;if(typeof r>"u")return "undefined";if(r===null)return "null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return nn(r,t);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var v=String(r);return u?Vt(r,v):v}if(typeof r=="bigint"){var E=String(r)+"n";return u?Vt(r,E):E}var o=typeof t.depth>"u"?5:t.depth;if(typeof l>"u"&&(l=0),l>=o&&o>0&&typeof r=="object")return ft(r)?"[Array]":"[Object]";var a=ar(t,l);if(typeof e>"u")e=[];else if(tn(e,r)>=0)return "[Circular]";function n(_,A,T){if(A&&(e=Qn.call(e),e.push(A)),T){var m={depth:t.depth};return we(t,"quoteStyle")&&(m.quoteStyle=t.quoteStyle),i(_,m,l+1,e)}return i(_,t,l+1,e)}if(typeof r=="function"&&!Kt(r)){var h=Zn(r),w=qe(r,n);return "[Function"+(h?": "+h:" (anonymous)")+"]"+(w.length>0?" { "+Ae.call(w,", ")+" }":"")}if(en(r)){var C=Me?Ee.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):ut.call(r);return typeof r=="object"&&!Me?Fe(C):C}if(rr(r)){for(var M="<"+Qt.call(String(r.nodeName)),I=r.attributes||[],H=0;H<I.length;H++)M+=" "+I[H].name+"="+jt(Wn(I[H].value),"double",t);return M+=">",r.childNodes&&r.childNodes.length&&(M+="..."),M+="</"+Qt.call(String(r.nodeName))+">",M}if(ft(r)){if(r.length===0)return "[]";var B=qe(r,n);return a&&!ir(B)?"["+dt(B,a)+"]":"[ "+Ae.call(B,", ")+" ]"}if(Vn(r)){var L=qe(r,n);return !("cause"in Error.prototype)&&"cause"in r&&!Zt.call(r,"cause")?"{ ["+String(r)+"] "+Ae.call($t.call("[cause]: "+n(r.cause),L),", ")+" }":L.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ae.call(L,", ")+" }"}if(typeof r=="object"&&g){if(qt&&typeof r[qt]=="function"&&ct)return ct(r,{depth:o-l});if(g!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Jn(r)){var R=[];return Ht&&Ht.call(r,function(_,A){R.push(n(A,r,true)+" => "+n(_,r));}),Xt("Map",Ke.call(r),R,a)}if(tr(r)){var p=[];return kt&&kt.call(r,function(_){p.push(n(_,r));}),Xt("Set",Xe.call(r),p,a)}if(jn(r))return st("WeakMap");if(nr(r))return st("WeakSet");if(er(r))return st("WeakRef");if(qn(r))return Fe(n(Number(r)));if(Xn(r))return Fe(n(lt.call(r)));if(Kn(r))return Fe(Fn.call(r));if(Gn(r))return Fe(n(String(r)));if(typeof globalThis.window<"u"&&r===globalThis.window)return "{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof global<"u"&&r===global)return "{ [object globalThis] }";if(!zn(r)&&!Kt(r)){var O=qe(r,n),f=zt?zt(r)===Object.prototype:r instanceof Object||r.constructor===Object,c=r instanceof Object?"":"null prototype",b=!f&&ke&&Object(r)===r&&ke in r?gt.call(Se(r),8,-1):c?"Object":"",s=f||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",y=s+(b||c?"["+Ae.call($t.call([],b||[],c||[]),": ")+"] ":"");return O.length===0?y+"{}":a?y+"{"+dt(O,a)+"}":y+"{ "+Ae.call(O,", ")+" }"}return String(r)};function jt(i,r,S){var l=S.quoteStyle||r,e=Jt[l];return e+i+e}function Wn(i){return Ee.call(String(i),/"/g,"&quot;")}function Oe(i){return !ke||!(typeof i=="object"&&(ke in i||typeof i[ke]<"u"))}function ft(i){return Se(i)==="[object Array]"&&Oe(i)}function zn(i){return Se(i)==="[object Date]"&&Oe(i)}function Kt(i){return Se(i)==="[object RegExp]"&&Oe(i)}function Vn(i){return Se(i)==="[object Error]"&&Oe(i)}function Gn(i){return Se(i)==="[object String]"&&Oe(i)}function qn(i){return Se(i)==="[object Number]"&&Oe(i)}function Kn(i){return Se(i)==="[object Boolean]"&&Oe(i)}function en(i){if(Me)return i&&typeof i=="object"&&i instanceof Symbol;if(typeof i=="symbol")return true;if(!i||typeof i!="object"||!ut)return false;try{return ut.call(i),!0}catch{}return false}function Xn(i){if(!i||typeof i!="object"||!lt)return false;try{return lt.call(i),!0}catch{}return false}var Yn=Object.prototype.hasOwnProperty||function(i){return i in this};function we(i,r){return Yn.call(i,r)}function Se(i){return Bn.call(i)}function Zn(i){if(i.name)return i.name;var r=kn.call(Hn.call(i),/^function\s*([\w$]+)/);return r?r[1]:null}function tn(i,r){if(i.indexOf)return i.indexOf(r);for(var S=0,l=i.length;S<l;S++)if(i[S]===r)return S;return -1}function Jn(i){if(!Ke||!i||typeof i!="object")return false;try{Ke.call(i);try{Xe.call(i);}catch{return !0}return i instanceof Map}catch{}return false}function jn(i){if(!Be||!i||typeof i!="object")return false;try{Be.call(i,Be);try{He.call(i,He);}catch{return !0}return i instanceof WeakMap}catch{}return false}function er(i){if(!Nt||!i||typeof i!="object")return false;try{return Nt.call(i),!0}catch{}return false}function tr(i){if(!Xe||!i||typeof i!="object")return false;try{Xe.call(i);try{Ke.call(i);}catch{return !0}return i instanceof Set}catch{}return false}function nr(i){if(!He||!i||typeof i!="object")return false;try{He.call(i,He);try{Be.call(i,Be);}catch{return !0}return i instanceof WeakSet}catch{}return false}function rr(i){return !i||typeof i!="object"?false:typeof HTMLElement<"u"&&i instanceof HTMLElement?true:typeof i.nodeName=="string"&&typeof i.getAttribute=="function"}function nn(i,r){if(i.length>r.maxStringLength){var S=i.length-r.maxStringLength,l="... "+S+" more character"+(S>1?"s":"");return nn(gt.call(i,0,r.maxStringLength),r)+l}var e=$n[r.quoteStyle||"single"];e.lastIndex=0;var t=Ee.call(Ee.call(i,e,"\\$1"),/[\x00-\x1f]/g,or);return jt(t,"single",r)}function or(i){var r=i.charCodeAt(0),S={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return S?"\\"+S:"\\x"+(r<16?"0":"")+Nn.call(r.toString(16))}function Fe(i){return "Object("+i+")"}function st(i){return i+" { ? }"}function Xt(i,r,S,l){var e=l?dt(S,l):Ae.call(S,", ");return i+" ("+r+") {"+e+"}"}function ir(i){for(var r=0;r<i.length;r++)if(tn(i[r],`
3
3
  `)>=0)return false;return true}function ar(i,r){var S;if(i.indent===" ")S=" ";else if(typeof i.indent=="number"&&i.indent>0)S=Ae.call(Array(i.indent+1)," ");else return null;return {base:S,prev:Ae.call(Array(r+1),S)}}function dt(i,r){if(i.length===0)return "";var S=`
4
4
  `+r.prev+r.base;return S+Ae.call(i,","+S)+`
5
- `+r.prev}function qe(i,r){var S=ft(i),l=[];if(S){l.length=i.length;for(var e=0;e<i.length;e++)l[e]=we(i,e)?r(i[e],i):"";}var t=typeof at=="function"?at(i):[],g;if(Pe){g={};for(var u=0;u<t.length;u++)g["$"+t[u]]=t[u];}for(var v in i)we(i,v)&&(S&&String(Number(v))===v&&v<i.length||Pe&&g["$"+v]instanceof Symbol||(Yt.call(/[^\w$]/,v)?l.push(r(v,i)+": "+r(i[v],i)):l.push(v+": "+r(i[v],i))));if(typeof at=="function")for(var E=0;E<t.length;E++)Zt.call(i,t[E])&&l.push("["+r(t[E])+"]: "+r(i[t[E]],i));return l}});function Tn(i,r){return r.forEach(function(S){S&&typeof S!="string"&&!Array.isArray(S)&&Object.keys(S).forEach(function(l){if(l!=="default"&&!(l in i)){var e=Object.getOwnPropertyDescriptor(S,l);Object.defineProperty(i,l,e.get?e:{enumerable:true,get:function(){return S[l]}});}});}),Object.freeze(i)}function Tt(i,r){return new Promise(function(S,l){let e;return In(i).then(function(t){try{return e=t,S(new Blob([r.slice(0,2),e,r.slice(2)],{type:"image/jpeg"}))}catch(g){return l(g)}},l)})}var In=i=>new Promise((r,S)=>{let l=new globalThis.FileReader;l.addEventListener("load",({target:{result:e}})=>{let t=new DataView(e),g=0;if(t.getUint16(g)!==65496)return S("not a valid JPEG");for(g+=2;;){let u=t.getUint16(g);if(u===65498)break;let v=t.getUint16(g+2);if(u===65505&&t.getUint32(g+4)===1165519206){let E=g+10,o;switch(t.getUint16(E)){case 18761:o=true;break;case 19789:o=false;break;default:return S("TIFF header contains invalid endian")}if(t.getUint16(E+2,o)!==42)return S("TIFF header contains invalid version");let a=t.getUint32(E+4,o),n=E+a+2+12*t.getUint16(E+a,o);for(let h=E+a+2;h<n;h+=12)if(t.getUint16(h,o)==274){if(t.getUint16(h+2,o)!==3)return S("Orientation data type is invalid");if(t.getUint32(h+4,o)!==1)return S("Orientation data count is invalid");t.setUint16(h+8,1,o);break}return r(e.slice(g,g+2+v))}g+=2+v;}return r(new Blob)}),l.readAsArrayBuffer(i);}),$e={},Rn={get exports(){return $e},set exports(i){$e=i;}};(function(i){var r,S,l={};Rn.exports=l,l.parse=function(e,t){for(var g=l.bin.readUshort,u=l.bin.readUint,v=0,E={},o=new Uint8Array(e),a=o.length-4;u(o,a)!=101010256;)a--;v=a,v+=4;var n=g(o,v+=4);g(o,v+=2);var h=u(o,v+=2),w=u(o,v+=4);v+=4,v=w;for(var C=0;C<n;C++){u(o,v),v+=4,v+=4,v+=4,u(o,v+=4),h=u(o,v+=4);var P=u(o,v+=4),I=g(o,v+=4),H=g(o,v+2),B=g(o,v+4);v+=6;var L=u(o,v+=8);v+=4,v+=I+H+B,l._readLocal(o,L,E,h,P,t);}return E},l._readLocal=function(e,t,g,u,v,E){var o=l.bin.readUshort,a=l.bin.readUint;a(e,t),o(e,t+=4),o(e,t+=2);var n=o(e,t+=2);a(e,t+=2),a(e,t+=4),t+=4;var h=o(e,t+=8),w=o(e,t+=2);t+=2;var C=l.bin.readUTF8(e,t,h);if(t+=h,t+=w,E)g[C]={size:v,csize:u};else {var P=new Uint8Array(e.buffer,t);if(n==0)g[C]=new Uint8Array(P.buffer.slice(t,t+u));else {if(n!=8)throw "unknown compression method: "+n;var I=new Uint8Array(v);l.inflateRaw(P,I),g[C]=I;}}},l.inflateRaw=function(e,t){return l.F.inflate(e,t)},l.inflate=function(e,t){return e[0],e[1],l.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},l.deflate=function(e,t){t==null&&(t={level:6});var g=0,u=new Uint8Array(50+Math.floor(1.1*e.length));u[g]=120,u[g+1]=156,g+=2,g=l.F.deflateRaw(e,u,g,t.level);var v=l.adler(e,0,e.length);return u[g+0]=v>>>24&255,u[g+1]=v>>>16&255,u[g+2]=v>>>8&255,u[g+3]=v>>>0&255,new Uint8Array(u.buffer,0,g+4)},l.deflateRaw=function(e,t){t==null&&(t={level:6});var g=new Uint8Array(50+Math.floor(1.1*e.length)),u=l.F.deflateRaw(e,g,u,t.level);return new Uint8Array(g.buffer,0,u)},l.encode=function(e,t){t==null&&(t=false);var g=0,u=l.bin.writeUint,v=l.bin.writeUshort,E={};for(var o in e){var a=!l._noNeed(o)&&!t,n=e[o],h=l.crc.crc(n,0,n.length);E[o]={cpr:a,usize:n.length,crc:h,file:a?l.deflateRaw(n):n};}for(var o in E)g+=E[o].file.length+30+46+2*l.bin.sizeUTF8(o);g+=22;var w=new Uint8Array(g),C=0,P=[];for(var o in E){var I=E[o];P.push(C),C=l._writeHeader(w,C,o,I,0);}var H=0,B=C;for(var o in E)I=E[o],P.push(C),C=l._writeHeader(w,C,o,I,1,P[H++]);var L=C-B;return u(w,C,101010256),C+=4,v(w,C+=4,H),v(w,C+=2,H),u(w,C+=2,L),u(w,C+=4,B),C+=4,C+=2,w.buffer},l._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return "png,jpg,jpeg,zip".indexOf(t)!=-1},l._writeHeader=function(e,t,g,u,v,E){var o=l.bin.writeUint,a=l.bin.writeUshort,n=u.file;return o(e,t,v==0?67324752:33639248),t+=4,v==1&&(t+=2),a(e,t,20),a(e,t+=2,0),a(e,t+=2,u.cpr?8:0),o(e,t+=2,0),o(e,t+=4,u.crc),o(e,t+=4,n.length),o(e,t+=4,u.usize),a(e,t+=4,l.bin.sizeUTF8(g)),a(e,t+=2,0),t+=2,v==1&&(t+=2,t+=2,o(e,t+=6,E),t+=4),t+=l.bin.writeUTF8(e,t,g),v==0&&(e.set(n,t),t+=n.length),t},l.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var g=t,u=0;u<8;u++)1&g?g=3988292384^g>>>1:g>>>=1;e[t]=g;}return e}(),update:function(e,t,g,u){for(var v=0;v<u;v++)e=l.crc.table[255&(e^t[g+v])]^e>>>8;return e},crc:function(e,t,g){return 4294967295^l.crc.update(4294967295,e,t,g)}},l.adler=function(e,t,g){for(var u=1,v=0,E=t,o=t+g;E<o;){for(var a=Math.min(E+5552,o);E<a;)v+=u+=e[E++];u%=65521,v%=65521;}return v<<16|u},l.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255;},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255,e[t+2]=g>>16&255,e[t+3]=g>>24&255;},readASCII:function(e,t,g){for(var u="",v=0;v<g;v++)u+=String.fromCharCode(e[t+v]);return u},writeASCII:function(e,t,g){for(var u=0;u<g.length;u++)e[t+u]=g.charCodeAt(u);},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,g){for(var u,v="",E=0;E<g;E++)v+="%"+l.bin.pad(e[t+E].toString(16));try{u=decodeURIComponent(v);}catch{return l.bin.readASCII(e,t,g)}return u},writeUTF8:function(e,t,g){for(var u=g.length,v=0,E=0;E<u;E++){var o=g.charCodeAt(E);if((4294967168&o)==0)e[t+v]=o,v++;else if((4294965248&o)==0)e[t+v]=192|o>>6,e[t+v+1]=128|o>>0&63,v+=2;else if((4294901760&o)==0)e[t+v]=224|o>>12,e[t+v+1]=128|o>>6&63,e[t+v+2]=128|o>>0&63,v+=3;else {if((4292870144&o)!=0)throw "e";e[t+v]=240|o>>18,e[t+v+1]=128|o>>12&63,e[t+v+2]=128|o>>6&63,e[t+v+3]=128|o>>0&63,v+=4;}}return v},sizeUTF8:function(e){for(var t=e.length,g=0,u=0;u<t;u++){var v=e.charCodeAt(u);if((4294967168&v)==0)g++;else if((4294965248&v)==0)g+=2;else if((4294901760&v)==0)g+=3;else {if((4292870144&v)!=0)throw "e";g+=4;}}return g}},l.F={},l.F.deflateRaw=function(e,t,g,u){var v=[[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]][u],E=l.F.U,o=l.F._goodIndex;l.F._hash;var a=l.F._putsE,n=0,h=g<<3,w=0,C=e.length;if(u==0){for(;n<C;)a(t,h,n+(s=Math.min(65535,C-n))==C?1:0),h=l.F._copyExact(e,n,s,t,h+8),n+=s;return h>>>3}var P=E.lits,I=E.strt,H=E.prev,B=0,L=0,R=0,p=0,O=0,f=0;for(C>2&&(I[f=l.F._hash(e,0)]=0),n=0;n<C;n++){if(O=f,n+1<C-2){f=l.F._hash(e,n+1);var c=n+1&32767;H[c]=I[f],I[f]=c;}if(w<=n){(B>14e3||L>26697)&&C-n>100&&(w<n&&(P[B]=n-w,B+=2,w=n),h=l.F._writeBlock(n==C-1||w==C?1:0,P,B,p,e,R,n-R,t,h),B=L=p=0,R=n);var b=0;n<C-2&&(b=l.F._bestMatch(e,n,H,O,Math.min(v[2],C-n),v[3]));var s=b>>>16,y=65535&b;if(b!=0){y=65535&b;var _=o(s=b>>>16,E.of0);E.lhst[257+_]++;var A=o(y,E.df0);E.dhst[A]++,p+=E.exb[_]+E.dxb[A],P[B]=s<<23|n-w,P[B+1]=y<<16|_<<8|A,B+=2,w=n+s;}else E.lhst[e[n]]++;L++;}}for(R==n&&e.length!=0||(w<n&&(P[B]=n-w,B+=2,w=n),h=l.F._writeBlock(1,P,B,p,e,R,n-R,t,h),B=0,L=0,B=L=p=0,R=n);(7&h)!=0;)h++;return h>>>3},l.F._bestMatch=function(e,t,g,u,v,E){var o=32767&t,a=g[o],n=o-a+32768&32767;if(a==o||u!=l.F._hash(e,t-n))return 0;for(var h=0,w=0,C=Math.min(32767,t);n<=C&&--E!=0&&a!=o;){if(h==0||e[t+h]==e[t+h-n]){var P=l.F._howLong(e,t,n);if(P>h){if(w=n,(h=P)>=v)break;n+2<P&&(P=n+2);for(var I=0,H=0;H<P-2;H++){var B=t-n+H+32768&32767,L=B-g[B]+32768&32767;L>I&&(I=L,a=B);}}}n+=(o=a)-(a=g[o])+32768&32767;}return h<<16|w},l.F._howLong=function(e,t,g){if(e[t]!=e[t-g]||e[t+1]!=e[t+1-g]||e[t+2]!=e[t+2-g])return 0;var u=t,v=Math.min(e.length,t+258);for(t+=3;t<v&&e[t]==e[t-g];)t++;return t-u},l.F._hash=function(e,t){return (e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},l.saved=0,l.F._writeBlock=function(e,t,g,u,v,E,o,a,n){var h,w,C,P,I,H,B,L,R,p=l.F.U,O=l.F._putsF,f=l.F._putsE;p.lhst[256]++,w=(h=l.F.getTrees())[0],C=h[1],P=h[2],I=h[3],H=h[4],B=h[5],L=h[6],R=h[7];var c=32+((n+3&7)==0?0:8-(n+3&7))+(o<<3),b=u+l.F.contSize(p.fltree,p.lhst)+l.F.contSize(p.fdtree,p.dhst),s=u+l.F.contSize(p.ltree,p.lhst)+l.F.contSize(p.dtree,p.dhst);s+=14+3*B+l.F.contSize(p.itree,p.ihst)+(2*p.ihst[16]+3*p.ihst[17]+7*p.ihst[18]);for(var y=0;y<286;y++)p.lhst[y]=0;for(y=0;y<30;y++)p.dhst[y]=0;for(y=0;y<19;y++)p.ihst[y]=0;var _=c<b&&c<s?0:b<s?1:2;if(O(a,n,e),O(a,n+1,_),n+=3,_==0){for(;(7&n)!=0;)n++;n=l.F._copyExact(v,E,o,a,n);}else {var A,T;if(_==1&&(A=p.fltree,T=p.fdtree),_==2){l.F.makeCodes(p.ltree,w),l.F.revCodes(p.ltree,w),l.F.makeCodes(p.dtree,C),l.F.revCodes(p.dtree,C),l.F.makeCodes(p.itree,P),l.F.revCodes(p.itree,P),A=p.ltree,T=p.dtree,f(a,n,I-257),f(a,n+=5,H-1),f(a,n+=5,B-4),n+=4;for(var m=0;m<B;m++)f(a,n+3*m,p.itree[1+(p.ordr[m]<<1)]);n+=3*B,n=l.F._codeTiny(L,p.itree,a,n),n=l.F._codeTiny(R,p.itree,a,n);}for(var d=E,M=0;M<g;M+=2){for(var U=t[M],x=U>>>23,N=d+(8388607&U);d<N;)n=l.F._writeLit(v[d++],A,a,n);if(x!=0){var D=t[M+1],Q=D>>16,k=D>>8&255,F=255&D;f(a,n=l.F._writeLit(257+k,A,a,n),x-p.of0[k]),n+=p.exb[k],O(a,n=l.F._writeLit(F,T,a,n),Q-p.df0[F]),n+=p.dxb[F],d+=x;}}n=l.F._writeLit(256,A,a,n);}return n},l.F._copyExact=function(e,t,g,u,v){var E=v>>>3;return u[E]=g,u[E+1]=g>>>8,u[E+2]=255-u[E],u[E+3]=255-u[E+1],E+=4,u.set(new Uint8Array(e.buffer,t,g),E),v+(g+4<<3)},l.F.getTrees=function(){for(var e=l.F.U,t=l.F._hufTree(e.lhst,e.ltree,15),g=l.F._hufTree(e.dhst,e.dtree,15),u=[],v=l.F._lenCodes(e.ltree,u),E=[],o=l.F._lenCodes(e.dtree,E),a=0;a<u.length;a+=2)e.ihst[u[a]]++;for(a=0;a<E.length;a+=2)e.ihst[E[a]]++;for(var n=l.F._hufTree(e.ihst,e.itree,7),h=19;h>4&&e.itree[1+(e.ordr[h-1]<<1)]==0;)h--;return [t,g,n,v,o,h,u,E]},l.F.getSecond=function(e){for(var t=[],g=0;g<e.length;g+=2)t.push(e[g+1]);return t},l.F.nonZero=function(e){for(var t="",g=0;g<e.length;g+=2)e[g+1]!=0&&(t+=(g>>1)+",");return t},l.F.contSize=function(e,t){for(var g=0,u=0;u<t.length;u++)g+=t[u]*e[1+(u<<1)];return g},l.F._codeTiny=function(e,t,g,u){for(var v=0;v<e.length;v+=2){var E=e[v],o=e[v+1];u=l.F._writeLit(E,t,g,u);var a=E==16?2:E==17?3:7;E>15&&(l.F._putsE(g,u,o,a),u+=a);}return u},l.F._lenCodes=function(e,t){for(var g=e.length;g!=2&&e[g-1]==0;)g-=2;for(var u=0;u<g;u+=2){var v=e[u+1],E=u+3<g?e[u+3]:-1,o=u+5<g?e[u+5]:-1,a=u==0?-1:e[u-1];if(v==0&&E==v&&o==v){for(var n=u+5;n+2<g&&e[n+2]==v;)n+=2;(h=Math.min(n+1-u>>>1,138))<11?t.push(17,h-3):t.push(18,h-11),u+=2*h-2;}else if(v==a&&E==v&&o==v){for(n=u+5;n+2<g&&e[n+2]==v;)n+=2;var h=Math.min(n+1-u>>>1,6);t.push(16,h-3),u+=2*h-2;}else t.push(v,0);}return g>>>1},l.F._hufTree=function(e,t,g){var u=[],v=e.length,E=t.length,o=0;for(o=0;o<E;o+=2)t[o]=0,t[o+1]=0;for(o=0;o<v;o++)e[o]!=0&&u.push({lit:o,f:e[o]});var a=u.length,n=u.slice(0);if(a==0)return 0;if(a==1){var h=u[0].lit;return n=h==0?1:0,t[1+(h<<1)]=1,t[1+(n<<1)]=1,1}u.sort(function(L,R){return L.f-R.f});var w=u[0],C=u[1],P=0,I=1,H=2;for(u[0]={lit:-1,f:w.f+C.f,l:w,r:C,d:0};I!=a-1;)w=P!=I&&(H==a||u[P].f<u[H].f)?u[P++]:u[H++],C=P!=I&&(H==a||u[P].f<u[H].f)?u[P++]:u[H++],u[I++]={lit:-1,f:w.f+C.f,l:w,r:C};var B=l.F.setDepth(u[I-1],0);for(B>g&&(l.F.restrictDepth(n,g,B),B=g),o=0;o<a;o++)t[1+(n[o].lit<<1)]=n[o].d;return B},l.F.setDepth=function(e,t){return e.lit!=-1?(e.d=t,t):Math.max(l.F.setDepth(e.l,t+1),l.F.setDepth(e.r,t+1))},l.F.restrictDepth=function(e,t,g){var u=0,v=1<<g-t,E=0;for(e.sort(function(a,n){return n.d==a.d?a.f-n.f:n.d-a.d}),u=0;u<e.length&&e[u].d>t;u++){var o=e[u].d;e[u].d=t,E+=v-(1<<g-o);}for(E>>>=g-t;E>0;)(o=e[u].d)<t?(e[u].d++,E-=1<<t-o-1):u++;for(;u>=0;u--)e[u].d==t&&E<0&&(e[u].d--,E++);E!=0&&console.log("debt left");},l.F._goodIndex=function(e,t){var g=0;return t[16|g]<=e&&(g|=16),t[8|g]<=e&&(g|=8),t[4|g]<=e&&(g|=4),t[2|g]<=e&&(g|=2),t[1|g]<=e&&(g|=1),g},l.F._writeLit=function(e,t,g,u){return l.F._putsF(g,u,t[e<<1]),u+t[1+(e<<1)]},l.F.inflate=function(e,t){var g=Uint8Array;if(e[0]==3&&e[1]==0)return t||new g(0);var u=l.F,v=u._bitsF,E=u._bitsE,o=u._decodeTiny,a=u.makeCodes,n=u.codes2map,h=u._get17,w=u.U,C=t==null;C&&(t=new g(e.length>>>2<<3));for(var P,I,H=0,B=0,L=0,R=0,p=0,O=0,f=0,c=0,b=0;H==0;)if(H=v(e,b,1),B=v(e,b+1,2),b+=3,B!=0){if(C&&(t=l.F._check(t,c+(1<<17))),B==1&&(P=w.flmap,I=w.fdmap,O=511,f=31),B==2){L=E(e,b,5)+257,R=E(e,b+5,5)+1,p=E(e,b+10,4)+4,b+=14;for(var s=0;s<38;s+=2)w.itree[s]=0,w.itree[s+1]=0;var y=1;for(s=0;s<p;s++){var _=E(e,b+3*s,3);w.itree[1+(w.ordr[s]<<1)]=_,_>y&&(y=_);}b+=3*p,a(w.itree,y),n(w.itree,y,w.imap),P=w.lmap,I=w.dmap,b=o(w.imap,(1<<y)-1,L+R,e,b,w.ttree);var A=u._copyOut(w.ttree,0,L,w.ltree);O=(1<<A)-1;var T=u._copyOut(w.ttree,L,R,w.dtree);f=(1<<T)-1,a(w.ltree,A),n(w.ltree,A,P),a(w.dtree,T),n(w.dtree,T,I);}for(;;){var m=P[h(e,b)&O];b+=15&m;var d=m>>>4;if(!(d>>>8))t[c++]=d;else {if(d==256)break;var M=c+d-254;if(d>264){var U=w.ldef[d-257];M=c+(U>>>3)+E(e,b,7&U),b+=7&U;}var x=I[h(e,b)&f];b+=15&x;var N=x>>>4,D=w.ddef[N],Q=(D>>>4)+v(e,b,15&D);for(b+=15&D,C&&(t=l.F._check(t,c+(1<<17)));c<M;)t[c]=t[c++-Q],t[c]=t[c++-Q],t[c]=t[c++-Q],t[c]=t[c++-Q];c=M;}}}else {(7&b)!=0&&(b+=8-(7&b));var k=4+(b>>>3),F=e[k-4]|e[k-3]<<8;C&&(t=l.F._check(t,c+F)),t.set(new g(e.buffer,e.byteOffset+k,F),c),b=k+F<<3,c+=F;}return t.length==c?t:t.slice(0,c)},l.F._check=function(e,t){var g=e.length;if(t<=g)return e;var u=new Uint8Array(Math.max(g<<1,t));return u.set(e,0),u},l.F._decodeTiny=function(e,t,g,u,v,E){for(var o=l.F._bitsE,a=l.F._get17,n=0;n<g;){var h=e[a(u,v)&t];v+=15&h;var w=h>>>4;if(w<=15)E[n]=w,n++;else {var C=0,P=0;w==16?(P=3+o(u,v,2),v+=2,C=E[n-1]):w==17?(P=3+o(u,v,3),v+=3):w==18&&(P=11+o(u,v,7),v+=7);for(var I=n+P;n<I;)E[n]=C,n++;}}return v},l.F._copyOut=function(e,t,g,u){for(var v=0,E=0,o=u.length>>>1;E<g;){var a=e[E+t];u[E<<1]=0,u[1+(E<<1)]=a,a>v&&(v=a),E++;}for(;E<o;)u[E<<1]=0,u[1+(E<<1)]=0,E++;return v},l.F.makeCodes=function(e,t){for(var g,u,v,E,o=l.F.U,a=e.length,n=o.bl_count,h=0;h<=t;h++)n[h]=0;for(h=1;h<a;h+=2)n[e[h]]++;var w=o.next_code;for(g=0,n[0]=0,u=1;u<=t;u++)g=g+n[u-1]<<1,w[u]=g;for(v=0;v<a;v+=2)(E=e[v+1])!=0&&(e[v]=w[E],w[E]++);},l.F.codes2map=function(e,t,g){for(var u=e.length,v=l.F.U.rev15,E=0;E<u;E+=2)if(e[E+1]!=0)for(var o=E>>1,a=e[E+1],n=o<<4|a,h=t-a,w=e[E]<<h,C=w+(1<<h);w!=C;)g[v[w]>>>15-t]=n,w++;},l.F.revCodes=function(e,t){for(var g=l.F.U.rev15,u=15-t,v=0;v<e.length;v+=2){var E=e[v]<<t-e[v+1];e[v]=g[E]>>>u;}},l.F._putsE=function(e,t,g){g<<=7&t;var u=t>>>3;e[u]|=g,e[u+1]|=g>>>8;},l.F._putsF=function(e,t,g){g<<=7&t;var u=t>>>3;e[u]|=g,e[u+1]|=g>>>8,e[u+2]|=g>>>16;},l.F._bitsE=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<g)-1},l.F._bitsF=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<g)-1},l.F._get17=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},l.F._get25=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},l.F.U=(r=Uint16Array,S=Uint32Array,{next_code:new r(16),bl_count:new r(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 r(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 S(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new S(286),dhst:new S(30),ihst:new S(19),lits:new S(15e3),strt:new r(65536),prev:new r(32768)}),function(){for(var e=l.F.U,t=0;t<32768;t++){var g=t;g=(4278255360&(g=(4042322160&(g=(3435973836&(g=(2863311530&g)>>>1|(1431655765&g)<<1))>>>2|(858993459&g)<<2))>>>4|(252645135&g)<<4))>>>8|(16711935&g)<<8,e.rev15[t]=(g>>>16|g<<16)>>>17;}function u(v,E,o){for(;E--!=0;)v.push(0,o);}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];u(e.fltree,144,8),u(e.fltree,112,9),u(e.fltree,24,7),u(e.fltree,8,8),l.F.makeCodes(e.fltree,9),l.F.codes2map(e.fltree,9,e.flmap),l.F.revCodes(e.fltree,9),u(e.fdtree,32,5),l.F.makeCodes(e.fdtree,5),l.F.codes2map(e.fdtree,5,e.fdmap),l.F.revCodes(e.fdtree,5),u(e.itree,19,0),u(e.ltree,286,0),u(e.dtree,30,0),u(e.ttree,320,0);}();})();var Cn=Tn({__proto__:null,default:$e},[$e]),pe=function(){var i={nextZero(o,a){for(;o[a]!=0;)a++;return a},readUshort:(o,a)=>o[a]<<8|o[a+1],writeUshort(o,a,n){o[a]=n>>8&255,o[a+1]=255&n;},readUint:(o,a)=>16777216*o[a]+(o[a+1]<<16|o[a+2]<<8|o[a+3]),writeUint(o,a,n){o[a]=n>>24&255,o[a+1]=n>>16&255,o[a+2]=n>>8&255,o[a+3]=255&n;},readASCII(o,a,n){let h="";for(let w=0;w<n;w++)h+=String.fromCharCode(o[a+w]);return h},writeASCII(o,a,n){for(let h=0;h<n.length;h++)o[a+h]=n.charCodeAt(h);},readBytes(o,a,n){let h=[];for(let w=0;w<n;w++)h.push(o[a+w]);return h},pad:o=>o.length<2?`0${o}`:o,readUTF8(o,a,n){let h,w="";for(let C=0;C<n;C++)w+=`%${i.pad(o[a+C].toString(16))}`;try{h=decodeURIComponent(w);}catch{return i.readASCII(o,a,n)}return h}};function r(o,a,n,h){let w=a*n,C=t(h),P=Math.ceil(a*C/8),I=new Uint8Array(4*w),H=new Uint32Array(I.buffer),{ctype:B}=h,{depth:L}=h,R=i.readUshort;if(B==6){let U=w<<2;if(L==8)for(var p=0;p<U;p+=4)I[p]=o[p],I[p+1]=o[p+1],I[p+2]=o[p+2],I[p+3]=o[p+3];if(L==16)for(p=0;p<U;p++)I[p]=o[p<<1];}else if(B==2){let U=h.tabs.tRNS;if(U==null){if(L==8)for(p=0;p<w;p++){var O=3*p;H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O];}if(L==16)for(p=0;p<w;p++)O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O];}else {var f=U[0];let x=U[1],N=U[2];if(L==8)for(p=0;p<w;p++){var c=p<<2;O=3*p,H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O],o[O]==f&&o[O+1]==x&&o[O+2]==N&&(I[c+3]=0);}if(L==16)for(p=0;p<w;p++)c=p<<2,O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O],R(o,O)==f&&R(o,O+2)==x&&R(o,O+4)==N&&(I[c+3]=0);}}else if(B==3){let U=h.tabs.PLTE,x=h.tabs.tRNS,N=x?x.length:0;if(L==1)for(var b=0;b<n;b++){var s=b*P,y=b*a;for(p=0;p<a;p++){c=y+p<<2;var _=3*(A=o[s+(p>>3)]>>7-((7&p)<<0)&1);I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;}}if(L==2)for(b=0;b<n;b++)for(s=b*P,y=b*a,p=0;p<a;p++)c=y+p<<2,_=3*(A=o[s+(p>>2)]>>6-((3&p)<<1)&3),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;if(L==4)for(b=0;b<n;b++)for(s=b*P,y=b*a,p=0;p<a;p++)c=y+p<<2,_=3*(A=o[s+(p>>1)]>>4-((1&p)<<2)&15),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;if(L==8)for(p=0;p<w;p++){var A;c=p<<2,_=3*(A=o[p]),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;}}else if(B==4){if(L==8)for(p=0;p<w;p++){c=p<<2;var T=o[m=p<<1];I[c]=T,I[c+1]=T,I[c+2]=T,I[c+3]=o[m+1];}if(L==16)for(p=0;p<w;p++){var m;c=p<<2,T=o[m=p<<2],I[c]=T,I[c+1]=T,I[c+2]=T,I[c+3]=o[m+2];}}else if(B==0)for(f=h.tabs.tRNS?h.tabs.tRNS:-1,b=0;b<n;b++){let U=b*P,x=b*a;if(L==1)for(var d=0;d<a;d++){var M=(T=255*(o[U+(d>>>3)]>>>7-(7&d)&1))==255*f?0:255;H[x+d]=M<<24|T<<16|T<<8|T;}else if(L==2)for(d=0;d<a;d++)M=(T=85*(o[U+(d>>>2)]>>>6-((3&d)<<1)&3))==85*f?0:255,H[x+d]=M<<24|T<<16|T<<8|T;else if(L==4)for(d=0;d<a;d++)M=(T=17*(o[U+(d>>>1)]>>>4-((1&d)<<2)&15))==17*f?0:255,H[x+d]=M<<24|T<<16|T<<8|T;else if(L==8)for(d=0;d<a;d++)M=(T=o[U+d])==f?0:255,H[x+d]=M<<24|T<<16|T<<8|T;else if(L==16)for(d=0;d<a;d++)T=o[U+(d<<1)],M=R(o,U+(d<<1))==f?0:255,H[x+d]=M<<24|T<<16|T<<8|T;}return I}function S(o,a,n,h){let w=t(o),C=Math.ceil(n*w/8),P=new Uint8Array((C+1+o.interlace)*h);return a=o.tabs.CgBI?e(a,P):l(a,P),o.interlace==0?a=g(a,o,0,n,h):o.interlace==1&&(a=function(H,B){let L=B.width,R=B.height,p=t(B),O=p>>3,f=Math.ceil(L*p/8),c=new Uint8Array(R*f),b=0,s=[0,0,4,0,2,0,1],y=[0,4,0,2,0,1,0],_=[8,8,8,4,4,2,2],A=[8,8,4,4,2,2,1],T=0;for(;T<7;){let d=_[T],M=A[T],U=0,x=0,N=s[T];for(;N<R;)N+=d,x++;let D=y[T];for(;D<L;)D+=M,U++;let Q=Math.ceil(U*p/8);g(H,B,b,U,x);let k=0,F=s[T];for(;F<R;){let $=y[T],K=b+k*Q<<3;for(;$<L;){var m;if(p==1&&(m=(m=H[K>>3])>>7-(7&K)&1,c[F*f+($>>3)]|=m<<7-((7&$)<<0)),p==2&&(m=(m=H[K>>3])>>6-(7&K)&3,c[F*f+($>>2)]|=m<<6-((3&$)<<1)),p==4&&(m=(m=H[K>>3])>>4-(7&K)&15,c[F*f+($>>1)]|=m<<4-((1&$)<<2)),p>=8){let G=F*f+$*O;for(let z=0;z<O;z++)c[G+z]=H[(K>>3)+z];}K+=p,$+=M;}k++,F+=d;}U*x!=0&&(b+=x*(1+Q)),T+=1;}return c}(a,o)),a}function l(o,a){return e(new Uint8Array(o.buffer,2,o.length-6),a)}var e=function(){let o={H:{}};return o.H.N=function(a,n){let h=Uint8Array,w,C,P=0,I=0,H=0,B=0,L=0,R=0,p=0,O=0,f=0;if(a[0]==3&&a[1]==0)return n||new h(0);let c=o.H,b=c.b,s=c.e,y=c.R,_=c.n,A=c.A,T=c.Z,m=c.m,d=n==null;for(d&&(n=new h(a.length>>>2<<5));P==0;)if(P=b(a,f,1),I=b(a,f+1,2),f+=3,I!=0){if(d&&(n=o.H.W(n,O+(1<<17))),I==1&&(w=m.J,C=m.h,R=511,p=31),I==2){H=s(a,f,5)+257,B=s(a,f+5,5)+1,L=s(a,f+10,4)+4,f+=14;let U=1;for(var M=0;M<38;M+=2)m.Q[M]=0,m.Q[M+1]=0;for(M=0;M<L;M++){let D=s(a,f+3*M,3);m.Q[1+(m.X[M]<<1)]=D,D>U&&(U=D);}f+=3*L,_(m.Q,U),A(m.Q,U,m.u),w=m.w,C=m.d,f=y(m.u,(1<<U)-1,H+B,a,f,m.v);let x=c.V(m.v,0,H,m.C);R=(1<<x)-1;let N=c.V(m.v,H,B,m.D);p=(1<<N)-1,_(m.C,x),A(m.C,x,w),_(m.D,N),A(m.D,N,C);}for(;;){let U=w[T(a,f)&R];f+=15&U;let x=U>>>4;if(!(x>>>8))n[O++]=x;else {if(x==256)break;{let N=O+x-254;if(x>264){let $=m.q[x-257];N=O+($>>>3)+s(a,f,7&$),f+=7&$;}let D=C[T(a,f)&p];f+=15&D;let Q=D>>>4,k=m.c[Q],F=(k>>>4)+b(a,f,15&k);for(f+=15&k;O<N;)n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F];O=N;}}}}else {(7&f)!=0&&(f+=8-(7&f));let U=4+(f>>>3),x=a[U-4]|a[U-3]<<8;d&&(n=o.H.W(n,O+x)),n.set(new h(a.buffer,a.byteOffset+U,x),O),f=U+x<<3,O+=x;}return n.length==O?n:n.slice(0,O)},o.H.W=function(a,n){let h=a.length;if(n<=h)return a;let w=new Uint8Array(h<<1);return w.set(a,0),w},o.H.R=function(a,n,h,w,C,P){let I=o.H.e,H=o.H.Z,B=0;for(;B<h;){let L=a[H(w,C)&n];C+=15&L;let R=L>>>4;if(R<=15)P[B]=R,B++;else {let p=0,O=0;R==16?(O=3+I(w,C,2),C+=2,p=P[B-1]):R==17?(O=3+I(w,C,3),C+=3):R==18&&(O=11+I(w,C,7),C+=7);let f=B+O;for(;B<f;)P[B]=p,B++;}}return C},o.H.V=function(a,n,h,w){let C=0,P=0,I=w.length>>>1;for(;P<h;){let H=a[P+n];w[P<<1]=0,w[1+(P<<1)]=H,H>C&&(C=H),P++;}for(;P<I;)w[P<<1]=0,w[1+(P<<1)]=0,P++;return C},o.H.n=function(a,n){let h=o.H.m,w=a.length,C,P,I,H,B=h.j;for(var L=0;L<=n;L++)B[L]=0;for(L=1;L<w;L+=2)B[a[L]]++;let R=h.K;for(C=0,B[0]=0,P=1;P<=n;P++)C=C+B[P-1]<<1,R[P]=C;for(I=0;I<w;I+=2)H=a[I+1],H!=0&&(a[I]=R[H],R[H]++);},o.H.A=function(a,n,h){let w=a.length,C=o.H.m.r;for(let P=0;P<w;P+=2)if(a[P+1]!=0){let I=P>>1,H=a[P+1],B=I<<4|H,L=n-H,R=a[P]<<L,p=R+(1<<L);for(;R!=p;)h[C[R]>>>15-n]=B,R++;}},o.H.l=function(a,n){let h=o.H.m.r,w=15-n;for(let C=0;C<a.length;C+=2){let P=a[C]<<n-a[C+1];a[C]=h[P]>>>w;}},o.H.M=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8;},o.H.I=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8,a[w+2]|=h>>>16;},o.H.e=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8)>>>(7&n)&(1<<h)-1},o.H.b=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)&(1<<h)-1},o.H.Z=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)},o.H.i=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16|a[3+(n>>>3)]<<24)>>>(7&n)},o.H.m=function(){let a=Uint16Array,n=Uint32Array;return {K:new a(16),j:new a(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 a(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 a(512),_:[],h:new a(32),$:[],w:new a(32768),C:[],v:[],d:new a(32768),D:[],u:new a(512),Q:[],r:new a(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new a(65536),g:new a(32768)}}(),function(){let a=o.H.m;for(var n=0;n<32768;n++){let w=n;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,a.r[n]=(w>>>16|w<<16)>>>17;}function h(w,C,P){for(;C--!=0;)w.push(0,P);}for(n=0;n<32;n++)a.q[n]=a.S[n]<<3|a.T[n],a.c[n]=a.p[n]<<4|a.z[n];h(a._,144,8),h(a._,112,9),h(a._,24,7),h(a._,8,8),o.H.n(a._,9),o.H.A(a._,9,a.J),o.H.l(a._,9),h(a.$,32,5),o.H.n(a.$,5),o.H.A(a.$,5,a.h),o.H.l(a.$,5),h(a.Q,19,0),h(a.C,286,0),h(a.D,30,0),h(a.v,320,0);}(),o.H.N}();function t(o){return [1,null,3,1,2,null,4][o.ctype]*o.depth}function g(o,a,n,h,w){let C=t(a),P=Math.ceil(h*C/8),I,H;C=Math.ceil(C/8);let B=o[n],L=0;if(B>1&&(o[n]=[0,0,1][B-2]),B==3)for(L=C;L<P;L++)o[L+1]=o[L+1]+(o[L+1-C]>>>1)&255;for(let R=0;R<w;R++)if(I=n+R*P,H=I+R+1,B=o[H-1],L=0,B==0)for(;L<P;L++)o[I+L]=o[H+L];else if(B==1){for(;L<C;L++)o[I+L]=o[H+L];for(;L<P;L++)o[I+L]=o[H+L]+o[I+L-C];}else if(B==2)for(;L<P;L++)o[I+L]=o[H+L]+o[I+L-P];else if(B==3){for(;L<C;L++)o[I+L]=o[H+L]+(o[I+L-P]>>>1);for(;L<P;L++)o[I+L]=o[H+L]+(o[I+L-P]+o[I+L-C]>>>1);}else {for(;L<C;L++)o[I+L]=o[H+L]+u(0,o[I+L-P],0);for(;L<P;L++)o[I+L]=o[H+L]+u(o[I+L-C],o[I+L-P],o[I+L-C-P]);}return o}function u(o,a,n){let h=o+a-n,w=h-o,C=h-a,P=h-n;return w*w<=C*C&&w*w<=P*P?o:C*C<=P*P?a:n}function v(o,a,n){n.width=i.readUint(o,a),a+=4,n.height=i.readUint(o,a),a+=4,n.depth=o[a],a++,n.ctype=o[a],a++,n.compress=o[a],a++,n.filter=o[a],a++,n.interlace=o[a],a++;}function E(o,a,n,h,w,C,P,I,H){let B=Math.min(a,w),L=Math.min(n,C),R=0,p=0;for(let T=0;T<L;T++)for(let m=0;m<B;m++)if(P>=0&&I>=0?(R=T*a+m<<2,p=(I+T)*w+P+m<<2):(R=(-I+T)*a-P+m<<2,p=T*w+m<<2),H==0)h[p]=o[R],h[p+1]=o[R+1],h[p+2]=o[R+2],h[p+3]=o[R+3];else if(H==1){var O=o[R+3]*.00392156862745098,f=o[R]*O,c=o[R+1]*O,b=o[R+2]*O,s=h[p+3]*(1/255),y=h[p]*s,_=h[p+1]*s,A=h[p+2]*s;let d=1-O,M=O+s*d,U=M==0?0:1/M;h[p+3]=255*M,h[p+0]=(f+y*d)*U,h[p+1]=(c+_*d)*U,h[p+2]=(b+A*d)*U;}else if(H==2)O=o[R+3],f=o[R],c=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&c==_&&b==A?(h[p]=0,h[p+1]=0,h[p+2]=0,h[p+3]=0):(h[p]=f,h[p+1]=c,h[p+2]=b,h[p+3]=O);else if(H==3){if(O=o[R+3],f=o[R],c=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&c==_&&b==A)continue;if(O<220&&s>20)return false}return true}return {decode:function(a){let n=new Uint8Array(a),h=8,w=i,C=w.readUshort,P=w.readUint,I={tabs:{},frames:[]},H=new Uint8Array(n.length),B,L=0,R=0,p=[137,80,78,71,13,10,26,10];for(var O=0;O<8;O++)if(n[O]!=p[O])throw "The input is not a PNG file!";for(;h<n.length;){let T=w.readUint(n,h);h+=4;let m=w.readASCII(n,h,4);if(h+=4,m=="IHDR")v(n,h,I);else if(m=="iCCP"){for(var f=h;n[f]!=0;)f++;w.readASCII(n,h,f-h),n[f+1];let d=n.slice(f+2,h+T),M=null;try{M=l(d);}catch{M=e(d);}I.tabs[m]=M;}else if(m=="CgBI")I.tabs[m]=n.slice(h,h+4);else if(m=="IDAT"){for(O=0;O<T;O++)H[L+O]=n[h+O];L+=T;}else if(m=="acTL")I.tabs[m]={num_frames:P(n,h),num_plays:P(n,h+4)},B=new Uint8Array(n.length);else if(m=="fcTL"){R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height),R=0);let d={x:P(n,h+12),y:P(n,h+16),width:P(n,h+4),height:P(n,h+8)},M=C(n,h+22);M=C(n,h+20)/(M==0?100:M);let U={rect:d,delay:Math.round(1e3*M),dispose:n[h+24],blend:n[h+25]};I.frames.push(U);}else if(m=="fdAT"){for(O=0;O<T-4;O++)B[R+O]=n[h+O+4];R+=T-4;}else if(m=="pHYs")I.tabs[m]=[w.readUint(n,h),w.readUint(n,h+4),n[h+8]];else if(m=="cHRM")for(I.tabs[m]=[],O=0;O<8;O++)I.tabs[m].push(w.readUint(n,h+4*O));else if(m=="tEXt"||m=="zTXt"){I.tabs[m]==null&&(I.tabs[m]={});var c=w.nextZero(n,h),b=w.readASCII(n,h,c-h),s=h+T-c-1;if(m=="tEXt")_=w.readASCII(n,c+1,s);else {var y=l(n.slice(c+2,c+2+s));_=w.readUTF8(y,0,y.length);}I.tabs[m][b]=_;}else if(m=="iTXt"){I.tabs[m]==null&&(I.tabs[m]={}),c=0,f=h,c=w.nextZero(n,f),b=w.readASCII(n,f,c-f);let d=n[f=c+1];var _;n[f+1],f+=2,c=w.nextZero(n,f),w.readASCII(n,f,c-f),f=c+1,c=w.nextZero(n,f),w.readUTF8(n,f,c-f),s=T-((f=c+1)-h),d==0?_=w.readUTF8(n,f,s):(y=l(n.slice(f,f+s)),_=w.readUTF8(y,0,y.length)),I.tabs[m][b]=_;}else if(m=="PLTE")I.tabs[m]=w.readBytes(n,h,T);else if(m=="hIST"){let d=I.tabs.PLTE.length/3;for(I.tabs[m]=[],O=0;O<d;O++)I.tabs[m].push(C(n,h+2*O));}else if(m=="tRNS")I.ctype==3?I.tabs[m]=w.readBytes(n,h,T):I.ctype==0?I.tabs[m]=C(n,h):I.ctype==2&&(I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]);else if(m=="gAMA")I.tabs[m]=w.readUint(n,h)/1e5;else if(m=="sRGB")I.tabs[m]=n[h];else if(m=="bKGD")I.ctype==0||I.ctype==4?I.tabs[m]=[C(n,h)]:I.ctype==2||I.ctype==6?I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]:I.ctype==3&&(I.tabs[m]=n[h]);else if(m=="IEND")break;h+=T,w.readUint(n,h),h+=4;}var A;return R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height)),I.data=S(I,H,I.width,I.height),delete I.compress,delete I.interlace,delete I.filter,I},toRGBA8:function(a){let n=a.width,h=a.height;if(a.tabs.acTL==null)return [r(a.data,n,h,a).buffer];let w=[];a.frames[0].data==null&&(a.frames[0].data=a.data);let C=n*h*4,P=new Uint8Array(C),I=new Uint8Array(C),H=new Uint8Array(C);for(let L=0;L<a.frames.length;L++){let R=a.frames[L],p=R.rect.x,O=R.rect.y,f=R.rect.width,c=R.rect.height,b=r(R.data,f,c,a);if(L!=0)for(var B=0;B<C;B++)H[B]=P[B];if(R.blend==0?E(b,f,c,P,n,h,p,O,0):R.blend==1&&E(b,f,c,P,n,h,p,O,1),w.push(P.buffer.slice(0)),R.dispose!=0){if(R.dispose==1)E(I,f,c,P,n,h,p,O,0);else if(R.dispose==2)for(B=0;B<C;B++)P[B]=H[B];}}return w},_paeth:u,_copyTile:E,_bin:i}}();(function(){let{_copyTile:i}=pe,{_bin:r}=pe,S=pe._paeth;var l={table:function(){let f=new Uint32Array(256);for(let c=0;c<256;c++){let b=c;for(let s=0;s<8;s++)1&b?b=3988292384^b>>>1:b>>>=1;f[c]=b;}return f}(),update(f,c,b,s){for(let y=0;y<s;y++)f=l.table[255&(f^c[b+y])]^f>>>8;return f},crc:(f,c,b)=>4294967295^l.update(4294967295,f,c,b)};function e(f,c,b,s){c[b]+=f[0]*s>>4,c[b+1]+=f[1]*s>>4,c[b+2]+=f[2]*s>>4,c[b+3]+=f[3]*s>>4;}function t(f){return Math.max(0,Math.min(255,f))}function g(f,c){let b=f[0]-c[0],s=f[1]-c[1],y=f[2]-c[2],_=f[3]-c[3];return b*b+s*s+y*y+_*_}function u(f,c,b,s,y,_,A){A==null&&(A=1);let T=s.length,m=[];for(var d=0;d<T;d++){let F=s[d];m.push([F>>>0&255,F>>>8&255,F>>>16&255,F>>>24&255]);}for(d=0;d<T;d++){let F=4294967295;for(var M=0,U=0;U<T;U++){var x=g(m[d],m[U]);U!=d&&x<F&&(F=x,M=U);}}let N=new Uint32Array(y.buffer),D=new Int16Array(c*b*4),Q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(d=0;d<Q.length;d++)Q[d]=255*((Q[d]+.5)/16-.5);for(let F=0;F<b;F++)for(let $=0;$<c;$++){var k;d=4*(F*c+$),A!=2?k=[t(f[d]+D[d]),t(f[d+1]+D[d+1]),t(f[d+2]+D[d+2]),t(f[d+3]+D[d+3])]:(x=Q[4*(3&F)+(3&$)],k=[t(f[d]+x),t(f[d+1]+x),t(f[d+2]+x),t(f[d+3]+x)]),M=0;let K=16777215;for(U=0;U<T;U++){let q=g(k,m[U]);q<K&&(K=q,M=U);}let G=m[M],z=[k[0]-G[0],k[1]-G[1],k[2]-G[2],k[3]-G[3]];A==1&&($!=c-1&&e(z,D,d+4,7),F!=b-1&&($!=0&&e(z,D,d+4*c-4,3),e(z,D,d+4*c,5),$!=c-1&&e(z,D,d+4*c+4,1))),_[d>>2]=M,N[d>>2]=s[M];}}function v(f,c,b,s,y){y==null&&(y={});let{crc:_}=l,A=r.writeUint,T=r.writeUshort,m=r.writeASCII,d=8,M=f.frames.length>1,U,x=false,N=33+(M?20:0);if(y.sRGB!=null&&(N+=13),y.pHYs!=null&&(N+=21),y.iCCP!=null&&(U=pako.deflate(y.iCCP),N+=21+U.length+4),f.ctype==3){for(var D=f.plte.length,Q=0;Q<D;Q++)f.plte[Q]>>>24!=255&&(x=true);N+=8+3*D+4+(x?8+1*D+4:0);}for(var k=0;k<f.frames.length;k++)M&&(N+=38),N+=(G=f.frames[k]).cimg.length+12,k!=0&&(N+=4);N+=12;let F=new Uint8Array(N),$=[137,80,78,71,13,10,26,10];for(Q=0;Q<8;Q++)F[Q]=$[Q];if(A(F,d,13),d+=4,m(F,d,"IHDR"),d+=4,A(F,d,c),d+=4,A(F,d,b),d+=4,F[d]=f.depth,d++,F[d]=f.ctype,d++,F[d]=0,d++,F[d]=0,d++,F[d]=0,d++,A(F,d,_(F,d-17,17)),d+=4,y.sRGB!=null&&(A(F,d,1),d+=4,m(F,d,"sRGB"),d+=4,F[d]=y.sRGB,d++,A(F,d,_(F,d-5,5)),d+=4),y.iCCP!=null){let z=13+U.length;A(F,d,z),d+=4,m(F,d,"iCCP"),d+=4,m(F,d,"ICC profile"),d+=11,d+=2,F.set(U,d),d+=U.length,A(F,d,_(F,d-(z+4),z+4)),d+=4;}if(y.pHYs!=null&&(A(F,d,9),d+=4,m(F,d,"pHYs"),d+=4,A(F,d,y.pHYs[0]),d+=4,A(F,d,y.pHYs[1]),d+=4,F[d]=y.pHYs[2],d++,A(F,d,_(F,d-13,13)),d+=4),M&&(A(F,d,8),d+=4,m(F,d,"acTL"),d+=4,A(F,d,f.frames.length),d+=4,A(F,d,y.loop!=null?y.loop:0),d+=4,A(F,d,_(F,d-12,12)),d+=4),f.ctype==3){for(A(F,d,3*(D=f.plte.length)),d+=4,m(F,d,"PLTE"),d+=4,Q=0;Q<D;Q++){let z=3*Q,q=f.plte[Q],V=255&q,W=q>>>8&255,ie=q>>>16&255;F[d+z+0]=V,F[d+z+1]=W,F[d+z+2]=ie;}if(d+=3*D,A(F,d,_(F,d-3*D-4,3*D+4)),d+=4,x){for(A(F,d,D),d+=4,m(F,d,"tRNS"),d+=4,Q=0;Q<D;Q++)F[d+Q]=f.plte[Q]>>>24&255;d+=D,A(F,d,_(F,d-D-4,D+4)),d+=4;}}let K=0;for(k=0;k<f.frames.length;k++){var G=f.frames[k];M&&(A(F,d,26),d+=4,m(F,d,"fcTL"),d+=4,A(F,d,K++),d+=4,A(F,d,G.rect.width),d+=4,A(F,d,G.rect.height),d+=4,A(F,d,G.rect.x),d+=4,A(F,d,G.rect.y),d+=4,T(F,d,s[k]),d+=2,T(F,d,1e3),d+=2,F[d]=G.dispose,d++,F[d]=G.blend,d++,A(F,d,_(F,d-30,30)),d+=4);let z=G.cimg;A(F,d,(D=z.length)+(k==0?0:4)),d+=4;let q=d;m(F,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(A(F,d,K++),d+=4),F.set(z,d),d+=D,A(F,d,_(F,q,d-q)),d+=4;}return A(F,d,0),d+=4,m(F,d,"IEND"),d+=4,A(F,d,_(F,d-4,4)),d+=4,F.buffer}function E(f,c,b){for(let s=0;s<f.frames.length;s++){let y=f.frames[s];y.rect.width;let _=y.rect.height,A=new Uint8Array(_*y.bpl+_);y.cimg=h(y.img,_,y.bpp,y.bpl,A,c,b);}}function o(f,c,b,s,y){let _=y[0],A=y[1],T=y[2],m=y[3],d=y[4],M=y[5],U=6,x=8,N=255;for(var D=0;D<f.length;D++){let te=new Uint8Array(f[D]);for(var Q=te.length,k=0;k<Q;k+=4)N&=te[k+3];}let F=N!=255,$=function(Y,Z,ne,oe,j,ce){let ee=[];for(var X=0;X<Y.length;X++){let ue=new Uint8Array(Y[X]),he=new Uint32Array(ue.buffer);var le;let de=0,ve=0,me=Z,Ie=ne,Ye=oe?1:0;if(X!=0){let yn=ce||oe||X==1||ee[X-2].dispose!=0?1:2,Ze=0,wt=1e9;for(let Le=0;Le<yn;Le++){var ge=new Uint8Array(Y[X-1-Le]);let An=new Uint32Array(Y[X-1-Le]),be=Z,_e=ne,xe=-1,De=-1;for(let Re=0;Re<ne;Re++)for(let Ce=0;Ce<Z;Ce++)he[se=Re*Z+Ce]!=An[se]&&(Ce<be&&(be=Ce),Ce>xe&&(xe=Ce),Re<_e&&(_e=Re),Re>De&&(De=Re));xe==-1&&(be=_e=xe=De=0),j&&((1&be)==1&&be--,(1&_e)==1&&_e--);let bt=(xe-be+1)*(De-_e+1);bt<wt&&(wt=bt,Ze=Le,de=be,ve=_e,me=xe-be+1,Ie=De-_e+1);}ge=new Uint8Array(Y[X-1-Ze]),Ze==1&&(ee[X-1].dispose=2),le=new Uint8Array(me*Ie*4),i(ge,Z,ne,le,me,Ie,-de,-ve,0),Ye=i(ue,Z,ne,le,me,Ie,-de,-ve,3)?1:0,Ye==1?n(ue,Z,ne,le,{x:de,y:ve,width:me,height:Ie}):i(ue,Z,ne,le,me,Ie,-de,-ve,0);}else le=ue.slice(0);ee.push({rect:{x:de,y:ve,width:me,height:Ie},img:le,blend:Ye,dispose:0});}if(oe)for(X=0;X<ee.length;X++){if((Te=ee[X]).blend==1)continue;let ue=Te.rect,he=ee[X-1].rect,de=Math.min(ue.x,he.x),ve=Math.min(ue.y,he.y),me={x:de,y:ve,width:Math.max(ue.x+ue.width,he.x+he.width)-de,height:Math.max(ue.y+ue.height,he.y+he.height)-ve};ee[X-1].dispose=1,X-1!=0&&a(Y,Z,ne,ee,X-1,me,j),a(Y,Z,ne,ee,X,me,j);}let Ne=0;if(Y.length!=1)for(var se=0;se<ee.length;se++){var Te;Ne+=(Te=ee[se]).rect.width*Te.rect.height;}return ee}(f,c,b,_,A,T),K={},G=[],z=[];if(s!=0){let te=[];for(k=0;k<$.length;k++)te.push($[k].img.buffer);let Y=function(j){let ce=0;for(var ee=0;ee<j.length;ee++)ce+=j[ee].byteLength;let X=new Uint8Array(ce),le=0;for(ee=0;ee<j.length;ee++){let ge=new Uint8Array(j[ee]),Ne=ge.length;for(let se=0;se<Ne;se+=4){let Te=ge[se],ue=ge[se+1],he=ge[se+2],de=ge[se+3];de==0&&(Te=ue=he=0),X[le+se]=Te,X[le+se+1]=ue,X[le+se+2]=he,X[le+se+3]=de;}le+=Ne;}return X.buffer}(te),Z=C(Y,s);for(k=0;k<Z.plte.length;k++)G.push(Z.plte[k].est.rgba);let ne=0;for(k=0;k<$.length;k++){let oe=(V=$[k]).img.length;var q=new Uint8Array(Z.inds.buffer,ne>>2,oe>>2);z.push(q);let j=new Uint8Array(Z.abuf,ne,oe);M&&u(V.img,V.rect.width,V.rect.height,G,j,q),V.img.set(j),ne+=oe;}}else for(D=0;D<$.length;D++){var V=$[D];let te=new Uint32Array(V.img.buffer);var W=V.rect.width;for(Q=te.length,q=new Uint8Array(Q),z.push(q),k=0;k<Q;k++){let Y=te[k];if(k!=0&&Y==te[k-1])q[k]=q[k-1];else if(k>W&&Y==te[k-W])q[k]=q[k-W];else {let Z=K[Y];if(Z==null&&(K[Y]=Z=G.length,G.push(Y),G.length>=300))break;q[k]=Z;}}}let ie=G.length;for(ie<=256&&d==0&&(x=ie<=2?1:ie<=4?2:ie<=16?4:8,x=Math.max(x,m)),D=0;D<$.length;D++){(V=$[D]).rect.x,V.rect.y,W=V.rect.width;let te=V.rect.height,Y=V.img;new Uint32Array(Y.buffer);let Z=4*W,ne=4;if(ie<=256&&d==0){Z=Math.ceil(x*W/8);var ae=new Uint8Array(Z*te);let oe=z[D];for(let j=0;j<te;j++){k=j*Z;let ce=j*W;if(x==8)for(var J=0;J<W;J++)ae[k+J]=oe[ce+J];else if(x==4)for(J=0;J<W;J++)ae[k+(J>>1)]|=oe[ce+J]<<4-4*(1&J);else if(x==2)for(J=0;J<W;J++)ae[k+(J>>2)]|=oe[ce+J]<<6-2*(3&J);else if(x==1)for(J=0;J<W;J++)ae[k+(J>>3)]|=oe[ce+J]<<7-1*(7&J);}Y=ae,U=3,ne=1;}else if(F==0&&$.length==1){ae=new Uint8Array(W*te*3);let oe=W*te;for(k=0;k<oe;k++){let j=3*k,ce=4*k;ae[j]=Y[ce],ae[j+1]=Y[ce+1],ae[j+2]=Y[ce+2];}Y=ae,U=2,ne=3,Z=3*W;}V.img=Y,V.bpl=Z,V.bpp=ne;}return {ctype:U,depth:x,plte:G,frames:$}}function a(f,c,b,s,y,_,A){let T=Uint8Array,m=Uint32Array,d=new T(f[y-1]),M=new m(f[y-1]),U=y+1<f.length?new T(f[y+1]):null,x=new T(f[y]),N=new m(x.buffer),D=c,Q=b,k=-1,F=-1;for(let K=0;K<_.height;K++)for(let G=0;G<_.width;G++){let z=_.x+G,q=_.y+K,V=q*c+z,W=N[V];W==0||s[y-1].dispose==0&&M[V]==W&&(U==null||U[4*V+3]!=0)||(z<D&&(D=z),z>k&&(k=z),q<Q&&(Q=q),q>F&&(F=q));}k==-1&&(D=Q=k=F=0),A&&((1&D)==1&&D--,(1&Q)==1&&Q--),_={x:D,y:Q,width:k-D+1,height:F-Q+1};let $=s[y];$.rect=_,$.blend=1,$.img=new Uint8Array(_.width*_.height*4),s[y-1].dispose==0?(i(d,c,b,$.img,_.width,_.height,-_.x,-_.y,0),n(x,c,b,$.img,_)):i(x,c,b,$.img,_.width,_.height,-_.x,-_.y,0);}function n(f,c,b,s,y){i(f,c,b,s,y.width,y.height,-y.x,-y.y,2);}function h(f,c,b,s,y,_,A){let T=[],m,d=[0,1,2,3,4];_!=-1?d=[_]:(c*s>5e5||b==1)&&(d=[0]),A&&(m={level:0});let M=Cn;for(var U=0;U<d.length;U++){for(let D=0;D<c;D++)w(y,f,D,s,b,d[U]);T.push(M.deflate(y,m));}let x,N=1e9;for(U=0;U<T.length;U++)T[U].length<N&&(x=U,N=T[U].length);return T[x]}function w(f,c,b,s,y,_){let A=b*s,T=A+b;if(f[T]=_,T++,_==0)if(s<500)for(var m=0;m<s;m++)f[T+m]=c[A+m];else f.set(new Uint8Array(c.buffer,A,s),T);else if(_==1){for(m=0;m<y;m++)f[T+m]=c[A+m];for(m=y;m<s;m++)f[T+m]=c[A+m]-c[A+m-y]+256&255;}else if(b==0){for(m=0;m<y;m++)f[T+m]=c[A+m];if(_==2)for(m=y;m<s;m++)f[T+m]=c[A+m];if(_==3)for(m=y;m<s;m++)f[T+m]=c[A+m]-(c[A+m-y]>>1)+256&255;if(_==4)for(m=y;m<s;m++)f[T+m]=c[A+m]-S(c[A+m-y],0,0)+256&255;}else {if(_==2)for(m=0;m<s;m++)f[T+m]=c[A+m]+256-c[A+m-s]&255;if(_==3){for(m=0;m<y;m++)f[T+m]=c[A+m]+256-(c[A+m-s]>>1)&255;for(m=y;m<s;m++)f[T+m]=c[A+m]+256-(c[A+m-s]+c[A+m-y]>>1)&255;}if(_==4){for(m=0;m<y;m++)f[T+m]=c[A+m]+256-S(0,c[A+m-s],0)&255;for(m=y;m<s;m++)f[T+m]=c[A+m]+256-S(c[A+m-y],c[A+m-s],c[A+m-y-s])&255;}}}function C(f,c){let b=new Uint8Array(f),s=b.slice(0),y=new Uint32Array(s.buffer),_=P(s,c),A=_[0],T=_[1],m=b.length,d=new Uint8Array(m>>2),M;if(b.length<2e7)for(var U=0;U<m;U+=4)M=I(A,x=b[U]*(1/255),N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255)),d[U>>2]=M.ind,y[U>>2]=M.est.rgba;else for(U=0;U<m;U+=4){var x=b[U]*.00392156862745098,N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255);for(M=A;M.left;)M=H(M.est,x,N,D,Q)<=0?M.left:M.right;d[U>>2]=M.ind,y[U>>2]=M.est.rgba;}return {abuf:s.buffer,inds:d,plte:T}}function P(f,c,b){b==null&&(b=1e-4);let s=new Uint32Array(f.buffer),y={i0:0,i1:f.length,bst:null,est:null,tdst:0,left:null,right:null};y.bst=R(f,y.i0,y.i1),y.est=p(y.bst);let _=[y];for(;_.length<c;){let T=0,m=0;for(var A=0;A<_.length;A++)_[A].est.L>T&&(T=_[A].est.L,m=A);if(T<b)break;let d=_[m],M=B(f,s,d.i0,d.i1,d.est.e,d.est.eMq255);if(d.i0>=M||d.i1<=M){d.est.L=0;continue}let U={i0:d.i0,i1:M,bst:null,est:null,tdst:0,left:null,right:null};U.bst=R(f,U.i0,U.i1),U.est=p(U.bst);let x={i0:M,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};for(x.bst={R:[],m:[],N:d.bst.N-U.bst.N},A=0;A<16;A++)x.bst.R[A]=d.bst.R[A]-U.bst.R[A];for(A=0;A<4;A++)x.bst.m[A]=d.bst.m[A]-U.bst.m[A];x.est=p(x.bst),d.left=U,d.right=x,_[m]=U,_.push(x);}for(_.sort((T,m)=>m.bst.N-T.bst.N),A=0;A<_.length;A++)_[A].ind=A;return [y,_]}function I(f,c,b,s,y){if(f.left==null)return f.tdst=function(U,x,N,D,Q){let k=x-U[0],F=N-U[1],$=D-U[2],K=Q-U[3];return k*k+F*F+$*$+K*K}(f.est.q,c,b,s,y),f;let _=H(f.est,c,b,s,y),A=f.left,T=f.right;_>0&&(A=f.right,T=f.left);let m=I(A,c,b,s,y);if(m.tdst<=_*_)return m;let d=I(T,c,b,s,y);return d.tdst<m.tdst?d:m}function H(f,c,b,s,y){let{e:_}=f;return _[0]*c+_[1]*b+_[2]*s+_[3]*y-f.eMq}function B(f,c,b,s,y,_){for(s-=4;b<s;){for(;L(f,b,y)<=_;)b+=4;for(;L(f,s,y)>_;)s-=4;if(b>=s)break;let A=c[b>>2];c[b>>2]=c[s>>2],c[s>>2]=A,b+=4,s-=4;}for(;L(f,b,y)>_;)b-=4;return b+4}function L(f,c,b){return f[c]*b[0]+f[c+1]*b[1]+f[c+2]*b[2]+f[c+3]*b[3]}function R(f,c,b){let s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=[0,0,0,0],_=b-c>>2;for(let A=c;A<b;A+=4){let T=f[A]*.00392156862745098,m=f[A+1]*(1/255),d=f[A+2]*(1/255),M=f[A+3]*(1/255);y[0]+=T,y[1]+=m,y[2]+=d,y[3]+=M,s[0]+=T*T,s[1]+=T*m,s[2]+=T*d,s[3]+=T*M,s[5]+=m*m,s[6]+=m*d,s[7]+=m*M,s[10]+=d*d,s[11]+=d*M,s[15]+=M*M;}return s[4]=s[1],s[8]=s[2],s[9]=s[6],s[12]=s[3],s[13]=s[7],s[14]=s[11],{R:s,m:y,N:_}}function p(f){let{R:c}=f,{m:b}=f,{N:s}=f,y=b[0],_=b[1],A=b[2],T=b[3],m=s==0?0:1/s,d=[c[0]-y*y*m,c[1]-y*_*m,c[2]-y*A*m,c[3]-y*T*m,c[4]-_*y*m,c[5]-_*_*m,c[6]-_*A*m,c[7]-_*T*m,c[8]-A*y*m,c[9]-A*_*m,c[10]-A*A*m,c[11]-A*T*m,c[12]-T*y*m,c[13]-T*_*m,c[14]-T*A*m,c[15]-T*T*m],M=d,U=O,x=[Math.random(),Math.random(),Math.random(),Math.random()],N=0,D=0;if(s!=0)for(let k=0;k<16&&(x=U.multVec(M,x),D=Math.sqrt(U.dot(x,x)),x=U.sml(1/D,x),!(k!=0&&Math.abs(D-N)<1e-9));k++)N=D;let Q=[y*m,_*m,A*m,T*m];return {Cov:d,q:Q,e:x,L:N,eMq255:U.dot(U.sml(255,Q),x),eMq:U.dot(x,Q),rgba:(Math.round(255*Q[3])<<24|Math.round(255*Q[2])<<16|Math.round(255*Q[1])<<8|Math.round(255*Q[0])<<0)>>>0}}var O={multVec:(f,c)=>[f[0]*c[0]+f[1]*c[1]+f[2]*c[2]+f[3]*c[3],f[4]*c[0]+f[5]*c[1]+f[6]*c[2]+f[7]*c[3],f[8]*c[0]+f[9]*c[1]+f[10]*c[2]+f[11]*c[3],f[12]*c[0]+f[13]*c[1]+f[14]*c[2]+f[15]*c[3]],dot:(f,c)=>f[0]*c[0]+f[1]*c[1]+f[2]*c[2]+f[3]*c[3],sml:(f,c)=>[f*c[0],f*c[1],f*c[2],f*c[3]]};pe.encode=function(c,b,s,y,_,A,T){y==null&&(y=0),T==null&&(T=false);let m=o(c,b,s,y,[false,false,false,0,T,false]);return E(m,-1),v(m,b,s,_,A)},pe.encodeLL=function(c,b,s,y,_,A,T,m){let d={ctype:0+(y==1?0:2)+(_==0?0:4),depth:A,frames:[]},M=(y+_)*A,U=M*b;for(let x=0;x<c.length;x++)d.frames.push({rect:{x:0,y:0,width:b,height:s},img:new Uint8Array(c[x]),blend:0,dispose:1,bpp:Math.ceil(M/8),bpl:Math.ceil(U/8)});return E(d,0,true),v(d,b,s,T,m)},pe.encode.compress=o,pe.encode.dither=u,pe.quantize=C,pe.quantize.getKDtree=P,pe.quantize.getNearest=I;})();var It={toArrayBuffer(i,r){let S=i.width,l=i.height,e=S<<2,t=i.getContext("2d").getImageData(0,0,S,l),g=new Uint32Array(t.data.buffer),u=(32*S+31)/32<<2,v=u*l,E=122+v,o=new ArrayBuffer(E),a=new DataView(o),n=1<<20,h,w,C,P,I=n,H=0,B=0,L=0;function R(f){a.setUint16(B,f,true),B+=2;}function p(f){a.setUint32(B,f,true),B+=4;}function O(f){B+=f;}R(19778),p(E),O(4),p(122),p(108),p(S),p(-l>>>0),R(1),R(32),p(3),p(v),p(2835),p(2835),O(8),p(16711680),p(65280),p(255),p(4278190080),p(1466527264),function f(){for(;H<l&&I>0;){for(P=122+H*u,h=0;h<e;)I--,w=g[L++],C=w>>>24,a.setUint32(P+h,w<<8|C),h+=4;H++;}L<g.length?(I=n,setTimeout(f,It._dly)):r(o);}();},toBlob(i,r){this.toArrayBuffer(i,S=>{r(new Blob([S],{type:"image/bmp"}));});},_dly:9},fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},Un={[fe.CHROME]:16384,[fe.FIREFOX]:11180,[fe.DESKTOP_SAFARI]:16384,[fe.IE]:8192,[fe.IOS]:4096,[fe.ETC]:8192},et=typeof globalThis.window<"u",Rt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,We=et&&globalThis.window.cordova&&globalThis.window.cordova.require&&globalThis.window.cordova.require("cordova/modulemapper"),On=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"File")||typeof File<"u"&&File),Ct=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"FileReader")||typeof globalThis.FileReader<"u"&&globalThis.FileReader);function tt(i,r,S=Date.now()){return new Promise(l=>{let e=i.split(","),t=e[0].match(/:(.*?);/)[1],g=globalThis.atob(e[1]),u=g.length,v=new Uint8Array(u);for(;u--;)v[u]=g.charCodeAt(u);let E=new Blob([v],{type:t});E.name=r,E.lastModified=S,l(E);})}function Ut(i){return new Promise((r,S)=>{let l=new Ct;l.onload=()=>r(l.result),l.onerror=e=>S(e),l.readAsDataURL(i);})}function Ot(i){return new Promise((r,S)=>{let l=new globalThis.Image;l.onload=()=>r(l),l.onerror=e=>S(e),l.src=i;})}function Ue(){if(Ue.cachedResult!==void 0)return Ue.cachedResult;let i=fe.ETC,{userAgent:r}=navigator;return /Chrom(e|ium)/i.test(r)?i=fe.CHROME:/iP(ad|od|hone)/i.test(r)&&/WebKit/i.test(r)?i=fe.IOS:/Safari/i.test(r)?i=fe.DESKTOP_SAFARI:/Firefox/i.test(r)?i=fe.FIREFOX:(/MSIE/i.test(r)||globalThis.document.documentMode)&&(i=fe.IE),Ue.cachedResult=i,Ue.cachedResult}function xt(i,r){let S=Ue(),l=Un[S],e=i,t=r,g=e*t,u=e>t?t/e:e/t;for(;g>l*l;){let v=(l+e)/2,E=(l+t)/2;v<E?(t=E,e=E*u):(t=v*u,e=v),g=e*t;}return {width:e,height:t}}function Ge(i,r){let S,l;try{if(S=new OffscreenCanvas(i,r),l=S.getContext("2d"),l===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{S=globalThis.document.createElement("canvas"),l=S.getContext("2d");}return S.width=i,S.height=r,[S,l]}function Mt(i,r){let{width:S,height:l}=xt(i.width,i.height),[e,t]=Ge(S,l);return r&&/jpe?g/.test(r)&&(t.fillStyle="white",t.fillRect(0,0,e.width,e.height)),t.drawImage(i,0,0,e.width,e.height),e}function Qe(){return Qe.cachedResult!==void 0||(Qe.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof globalThis.document<"u"&&"ontouchend"in globalThis.document),Qe.cachedResult}function ze(i,r={}){return new Promise(function(S,l){let e,t;var g=function(){try{return t=Mt(e,r.fileType||i.type),S([e,t])}catch(v){return l(v)}},u=function(v){try{var E=function(o){try{throw o}catch(a){return l(a)}};try{let o;return Ut(i).then(function(a){try{return o=a,Ot(o).then(function(n){try{return e=n,function(){try{return g()}catch(h){return l(h)}}()}catch(h){return E(h)}},E)}catch(n){return E(n)}},E)}catch(o){E(o);}}catch(o){return l(o)}};try{if(Qe()||[fe.DESKTOP_SAFARI,fe.MOBILE_SAFARI].includes(Ue()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(i).then(function(v){try{return e=v,g()}catch{return u()}},u)}catch{u();}})}function Ve(i,r,S,l,e=1){return new Promise(function(t,g){let u;if(r==="image/png"){let a,n,h;return a=i.getContext("2d"),{data:n}=a.getImageData(0,0,i.width,i.height),h=pe.encode([n.buffer],i.width,i.height,4096*e),u=new Blob([h],{type:r}),u.name=S,u.lastModified=l,v.call(this)}{let a=function(){return v.call(this)};if(r==="image/bmp")return new Promise(n=>It.toBlob(i,n)).then(function(n){try{return u=n,u.name=S,u.lastModified=l,a.call(this)}catch(h){return g(h)}}.bind(this),g);{let n=function(){return a.call(this)};if(typeof OffscreenCanvas=="function"&&i instanceof OffscreenCanvas)return i.convertToBlob({type:r,quality:e}).then(function(h){try{return u=h,u.name=S,u.lastModified=l,n.call(this)}catch(w){return g(w)}}.bind(this),g);{let h;return h=i.toDataURL(r,e),tt(h,S,l).then(function(w){try{return u=w,n.call(this)}catch(C){return g(C)}}.bind(this),g)}}}function v(){return t(u)}})}function ye(i){i.width=0,i.height=0;}function Me(){return new Promise(function(i,r){let l,e,t,g;return Me.cachedResult!==void 0?i(Me.cachedResult):(tt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(u){try{return l=u,ze(l).then(function(v){try{return e=v[1],Ve(e,l.type,l.name,l.lastModified).then(function(E){try{return t=E,ye(e),ze(t).then(function(o){try{return g=o[0],Me.cachedResult=g.width===1&&g.height===2,i(Me.cachedResult)}catch(a){return r(a)}},r)}catch(o){return r(o)}},r)}catch(E){return r(E)}},r)}catch(v){return r(v)}},r))})}function Pt(i){return new Promise((r,S)=>{let l=new Ct;l.onload=e=>{let t=new DataView(e.target.result);if(t.getUint16(0,false)!=65496)return r(-2);let g=t.byteLength,u=2;for(;u<g;){if(t.getUint16(u+2,false)<=8)return r(-1);let v=t.getUint16(u,false);if(u+=2,v==65505){if(t.getUint32(u+=2,false)!=1165519206)return r(-1);let E=t.getUint16(u+=6,false)==18761;u+=t.getUint32(u+4,E);let o=t.getUint16(u,E);u+=2;for(let a=0;a<o;a++)if(t.getUint16(u+12*a,E)==274)return r(t.getUint16(u+12*a+8,E))}else {if((65280&v)!=65280)break;u+=t.getUint16(u,false);}}return r(-1)},l.onerror=e=>S(e),l.readAsArrayBuffer(i);})}function Lt(i,r){let{width:S}=i,{height:l}=i,{maxWidthOrHeight:e}=r,t,g=i;return isFinite(e)&&(S>e||l>e)&&([g,t]=Ge(S,l),S>l?(g.width=e,g.height=l/S*e):(g.width=S/l*e,g.height=e),t.drawImage(i,0,0,g.width,g.height),ye(i)),g}function Dt(i,r){let{width:S}=i,{height:l}=i,[e,t]=Ge(S,l);switch(r>4&&r<9?(e.width=l,e.height=S):(e.width=S,e.height=l),r){case 2:t.transform(-1,0,0,1,S,0);break;case 3:t.transform(-1,0,0,-1,S,l);break;case 4:t.transform(1,0,0,-1,0,l);break;case 5:t.transform(0,1,1,0,0,0);break;case 6:t.transform(0,1,-1,0,l,0);break;case 7:t.transform(0,-1,-1,0,l,S);break;case 8:t.transform(0,-1,1,0,0,S);}return t.drawImage(i,0,0,S,l),ye(i),e}function St(i,r,S=0){return new Promise(function(l,e){let t,g,u,v,E,o,a,n,h,w,C,P,I,H,B,L,R,p,O,f;function c(s=5){if(r.signal&&r.signal.aborted)throw r.signal.reason;t+=s,r.onProgress(Math.min(t,100));}function b(s){if(r.signal&&r.signal.aborted)throw r.signal.reason;t=Math.min(Math.max(s,t),100),r.onProgress(t);}return t=S,g=r.maxIteration||10,u=1024*r.maxSizeMB*1024,c(),ze(i,r).then(function(s){try{return [,v]=s,c(),E=Lt(v,r),c(),new Promise(function(y,_){var A;if(!(A=r.exifOrientation))return Pt(i).then(function(m){try{return A=m,T.call(this)}catch(d){return _(d)}}.bind(this),_);function T(){return y(A)}return T.call(this)}).then(function(y){try{return o=y,c(),Me().then(function(_){try{return a=_?E:Dt(E,o),c(),n=r.initialQuality||1,h=r.fileType||i.type,Ve(a,h,i.name,i.lastModified,n).then(function(A){try{{let M=function(){if(g--&&(B>u||B>I)){let x,N;return x=f?.95*O.width:O.width,N=f?.95*O.height:O.height,[R,p]=Ge(x,N),p.drawImage(O,0,0,x,N),n*=h==="image/png"?.85:.95,Ve(R,h,i.name,i.lastModified,n).then(function(D){try{return L=D,ye(O),O=R,B=L.size,b(Math.min(99,Math.floor((H-B)/(H-u)*100))),M}catch(Q){return e(Q)}},e)}return [1]},U=function(){return ye(O),ye(R),ye(E),ye(a),ye(v),b(100),l(L)};var m=M,d=U;if(w=A,c(),C=w.size>u,P=w.size>i.size,!C&&!P)return b(100),l(w);var T;return I=i.size,H=w.size,B=H,O=a,f=!r.alwaysKeepResolution&&C,(T=function(x){for(;x;){if(x.then)return void x.then(T,e);try{if(x.pop){if(x.length)return x.pop()?U.call(this):x;x=M;}else x=x.call(this);}catch(N){return e(N)}}}.bind(this))(M)}}catch(M){return e(M)}}.bind(this),e)}catch(A){return e(A)}}.bind(this),e)}catch(_){return e(_)}}.bind(this),e)}catch(y){return e(y)}}.bind(this),e)})}var xn=`
5
+ `+r.prev}function qe(i,r){var S=ft(i),l=[];if(S){l.length=i.length;for(var e=0;e<i.length;e++)l[e]=we(i,e)?r(i[e],i):"";}var t=typeof at=="function"?at(i):[],g;if(Me){g={};for(var u=0;u<t.length;u++)g["$"+t[u]]=t[u];}for(var v in i)we(i,v)&&(S&&String(Number(v))===v&&v<i.length||Me&&g["$"+v]instanceof Symbol||(Yt.call(/[^\w$]/,v)?l.push(r(v,i)+": "+r(i[v],i)):l.push(v+": "+r(i[v],i))));if(typeof at=="function")for(var E=0;E<t.length;E++)Zt.call(i,t[E])&&l.push("["+r(t[E])+"]: "+r(i[t[E]],i));return l}});function Tn(i,r){return r.forEach(function(S){S&&typeof S!="string"&&!Array.isArray(S)&&Object.keys(S).forEach(function(l){if(l!=="default"&&!(l in i)){var e=Object.getOwnPropertyDescriptor(S,l);Object.defineProperty(i,l,e.get?e:{enumerable:true,get:function(){return S[l]}});}});}),Object.freeze(i)}function Tt(i,r){return new Promise(function(S,l){let e;return In(i).then(function(t){try{return e=t,S(new Blob([r.slice(0,2),e,r.slice(2)],{type:"image/jpeg"}))}catch(g){return l(g)}},l)})}var In=i=>new Promise((r,S)=>{let l=new globalThis.FileReader;l.addEventListener("load",({target:{result:e}})=>{let t=new DataView(e),g=0;if(t.getUint16(g)!==65496)return S("not a valid JPEG");for(g+=2;;){let u=t.getUint16(g);if(u===65498)break;let v=t.getUint16(g+2);if(u===65505&&t.getUint32(g+4)===1165519206){let E=g+10,o;switch(t.getUint16(E)){case 18761:o=true;break;case 19789:o=false;break;default:return S("TIFF header contains invalid endian")}if(t.getUint16(E+2,o)!==42)return S("TIFF header contains invalid version");let a=t.getUint32(E+4,o),n=E+a+2+12*t.getUint16(E+a,o);for(let h=E+a+2;h<n;h+=12)if(t.getUint16(h,o)==274){if(t.getUint16(h+2,o)!==3)return S("Orientation data type is invalid");if(t.getUint32(h+4,o)!==1)return S("Orientation data count is invalid");t.setUint16(h+8,1,o);break}return r(e.slice(g,g+2+v))}g+=2+v;}return r(new Blob)}),l.readAsArrayBuffer(i);}),$e={},Rn={get exports(){return $e},set exports(i){$e=i;}};(function(i){var r,S,l={};Rn.exports=l,l.parse=function(e,t){for(var g=l.bin.readUshort,u=l.bin.readUint,v=0,E={},o=new Uint8Array(e),a=o.length-4;u(o,a)!=101010256;)a--;v=a,v+=4;var n=g(o,v+=4);g(o,v+=2);var h=u(o,v+=2),w=u(o,v+=4);v+=4,v=w;for(var C=0;C<n;C++){u(o,v),v+=4,v+=4,v+=4,u(o,v+=4),h=u(o,v+=4);var M=u(o,v+=4),I=g(o,v+=4),H=g(o,v+2),B=g(o,v+4);v+=6;var L=u(o,v+=8);v+=4,v+=I+H+B,l._readLocal(o,L,E,h,M,t);}return E},l._readLocal=function(e,t,g,u,v,E){var o=l.bin.readUshort,a=l.bin.readUint;a(e,t),o(e,t+=4),o(e,t+=2);var n=o(e,t+=2);a(e,t+=2),a(e,t+=4),t+=4;var h=o(e,t+=8),w=o(e,t+=2);t+=2;var C=l.bin.readUTF8(e,t,h);if(t+=h,t+=w,E)g[C]={size:v,csize:u};else {var M=new Uint8Array(e.buffer,t);if(n==0)g[C]=new Uint8Array(M.buffer.slice(t,t+u));else {if(n!=8)throw "unknown compression method: "+n;var I=new Uint8Array(v);l.inflateRaw(M,I),g[C]=I;}}},l.inflateRaw=function(e,t){return l.F.inflate(e,t)},l.inflate=function(e,t){return e[0],e[1],l.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},l.deflate=function(e,t){t==null&&(t={level:6});var g=0,u=new Uint8Array(50+Math.floor(1.1*e.length));u[g]=120,u[g+1]=156,g+=2,g=l.F.deflateRaw(e,u,g,t.level);var v=l.adler(e,0,e.length);return u[g+0]=v>>>24&255,u[g+1]=v>>>16&255,u[g+2]=v>>>8&255,u[g+3]=v>>>0&255,new Uint8Array(u.buffer,0,g+4)},l.deflateRaw=function(e,t){t==null&&(t={level:6});var g=new Uint8Array(50+Math.floor(1.1*e.length)),u=l.F.deflateRaw(e,g,u,t.level);return new Uint8Array(g.buffer,0,u)},l.encode=function(e,t){t==null&&(t=false);var g=0,u=l.bin.writeUint,v=l.bin.writeUshort,E={};for(var o in e){var a=!l._noNeed(o)&&!t,n=e[o],h=l.crc.crc(n,0,n.length);E[o]={cpr:a,usize:n.length,crc:h,file:a?l.deflateRaw(n):n};}for(var o in E)g+=E[o].file.length+30+46+2*l.bin.sizeUTF8(o);g+=22;var w=new Uint8Array(g),C=0,M=[];for(var o in E){var I=E[o];M.push(C),C=l._writeHeader(w,C,o,I,0);}var H=0,B=C;for(var o in E)I=E[o],M.push(C),C=l._writeHeader(w,C,o,I,1,M[H++]);var L=C-B;return u(w,C,101010256),C+=4,v(w,C+=4,H),v(w,C+=2,H),u(w,C+=2,L),u(w,C+=4,B),C+=4,C+=2,w.buffer},l._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return "png,jpg,jpeg,zip".indexOf(t)!=-1},l._writeHeader=function(e,t,g,u,v,E){var o=l.bin.writeUint,a=l.bin.writeUshort,n=u.file;return o(e,t,v==0?67324752:33639248),t+=4,v==1&&(t+=2),a(e,t,20),a(e,t+=2,0),a(e,t+=2,u.cpr?8:0),o(e,t+=2,0),o(e,t+=4,u.crc),o(e,t+=4,n.length),o(e,t+=4,u.usize),a(e,t+=4,l.bin.sizeUTF8(g)),a(e,t+=2,0),t+=2,v==1&&(t+=2,t+=2,o(e,t+=6,E),t+=4),t+=l.bin.writeUTF8(e,t,g),v==0&&(e.set(n,t),t+=n.length),t},l.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var g=t,u=0;u<8;u++)1&g?g=3988292384^g>>>1:g>>>=1;e[t]=g;}return e}(),update:function(e,t,g,u){for(var v=0;v<u;v++)e=l.crc.table[255&(e^t[g+v])]^e>>>8;return e},crc:function(e,t,g){return 4294967295^l.crc.update(4294967295,e,t,g)}},l.adler=function(e,t,g){for(var u=1,v=0,E=t,o=t+g;E<o;){for(var a=Math.min(E+5552,o);E<a;)v+=u+=e[E++];u%=65521,v%=65521;}return v<<16|u},l.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255;},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,g){e[t]=255&g,e[t+1]=g>>8&255,e[t+2]=g>>16&255,e[t+3]=g>>24&255;},readASCII:function(e,t,g){for(var u="",v=0;v<g;v++)u+=String.fromCharCode(e[t+v]);return u},writeASCII:function(e,t,g){for(var u=0;u<g.length;u++)e[t+u]=g.charCodeAt(u);},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,g){for(var u,v="",E=0;E<g;E++)v+="%"+l.bin.pad(e[t+E].toString(16));try{u=decodeURIComponent(v);}catch{return l.bin.readASCII(e,t,g)}return u},writeUTF8:function(e,t,g){for(var u=g.length,v=0,E=0;E<u;E++){var o=g.charCodeAt(E);if((4294967168&o)==0)e[t+v]=o,v++;else if((4294965248&o)==0)e[t+v]=192|o>>6,e[t+v+1]=128|o>>0&63,v+=2;else if((4294901760&o)==0)e[t+v]=224|o>>12,e[t+v+1]=128|o>>6&63,e[t+v+2]=128|o>>0&63,v+=3;else {if((4292870144&o)!=0)throw "e";e[t+v]=240|o>>18,e[t+v+1]=128|o>>12&63,e[t+v+2]=128|o>>6&63,e[t+v+3]=128|o>>0&63,v+=4;}}return v},sizeUTF8:function(e){for(var t=e.length,g=0,u=0;u<t;u++){var v=e.charCodeAt(u);if((4294967168&v)==0)g++;else if((4294965248&v)==0)g+=2;else if((4294901760&v)==0)g+=3;else {if((4292870144&v)!=0)throw "e";g+=4;}}return g}},l.F={},l.F.deflateRaw=function(e,t,g,u){var v=[[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]][u],E=l.F.U,o=l.F._goodIndex;l.F._hash;var a=l.F._putsE,n=0,h=g<<3,w=0,C=e.length;if(u==0){for(;n<C;)a(t,h,n+(s=Math.min(65535,C-n))==C?1:0),h=l.F._copyExact(e,n,s,t,h+8),n+=s;return h>>>3}var M=E.lits,I=E.strt,H=E.prev,B=0,L=0,R=0,p=0,O=0,f=0;for(C>2&&(I[f=l.F._hash(e,0)]=0),n=0;n<C;n++){if(O=f,n+1<C-2){f=l.F._hash(e,n+1);var c=n+1&32767;H[c]=I[f],I[f]=c;}if(w<=n){(B>14e3||L>26697)&&C-n>100&&(w<n&&(M[B]=n-w,B+=2,w=n),h=l.F._writeBlock(n==C-1||w==C?1:0,M,B,p,e,R,n-R,t,h),B=L=p=0,R=n);var b=0;n<C-2&&(b=l.F._bestMatch(e,n,H,O,Math.min(v[2],C-n),v[3]));var s=b>>>16,y=65535&b;if(b!=0){y=65535&b;var _=o(s=b>>>16,E.of0);E.lhst[257+_]++;var A=o(y,E.df0);E.dhst[A]++,p+=E.exb[_]+E.dxb[A],M[B]=s<<23|n-w,M[B+1]=y<<16|_<<8|A,B+=2,w=n+s;}else E.lhst[e[n]]++;L++;}}for(R==n&&e.length!=0||(w<n&&(M[B]=n-w,B+=2,w=n),h=l.F._writeBlock(1,M,B,p,e,R,n-R,t,h),B=0,L=0,B=L=p=0,R=n);(7&h)!=0;)h++;return h>>>3},l.F._bestMatch=function(e,t,g,u,v,E){var o=32767&t,a=g[o],n=o-a+32768&32767;if(a==o||u!=l.F._hash(e,t-n))return 0;for(var h=0,w=0,C=Math.min(32767,t);n<=C&&--E!=0&&a!=o;){if(h==0||e[t+h]==e[t+h-n]){var M=l.F._howLong(e,t,n);if(M>h){if(w=n,(h=M)>=v)break;n+2<M&&(M=n+2);for(var I=0,H=0;H<M-2;H++){var B=t-n+H+32768&32767,L=B-g[B]+32768&32767;L>I&&(I=L,a=B);}}}n+=(o=a)-(a=g[o])+32768&32767;}return h<<16|w},l.F._howLong=function(e,t,g){if(e[t]!=e[t-g]||e[t+1]!=e[t+1-g]||e[t+2]!=e[t+2-g])return 0;var u=t,v=Math.min(e.length,t+258);for(t+=3;t<v&&e[t]==e[t-g];)t++;return t-u},l.F._hash=function(e,t){return (e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},l.saved=0,l.F._writeBlock=function(e,t,g,u,v,E,o,a,n){var h,w,C,M,I,H,B,L,R,p=l.F.U,O=l.F._putsF,f=l.F._putsE;p.lhst[256]++,w=(h=l.F.getTrees())[0],C=h[1],M=h[2],I=h[3],H=h[4],B=h[5],L=h[6],R=h[7];var c=32+((n+3&7)==0?0:8-(n+3&7))+(o<<3),b=u+l.F.contSize(p.fltree,p.lhst)+l.F.contSize(p.fdtree,p.dhst),s=u+l.F.contSize(p.ltree,p.lhst)+l.F.contSize(p.dtree,p.dhst);s+=14+3*B+l.F.contSize(p.itree,p.ihst)+(2*p.ihst[16]+3*p.ihst[17]+7*p.ihst[18]);for(var y=0;y<286;y++)p.lhst[y]=0;for(y=0;y<30;y++)p.dhst[y]=0;for(y=0;y<19;y++)p.ihst[y]=0;var _=c<b&&c<s?0:b<s?1:2;if(O(a,n,e),O(a,n+1,_),n+=3,_==0){for(;(7&n)!=0;)n++;n=l.F._copyExact(v,E,o,a,n);}else {var A,T;if(_==1&&(A=p.fltree,T=p.fdtree),_==2){l.F.makeCodes(p.ltree,w),l.F.revCodes(p.ltree,w),l.F.makeCodes(p.dtree,C),l.F.revCodes(p.dtree,C),l.F.makeCodes(p.itree,M),l.F.revCodes(p.itree,M),A=p.ltree,T=p.dtree,f(a,n,I-257),f(a,n+=5,H-1),f(a,n+=5,B-4),n+=4;for(var m=0;m<B;m++)f(a,n+3*m,p.itree[1+(p.ordr[m]<<1)]);n+=3*B,n=l.F._codeTiny(L,p.itree,a,n),n=l.F._codeTiny(R,p.itree,a,n);}for(var d=E,P=0;P<g;P+=2){for(var U=t[P],x=U>>>23,N=d+(8388607&U);d<N;)n=l.F._writeLit(v[d++],A,a,n);if(x!=0){var D=t[P+1],Q=D>>16,k=D>>8&255,F=255&D;f(a,n=l.F._writeLit(257+k,A,a,n),x-p.of0[k]),n+=p.exb[k],O(a,n=l.F._writeLit(F,T,a,n),Q-p.df0[F]),n+=p.dxb[F],d+=x;}}n=l.F._writeLit(256,A,a,n);}return n},l.F._copyExact=function(e,t,g,u,v){var E=v>>>3;return u[E]=g,u[E+1]=g>>>8,u[E+2]=255-u[E],u[E+3]=255-u[E+1],E+=4,u.set(new Uint8Array(e.buffer,t,g),E),v+(g+4<<3)},l.F.getTrees=function(){for(var e=l.F.U,t=l.F._hufTree(e.lhst,e.ltree,15),g=l.F._hufTree(e.dhst,e.dtree,15),u=[],v=l.F._lenCodes(e.ltree,u),E=[],o=l.F._lenCodes(e.dtree,E),a=0;a<u.length;a+=2)e.ihst[u[a]]++;for(a=0;a<E.length;a+=2)e.ihst[E[a]]++;for(var n=l.F._hufTree(e.ihst,e.itree,7),h=19;h>4&&e.itree[1+(e.ordr[h-1]<<1)]==0;)h--;return [t,g,n,v,o,h,u,E]},l.F.getSecond=function(e){for(var t=[],g=0;g<e.length;g+=2)t.push(e[g+1]);return t},l.F.nonZero=function(e){for(var t="",g=0;g<e.length;g+=2)e[g+1]!=0&&(t+=(g>>1)+",");return t},l.F.contSize=function(e,t){for(var g=0,u=0;u<t.length;u++)g+=t[u]*e[1+(u<<1)];return g},l.F._codeTiny=function(e,t,g,u){for(var v=0;v<e.length;v+=2){var E=e[v],o=e[v+1];u=l.F._writeLit(E,t,g,u);var a=E==16?2:E==17?3:7;E>15&&(l.F._putsE(g,u,o,a),u+=a);}return u},l.F._lenCodes=function(e,t){for(var g=e.length;g!=2&&e[g-1]==0;)g-=2;for(var u=0;u<g;u+=2){var v=e[u+1],E=u+3<g?e[u+3]:-1,o=u+5<g?e[u+5]:-1,a=u==0?-1:e[u-1];if(v==0&&E==v&&o==v){for(var n=u+5;n+2<g&&e[n+2]==v;)n+=2;(h=Math.min(n+1-u>>>1,138))<11?t.push(17,h-3):t.push(18,h-11),u+=2*h-2;}else if(v==a&&E==v&&o==v){for(n=u+5;n+2<g&&e[n+2]==v;)n+=2;var h=Math.min(n+1-u>>>1,6);t.push(16,h-3),u+=2*h-2;}else t.push(v,0);}return g>>>1},l.F._hufTree=function(e,t,g){var u=[],v=e.length,E=t.length,o=0;for(o=0;o<E;o+=2)t[o]=0,t[o+1]=0;for(o=0;o<v;o++)e[o]!=0&&u.push({lit:o,f:e[o]});var a=u.length,n=u.slice(0);if(a==0)return 0;if(a==1){var h=u[0].lit;return n=h==0?1:0,t[1+(h<<1)]=1,t[1+(n<<1)]=1,1}u.sort(function(L,R){return L.f-R.f});var w=u[0],C=u[1],M=0,I=1,H=2;for(u[0]={lit:-1,f:w.f+C.f,l:w,r:C,d:0};I!=a-1;)w=M!=I&&(H==a||u[M].f<u[H].f)?u[M++]:u[H++],C=M!=I&&(H==a||u[M].f<u[H].f)?u[M++]:u[H++],u[I++]={lit:-1,f:w.f+C.f,l:w,r:C};var B=l.F.setDepth(u[I-1],0);for(B>g&&(l.F.restrictDepth(n,g,B),B=g),o=0;o<a;o++)t[1+(n[o].lit<<1)]=n[o].d;return B},l.F.setDepth=function(e,t){return e.lit!=-1?(e.d=t,t):Math.max(l.F.setDepth(e.l,t+1),l.F.setDepth(e.r,t+1))},l.F.restrictDepth=function(e,t,g){var u=0,v=1<<g-t,E=0;for(e.sort(function(a,n){return n.d==a.d?a.f-n.f:n.d-a.d}),u=0;u<e.length&&e[u].d>t;u++){var o=e[u].d;e[u].d=t,E+=v-(1<<g-o);}for(E>>>=g-t;E>0;)(o=e[u].d)<t?(e[u].d++,E-=1<<t-o-1):u++;for(;u>=0;u--)e[u].d==t&&E<0&&(e[u].d--,E++);E!=0&&console.log("debt left");},l.F._goodIndex=function(e,t){var g=0;return t[16|g]<=e&&(g|=16),t[8|g]<=e&&(g|=8),t[4|g]<=e&&(g|=4),t[2|g]<=e&&(g|=2),t[1|g]<=e&&(g|=1),g},l.F._writeLit=function(e,t,g,u){return l.F._putsF(g,u,t[e<<1]),u+t[1+(e<<1)]},l.F.inflate=function(e,t){var g=Uint8Array;if(e[0]==3&&e[1]==0)return t||new g(0);var u=l.F,v=u._bitsF,E=u._bitsE,o=u._decodeTiny,a=u.makeCodes,n=u.codes2map,h=u._get17,w=u.U,C=t==null;C&&(t=new g(e.length>>>2<<3));for(var M,I,H=0,B=0,L=0,R=0,p=0,O=0,f=0,c=0,b=0;H==0;)if(H=v(e,b,1),B=v(e,b+1,2),b+=3,B!=0){if(C&&(t=l.F._check(t,c+(1<<17))),B==1&&(M=w.flmap,I=w.fdmap,O=511,f=31),B==2){L=E(e,b,5)+257,R=E(e,b+5,5)+1,p=E(e,b+10,4)+4,b+=14;for(var s=0;s<38;s+=2)w.itree[s]=0,w.itree[s+1]=0;var y=1;for(s=0;s<p;s++){var _=E(e,b+3*s,3);w.itree[1+(w.ordr[s]<<1)]=_,_>y&&(y=_);}b+=3*p,a(w.itree,y),n(w.itree,y,w.imap),M=w.lmap,I=w.dmap,b=o(w.imap,(1<<y)-1,L+R,e,b,w.ttree);var A=u._copyOut(w.ttree,0,L,w.ltree);O=(1<<A)-1;var T=u._copyOut(w.ttree,L,R,w.dtree);f=(1<<T)-1,a(w.ltree,A),n(w.ltree,A,M),a(w.dtree,T),n(w.dtree,T,I);}for(;;){var m=M[h(e,b)&O];b+=15&m;var d=m>>>4;if(!(d>>>8))t[c++]=d;else {if(d==256)break;var P=c+d-254;if(d>264){var U=w.ldef[d-257];P=c+(U>>>3)+E(e,b,7&U),b+=7&U;}var x=I[h(e,b)&f];b+=15&x;var N=x>>>4,D=w.ddef[N],Q=(D>>>4)+v(e,b,15&D);for(b+=15&D,C&&(t=l.F._check(t,c+(1<<17)));c<P;)t[c]=t[c++-Q],t[c]=t[c++-Q],t[c]=t[c++-Q],t[c]=t[c++-Q];c=P;}}}else {(7&b)!=0&&(b+=8-(7&b));var k=4+(b>>>3),F=e[k-4]|e[k-3]<<8;C&&(t=l.F._check(t,c+F)),t.set(new g(e.buffer,e.byteOffset+k,F),c),b=k+F<<3,c+=F;}return t.length==c?t:t.slice(0,c)},l.F._check=function(e,t){var g=e.length;if(t<=g)return e;var u=new Uint8Array(Math.max(g<<1,t));return u.set(e,0),u},l.F._decodeTiny=function(e,t,g,u,v,E){for(var o=l.F._bitsE,a=l.F._get17,n=0;n<g;){var h=e[a(u,v)&t];v+=15&h;var w=h>>>4;if(w<=15)E[n]=w,n++;else {var C=0,M=0;w==16?(M=3+o(u,v,2),v+=2,C=E[n-1]):w==17?(M=3+o(u,v,3),v+=3):w==18&&(M=11+o(u,v,7),v+=7);for(var I=n+M;n<I;)E[n]=C,n++;}}return v},l.F._copyOut=function(e,t,g,u){for(var v=0,E=0,o=u.length>>>1;E<g;){var a=e[E+t];u[E<<1]=0,u[1+(E<<1)]=a,a>v&&(v=a),E++;}for(;E<o;)u[E<<1]=0,u[1+(E<<1)]=0,E++;return v},l.F.makeCodes=function(e,t){for(var g,u,v,E,o=l.F.U,a=e.length,n=o.bl_count,h=0;h<=t;h++)n[h]=0;for(h=1;h<a;h+=2)n[e[h]]++;var w=o.next_code;for(g=0,n[0]=0,u=1;u<=t;u++)g=g+n[u-1]<<1,w[u]=g;for(v=0;v<a;v+=2)(E=e[v+1])!=0&&(e[v]=w[E],w[E]++);},l.F.codes2map=function(e,t,g){for(var u=e.length,v=l.F.U.rev15,E=0;E<u;E+=2)if(e[E+1]!=0)for(var o=E>>1,a=e[E+1],n=o<<4|a,h=t-a,w=e[E]<<h,C=w+(1<<h);w!=C;)g[v[w]>>>15-t]=n,w++;},l.F.revCodes=function(e,t){for(var g=l.F.U.rev15,u=15-t,v=0;v<e.length;v+=2){var E=e[v]<<t-e[v+1];e[v]=g[E]>>>u;}},l.F._putsE=function(e,t,g){g<<=7&t;var u=t>>>3;e[u]|=g,e[u+1]|=g>>>8;},l.F._putsF=function(e,t,g){g<<=7&t;var u=t>>>3;e[u]|=g,e[u+1]|=g>>>8,e[u+2]|=g>>>16;},l.F._bitsE=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<g)-1},l.F._bitsF=function(e,t,g){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<g)-1},l.F._get17=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},l.F._get25=function(e,t){return (e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},l.F.U=(r=Uint16Array,S=Uint32Array,{next_code:new r(16),bl_count:new r(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 r(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 S(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new S(286),dhst:new S(30),ihst:new S(19),lits:new S(15e3),strt:new r(65536),prev:new r(32768)}),function(){for(var e=l.F.U,t=0;t<32768;t++){var g=t;g=(4278255360&(g=(4042322160&(g=(3435973836&(g=(2863311530&g)>>>1|(1431655765&g)<<1))>>>2|(858993459&g)<<2))>>>4|(252645135&g)<<4))>>>8|(16711935&g)<<8,e.rev15[t]=(g>>>16|g<<16)>>>17;}function u(v,E,o){for(;E--!=0;)v.push(0,o);}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];u(e.fltree,144,8),u(e.fltree,112,9),u(e.fltree,24,7),u(e.fltree,8,8),l.F.makeCodes(e.fltree,9),l.F.codes2map(e.fltree,9,e.flmap),l.F.revCodes(e.fltree,9),u(e.fdtree,32,5),l.F.makeCodes(e.fdtree,5),l.F.codes2map(e.fdtree,5,e.fdmap),l.F.revCodes(e.fdtree,5),u(e.itree,19,0),u(e.ltree,286,0),u(e.dtree,30,0),u(e.ttree,320,0);}();})();var Cn=Tn({__proto__:null,default:$e},[$e]),pe=function(){var i={nextZero(o,a){for(;o[a]!=0;)a++;return a},readUshort:(o,a)=>o[a]<<8|o[a+1],writeUshort(o,a,n){o[a]=n>>8&255,o[a+1]=255&n;},readUint:(o,a)=>16777216*o[a]+(o[a+1]<<16|o[a+2]<<8|o[a+3]),writeUint(o,a,n){o[a]=n>>24&255,o[a+1]=n>>16&255,o[a+2]=n>>8&255,o[a+3]=255&n;},readASCII(o,a,n){let h="";for(let w=0;w<n;w++)h+=String.fromCharCode(o[a+w]);return h},writeASCII(o,a,n){for(let h=0;h<n.length;h++)o[a+h]=n.charCodeAt(h);},readBytes(o,a,n){let h=[];for(let w=0;w<n;w++)h.push(o[a+w]);return h},pad:o=>o.length<2?`0${o}`:o,readUTF8(o,a,n){let h,w="";for(let C=0;C<n;C++)w+=`%${i.pad(o[a+C].toString(16))}`;try{h=decodeURIComponent(w);}catch{return i.readASCII(o,a,n)}return h}};function r(o,a,n,h){let w=a*n,C=t(h),M=Math.ceil(a*C/8),I=new Uint8Array(4*w),H=new Uint32Array(I.buffer),{ctype:B}=h,{depth:L}=h,R=i.readUshort;if(B==6){let U=w<<2;if(L==8)for(var p=0;p<U;p+=4)I[p]=o[p],I[p+1]=o[p+1],I[p+2]=o[p+2],I[p+3]=o[p+3];if(L==16)for(p=0;p<U;p++)I[p]=o[p<<1];}else if(B==2){let U=h.tabs.tRNS;if(U==null){if(L==8)for(p=0;p<w;p++){var O=3*p;H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O];}if(L==16)for(p=0;p<w;p++)O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O];}else {var f=U[0];let x=U[1],N=U[2];if(L==8)for(p=0;p<w;p++){var c=p<<2;O=3*p,H[p]=255<<24|o[O+2]<<16|o[O+1]<<8|o[O],o[O]==f&&o[O+1]==x&&o[O+2]==N&&(I[c+3]=0);}if(L==16)for(p=0;p<w;p++)c=p<<2,O=6*p,H[p]=255<<24|o[O+4]<<16|o[O+2]<<8|o[O],R(o,O)==f&&R(o,O+2)==x&&R(o,O+4)==N&&(I[c+3]=0);}}else if(B==3){let U=h.tabs.PLTE,x=h.tabs.tRNS,N=x?x.length:0;if(L==1)for(var b=0;b<n;b++){var s=b*M,y=b*a;for(p=0;p<a;p++){c=y+p<<2;var _=3*(A=o[s+(p>>3)]>>7-((7&p)<<0)&1);I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;}}if(L==2)for(b=0;b<n;b++)for(s=b*M,y=b*a,p=0;p<a;p++)c=y+p<<2,_=3*(A=o[s+(p>>2)]>>6-((3&p)<<1)&3),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;if(L==4)for(b=0;b<n;b++)for(s=b*M,y=b*a,p=0;p<a;p++)c=y+p<<2,_=3*(A=o[s+(p>>1)]>>4-((1&p)<<2)&15),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;if(L==8)for(p=0;p<w;p++){var A;c=p<<2,_=3*(A=o[p]),I[c]=U[_],I[c+1]=U[_+1],I[c+2]=U[_+2],I[c+3]=A<N?x[A]:255;}}else if(B==4){if(L==8)for(p=0;p<w;p++){c=p<<2;var T=o[m=p<<1];I[c]=T,I[c+1]=T,I[c+2]=T,I[c+3]=o[m+1];}if(L==16)for(p=0;p<w;p++){var m;c=p<<2,T=o[m=p<<2],I[c]=T,I[c+1]=T,I[c+2]=T,I[c+3]=o[m+2];}}else if(B==0)for(f=h.tabs.tRNS?h.tabs.tRNS:-1,b=0;b<n;b++){let U=b*M,x=b*a;if(L==1)for(var d=0;d<a;d++){var P=(T=255*(o[U+(d>>>3)]>>>7-(7&d)&1))==255*f?0:255;H[x+d]=P<<24|T<<16|T<<8|T;}else if(L==2)for(d=0;d<a;d++)P=(T=85*(o[U+(d>>>2)]>>>6-((3&d)<<1)&3))==85*f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==4)for(d=0;d<a;d++)P=(T=17*(o[U+(d>>>1)]>>>4-((1&d)<<2)&15))==17*f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==8)for(d=0;d<a;d++)P=(T=o[U+d])==f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;else if(L==16)for(d=0;d<a;d++)T=o[U+(d<<1)],P=R(o,U+(d<<1))==f?0:255,H[x+d]=P<<24|T<<16|T<<8|T;}return I}function S(o,a,n,h){let w=t(o),C=Math.ceil(n*w/8),M=new Uint8Array((C+1+o.interlace)*h);return a=o.tabs.CgBI?e(a,M):l(a,M),o.interlace==0?a=g(a,o,0,n,h):o.interlace==1&&(a=function(H,B){let L=B.width,R=B.height,p=t(B),O=p>>3,f=Math.ceil(L*p/8),c=new Uint8Array(R*f),b=0,s=[0,0,4,0,2,0,1],y=[0,4,0,2,0,1,0],_=[8,8,8,4,4,2,2],A=[8,8,4,4,2,2,1],T=0;for(;T<7;){let d=_[T],P=A[T],U=0,x=0,N=s[T];for(;N<R;)N+=d,x++;let D=y[T];for(;D<L;)D+=P,U++;let Q=Math.ceil(U*p/8);g(H,B,b,U,x);let k=0,F=s[T];for(;F<R;){let $=y[T],K=b+k*Q<<3;for(;$<L;){var m;if(p==1&&(m=(m=H[K>>3])>>7-(7&K)&1,c[F*f+($>>3)]|=m<<7-((7&$)<<0)),p==2&&(m=(m=H[K>>3])>>6-(7&K)&3,c[F*f+($>>2)]|=m<<6-((3&$)<<1)),p==4&&(m=(m=H[K>>3])>>4-(7&K)&15,c[F*f+($>>1)]|=m<<4-((1&$)<<2)),p>=8){let G=F*f+$*O;for(let z=0;z<O;z++)c[G+z]=H[(K>>3)+z];}K+=p,$+=P;}k++,F+=d;}U*x!=0&&(b+=x*(1+Q)),T+=1;}return c}(a,o)),a}function l(o,a){return e(new Uint8Array(o.buffer,2,o.length-6),a)}var e=function(){let o={H:{}};return o.H.N=function(a,n){let h=Uint8Array,w,C,M=0,I=0,H=0,B=0,L=0,R=0,p=0,O=0,f=0;if(a[0]==3&&a[1]==0)return n||new h(0);let c=o.H,b=c.b,s=c.e,y=c.R,_=c.n,A=c.A,T=c.Z,m=c.m,d=n==null;for(d&&(n=new h(a.length>>>2<<5));M==0;)if(M=b(a,f,1),I=b(a,f+1,2),f+=3,I!=0){if(d&&(n=o.H.W(n,O+(1<<17))),I==1&&(w=m.J,C=m.h,R=511,p=31),I==2){H=s(a,f,5)+257,B=s(a,f+5,5)+1,L=s(a,f+10,4)+4,f+=14;let U=1;for(var P=0;P<38;P+=2)m.Q[P]=0,m.Q[P+1]=0;for(P=0;P<L;P++){let D=s(a,f+3*P,3);m.Q[1+(m.X[P]<<1)]=D,D>U&&(U=D);}f+=3*L,_(m.Q,U),A(m.Q,U,m.u),w=m.w,C=m.d,f=y(m.u,(1<<U)-1,H+B,a,f,m.v);let x=c.V(m.v,0,H,m.C);R=(1<<x)-1;let N=c.V(m.v,H,B,m.D);p=(1<<N)-1,_(m.C,x),A(m.C,x,w),_(m.D,N),A(m.D,N,C);}for(;;){let U=w[T(a,f)&R];f+=15&U;let x=U>>>4;if(!(x>>>8))n[O++]=x;else {if(x==256)break;{let N=O+x-254;if(x>264){let $=m.q[x-257];N=O+($>>>3)+s(a,f,7&$),f+=7&$;}let D=C[T(a,f)&p];f+=15&D;let Q=D>>>4,k=m.c[Q],F=(k>>>4)+b(a,f,15&k);for(f+=15&k;O<N;)n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F],n[O]=n[O++-F];O=N;}}}}else {(7&f)!=0&&(f+=8-(7&f));let U=4+(f>>>3),x=a[U-4]|a[U-3]<<8;d&&(n=o.H.W(n,O+x)),n.set(new h(a.buffer,a.byteOffset+U,x),O),f=U+x<<3,O+=x;}return n.length==O?n:n.slice(0,O)},o.H.W=function(a,n){let h=a.length;if(n<=h)return a;let w=new Uint8Array(h<<1);return w.set(a,0),w},o.H.R=function(a,n,h,w,C,M){let I=o.H.e,H=o.H.Z,B=0;for(;B<h;){let L=a[H(w,C)&n];C+=15&L;let R=L>>>4;if(R<=15)M[B]=R,B++;else {let p=0,O=0;R==16?(O=3+I(w,C,2),C+=2,p=M[B-1]):R==17?(O=3+I(w,C,3),C+=3):R==18&&(O=11+I(w,C,7),C+=7);let f=B+O;for(;B<f;)M[B]=p,B++;}}return C},o.H.V=function(a,n,h,w){let C=0,M=0,I=w.length>>>1;for(;M<h;){let H=a[M+n];w[M<<1]=0,w[1+(M<<1)]=H,H>C&&(C=H),M++;}for(;M<I;)w[M<<1]=0,w[1+(M<<1)]=0,M++;return C},o.H.n=function(a,n){let h=o.H.m,w=a.length,C,M,I,H,B=h.j;for(var L=0;L<=n;L++)B[L]=0;for(L=1;L<w;L+=2)B[a[L]]++;let R=h.K;for(C=0,B[0]=0,M=1;M<=n;M++)C=C+B[M-1]<<1,R[M]=C;for(I=0;I<w;I+=2)H=a[I+1],H!=0&&(a[I]=R[H],R[H]++);},o.H.A=function(a,n,h){let w=a.length,C=o.H.m.r;for(let M=0;M<w;M+=2)if(a[M+1]!=0){let I=M>>1,H=a[M+1],B=I<<4|H,L=n-H,R=a[M]<<L,p=R+(1<<L);for(;R!=p;)h[C[R]>>>15-n]=B,R++;}},o.H.l=function(a,n){let h=o.H.m.r,w=15-n;for(let C=0;C<a.length;C+=2){let M=a[C]<<n-a[C+1];a[C]=h[M]>>>w;}},o.H.M=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8;},o.H.I=function(a,n,h){h<<=7&n;let w=n>>>3;a[w]|=h,a[w+1]|=h>>>8,a[w+2]|=h>>>16;},o.H.e=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8)>>>(7&n)&(1<<h)-1},o.H.b=function(a,n,h){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)&(1<<h)-1},o.H.Z=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16)>>>(7&n)},o.H.i=function(a,n){return (a[n>>>3]|a[1+(n>>>3)]<<8|a[2+(n>>>3)]<<16|a[3+(n>>>3)]<<24)>>>(7&n)},o.H.m=function(){let a=Uint16Array,n=Uint32Array;return {K:new a(16),j:new a(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 a(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 a(512),_:[],h:new a(32),$:[],w:new a(32768),C:[],v:[],d:new a(32768),D:[],u:new a(512),Q:[],r:new a(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new a(65536),g:new a(32768)}}(),function(){let a=o.H.m;for(var n=0;n<32768;n++){let w=n;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,a.r[n]=(w>>>16|w<<16)>>>17;}function h(w,C,M){for(;C--!=0;)w.push(0,M);}for(n=0;n<32;n++)a.q[n]=a.S[n]<<3|a.T[n],a.c[n]=a.p[n]<<4|a.z[n];h(a._,144,8),h(a._,112,9),h(a._,24,7),h(a._,8,8),o.H.n(a._,9),o.H.A(a._,9,a.J),o.H.l(a._,9),h(a.$,32,5),o.H.n(a.$,5),o.H.A(a.$,5,a.h),o.H.l(a.$,5),h(a.Q,19,0),h(a.C,286,0),h(a.D,30,0),h(a.v,320,0);}(),o.H.N}();function t(o){return [1,null,3,1,2,null,4][o.ctype]*o.depth}function g(o,a,n,h,w){let C=t(a),M=Math.ceil(h*C/8),I,H;C=Math.ceil(C/8);let B=o[n],L=0;if(B>1&&(o[n]=[0,0,1][B-2]),B==3)for(L=C;L<M;L++)o[L+1]=o[L+1]+(o[L+1-C]>>>1)&255;for(let R=0;R<w;R++)if(I=n+R*M,H=I+R+1,B=o[H-1],L=0,B==0)for(;L<M;L++)o[I+L]=o[H+L];else if(B==1){for(;L<C;L++)o[I+L]=o[H+L];for(;L<M;L++)o[I+L]=o[H+L]+o[I+L-C];}else if(B==2)for(;L<M;L++)o[I+L]=o[H+L]+o[I+L-M];else if(B==3){for(;L<C;L++)o[I+L]=o[H+L]+(o[I+L-M]>>>1);for(;L<M;L++)o[I+L]=o[H+L]+(o[I+L-M]+o[I+L-C]>>>1);}else {for(;L<C;L++)o[I+L]=o[H+L]+u(0,o[I+L-M],0);for(;L<M;L++)o[I+L]=o[H+L]+u(o[I+L-C],o[I+L-M],o[I+L-C-M]);}return o}function u(o,a,n){let h=o+a-n,w=h-o,C=h-a,M=h-n;return w*w<=C*C&&w*w<=M*M?o:C*C<=M*M?a:n}function v(o,a,n){n.width=i.readUint(o,a),a+=4,n.height=i.readUint(o,a),a+=4,n.depth=o[a],a++,n.ctype=o[a],a++,n.compress=o[a],a++,n.filter=o[a],a++,n.interlace=o[a],a++;}function E(o,a,n,h,w,C,M,I,H){let B=Math.min(a,w),L=Math.min(n,C),R=0,p=0;for(let T=0;T<L;T++)for(let m=0;m<B;m++)if(M>=0&&I>=0?(R=T*a+m<<2,p=(I+T)*w+M+m<<2):(R=(-I+T)*a-M+m<<2,p=T*w+m<<2),H==0)h[p]=o[R],h[p+1]=o[R+1],h[p+2]=o[R+2],h[p+3]=o[R+3];else if(H==1){var O=o[R+3]*.00392156862745098,f=o[R]*O,c=o[R+1]*O,b=o[R+2]*O,s=h[p+3]*(1/255),y=h[p]*s,_=h[p+1]*s,A=h[p+2]*s;let d=1-O,P=O+s*d,U=P==0?0:1/P;h[p+3]=255*P,h[p+0]=(f+y*d)*U,h[p+1]=(c+_*d)*U,h[p+2]=(b+A*d)*U;}else if(H==2)O=o[R+3],f=o[R],c=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&c==_&&b==A?(h[p]=0,h[p+1]=0,h[p+2]=0,h[p+3]=0):(h[p]=f,h[p+1]=c,h[p+2]=b,h[p+3]=O);else if(H==3){if(O=o[R+3],f=o[R],c=o[R+1],b=o[R+2],s=h[p+3],y=h[p],_=h[p+1],A=h[p+2],O==s&&f==y&&c==_&&b==A)continue;if(O<220&&s>20)return false}return true}return {decode:function(a){let n=new Uint8Array(a),h=8,w=i,C=w.readUshort,M=w.readUint,I={tabs:{},frames:[]},H=new Uint8Array(n.length),B,L=0,R=0,p=[137,80,78,71,13,10,26,10];for(var O=0;O<8;O++)if(n[O]!=p[O])throw "The input is not a PNG file!";for(;h<n.length;){let T=w.readUint(n,h);h+=4;let m=w.readASCII(n,h,4);if(h+=4,m=="IHDR")v(n,h,I);else if(m=="iCCP"){for(var f=h;n[f]!=0;)f++;w.readASCII(n,h,f-h),n[f+1];let d=n.slice(f+2,h+T),P=null;try{P=l(d);}catch{P=e(d);}I.tabs[m]=P;}else if(m=="CgBI")I.tabs[m]=n.slice(h,h+4);else if(m=="IDAT"){for(O=0;O<T;O++)H[L+O]=n[h+O];L+=T;}else if(m=="acTL")I.tabs[m]={num_frames:M(n,h),num_plays:M(n,h+4)},B=new Uint8Array(n.length);else if(m=="fcTL"){R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height),R=0);let d={x:M(n,h+12),y:M(n,h+16),width:M(n,h+4),height:M(n,h+8)},P=C(n,h+22);P=C(n,h+20)/(P==0?100:P);let U={rect:d,delay:Math.round(1e3*P),dispose:n[h+24],blend:n[h+25]};I.frames.push(U);}else if(m=="fdAT"){for(O=0;O<T-4;O++)B[R+O]=n[h+O+4];R+=T-4;}else if(m=="pHYs")I.tabs[m]=[w.readUint(n,h),w.readUint(n,h+4),n[h+8]];else if(m=="cHRM")for(I.tabs[m]=[],O=0;O<8;O++)I.tabs[m].push(w.readUint(n,h+4*O));else if(m=="tEXt"||m=="zTXt"){I.tabs[m]==null&&(I.tabs[m]={});var c=w.nextZero(n,h),b=w.readASCII(n,h,c-h),s=h+T-c-1;if(m=="tEXt")_=w.readASCII(n,c+1,s);else {var y=l(n.slice(c+2,c+2+s));_=w.readUTF8(y,0,y.length);}I.tabs[m][b]=_;}else if(m=="iTXt"){I.tabs[m]==null&&(I.tabs[m]={}),c=0,f=h,c=w.nextZero(n,f),b=w.readASCII(n,f,c-f);let d=n[f=c+1];var _;n[f+1],f+=2,c=w.nextZero(n,f),w.readASCII(n,f,c-f),f=c+1,c=w.nextZero(n,f),w.readUTF8(n,f,c-f),s=T-((f=c+1)-h),d==0?_=w.readUTF8(n,f,s):(y=l(n.slice(f,f+s)),_=w.readUTF8(y,0,y.length)),I.tabs[m][b]=_;}else if(m=="PLTE")I.tabs[m]=w.readBytes(n,h,T);else if(m=="hIST"){let d=I.tabs.PLTE.length/3;for(I.tabs[m]=[],O=0;O<d;O++)I.tabs[m].push(C(n,h+2*O));}else if(m=="tRNS")I.ctype==3?I.tabs[m]=w.readBytes(n,h,T):I.ctype==0?I.tabs[m]=C(n,h):I.ctype==2&&(I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]);else if(m=="gAMA")I.tabs[m]=w.readUint(n,h)/1e5;else if(m=="sRGB")I.tabs[m]=n[h];else if(m=="bKGD")I.ctype==0||I.ctype==4?I.tabs[m]=[C(n,h)]:I.ctype==2||I.ctype==6?I.tabs[m]=[C(n,h),C(n,h+2),C(n,h+4)]:I.ctype==3&&(I.tabs[m]=n[h]);else if(m=="IEND")break;h+=T,w.readUint(n,h),h+=4;}var A;return R!=0&&((A=I.frames[I.frames.length-1]).data=S(I,B.slice(0,R),A.rect.width,A.rect.height)),I.data=S(I,H,I.width,I.height),delete I.compress,delete I.interlace,delete I.filter,I},toRGBA8:function(a){let n=a.width,h=a.height;if(a.tabs.acTL==null)return [r(a.data,n,h,a).buffer];let w=[];a.frames[0].data==null&&(a.frames[0].data=a.data);let C=n*h*4,M=new Uint8Array(C),I=new Uint8Array(C),H=new Uint8Array(C);for(let L=0;L<a.frames.length;L++){let R=a.frames[L],p=R.rect.x,O=R.rect.y,f=R.rect.width,c=R.rect.height,b=r(R.data,f,c,a);if(L!=0)for(var B=0;B<C;B++)H[B]=M[B];if(R.blend==0?E(b,f,c,M,n,h,p,O,0):R.blend==1&&E(b,f,c,M,n,h,p,O,1),w.push(M.buffer.slice(0)),R.dispose!=0){if(R.dispose==1)E(I,f,c,M,n,h,p,O,0);else if(R.dispose==2)for(B=0;B<C;B++)M[B]=H[B];}}return w},_paeth:u,_copyTile:E,_bin:i}}();(function(){let{_copyTile:i}=pe,{_bin:r}=pe,S=pe._paeth;var l={table:function(){let f=new Uint32Array(256);for(let c=0;c<256;c++){let b=c;for(let s=0;s<8;s++)1&b?b=3988292384^b>>>1:b>>>=1;f[c]=b;}return f}(),update(f,c,b,s){for(let y=0;y<s;y++)f=l.table[255&(f^c[b+y])]^f>>>8;return f},crc:(f,c,b)=>4294967295^l.update(4294967295,f,c,b)};function e(f,c,b,s){c[b]+=f[0]*s>>4,c[b+1]+=f[1]*s>>4,c[b+2]+=f[2]*s>>4,c[b+3]+=f[3]*s>>4;}function t(f){return Math.max(0,Math.min(255,f))}function g(f,c){let b=f[0]-c[0],s=f[1]-c[1],y=f[2]-c[2],_=f[3]-c[3];return b*b+s*s+y*y+_*_}function u(f,c,b,s,y,_,A){A==null&&(A=1);let T=s.length,m=[];for(var d=0;d<T;d++){let F=s[d];m.push([F>>>0&255,F>>>8&255,F>>>16&255,F>>>24&255]);}for(d=0;d<T;d++){let F=4294967295;for(var P=0,U=0;U<T;U++){var x=g(m[d],m[U]);U!=d&&x<F&&(F=x,P=U);}}let N=new Uint32Array(y.buffer),D=new Int16Array(c*b*4),Q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(d=0;d<Q.length;d++)Q[d]=255*((Q[d]+.5)/16-.5);for(let F=0;F<b;F++)for(let $=0;$<c;$++){var k;d=4*(F*c+$),A!=2?k=[t(f[d]+D[d]),t(f[d+1]+D[d+1]),t(f[d+2]+D[d+2]),t(f[d+3]+D[d+3])]:(x=Q[4*(3&F)+(3&$)],k=[t(f[d]+x),t(f[d+1]+x),t(f[d+2]+x),t(f[d+3]+x)]),P=0;let K=16777215;for(U=0;U<T;U++){let q=g(k,m[U]);q<K&&(K=q,P=U);}let G=m[P],z=[k[0]-G[0],k[1]-G[1],k[2]-G[2],k[3]-G[3]];A==1&&($!=c-1&&e(z,D,d+4,7),F!=b-1&&($!=0&&e(z,D,d+4*c-4,3),e(z,D,d+4*c,5),$!=c-1&&e(z,D,d+4*c+4,1))),_[d>>2]=P,N[d>>2]=s[P];}}function v(f,c,b,s,y){y==null&&(y={});let{crc:_}=l,A=r.writeUint,T=r.writeUshort,m=r.writeASCII,d=8,P=f.frames.length>1,U,x=false,N=33+(P?20:0);if(y.sRGB!=null&&(N+=13),y.pHYs!=null&&(N+=21),y.iCCP!=null&&(U=pako.deflate(y.iCCP),N+=21+U.length+4),f.ctype==3){for(var D=f.plte.length,Q=0;Q<D;Q++)f.plte[Q]>>>24!=255&&(x=true);N+=8+3*D+4+(x?8+1*D+4:0);}for(var k=0;k<f.frames.length;k++)P&&(N+=38),N+=(G=f.frames[k]).cimg.length+12,k!=0&&(N+=4);N+=12;let F=new Uint8Array(N),$=[137,80,78,71,13,10,26,10];for(Q=0;Q<8;Q++)F[Q]=$[Q];if(A(F,d,13),d+=4,m(F,d,"IHDR"),d+=4,A(F,d,c),d+=4,A(F,d,b),d+=4,F[d]=f.depth,d++,F[d]=f.ctype,d++,F[d]=0,d++,F[d]=0,d++,F[d]=0,d++,A(F,d,_(F,d-17,17)),d+=4,y.sRGB!=null&&(A(F,d,1),d+=4,m(F,d,"sRGB"),d+=4,F[d]=y.sRGB,d++,A(F,d,_(F,d-5,5)),d+=4),y.iCCP!=null){let z=13+U.length;A(F,d,z),d+=4,m(F,d,"iCCP"),d+=4,m(F,d,"ICC profile"),d+=11,d+=2,F.set(U,d),d+=U.length,A(F,d,_(F,d-(z+4),z+4)),d+=4;}if(y.pHYs!=null&&(A(F,d,9),d+=4,m(F,d,"pHYs"),d+=4,A(F,d,y.pHYs[0]),d+=4,A(F,d,y.pHYs[1]),d+=4,F[d]=y.pHYs[2],d++,A(F,d,_(F,d-13,13)),d+=4),P&&(A(F,d,8),d+=4,m(F,d,"acTL"),d+=4,A(F,d,f.frames.length),d+=4,A(F,d,y.loop!=null?y.loop:0),d+=4,A(F,d,_(F,d-12,12)),d+=4),f.ctype==3){for(A(F,d,3*(D=f.plte.length)),d+=4,m(F,d,"PLTE"),d+=4,Q=0;Q<D;Q++){let z=3*Q,q=f.plte[Q],V=255&q,W=q>>>8&255,ie=q>>>16&255;F[d+z+0]=V,F[d+z+1]=W,F[d+z+2]=ie;}if(d+=3*D,A(F,d,_(F,d-3*D-4,3*D+4)),d+=4,x){for(A(F,d,D),d+=4,m(F,d,"tRNS"),d+=4,Q=0;Q<D;Q++)F[d+Q]=f.plte[Q]>>>24&255;d+=D,A(F,d,_(F,d-D-4,D+4)),d+=4;}}let K=0;for(k=0;k<f.frames.length;k++){var G=f.frames[k];P&&(A(F,d,26),d+=4,m(F,d,"fcTL"),d+=4,A(F,d,K++),d+=4,A(F,d,G.rect.width),d+=4,A(F,d,G.rect.height),d+=4,A(F,d,G.rect.x),d+=4,A(F,d,G.rect.y),d+=4,T(F,d,s[k]),d+=2,T(F,d,1e3),d+=2,F[d]=G.dispose,d++,F[d]=G.blend,d++,A(F,d,_(F,d-30,30)),d+=4);let z=G.cimg;A(F,d,(D=z.length)+(k==0?0:4)),d+=4;let q=d;m(F,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(A(F,d,K++),d+=4),F.set(z,d),d+=D,A(F,d,_(F,q,d-q)),d+=4;}return A(F,d,0),d+=4,m(F,d,"IEND"),d+=4,A(F,d,_(F,d-4,4)),d+=4,F.buffer}function E(f,c,b){for(let s=0;s<f.frames.length;s++){let y=f.frames[s];y.rect.width;let _=y.rect.height,A=new Uint8Array(_*y.bpl+_);y.cimg=h(y.img,_,y.bpp,y.bpl,A,c,b);}}function o(f,c,b,s,y){let _=y[0],A=y[1],T=y[2],m=y[3],d=y[4],P=y[5],U=6,x=8,N=255;for(var D=0;D<f.length;D++){let te=new Uint8Array(f[D]);for(var Q=te.length,k=0;k<Q;k+=4)N&=te[k+3];}let F=N!=255,$=function(Y,Z,ne,oe,j,ce){let ee=[];for(var X=0;X<Y.length;X++){let ue=new Uint8Array(Y[X]),he=new Uint32Array(ue.buffer);var le;let de=0,ve=0,me=Z,Ie=ne,Ye=oe?1:0;if(X!=0){let yn=ce||oe||X==1||ee[X-2].dispose!=0?1:2,Ze=0,wt=1e9;for(let Le=0;Le<yn;Le++){var ge=new Uint8Array(Y[X-1-Le]);let An=new Uint32Array(Y[X-1-Le]),be=Z,_e=ne,xe=-1,De=-1;for(let Re=0;Re<ne;Re++)for(let Ce=0;Ce<Z;Ce++)he[se=Re*Z+Ce]!=An[se]&&(Ce<be&&(be=Ce),Ce>xe&&(xe=Ce),Re<_e&&(_e=Re),Re>De&&(De=Re));xe==-1&&(be=_e=xe=De=0),j&&((1&be)==1&&be--,(1&_e)==1&&_e--);let bt=(xe-be+1)*(De-_e+1);bt<wt&&(wt=bt,Ze=Le,de=be,ve=_e,me=xe-be+1,Ie=De-_e+1);}ge=new Uint8Array(Y[X-1-Ze]),Ze==1&&(ee[X-1].dispose=2),le=new Uint8Array(me*Ie*4),i(ge,Z,ne,le,me,Ie,-de,-ve,0),Ye=i(ue,Z,ne,le,me,Ie,-de,-ve,3)?1:0,Ye==1?n(ue,Z,ne,le,{x:de,y:ve,width:me,height:Ie}):i(ue,Z,ne,le,me,Ie,-de,-ve,0);}else le=ue.slice(0);ee.push({rect:{x:de,y:ve,width:me,height:Ie},img:le,blend:Ye,dispose:0});}if(oe)for(X=0;X<ee.length;X++){if((Te=ee[X]).blend==1)continue;let ue=Te.rect,he=ee[X-1].rect,de=Math.min(ue.x,he.x),ve=Math.min(ue.y,he.y),me={x:de,y:ve,width:Math.max(ue.x+ue.width,he.x+he.width)-de,height:Math.max(ue.y+ue.height,he.y+he.height)-ve};ee[X-1].dispose=1,X-1!=0&&a(Y,Z,ne,ee,X-1,me,j),a(Y,Z,ne,ee,X,me,j);}let Ne=0;if(Y.length!=1)for(var se=0;se<ee.length;se++){var Te;Ne+=(Te=ee[se]).rect.width*Te.rect.height;}return ee}(f,c,b,_,A,T),K={},G=[],z=[];if(s!=0){let te=[];for(k=0;k<$.length;k++)te.push($[k].img.buffer);let Y=function(j){let ce=0;for(var ee=0;ee<j.length;ee++)ce+=j[ee].byteLength;let X=new Uint8Array(ce),le=0;for(ee=0;ee<j.length;ee++){let ge=new Uint8Array(j[ee]),Ne=ge.length;for(let se=0;se<Ne;se+=4){let Te=ge[se],ue=ge[se+1],he=ge[se+2],de=ge[se+3];de==0&&(Te=ue=he=0),X[le+se]=Te,X[le+se+1]=ue,X[le+se+2]=he,X[le+se+3]=de;}le+=Ne;}return X.buffer}(te),Z=C(Y,s);for(k=0;k<Z.plte.length;k++)G.push(Z.plte[k].est.rgba);let ne=0;for(k=0;k<$.length;k++){let oe=(V=$[k]).img.length;var q=new Uint8Array(Z.inds.buffer,ne>>2,oe>>2);z.push(q);let j=new Uint8Array(Z.abuf,ne,oe);P&&u(V.img,V.rect.width,V.rect.height,G,j,q),V.img.set(j),ne+=oe;}}else for(D=0;D<$.length;D++){var V=$[D];let te=new Uint32Array(V.img.buffer);var W=V.rect.width;for(Q=te.length,q=new Uint8Array(Q),z.push(q),k=0;k<Q;k++){let Y=te[k];if(k!=0&&Y==te[k-1])q[k]=q[k-1];else if(k>W&&Y==te[k-W])q[k]=q[k-W];else {let Z=K[Y];if(Z==null&&(K[Y]=Z=G.length,G.push(Y),G.length>=300))break;q[k]=Z;}}}let ie=G.length;for(ie<=256&&d==0&&(x=ie<=2?1:ie<=4?2:ie<=16?4:8,x=Math.max(x,m)),D=0;D<$.length;D++){(V=$[D]).rect.x,V.rect.y,W=V.rect.width;let te=V.rect.height,Y=V.img;new Uint32Array(Y.buffer);let Z=4*W,ne=4;if(ie<=256&&d==0){Z=Math.ceil(x*W/8);var ae=new Uint8Array(Z*te);let oe=z[D];for(let j=0;j<te;j++){k=j*Z;let ce=j*W;if(x==8)for(var J=0;J<W;J++)ae[k+J]=oe[ce+J];else if(x==4)for(J=0;J<W;J++)ae[k+(J>>1)]|=oe[ce+J]<<4-4*(1&J);else if(x==2)for(J=0;J<W;J++)ae[k+(J>>2)]|=oe[ce+J]<<6-2*(3&J);else if(x==1)for(J=0;J<W;J++)ae[k+(J>>3)]|=oe[ce+J]<<7-1*(7&J);}Y=ae,U=3,ne=1;}else if(F==0&&$.length==1){ae=new Uint8Array(W*te*3);let oe=W*te;for(k=0;k<oe;k++){let j=3*k,ce=4*k;ae[j]=Y[ce],ae[j+1]=Y[ce+1],ae[j+2]=Y[ce+2];}Y=ae,U=2,ne=3,Z=3*W;}V.img=Y,V.bpl=Z,V.bpp=ne;}return {ctype:U,depth:x,plte:G,frames:$}}function a(f,c,b,s,y,_,A){let T=Uint8Array,m=Uint32Array,d=new T(f[y-1]),P=new m(f[y-1]),U=y+1<f.length?new T(f[y+1]):null,x=new T(f[y]),N=new m(x.buffer),D=c,Q=b,k=-1,F=-1;for(let K=0;K<_.height;K++)for(let G=0;G<_.width;G++){let z=_.x+G,q=_.y+K,V=q*c+z,W=N[V];W==0||s[y-1].dispose==0&&P[V]==W&&(U==null||U[4*V+3]!=0)||(z<D&&(D=z),z>k&&(k=z),q<Q&&(Q=q),q>F&&(F=q));}k==-1&&(D=Q=k=F=0),A&&((1&D)==1&&D--,(1&Q)==1&&Q--),_={x:D,y:Q,width:k-D+1,height:F-Q+1};let $=s[y];$.rect=_,$.blend=1,$.img=new Uint8Array(_.width*_.height*4),s[y-1].dispose==0?(i(d,c,b,$.img,_.width,_.height,-_.x,-_.y,0),n(x,c,b,$.img,_)):i(x,c,b,$.img,_.width,_.height,-_.x,-_.y,0);}function n(f,c,b,s,y){i(f,c,b,s,y.width,y.height,-y.x,-y.y,2);}function h(f,c,b,s,y,_,A){let T=[],m,d=[0,1,2,3,4];_!=-1?d=[_]:(c*s>5e5||b==1)&&(d=[0]),A&&(m={level:0});let P=Cn;for(var U=0;U<d.length;U++){for(let D=0;D<c;D++)w(y,f,D,s,b,d[U]);T.push(P.deflate(y,m));}let x,N=1e9;for(U=0;U<T.length;U++)T[U].length<N&&(x=U,N=T[U].length);return T[x]}function w(f,c,b,s,y,_){let A=b*s,T=A+b;if(f[T]=_,T++,_==0)if(s<500)for(var m=0;m<s;m++)f[T+m]=c[A+m];else f.set(new Uint8Array(c.buffer,A,s),T);else if(_==1){for(m=0;m<y;m++)f[T+m]=c[A+m];for(m=y;m<s;m++)f[T+m]=c[A+m]-c[A+m-y]+256&255;}else if(b==0){for(m=0;m<y;m++)f[T+m]=c[A+m];if(_==2)for(m=y;m<s;m++)f[T+m]=c[A+m];if(_==3)for(m=y;m<s;m++)f[T+m]=c[A+m]-(c[A+m-y]>>1)+256&255;if(_==4)for(m=y;m<s;m++)f[T+m]=c[A+m]-S(c[A+m-y],0,0)+256&255;}else {if(_==2)for(m=0;m<s;m++)f[T+m]=c[A+m]+256-c[A+m-s]&255;if(_==3){for(m=0;m<y;m++)f[T+m]=c[A+m]+256-(c[A+m-s]>>1)&255;for(m=y;m<s;m++)f[T+m]=c[A+m]+256-(c[A+m-s]+c[A+m-y]>>1)&255;}if(_==4){for(m=0;m<y;m++)f[T+m]=c[A+m]+256-S(0,c[A+m-s],0)&255;for(m=y;m<s;m++)f[T+m]=c[A+m]+256-S(c[A+m-y],c[A+m-s],c[A+m-y-s])&255;}}}function C(f,c){let b=new Uint8Array(f),s=b.slice(0),y=new Uint32Array(s.buffer),_=M(s,c),A=_[0],T=_[1],m=b.length,d=new Uint8Array(m>>2),P;if(b.length<2e7)for(var U=0;U<m;U+=4)P=I(A,x=b[U]*(1/255),N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255)),d[U>>2]=P.ind,y[U>>2]=P.est.rgba;else for(U=0;U<m;U+=4){var x=b[U]*.00392156862745098,N=b[U+1]*(1/255),D=b[U+2]*(1/255),Q=b[U+3]*(1/255);for(P=A;P.left;)P=H(P.est,x,N,D,Q)<=0?P.left:P.right;d[U>>2]=P.ind,y[U>>2]=P.est.rgba;}return {abuf:s.buffer,inds:d,plte:T}}function M(f,c,b){b==null&&(b=1e-4);let s=new Uint32Array(f.buffer),y={i0:0,i1:f.length,bst:null,est:null,tdst:0,left:null,right:null};y.bst=R(f,y.i0,y.i1),y.est=p(y.bst);let _=[y];for(;_.length<c;){let T=0,m=0;for(var A=0;A<_.length;A++)_[A].est.L>T&&(T=_[A].est.L,m=A);if(T<b)break;let d=_[m],P=B(f,s,d.i0,d.i1,d.est.e,d.est.eMq255);if(d.i0>=P||d.i1<=P){d.est.L=0;continue}let U={i0:d.i0,i1:P,bst:null,est:null,tdst:0,left:null,right:null};U.bst=R(f,U.i0,U.i1),U.est=p(U.bst);let x={i0:P,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};for(x.bst={R:[],m:[],N:d.bst.N-U.bst.N},A=0;A<16;A++)x.bst.R[A]=d.bst.R[A]-U.bst.R[A];for(A=0;A<4;A++)x.bst.m[A]=d.bst.m[A]-U.bst.m[A];x.est=p(x.bst),d.left=U,d.right=x,_[m]=U,_.push(x);}for(_.sort((T,m)=>m.bst.N-T.bst.N),A=0;A<_.length;A++)_[A].ind=A;return [y,_]}function I(f,c,b,s,y){if(f.left==null)return f.tdst=function(U,x,N,D,Q){let k=x-U[0],F=N-U[1],$=D-U[2],K=Q-U[3];return k*k+F*F+$*$+K*K}(f.est.q,c,b,s,y),f;let _=H(f.est,c,b,s,y),A=f.left,T=f.right;_>0&&(A=f.right,T=f.left);let m=I(A,c,b,s,y);if(m.tdst<=_*_)return m;let d=I(T,c,b,s,y);return d.tdst<m.tdst?d:m}function H(f,c,b,s,y){let{e:_}=f;return _[0]*c+_[1]*b+_[2]*s+_[3]*y-f.eMq}function B(f,c,b,s,y,_){for(s-=4;b<s;){for(;L(f,b,y)<=_;)b+=4;for(;L(f,s,y)>_;)s-=4;if(b>=s)break;let A=c[b>>2];c[b>>2]=c[s>>2],c[s>>2]=A,b+=4,s-=4;}for(;L(f,b,y)>_;)b-=4;return b+4}function L(f,c,b){return f[c]*b[0]+f[c+1]*b[1]+f[c+2]*b[2]+f[c+3]*b[3]}function R(f,c,b){let s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=[0,0,0,0],_=b-c>>2;for(let A=c;A<b;A+=4){let T=f[A]*.00392156862745098,m=f[A+1]*(1/255),d=f[A+2]*(1/255),P=f[A+3]*(1/255);y[0]+=T,y[1]+=m,y[2]+=d,y[3]+=P,s[0]+=T*T,s[1]+=T*m,s[2]+=T*d,s[3]+=T*P,s[5]+=m*m,s[6]+=m*d,s[7]+=m*P,s[10]+=d*d,s[11]+=d*P,s[15]+=P*P;}return s[4]=s[1],s[8]=s[2],s[9]=s[6],s[12]=s[3],s[13]=s[7],s[14]=s[11],{R:s,m:y,N:_}}function p(f){let{R:c}=f,{m:b}=f,{N:s}=f,y=b[0],_=b[1],A=b[2],T=b[3],m=s==0?0:1/s,d=[c[0]-y*y*m,c[1]-y*_*m,c[2]-y*A*m,c[3]-y*T*m,c[4]-_*y*m,c[5]-_*_*m,c[6]-_*A*m,c[7]-_*T*m,c[8]-A*y*m,c[9]-A*_*m,c[10]-A*A*m,c[11]-A*T*m,c[12]-T*y*m,c[13]-T*_*m,c[14]-T*A*m,c[15]-T*T*m],P=d,U=O,x=[Math.random(),Math.random(),Math.random(),Math.random()],N=0,D=0;if(s!=0)for(let k=0;k<16&&(x=U.multVec(P,x),D=Math.sqrt(U.dot(x,x)),x=U.sml(1/D,x),!(k!=0&&Math.abs(D-N)<1e-9));k++)N=D;let Q=[y*m,_*m,A*m,T*m];return {Cov:d,q:Q,e:x,L:N,eMq255:U.dot(U.sml(255,Q),x),eMq:U.dot(x,Q),rgba:(Math.round(255*Q[3])<<24|Math.round(255*Q[2])<<16|Math.round(255*Q[1])<<8|Math.round(255*Q[0])<<0)>>>0}}var O={multVec:(f,c)=>[f[0]*c[0]+f[1]*c[1]+f[2]*c[2]+f[3]*c[3],f[4]*c[0]+f[5]*c[1]+f[6]*c[2]+f[7]*c[3],f[8]*c[0]+f[9]*c[1]+f[10]*c[2]+f[11]*c[3],f[12]*c[0]+f[13]*c[1]+f[14]*c[2]+f[15]*c[3]],dot:(f,c)=>f[0]*c[0]+f[1]*c[1]+f[2]*c[2]+f[3]*c[3],sml:(f,c)=>[f*c[0],f*c[1],f*c[2],f*c[3]]};pe.encode=function(c,b,s,y,_,A,T){y==null&&(y=0),T==null&&(T=false);let m=o(c,b,s,y,[false,false,false,0,T,false]);return E(m,-1),v(m,b,s,_,A)},pe.encodeLL=function(c,b,s,y,_,A,T,m){let d={ctype:0+(y==1?0:2)+(_==0?0:4),depth:A,frames:[]},P=(y+_)*A,U=P*b;for(let x=0;x<c.length;x++)d.frames.push({rect:{x:0,y:0,width:b,height:s},img:new Uint8Array(c[x]),blend:0,dispose:1,bpp:Math.ceil(P/8),bpl:Math.ceil(U/8)});return E(d,0,true),v(d,b,s,T,m)},pe.encode.compress=o,pe.encode.dither=u,pe.quantize=C,pe.quantize.getKDtree=M,pe.quantize.getNearest=I;})();var It={toArrayBuffer(i,r){let S=i.width,l=i.height,e=S<<2,t=i.getContext("2d").getImageData(0,0,S,l),g=new Uint32Array(t.data.buffer),u=(32*S+31)/32<<2,v=u*l,E=122+v,o=new ArrayBuffer(E),a=new DataView(o),n=1<<20,h,w,C,M,I=n,H=0,B=0,L=0;function R(f){a.setUint16(B,f,true),B+=2;}function p(f){a.setUint32(B,f,true),B+=4;}function O(f){B+=f;}R(19778),p(E),O(4),p(122),p(108),p(S),p(-l>>>0),R(1),R(32),p(3),p(v),p(2835),p(2835),O(8),p(16711680),p(65280),p(255),p(4278190080),p(1466527264),function f(){for(;H<l&&I>0;){for(M=122+H*u,h=0;h<e;)I--,w=g[L++],C=w>>>24,a.setUint32(M+h,w<<8|C),h+=4;H++;}L<g.length?(I=n,setTimeout(f,It._dly)):r(o);}();},toBlob(i,r){this.toArrayBuffer(i,S=>{r(new Blob([S],{type:"image/bmp"}));});},_dly:9},fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},Un={[fe.CHROME]:16384,[fe.FIREFOX]:11180,[fe.DESKTOP_SAFARI]:16384,[fe.IE]:8192,[fe.IOS]:4096,[fe.ETC]:8192},et=typeof globalThis.window<"u",Rt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,We=et&&globalThis.window.cordova&&globalThis.window.cordova.require&&globalThis.window.cordova.require("cordova/modulemapper"),On=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"File")||typeof File<"u"&&File),Ct=(et||Rt)&&(We&&We.getOriginalSymbol(globalThis.window,"FileReader")||typeof globalThis.FileReader<"u"&&globalThis.FileReader);function tt(i,r,S=Date.now()){return new Promise(l=>{let e=i.split(","),t=e[0].match(/:(.*?);/)[1],g=globalThis.atob(e[1]),u=g.length,v=new Uint8Array(u);for(;u--;)v[u]=g.charCodeAt(u);let E=new Blob([v],{type:t});E.name=r,E.lastModified=S,l(E);})}function Ut(i){return new Promise((r,S)=>{let l=new Ct;l.onload=()=>r(l.result),l.onerror=e=>S(e),l.readAsDataURL(i);})}function Ot(i){return new Promise((r,S)=>{let l=new globalThis.Image;l.onload=()=>r(l),l.onerror=e=>S(e),l.src=i;})}function Ue(){if(Ue.cachedResult!==void 0)return Ue.cachedResult;let i=fe.ETC,{userAgent:r}=navigator;return /Chrom(e|ium)/i.test(r)?i=fe.CHROME:/iP(ad|od|hone)/i.test(r)&&/WebKit/i.test(r)?i=fe.IOS:/Safari/i.test(r)?i=fe.DESKTOP_SAFARI:/Firefox/i.test(r)?i=fe.FIREFOX:(/MSIE/i.test(r)||globalThis.document.documentMode)&&(i=fe.IE),Ue.cachedResult=i,Ue.cachedResult}function xt(i,r){let S=Ue(),l=Un[S],e=i,t=r,g=e*t,u=e>t?t/e:e/t;for(;g>l*l;){let v=(l+e)/2,E=(l+t)/2;v<E?(t=E,e=E*u):(t=v*u,e=v),g=e*t;}return {width:e,height:t}}function Ge(i,r){let S,l;try{if(S=new OffscreenCanvas(i,r),l=S.getContext("2d"),l===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{S=globalThis.document.createElement("canvas"),l=S.getContext("2d");}return S.width=i,S.height=r,[S,l]}function Pt(i,r){let{width:S,height:l}=xt(i.width,i.height),[e,t]=Ge(S,l);return r&&/jpe?g/.test(r)&&(t.fillStyle="white",t.fillRect(0,0,e.width,e.height)),t.drawImage(i,0,0,e.width,e.height),e}function Qe(){return Qe.cachedResult!==void 0||(Qe.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof globalThis.document<"u"&&"ontouchend"in globalThis.document),Qe.cachedResult}function ze(i,r={}){return new Promise(function(S,l){let e,t;var g=function(){try{return t=Pt(e,r.fileType||i.type),S([e,t])}catch(v){return l(v)}},u=function(v){try{var E=function(o){try{throw o}catch(a){return l(a)}};try{let o;return Ut(i).then(function(a){try{return o=a,Ot(o).then(function(n){try{return e=n,function(){try{return g()}catch(h){return l(h)}}()}catch(h){return E(h)}},E)}catch(n){return E(n)}},E)}catch(o){E(o);}}catch(o){return l(o)}};try{if(Qe()||[fe.DESKTOP_SAFARI,fe.MOBILE_SAFARI].includes(Ue()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(i).then(function(v){try{return e=v,g()}catch{return u()}},u)}catch{u();}})}function Ve(i,r,S,l,e=1){return new Promise(function(t,g){let u;if(r==="image/png"){let a,n,h;return a=i.getContext("2d"),{data:n}=a.getImageData(0,0,i.width,i.height),h=pe.encode([n.buffer],i.width,i.height,4096*e),u=new Blob([h],{type:r}),u.name=S,u.lastModified=l,v.call(this)}{let a=function(){return v.call(this)};if(r==="image/bmp")return new Promise(n=>It.toBlob(i,n)).then(function(n){try{return u=n,u.name=S,u.lastModified=l,a.call(this)}catch(h){return g(h)}}.bind(this),g);{let n=function(){return a.call(this)};if(typeof OffscreenCanvas=="function"&&i instanceof OffscreenCanvas)return i.convertToBlob({type:r,quality:e}).then(function(h){try{return u=h,u.name=S,u.lastModified=l,n.call(this)}catch(w){return g(w)}}.bind(this),g);{let h;return h=i.toDataURL(r,e),tt(h,S,l).then(function(w){try{return u=w,n.call(this)}catch(C){return g(C)}}.bind(this),g)}}}function v(){return t(u)}})}function ye(i){i.width=0,i.height=0;}function Pe(){return new Promise(function(i,r){let l,e,t,g;return Pe.cachedResult!==void 0?i(Pe.cachedResult):(tt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(u){try{return l=u,ze(l).then(function(v){try{return e=v[1],Ve(e,l.type,l.name,l.lastModified).then(function(E){try{return t=E,ye(e),ze(t).then(function(o){try{return g=o[0],Pe.cachedResult=g.width===1&&g.height===2,i(Pe.cachedResult)}catch(a){return r(a)}},r)}catch(o){return r(o)}},r)}catch(E){return r(E)}},r)}catch(v){return r(v)}},r))})}function Mt(i){return new Promise((r,S)=>{let l=new Ct;l.onload=e=>{let t=new DataView(e.target.result);if(t.getUint16(0,false)!=65496)return r(-2);let g=t.byteLength,u=2;for(;u<g;){if(t.getUint16(u+2,false)<=8)return r(-1);let v=t.getUint16(u,false);if(u+=2,v==65505){if(t.getUint32(u+=2,false)!=1165519206)return r(-1);let E=t.getUint16(u+=6,false)==18761;u+=t.getUint32(u+4,E);let o=t.getUint16(u,E);u+=2;for(let a=0;a<o;a++)if(t.getUint16(u+12*a,E)==274)return r(t.getUint16(u+12*a+8,E))}else {if((65280&v)!=65280)break;u+=t.getUint16(u,false);}}return r(-1)},l.onerror=e=>S(e),l.readAsArrayBuffer(i);})}function Lt(i,r){let{width:S}=i,{height:l}=i,{maxWidthOrHeight:e}=r,t,g=i;return isFinite(e)&&(S>e||l>e)&&([g,t]=Ge(S,l),S>l?(g.width=e,g.height=l/S*e):(g.width=S/l*e,g.height=e),t.drawImage(i,0,0,g.width,g.height),ye(i)),g}function Dt(i,r){let{width:S}=i,{height:l}=i,[e,t]=Ge(S,l);switch(r>4&&r<9?(e.width=l,e.height=S):(e.width=S,e.height=l),r){case 2:t.transform(-1,0,0,1,S,0);break;case 3:t.transform(-1,0,0,-1,S,l);break;case 4:t.transform(1,0,0,-1,0,l);break;case 5:t.transform(0,1,1,0,0,0);break;case 6:t.transform(0,1,-1,0,l,0);break;case 7:t.transform(0,-1,-1,0,l,S);break;case 8:t.transform(0,-1,1,0,0,S);}return t.drawImage(i,0,0,S,l),ye(i),e}function St(i,r,S=0){return new Promise(function(l,e){let t,g,u,v,E,o,a,n,h,w,C,M,I,H,B,L,R,p,O,f;function c(s=5){if(r.signal&&r.signal.aborted)throw r.signal.reason;t+=s,r.onProgress(Math.min(t,100));}function b(s){if(r.signal&&r.signal.aborted)throw r.signal.reason;t=Math.min(Math.max(s,t),100),r.onProgress(t);}return t=S,g=r.maxIteration||10,u=1024*r.maxSizeMB*1024,c(),ze(i,r).then(function(s){try{return [,v]=s,c(),E=Lt(v,r),c(),new Promise(function(y,_){var A;if(!(A=r.exifOrientation))return Mt(i).then(function(m){try{return A=m,T.call(this)}catch(d){return _(d)}}.bind(this),_);function T(){return y(A)}return T.call(this)}).then(function(y){try{return o=y,c(),Pe().then(function(_){try{return a=_?E:Dt(E,o),c(),n=r.initialQuality||1,h=r.fileType||i.type,Ve(a,h,i.name,i.lastModified,n).then(function(A){try{{let P=function(){if(g--&&(B>u||B>I)){let x,N;return x=f?.95*O.width:O.width,N=f?.95*O.height:O.height,[R,p]=Ge(x,N),p.drawImage(O,0,0,x,N),n*=h==="image/png"?.85:.95,Ve(R,h,i.name,i.lastModified,n).then(function(D){try{return L=D,ye(O),O=R,B=L.size,b(Math.min(99,Math.floor((H-B)/(H-u)*100))),P}catch(Q){return e(Q)}},e)}return [1]},U=function(){return ye(O),ye(R),ye(E),ye(a),ye(v),b(100),l(L)};var m=P,d=U;if(w=A,c(),C=w.size>u,M=w.size>i.size,!C&&!M)return b(100),l(w);var T;return I=i.size,H=w.size,B=H,O=a,f=!r.alwaysKeepResolution&&C,(T=function(x){for(;x;){if(x.then)return void x.then(T,e);try{if(x.pop){if(x.length)return x.pop()?U.call(this):x;x=P;}else x=x.call(this);}catch(N){return e(N)}}}.bind(this))(P)}}catch(P){return e(P)}}.bind(this),e)}catch(A){return e(A)}}.bind(this),e)}catch(_){return e(_)}}.bind(this),e)}catch(y){return e(y)}}.bind(this),e)})}var xn=`
6
6
  let scriptImported = false
7
7
  self.addEventListener('message', async (e) => {
8
8
  const { file, id, imageCompressionLibUrl, options } = e.data
@@ -21,7 +21,7 @@ self.addEventListener('message', async (e) => {
21
21
  self.postMessage({ error: e.message + '\\n' + e.stack, id })
22
22
  }
23
23
  })
24
- `,je;function Mn(i,r){return new Promise((S,l)=>{je||(je=function(g){let u=[];return u.push(g),URL.createObjectURL(new Blob(u))}(xn));let e=new Worker(je);e.addEventListener("message",function(g){if(r.signal&&r.signal.aborted)e.terminate();else if(g.data.progress===void 0){if(g.data.error)return l(new Error(g.data.error)),void e.terminate();S(g.data.file),e.terminate();}else r.onProgress(g.data.progress);}),e.addEventListener("error",l),r.signal&&r.signal.addEventListener("abort",()=>{l(r.signal.reason),e.terminate();}),e.postMessage({file:i,imageCompressionLibUrl:r.libURL,options:{...r,onProgress:void 0,signal:void 0}});})}function re(i,r){return new Promise(function(S,l){let e,t,g,u,v,E;if(e={...r},g=0,{onProgress:u}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,v=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=h=>{g=h,typeof u=="function"&&u(g);},!(i instanceof Blob||i instanceof On))return l(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(i.type))return l(new Error("The file given is not an image"));if(E=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!v||typeof Worker!="function"||E)return St(i,e).then(function(h){try{return t=h,n.call(this)}catch(w){return l(w)}}.bind(this),l);var o=function(){try{return n.call(this)}catch(h){return l(h)}}.bind(this),a=function(h){try{return St(i,e).then(function(w){try{return t=w,o()}catch(C){return l(C)}},l)}catch(w){return l(w)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",Mn(i,e).then(function(h){try{return t=h,o()}catch{return a()}},a)}catch{a();}function n(){try{t.name=i.name,t.lastModified=i.lastModified;}catch{}try{e.preserveExif&&i.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===i.type)&&(t=Tt(i,t));}catch{}return S(t)}})}re.getDataUrlFromFile=Ut,re.getFilefromDataUrl=tt,re.loadImage=Ot,re.drawImageInCanvas=Mt,re.drawFileInCanvas=ze,re.canvasToFile=Ve,re.getExifOrientation=Pt,re.handleMaxWidthOrHeight=Lt,re.followExifOrientation=Dt,re.cleanupCanvasMemory=ye,re.isAutoOrientationInBrowser=Me,re.approximateBelowMaximumCanvasSizeOfBrowser=xt,re.copyExifWithoutOrientation=Tt,re.getBrowserName=Ue,re.version="2.0.2";var gn=Et(Ft()),mn=Et(on());function ur(i){let r=globalThis.document.getElementById("__AUTH_DRAWER"),S=globalThis.document.querySelector(".__drawer_container"),l=globalThis.document.querySelector(".__auth_close_button");r&&l&&S?.classList.contains("__hidden")&&(S.classList.remove("__hidden"),r.src=i,r.onload=()=>{l.classList.remove("__hidden"),r.classList.remove("__hidden"),r.contentWindow?.focus();});}function an(){if(globalThis.document.getElementById("__AUTH_DRAWER"))return;let i=globalThis.document.createElement("style");i.innerHTML=`
24
+ `,je;function Pn(i,r){return new Promise((S,l)=>{je||(je=function(g){let u=[];return u.push(g),URL.createObjectURL(new Blob(u))}(xn));let e=new Worker(je);e.addEventListener("message",function(g){if(r.signal&&r.signal.aborted)e.terminate();else if(g.data.progress===void 0){if(g.data.error)return l(new Error(g.data.error)),void e.terminate();S(g.data.file),e.terminate();}else r.onProgress(g.data.progress);}),e.addEventListener("error",l),r.signal&&r.signal.addEventListener("abort",()=>{l(r.signal.reason),e.terminate();}),e.postMessage({file:i,imageCompressionLibUrl:r.libURL,options:{...r,onProgress:void 0,signal:void 0}});})}function re(i,r){return new Promise(function(S,l){let e,t,g,u,v,E;if(e={...r},g=0,{onProgress:u}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,v=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=h=>{g=h,typeof u=="function"&&u(g);},!(i instanceof Blob||i instanceof On))return l(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(i.type))return l(new Error("The file given is not an image"));if(E=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!v||typeof Worker!="function"||E)return St(i,e).then(function(h){try{return t=h,n.call(this)}catch(w){return l(w)}}.bind(this),l);var o=function(){try{return n.call(this)}catch(h){return l(h)}}.bind(this),a=function(h){try{return St(i,e).then(function(w){try{return t=w,o()}catch(C){return l(C)}},l)}catch(w){return l(w)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",Pn(i,e).then(function(h){try{return t=h,o()}catch{return a()}},a)}catch{a();}function n(){try{t.name=i.name,t.lastModified=i.lastModified;}catch{}try{e.preserveExif&&i.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===i.type)&&(t=Tt(i,t));}catch{}return S(t)}})}re.getDataUrlFromFile=Ut,re.getFilefromDataUrl=tt,re.loadImage=Ot,re.drawImageInCanvas=Pt,re.drawFileInCanvas=ze,re.canvasToFile=Ve,re.getExifOrientation=Mt,re.handleMaxWidthOrHeight=Lt,re.followExifOrientation=Dt,re.cleanupCanvasMemory=ye,re.isAutoOrientationInBrowser=Pe,re.approximateBelowMaximumCanvasSizeOfBrowser=xt,re.copyExifWithoutOrientation=Tt,re.getBrowserName=Ue,re.version="2.0.2";var gn=Et(Ft()),mn=Et(on());function ur(i){let r=globalThis.document.getElementById("__AUTH_DRAWER"),S=globalThis.document.querySelector(".__drawer_container"),l=globalThis.document.querySelector(".__auth_close_button");r&&l&&S?.classList.contains("__hidden")&&(S.classList.remove("__hidden"),r.src=i,r.onload=()=>{l.classList.remove("__hidden"),r.classList.remove("__hidden"),r.contentWindow?.focus();});}function an(){if(globalThis.document.getElementById("__AUTH_DRAWER"))return;let i=globalThis.document.createElement("style");i.innerHTML=`
25
25
  .__button_container * {
26
26
  font-family: -apple-system,
27
27
  BlinkMacSystemFont,
@@ -140,8 +140,8 @@ self.addEventListener('message', async (e) => {
140
140
  background: hsl(217.2, 32.6%, 21.5%);
141
141
  color: rgb(248, 250, 252);
142
142
  }
143
- }`,globalThis.document.head.appendChild(i);let r=globalThis.document.createElement("div");r.className="__drawer_container __hidden";let S=globalThis.document.createElement("iframe");S.className="__drawer_frame __hidden",S.id="__AUTH_DRAWER",S.setAttribute("allow","fullscreen; camera; microphone; gyroscope; accelerometer; clipboard-write; clipboard-read; autoplay; geolocation; display-capture; picture-in-picture; payment; midi; bluetooth; web-share; screen-wake-lock; xr-spatial-tracking; encrypted-media; idle-detection; hid; serial; window-management"),S.loading="eager",S.referrerPolicy="unsafe-url",S.title="Login";let l=globalThis.document.createElement("div");l.setAttribute("alt","Close"),l.className="__auth_close_button",r.appendChild(S),r.appendChild(l),globalThis.document.body.appendChild(r);let e=globalThis.document.querySelector(".__auth_close_button");function t(){r.classList.add("__hidden"),S.classList.add("__hidden");}e?.addEventListener("click",t),r.addEventListener("click",t);}var mt=i=>{let{email:r,phoneNumber:S}=i??{},l=r??S,e=new URLSearchParams;i&&"redirectUri"in i&&i.redirectUri?e.set("returnTo",i.redirectUri):e.set("returnTo",globalThis.window.location.pathname+globalThis.window.location.search),i?.provider&&"scope"in i&&(e.set("provider",i.provider),i.scope&&i.scope.length>0&&e.set("scope",i.scope.join(","))),i?.provider=="AC1"&&l&&e.set("identity",l),e.set("stripped","true");let t=globalThis.window.__APP_ID__;ur(`${globalThis.window.__ROOT_URL__}/setup/${t}?${e.toString()}`);};function cr(i={}){let[r,S]=useState({userId:void 0,status:"loading",signIn:mt,providers:[]});return useEffect(()=>{(async()=>{try{let t=await(await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json","x-guest-api-internal":"session",...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{}}})).json()??{};S({userId:t.userId??null,status:"authenticated",signIn:mt,providers:t?.providers??[]});}catch{if(i.required){let t=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),g=globalThis.window.__APP_ID__;globalThis.window.top?globalThis.window.top.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`:globalThis.window.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`;}else S({userId:null,status:"unauthenticated",signIn:mt,providers:[]});}})();},[i.required]),r}async function ln({channelId:i,initialData:r,broadcastOnly:S,onUpdate:l}){let e=r,t=0,g=globalThis.window.__REALTIME_DOMAIN__;if(S)return {getData(){return e},setData(v){e=v,fetch(`https://${g}/${i}`,{method:"POST",body:yt.stringify(e)}).catch(console.error),l?.(v);},destroy(){}};let u=new WebSocket(`wss://${g}/${i}`);return new Promise((v,E)=>{function o(w){try{let C=JSON.parse(w.data.toString());C?.id&&C.id>t?(e=yt.parse(C.payload),l?.(e),t=C.id):console.error("Invalid message:",w.data);}catch{console.error("Error parsing message:",w.data);}}function a(w){h(),E(w);}function n(){v({getData(){return e},setData(w){e=w,l?.(w),u.send(yt.stringify(w));},destroy:h});}function h(){u.removeEventListener("message",o),u.removeEventListener("error",a),u.removeEventListener("open",n),u.close();}u.addEventListener("message",o),u.addEventListener("error",a),u.addEventListener("open",n);})}function un(i,r){let S=useRef(null),[l,e]=useState(0);return useEffect(()=>((async()=>i&&(S.current=await ln({channelId:i,initialData:r,onUpdate:()=>{e(t=>t+1);}})))(),S.current?.destroy),[i,e]),[S.current?.getData(),S.current?.setData??identity]}function yr(i){let[r,S]=useState(null),[l]=un(r,void 0),e=i.mutationFn;if(!e)throw new Error("useRealtimeMutation requires a mutationFn option.");let t=useCallback(async u=>{let v=nanoid(32);return S(v),await e({...u,__channelId:v})},[i?.mutationFn]);return {...useMutation({...i,mutationFn:t}),data:l}}function cn(i){return i?.message?.startsWith("__MISSING AUTH FOR SCOPE")}function hn(i){return i[0]}function vr(i){let S=i?.message?.slice("__MISSING AUTH FOR SCOPE:".length+1).trim()??"",l=JSON.parse(atob(S.split(" ")?.[0])),e=l?.provider,t=l?.scope;return {provider:e,scope:t,isPopup:i?.message?.endsWith("--popup"),accountId:l?.accountId}}var wr=60,br=30*1e3,At=0,pn=Date.now(),vt=false;function _r(){return rpcClient({transport:async(i,r)=>{let S=Date.now();if(S-pn>=br)pn=S,At=0,vt=false;else if(At>=wr)throw vt||(globalThis.window.dispatchEvent(new Event("rate-limit-exceeded")),vt=true),new RpcError("Rate limit exceeded",-32e3,{status:429});At++;let l="/api/"+i.method,e=i.params&&hn(i.params)?.__channelId;e&&delete hn(i.params)?.__channelId;let t=await fetch(l,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...e?{"x-channel-id":e}:{},...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{},"x-boxman-box-id":globalThis.window.__BOX_ID__},body:yt.stringify(i),signal:r});if(!t.ok){let u=t.statusText,v=-32e3;try{let{message:E,code:o}=await t.json();E&&(u=E),o&&(v=o);}catch{}throw u.trim()===""&&(u=`Request failed with status: ${t.status}`),new RpcError(u,v,{status:t.status})}let g=yt.deserialize(await t.json());if(cn(g.error)){let u=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),v=vr(g.error),E=[`returnTo=${u}`,v.provider?`&provider=${v.provider}`:"",v.scope?`&scope=${v.scope.join(",")}`:"",v.accountId?`&accountId=${v.accountId}`:""].filter(Boolean).join("&");if(v.isPopup){globalThis.window.__OPEN_AUTH_DRAWER__(`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}&stripped=true`);return}let o=globalThis.window.top??globalThis.window;return o.location.href=`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}`,null}return g}})}function Vr(i){return new Promise(r=>{let S=new globalThis.FileReader;S.onload=()=>{r(S.result);},S.readAsDataURL(i);})}function Er(){let i={...globalThis.window.console};function r(S,l){let e=(0, mn.default)(l,{depth:5,maxStringLength:512,indent:2});fetch("/_logger",{method:"POST",body:`[console.${S.toLowerCase()}] ${e}`}).catch(()=>{});}globalThis.window.console.log=(...S)=>{r("LOG",S),i.log(...S);},globalThis.window.console.error=(...S)=>{r("ERROR",S),i.error(...S);},globalThis.window.console.info=(...S)=>{r("INFO",S),i.info(...S);},globalThis.window.console.warn=(...S)=>{r("WARN",S),i.warn(...S);};}function Sr(){function i(r,S=globalThis.window.parent,l="*"){S?.postMessage({...r,source:"iframe"},{targetOrigin:l});}globalThis.window.addEventListener("message",async r=>{let{origin:S,source:l,data:e}=r,{type:t}=e;if(t==="screenshot"){let g=globalThis.window.getComputedStyle(globalThis.document.body).backgroundColor,u=await gn.default.toPng(globalThis.document.body,{bgcolor:g,style:{transform:"translateY("+-globalThis.window.scrollY+"px)"},width:globalThis.window.innerWidth,height:globalThis.window.innerHeight,copyDefaultStyles:false}),v=await fetch(u).then(n=>n.blob()),E=await re(v,{maxSizeMB:4,maxWidthOrHeight:1920,useWebWorker:false}),a={type:"screenshot",payload:{screenshot:await re.getDataUrlFromFile(E)}};i(a,l,S);}});}function Gr({appId:i,rootUrl:r,baseUrl:S,isTesting:l,realtimeDomain:e,boxId:t}){typeof globalThis.window>"u"||globalThis.window.__APP_ID__||(globalThis.window.__APP_ID__=i,globalThis.window.__ROOT_URL__=r,globalThis.window.__BASE_URL__=S,globalThis.window.__IS_TESTING__=l,globalThis.window.__REALTIME_DOMAIN__=e,globalThis.window.__BOX_ID__=t,Sr(),Er(),an());}function qr(){return globalThis.window.__BASE_URL__}/*! Bundled license information:
143
+ }`,globalThis.document.head.appendChild(i);let r=globalThis.document.createElement("div");r.className="__drawer_container __hidden";let S=globalThis.document.createElement("iframe");S.className="__drawer_frame __hidden",S.id="__AUTH_DRAWER",S.setAttribute("allow","fullscreen; camera; microphone; gyroscope; accelerometer; clipboard-write; clipboard-read; autoplay; geolocation; display-capture; picture-in-picture; payment; midi; bluetooth; web-share; screen-wake-lock; xr-spatial-tracking; encrypted-media; idle-detection; hid; serial; window-management"),S.loading="eager",S.referrerPolicy="unsafe-url",S.title="Login";let l=globalThis.document.createElement("div");l.setAttribute("alt","Close"),l.className="__auth_close_button",r.appendChild(S),r.appendChild(l),globalThis.document.body.appendChild(r);let e=globalThis.document.querySelector(".__auth_close_button");function t(){r.classList.add("__hidden"),S.classList.add("__hidden");}e?.addEventListener("click",t),r.addEventListener("click",t);}var mt=i=>{let{email:r,phoneNumber:S}=i??{},l=r??S,e=new URLSearchParams;i&&"redirectUri"in i&&i.redirectUri?e.set("returnTo",i.redirectUri):e.set("returnTo",globalThis.window.location.pathname+globalThis.window.location.search),i?.provider&&"scope"in i&&(e.set("provider",i.provider),i.scope&&i.scope.length>0&&e.set("scope",i.scope.join(","))),i?.provider=="AC1"&&l&&e.set("identity",l),e.set("stripped","true");let t=globalThis.window.__APP_ID__;ur(`${globalThis.window.__ROOT_URL__}/setup/${t}?${e.toString()}`);};function cr(i={}){let[r,S]=useState({userId:void 0,status:"loading",signIn:mt,providers:[]});return useEffect(()=>{(async()=>{try{let t=await(await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json","x-guest-api-internal":"session",...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{}}})).json()??{};S({userId:t.userId??null,status:"authenticated",signIn:mt,providers:t?.providers??[]});}catch{if(i.required){let t=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),g=globalThis.window.__APP_ID__;globalThis.window.top?globalThis.window.top.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`:globalThis.window.location.href=`${globalThis.window.__ROOT_URL__}/setup/${g}?returnTo=${t}`;}else S({userId:null,status:"unauthenticated",signIn:mt,providers:[]});}})();},[i.required]),r}async function ln({channelId:i,initialData:r,broadcastOnly:S,onUpdate:l}){let e=r,t=0,g=globalThis.window.__REALTIME_DOMAIN__;if(S)return {getData(){return e},setData(v){e=v,fetch(`https://${g}/${i}`,{method:"POST",body:yt.stringify(e)}).catch(console.error),l?.(v);},destroy(){}};let u=new WebSocket(`wss://${g}/${i}`);return new Promise((v,E)=>{function o(w){try{let C=JSON.parse(w.data.toString());C?.id&&C.id>t?(e=yt.parse(C.payload),l?.(e),t=C.id):console.error("Invalid message:",w.data);}catch{console.error("Error parsing message:",w.data);}}function a(w){h(),E(w);}function n(){v({getData(){return e},setData(w){e=w,l?.(w),u.send(yt.stringify(w));},destroy:h});}function h(){u.removeEventListener("message",o),u.removeEventListener("error",a),u.removeEventListener("open",n),u.close();}u.addEventListener("message",o),u.addEventListener("error",a),u.addEventListener("open",n);})}function un(i,r){let S=useRef(null),[l,e]=useState(0);return useEffect(()=>((async()=>i&&(S.current=await ln({channelId:i,initialData:r,onUpdate:()=>{e(t=>t+1);}})))(),S.current?.destroy),[i,e]),[S.current?.getData(),S.current?.setData??identity]}function yr(i){let[r,S]=useState(null),[l]=un(r,void 0),e=i.mutationFn;if(!e)throw new Error("useRealtimeMutation requires a mutationFn option.");let t=useCallback(async u=>{let v=nanoid(32);return S(v),await e({...u,__channelId:v})},[i?.mutationFn]);return {...useMutation({...i,mutationFn:t}),data:l}}function cn(i){return i?.message?.startsWith("__MISSING AUTH FOR SCOPE")}function hn(i){return i[0]}function wr(i){let S=i?.message?.slice("__MISSING AUTH FOR SCOPE:".length+1).trim()??"",l=JSON.parse(atob(S.split(" ")?.[0])),e=l?.provider,t=l?.scope;return {provider:e,scope:t,isPopup:i?.message?.endsWith("--popup"),accountId:l?.accountId}}var br=60,_r=30*1e3,At=0,pn=Date.now(),vt=false;function Er(){return rpcClient({transport:async(i,r)=>{let S=Date.now();if(S-pn>=_r)pn=S,At=0,vt=false;else if(At>=br)throw vt||(globalThis.window.dispatchEvent(new Event("rate-limit-exceeded")),vt=true),new RpcError("Rate limit exceeded",-32e3,{status:429});At++;let l="/api/"+i.method,e=i.params&&hn(i.params)?.__channelId;e&&delete hn(i.params)?.__channelId;let t=await fetch(l,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...e?{"x-channel-id":e}:{},...globalThis.window.__IS_TESTING__?{"x-is-testing":"true"}:{},"x-boxman-box-id":globalThis.window.__BOX_ID__},body:yt.stringify(i),signal:r});if(!t.ok){let u=t.statusText,v=-32e3;try{let{message:E,code:o}=await t.json();E&&(u=E),o&&(v=o);}catch{}throw u.trim()===""&&(u=`Request failed with status: ${t.status}`),new RpcError(u,v,{status:t.status})}let g=yt.deserialize(await t.json());if(cn(g.error)){let u=encodeURIComponent(globalThis.window.location.pathname+globalThis.window.location.search),v=wr(g.error),E=[`returnTo=${u}`,v.provider?`&provider=${v.provider}`:"",v.scope?`&scope=${v.scope.join(",")}`:"",v.accountId?`&accountId=${v.accountId}`:""].filter(Boolean).join("&");if(v.isPopup){globalThis.window.__OPEN_AUTH_DRAWER__(`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}&stripped=true`);return}let o=globalThis.window.top??globalThis.window;return o.location.href=`${globalThis.window.__ROOT_URL__}/setup/${globalThis.window.__APP_ID__}?${E}`,null}return g}})}function qr(i){return new Promise(r=>{let S=new globalThis.FileReader;S.onload=()=>{r(S.result);},S.readAsDataURL(i);})}function Sr(){let i={...globalThis.window.console};function r(S,l){let e=(0, mn.default)(l,{depth:5,maxStringLength:512,indent:2});fetch("/_logger",{method:"POST",body:`[console.${S.toLowerCase()}] ${e}`}).catch(()=>{});}globalThis.window.console.log=(...S)=>{r("LOG",S),i.log(...S);},globalThis.window.console.error=(...S)=>{r("ERROR",S),i.error(...S);},globalThis.window.console.info=(...S)=>{r("INFO",S),i.info(...S);},globalThis.window.console.warn=(...S)=>{r("WARN",S),i.warn(...S);};}function Tr(){function i(r,S=globalThis.window.parent,l="*"){S?.postMessage({...r,source:"iframe"},{targetOrigin:l});}globalThis.window.addEventListener("message",async r=>{let{origin:S,source:l,data:e}=r,{type:t}=e;if(t==="screenshot"){let g=globalThis.window.getComputedStyle(globalThis.document.body).backgroundColor,u=await gn.default.toPng(globalThis.document.body,{bgcolor:g,style:{transform:"translateY("+-globalThis.window.scrollY+"px)"},width:globalThis.window.innerWidth,height:globalThis.window.innerHeight,copyDefaultStyles:false}),v=await fetch(u).then(n=>n.blob()),E=await re(v,{maxSizeMB:4,maxWidthOrHeight:1920,useWebWorker:false}),a={type:"screenshot",payload:{screenshot:await re.getDataUrlFromFile(E)}};i(a,l,S);}});}function Kr({appId:i,rootUrl:r,baseUrl:S,isTesting:l,realtimeDomain:e,boxId:t}){typeof globalThis.window>"u"||globalThis.window.__APP_ID__||(globalThis.window.__APP_ID__=i,globalThis.window.__ROOT_URL__=r,globalThis.window.__BASE_URL__=S,globalThis.window.__IS_TESTING__=l,globalThis.window.__REALTIME_DOMAIN__=e,globalThis.window.__BOX_ID__=t,Tr(),Sr(),an());}function Xr(){return globalThis.window.__BASE_URL__}/*! Bundled license information:
144
144
 
145
145
  dom-to-image-more/dist/dom-to-image-more.min.js:
146
146
  (*! dom-to-image-more 23-10-2025 *)
147
- */export{_r as apiClient,ln as connectToRealtimeStore,Vr as encodeFileAsBase64DataURL,qr as getBaseUrl,Gr as initializeClientEnvironment,cr as useAuth,yr as useRealtimeMutation,un as useRealtimeStore};
147
+ */export{Er as apiClient,ln as connectToRealtimeStore,qr as encodeFileAsBase64DataURL,Xr as getBaseUrl,Kr as initializeClientEnvironment,cr as useAuth,yr as useRealtimeMutation,un as useRealtimeStore};
@@ -129,10 +129,10 @@ export type typeToFlattenedError<T, U = string> = {
129
129
  };
130
130
  };
131
131
  declare const AuthProvider: {
132
+ readonly AC1: "AC1";
132
133
  readonly GITHUB_USER: "GITHUB_USER";
133
134
  readonly GITHUB_BOT: "GITHUB_BOT";
134
135
  readonly GOOGLE: "GOOGLE";
135
- readonly AC1: "AC1";
136
136
  readonly SLACK: "SLACK";
137
137
  readonly SLACK_BOT: "SLACK_BOT";
138
138
  readonly DISCORD: "DISCORD";
@@ -141,6 +141,7 @@ declare const AuthProvider: {
141
141
  readonly LINKEDIN: "LINKEDIN";
142
142
  readonly YAHOO: "YAHOO";
143
143
  readonly FIGMA: "FIGMA";
144
+ readonly PLAID: "PLAID";
144
145
  };
145
146
  export type AuthProvider = (typeof AuthProvider)[keyof typeof AuthProvider];
146
147
  export type ProviderInput = {
@@ -195,6 +196,7 @@ declare let client: {
195
196
  platformUserId?: string | null | undefined;
196
197
  agent?: string | null | undefined;
197
198
  sessionId?: string | null | undefined;
199
+ pushToken?: string | null | undefined;
198
200
  };
199
201
  meta: object;
200
202
  errorShape: {
@@ -235,6 +237,7 @@ declare let client: {
235
237
  isDevelopment: boolean | null;
236
238
  agent: string | null | undefined;
237
239
  sessionId: string | null | undefined;
240
+ pushToken: string | null | undefined;
238
241
  };
239
242
  _input_in: {
240
243
  appId?: string | undefined;
@@ -287,6 +290,7 @@ declare let client: {
287
290
  platformUserId?: string | null | undefined;
288
291
  agent?: string | null | undefined;
289
292
  sessionId?: string | null | undefined;
293
+ pushToken?: string | null | undefined;
290
294
  };
291
295
  meta: object;
292
296
  errorShape: {
@@ -327,6 +331,7 @@ declare let client: {
327
331
  isDevelopment: boolean | null;
328
332
  agent: string | null | undefined;
329
333
  sessionId: string | null | undefined;
334
+ pushToken: string | null | undefined;
330
335
  };
331
336
  _input_in: {
332
337
  markdown: string;
@@ -371,6 +376,7 @@ declare let client: {
371
376
  platformUserId?: string | null | undefined;
372
377
  agent?: string | null | undefined;
373
378
  sessionId?: string | null | undefined;
379
+ pushToken?: string | null | undefined;
374
380
  };
375
381
  meta: object;
376
382
  errorShape: {
@@ -411,6 +417,7 @@ declare let client: {
411
417
  isDevelopment: boolean | null;
412
418
  agent: string | null | undefined;
413
419
  sessionId: string | null | undefined;
420
+ pushToken: string | null | undefined;
414
421
  };
415
422
  _input_in: {
416
423
  appId?: string | undefined;
@@ -459,6 +466,7 @@ declare let client: {
459
466
  platformUserId?: string | null | undefined;
460
467
  agent?: string | null | undefined;
461
468
  sessionId?: string | null | undefined;
469
+ pushToken?: string | null | undefined;
462
470
  };
463
471
  meta: object;
464
472
  errorShape: {
@@ -499,6 +507,7 @@ declare let client: {
499
507
  isDevelopment: boolean | null;
500
508
  agent: string | null | undefined;
501
509
  sessionId: string | null | undefined;
510
+ pushToken: string | null | undefined;
502
511
  };
503
512
  _input_in: {
504
513
  base64: string;
@@ -539,6 +548,7 @@ declare let client: {
539
548
  platformUserId?: string | null | undefined;
540
549
  agent?: string | null | undefined;
541
550
  sessionId?: string | null | undefined;
551
+ pushToken?: string | null | undefined;
542
552
  };
543
553
  meta: object;
544
554
  errorShape: {
@@ -579,6 +589,7 @@ declare let client: {
579
589
  isDevelopment: boolean | null;
580
590
  agent: string | null | undefined;
581
591
  sessionId: string | null | undefined;
592
+ pushToken: string | null | undefined;
582
593
  };
583
594
  _input_in: {
584
595
  text: string;
@@ -592,9 +603,17 @@ declare let client: {
592
603
  promptInfluence?: number | undefined;
593
604
  loop?: boolean | undefined;
594
605
  };
595
- _output_in: typeof _trpc_server.unsetMarker;
596
- _output_out: typeof _trpc_server.unsetMarker;
597
- }, string>>;
606
+ _output_in: {
607
+ model: string;
608
+ audioUrl: string;
609
+ duration?: number | undefined;
610
+ };
611
+ _output_out: {
612
+ model: string;
613
+ audioUrl: string;
614
+ duration?: number | undefined;
615
+ };
616
+ }, unknown>>;
598
617
  };
599
618
  generateDialogue: {
600
619
  mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
@@ -623,6 +642,7 @@ declare let client: {
623
642
  platformUserId?: string | null | undefined;
624
643
  agent?: string | null | undefined;
625
644
  sessionId?: string | null | undefined;
645
+ pushToken?: string | null | undefined;
626
646
  };
627
647
  meta: object;
628
648
  errorShape: {
@@ -663,6 +683,7 @@ declare let client: {
663
683
  isDevelopment: boolean | null;
664
684
  agent: string | null | undefined;
665
685
  sessionId: string | null | undefined;
686
+ pushToken: string | null | undefined;
666
687
  };
667
688
  _input_in: {
668
689
  inputs: {
@@ -676,12 +697,17 @@ declare let client: {
676
697
  character: string;
677
698
  }[];
678
699
  };
679
- _output_in: typeof _trpc_server.unsetMarker;
680
- _output_out: typeof _trpc_server.unsetMarker;
681
- }, {
682
- url: string;
683
- duration: number | undefined;
684
- }>>;
700
+ _output_in: {
701
+ model: string;
702
+ audioUrl: string;
703
+ duration?: number | undefined;
704
+ };
705
+ _output_out: {
706
+ model: string;
707
+ audioUrl: string;
708
+ duration?: number | undefined;
709
+ };
710
+ }, unknown>>;
685
711
  };
686
712
  generateMusic: {
687
713
  mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
@@ -710,6 +736,7 @@ declare let client: {
710
736
  platformUserId?: string | null | undefined;
711
737
  agent?: string | null | undefined;
712
738
  sessionId?: string | null | undefined;
739
+ pushToken?: string | null | undefined;
713
740
  };
714
741
  meta: object;
715
742
  errorShape: {
@@ -750,6 +777,7 @@ declare let client: {
750
777
  isDevelopment: boolean | null;
751
778
  agent: string | null | undefined;
752
779
  sessionId: string | null | undefined;
780
+ pushToken: string | null | undefined;
753
781
  };
754
782
  _input_in: {
755
783
  text: string;
@@ -757,9 +785,107 @@ declare let client: {
757
785
  _input_out: {
758
786
  text: string;
759
787
  };
760
- _output_in: typeof _trpc_server.unsetMarker;
761
- _output_out: typeof _trpc_server.unsetMarker;
762
- }, string>>;
788
+ _output_in: {
789
+ model: string;
790
+ audioUrl: string;
791
+ duration?: number | undefined;
792
+ };
793
+ _output_out: {
794
+ model: string;
795
+ audioUrl: string;
796
+ duration?: number | undefined;
797
+ };
798
+ }, unknown>>;
799
+ };
800
+ generateVideo: {
801
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
802
+ _config: _trpc_server.RootConfig<{
803
+ ctx: {
804
+ appId: string;
805
+ versionId: string;
806
+ appName: string;
807
+ appSubdomain: string;
808
+ userId: string;
809
+ isTesting: boolean;
810
+ rpcMethod: string;
811
+ requestId: string;
812
+ type?: undefined;
813
+ dbUrl?: string | null | undefined;
814
+ userIdActual?: string | null | undefined;
815
+ channelId?: string | null | undefined;
816
+ } | {
817
+ type: "BOXMAN_REQUEST";
818
+ boxId: string;
819
+ isDevelopment: boolean | null;
820
+ appId?: string | null | undefined;
821
+ rpcMethod?: string | null | undefined;
822
+ requestId?: string | null | undefined;
823
+ channelId?: string | null | undefined;
824
+ platformUserId?: string | null | undefined;
825
+ agent?: string | null | undefined;
826
+ sessionId?: string | null | undefined;
827
+ pushToken?: string | null | undefined;
828
+ };
829
+ meta: object;
830
+ errorShape: {
831
+ data: {
832
+ zodError: typeToFlattenedError<any, string> | null;
833
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
834
+ httpStatus: number;
835
+ path?: string;
836
+ stack?: string;
837
+ };
838
+ message: string;
839
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
840
+ };
841
+ transformer: typeof superjson;
842
+ }>;
843
+ _meta: object;
844
+ _ctx_out: {
845
+ type: undefined;
846
+ appId: string;
847
+ versionId: string;
848
+ dbUrl: string | null | undefined;
849
+ appName: string;
850
+ appSubdomain: string;
851
+ userId: string;
852
+ userIdActual: string | null | undefined;
853
+ isTesting: boolean;
854
+ rpcMethod: string;
855
+ requestId: string;
856
+ channelId: string | null | undefined;
857
+ } | {
858
+ type: "BOXMAN_REQUEST";
859
+ appId: string | null | undefined;
860
+ rpcMethod: string | null | undefined;
861
+ requestId: string | null | undefined;
862
+ channelId: string | null | undefined;
863
+ boxId: string;
864
+ platformUserId: string | null | undefined;
865
+ isDevelopment: boolean | null;
866
+ agent: string | null | undefined;
867
+ sessionId: string | null | undefined;
868
+ pushToken: string | null | undefined;
869
+ };
870
+ _input_in: {
871
+ prompt: string;
872
+ image?: string | undefined;
873
+ };
874
+ _input_out: {
875
+ prompt: string;
876
+ image?: string | undefined;
877
+ };
878
+ _output_in: {
879
+ model: string;
880
+ videoUrl: string;
881
+ duration?: number | undefined;
882
+ };
883
+ _output_out: {
884
+ model: string;
885
+ videoUrl: string;
886
+ duration?: number | undefined;
887
+ };
888
+ }, unknown>>;
763
889
  };
764
890
  extractStructuredDataFromContent: {
765
891
  mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
@@ -788,6 +914,7 @@ declare let client: {
788
914
  platformUserId?: string | null | undefined;
789
915
  agent?: string | null | undefined;
790
916
  sessionId?: string | null | undefined;
917
+ pushToken?: string | null | undefined;
791
918
  };
792
919
  meta: object;
793
920
  errorShape: {
@@ -828,6 +955,7 @@ declare let client: {
828
955
  isDevelopment: boolean | null;
829
956
  agent: string | null | undefined;
830
957
  sessionId: string | null | undefined;
958
+ pushToken: string | null | undefined;
831
959
  };
832
960
  _input_in: {
833
961
  base64?: string | undefined;
@@ -870,6 +998,7 @@ declare let client: {
870
998
  platformUserId?: string | null | undefined;
871
999
  agent?: string | null | undefined;
872
1000
  sessionId?: string | null | undefined;
1001
+ pushToken?: string | null | undefined;
873
1002
  };
874
1003
  meta: object;
875
1004
  errorShape: {
@@ -910,6 +1039,7 @@ declare let client: {
910
1039
  isDevelopment: boolean | null;
911
1040
  agent: string | null | undefined;
912
1041
  sessionId: string | null | undefined;
1042
+ pushToken: string | null | undefined;
913
1043
  };
914
1044
  _input_in: {
915
1045
  base64?: string | undefined;
@@ -952,6 +1082,7 @@ declare let client: {
952
1082
  platformUserId?: string | null | undefined;
953
1083
  agent?: string | null | undefined;
954
1084
  sessionId?: string | null | undefined;
1085
+ pushToken?: string | null | undefined;
955
1086
  };
956
1087
  meta: object;
957
1088
  errorShape: {
@@ -992,6 +1123,7 @@ declare let client: {
992
1123
  isDevelopment: boolean | null;
993
1124
  agent: string | null | undefined;
994
1125
  sessionId: string | null | undefined;
1126
+ pushToken: string | null | undefined;
995
1127
  };
996
1128
  _input_in: {
997
1129
  name: string;
@@ -1045,6 +1177,7 @@ declare let client: {
1045
1177
  platformUserId?: string | null | undefined;
1046
1178
  agent?: string | null | undefined;
1047
1179
  sessionId?: string | null | undefined;
1180
+ pushToken?: string | null | undefined;
1048
1181
  };
1049
1182
  meta: object;
1050
1183
  errorShape: {
@@ -1085,6 +1218,7 @@ declare let client: {
1085
1218
  isDevelopment: boolean | null;
1086
1219
  agent: string | null | undefined;
1087
1220
  sessionId: string | null | undefined;
1221
+ pushToken: string | null | undefined;
1088
1222
  };
1089
1223
  _input_in: {
1090
1224
  appId?: string | undefined;
@@ -1130,6 +1264,7 @@ declare let client: {
1130
1264
  platformUserId?: string | null | undefined;
1131
1265
  agent?: string | null | undefined;
1132
1266
  sessionId?: string | null | undefined;
1267
+ pushToken?: string | null | undefined;
1133
1268
  };
1134
1269
  meta: object;
1135
1270
  errorShape: {
@@ -1170,6 +1305,7 @@ declare let client: {
1170
1305
  isDevelopment: boolean | null;
1171
1306
  agent: string | null | undefined;
1172
1307
  sessionId: string | null | undefined;
1308
+ pushToken: string | null | undefined;
1173
1309
  };
1174
1310
  _input_in: {
1175
1311
  appId?: string | undefined;
@@ -1216,6 +1352,7 @@ declare let client: {
1216
1352
  platformUserId?: string | null | undefined;
1217
1353
  agent?: string | null | undefined;
1218
1354
  sessionId?: string | null | undefined;
1355
+ pushToken?: string | null | undefined;
1219
1356
  };
1220
1357
  meta: object;
1221
1358
  errorShape: {
@@ -1256,6 +1393,7 @@ declare let client: {
1256
1393
  isDevelopment: boolean | null;
1257
1394
  agent: string | null | undefined;
1258
1395
  sessionId: string | null | undefined;
1396
+ pushToken: string | null | undefined;
1259
1397
  };
1260
1398
  _input_in: {
1261
1399
  productId: string;
@@ -1296,6 +1434,7 @@ declare let client: {
1296
1434
  platformUserId?: string | null | undefined;
1297
1435
  agent?: string | null | undefined;
1298
1436
  sessionId?: string | null | undefined;
1437
+ pushToken?: string | null | undefined;
1299
1438
  };
1300
1439
  meta: object;
1301
1440
  errorShape: {
@@ -1336,6 +1475,7 @@ declare let client: {
1336
1475
  isDevelopment: boolean | null;
1337
1476
  agent: string | null | undefined;
1338
1477
  sessionId: string | null | undefined;
1478
+ pushToken: string | null | undefined;
1339
1479
  };
1340
1480
  _input_in: {
1341
1481
  connectionId: string;
@@ -1382,6 +1522,7 @@ declare let client: {
1382
1522
  platformUserId?: string | null | undefined;
1383
1523
  agent?: string | null | undefined;
1384
1524
  sessionId?: string | null | undefined;
1525
+ pushToken?: string | null | undefined;
1385
1526
  };
1386
1527
  meta: object;
1387
1528
  errorShape: {
@@ -1422,16 +1563,17 @@ declare let client: {
1422
1563
  isDevelopment: boolean | null;
1423
1564
  agent: string | null | undefined;
1424
1565
  sessionId: string | null | undefined;
1566
+ pushToken: string | null | undefined;
1425
1567
  };
1426
1568
  _input_in: {
1427
1569
  scope: string[];
1428
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1570
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "PLAID";
1429
1571
  appId?: string | undefined;
1430
1572
  required?: boolean | undefined;
1431
1573
  };
1432
1574
  _input_out: {
1433
1575
  scope: string[];
1434
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1576
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "PLAID";
1435
1577
  appId?: string | undefined;
1436
1578
  required?: boolean | undefined;
1437
1579
  };
@@ -1471,6 +1613,7 @@ declare let client: {
1471
1613
  platformUserId?: string | null | undefined;
1472
1614
  agent?: string | null | undefined;
1473
1615
  sessionId?: string | null | undefined;
1616
+ pushToken?: string | null | undefined;
1474
1617
  };
1475
1618
  meta: object;
1476
1619
  errorShape: {
@@ -1511,6 +1654,7 @@ declare let client: {
1511
1654
  isDevelopment: boolean | null;
1512
1655
  agent: string | null | undefined;
1513
1656
  sessionId: string | null | undefined;
1657
+ pushToken: string | null | undefined;
1514
1658
  };
1515
1659
  _input_in: {
1516
1660
  userId: string;
@@ -1555,6 +1699,7 @@ declare let client: {
1555
1699
  platformUserId?: string | null | undefined;
1556
1700
  agent?: string | null | undefined;
1557
1701
  sessionId?: string | null | undefined;
1702
+ pushToken?: string | null | undefined;
1558
1703
  };
1559
1704
  meta: object;
1560
1705
  errorShape: {
@@ -1595,6 +1740,7 @@ declare let client: {
1595
1740
  isDevelopment: boolean | null;
1596
1741
  agent: string | null | undefined;
1597
1742
  sessionId: string | null | undefined;
1743
+ pushToken: string | null | undefined;
1598
1744
  };
1599
1745
  _input_in: {
1600
1746
  connectionId: string;
@@ -1640,6 +1786,7 @@ declare let client: {
1640
1786
  platformUserId?: string | null | undefined;
1641
1787
  agent?: string | null | undefined;
1642
1788
  sessionId?: string | null | undefined;
1789
+ pushToken?: string | null | undefined;
1643
1790
  };
1644
1791
  meta: object;
1645
1792
  errorShape: {
@@ -1680,18 +1827,19 @@ declare let client: {
1680
1827
  isDevelopment: boolean | null;
1681
1828
  agent: string | null | undefined;
1682
1829
  sessionId: string | null | undefined;
1830
+ pushToken: string | null | undefined;
1683
1831
  };
1684
1832
  _input_in: {
1685
1833
  appId?: string | undefined;
1686
1834
  userId?: string | undefined;
1687
1835
  scope?: string[] | undefined;
1688
- provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
1836
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "PLAID" | undefined;
1689
1837
  };
1690
1838
  _input_out: {
1691
1839
  appId?: string | undefined;
1692
1840
  userId?: string | undefined;
1693
1841
  scope?: string[] | undefined;
1694
- provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
1842
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "PLAID" | undefined;
1695
1843
  };
1696
1844
  _output_in: typeof _trpc_server.unsetMarker;
1697
1845
  _output_out: typeof _trpc_server.unsetMarker;
@@ -1729,6 +1877,7 @@ declare let client: {
1729
1877
  platformUserId?: string | null | undefined;
1730
1878
  agent?: string | null | undefined;
1731
1879
  sessionId?: string | null | undefined;
1880
+ pushToken?: string | null | undefined;
1732
1881
  };
1733
1882
  meta: object;
1734
1883
  errorShape: {
@@ -1769,6 +1918,7 @@ declare let client: {
1769
1918
  isDevelopment: boolean | null;
1770
1919
  agent: string | null | undefined;
1771
1920
  sessionId: string | null | undefined;
1921
+ pushToken: string | null | undefined;
1772
1922
  };
1773
1923
  _input_in: {
1774
1924
  connectionId: string;
@@ -1811,6 +1961,7 @@ declare let client: {
1811
1961
  platformUserId?: string | null | undefined;
1812
1962
  agent?: string | null | undefined;
1813
1963
  sessionId?: string | null | undefined;
1964
+ pushToken?: string | null | undefined;
1814
1965
  };
1815
1966
  meta: object;
1816
1967
  errorShape: {
@@ -1851,6 +2002,7 @@ declare let client: {
1851
2002
  isDevelopment: boolean | null;
1852
2003
  agent: string | null | undefined;
1853
2004
  sessionId: string | null | undefined;
2005
+ pushToken: string | null | undefined;
1854
2006
  };
1855
2007
  _input_in: {
1856
2008
  query: string;
@@ -1895,6 +2047,7 @@ declare let client: {
1895
2047
  platformUserId?: string | null | undefined;
1896
2048
  agent?: string | null | undefined;
1897
2049
  sessionId?: string | null | undefined;
2050
+ pushToken?: string | null | undefined;
1898
2051
  };
1899
2052
  meta: object;
1900
2053
  errorShape: {
@@ -1935,6 +2088,7 @@ declare let client: {
1935
2088
  isDevelopment: boolean | null;
1936
2089
  agent: string | null | undefined;
1937
2090
  sessionId: string | null | undefined;
2091
+ pushToken: string | null | undefined;
1938
2092
  };
1939
2093
  _input_in: {
1940
2094
  text: string;
@@ -1944,12 +2098,17 @@ declare let client: {
1944
2098
  text: string;
1945
2099
  voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
1946
2100
  };
1947
- _output_in: typeof _trpc_server.unsetMarker;
1948
- _output_out: typeof _trpc_server.unsetMarker;
1949
- }, {
1950
- url: string;
1951
- duration: number | undefined;
1952
- } | null>>;
2101
+ _output_in: {
2102
+ model: string;
2103
+ audioUrl: string;
2104
+ duration?: number | undefined;
2105
+ };
2106
+ _output_out: {
2107
+ model: string;
2108
+ audioUrl: string;
2109
+ duration?: number | undefined;
2110
+ };
2111
+ }, unknown>>;
1953
2112
  };
1954
2113
  textToImage: {
1955
2114
  mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
@@ -1978,6 +2137,7 @@ declare let client: {
1978
2137
  platformUserId?: string | null | undefined;
1979
2138
  agent?: string | null | undefined;
1980
2139
  sessionId?: string | null | undefined;
2140
+ pushToken?: string | null | undefined;
1981
2141
  };
1982
2142
  meta: object;
1983
2143
  errorShape: {
@@ -2018,6 +2178,7 @@ declare let client: {
2018
2178
  isDevelopment: boolean | null;
2019
2179
  agent: string | null | undefined;
2020
2180
  sessionId: string | null | undefined;
2181
+ pushToken: string | null | undefined;
2021
2182
  };
2022
2183
  _input_in: {
2023
2184
  text: string;
@@ -2027,9 +2188,15 @@ declare let client: {
2027
2188
  text: string;
2028
2189
  size?: "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | undefined;
2029
2190
  };
2030
- _output_in: typeof _trpc_server.unsetMarker;
2031
- _output_out: typeof _trpc_server.unsetMarker;
2032
- }, string>>;
2191
+ _output_in: {
2192
+ model: string;
2193
+ imageUrl: string;
2194
+ };
2195
+ _output_out: {
2196
+ model: string;
2197
+ imageUrl: string;
2198
+ };
2199
+ }, unknown>>;
2033
2200
  };
2034
2201
  health: {
2035
2202
  query: _trpc_client.Resolver<_trpc_server.BuildProcedure<"query", {
@@ -2058,6 +2225,7 @@ declare let client: {
2058
2225
  platformUserId?: string | null | undefined;
2059
2226
  agent?: string | null | undefined;
2060
2227
  sessionId?: string | null | undefined;
2228
+ pushToken?: string | null | undefined;
2061
2229
  };
2062
2230
  meta: object;
2063
2231
  errorShape: {
@@ -2098,6 +2266,7 @@ declare let client: {
2098
2266
  isDevelopment: boolean | null;
2099
2267
  agent: string | null | undefined;
2100
2268
  sessionId: string | null | undefined;
2269
+ pushToken: string | null | undefined;
2101
2270
  };
2102
2271
  _input_in: typeof _trpc_server.unsetMarker;
2103
2272
  _input_out: typeof _trpc_server.unsetMarker;
@@ -2134,6 +2303,7 @@ declare let client: {
2134
2303
  platformUserId?: string | null | undefined;
2135
2304
  agent?: string | null | undefined;
2136
2305
  sessionId?: string | null | undefined;
2306
+ pushToken?: string | null | undefined;
2137
2307
  };
2138
2308
  meta: object;
2139
2309
  errorShape: {
@@ -2174,6 +2344,7 @@ declare let client: {
2174
2344
  isDevelopment: boolean | null;
2175
2345
  agent: string | null | undefined;
2176
2346
  sessionId: string | null | undefined;
2347
+ pushToken: string | null | undefined;
2177
2348
  };
2178
2349
  _input_in: {
2179
2350
  appId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptive-ai/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {