tauri/examples/api/dist/assets/index.js

42 lines
57 KiB
JavaScript
Raw Normal View History

var to=Object.defineProperty;var no=(e,t,l)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var ft=(e,t,l)=>(no(e,typeof t!="symbol"?t+"":t,l),l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const _ of r.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&i(_)}).observe(document,{childList:!0,subtree:!0});function l(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=l(s);fetch(s.href,r)}})();function ee(){}function Rs(e){return e()}function cs(){return Object.create(null)}function Fe(e){e.forEach(Rs)}function Ds(e){return typeof e=="function"}function Pt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Cl;function lo(e,t){return e===t?!0:(Cl||(Cl=document.createElement("a")),Cl.href=t,e===Cl.href)}function io(e){return Object.keys(e).length===0}function so(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const l=e.subscribe(...t);return l.unsubscribe?()=>l.unsubscribe():l}function oo(e,t,l){e.$$.on_destroy.push(so(t,l))}function n(e,t){e.appendChild(t)}function w(e,t,l){e.insertBefore(t,l||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let l=0;l<e.length;l+=1)e[l]&&e[l].d(t)}function o(e){return document.createElement(e)}function ao(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function p(e){return document.createTextNode(e)}function c(){return p(" ")}function hi(){return p("")}function k(e,t,l,i){return e.addEventListener(t,l,i),()=>e.removeEventListener(t,l,i)}function ds(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,l){l==null?e.removeAttribute(t):e.getAttribute(t)!==l&&e.setAttribute(t,l)}function B(e){return e===""?null:+e}function ro(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t){e.value=t??""}function Jt(e,t,l,i){l==null?e.style.removeProperty(t):e.style.setProperty(t,l,i?"important":"")}function Ye(e,t,l){for(let i=0;i<e.options.length;i+=1){const s=e.options[i];if(s.__value===t){s.selected=!0;return}}(!l||t!==void 0)&&(e.selectedIndex=-1)}function vn(e){const t=e.querySelector(":checked");return t&&t.__value}class uo{constructor(t=!1){ft(this,"is_svg",!1);ft(this,"e");ft(this,"n");ft(this,"t");ft(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,l,i=null){this.e||(this.is_svg?this.e=ao(l.nodeName):this.e=o(l.nodeType===11?"TEMPLATE":l.nodeName),this.t=l.tagName!=="TEMPLATE"?l:l.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let l=0;l<this.n.length;l+=1)w(this.t,this.n[l],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(m)}}function fs(e,t){return new e(t)}let zn;function kn(e){zn=e}function Hs(){if(!zn)throw new Error("Function called outside component initialization");return zn}function Al(e){Hs().$$.on_mount.push(e)}function Us(e){Hs().$$.on_destroy.push(e)}const xt=[],ri=[];let $t=[];const hs=[],co=Promise.resolve();let ui=!1;function fo(){ui||(ui=!0,co.then(qs))}function pt(e){$t.push(e)}const ai=new Set;let Qt=0;function qs(){if(Qt!==0)return;const e=zn;do{try{for(;Qt<xt.length;){const t=xt[Qt];Qt++,kn(t),ho(t.$$)}}catch(t){throw xt.length=0,Qt=0,t}for(kn(null),xt.length=0,Qt=0;ri.length;)ri.pop()();for(let t=0;t<$t.length;t+=1){const l=$t[t];ai.has(l)||(ai.add(l),l())}$t.length=0}while(xt.length);for(;hs.length;)hs.pop()();ui=!1,ai.clear(),kn(e)}function ho(e){if(e.fragment!==null){e.update(),Fe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(pt)}}function po(e){const t=
development process. In the future, this app will be used on Tauri&#39;s integration
tests.`,i=c(),s=o("br"),r=c(),_=o("br"),h=c(),g=o("pre"),d=p(" App name: "),I=o("code"),z=p(e[2]),Y=p(`
App version: `),E=o("code"),A=p(e[0]),M=p(`
Tauri version: `),N=o("code"),ae=p(e[1]),H=p(`
`),W=c(),V=o("br"),G=c(),P=o("button"),P.textContent="Context menu",a(P,"class","btn")},m(R,x){w(R,t,x),n(t,l),n(t,i),n(t,s),n(t,r),n(t,_),n(t,h),n(t,g),n(g,d),n(g,I),n(I,z),n(g,Y),n(g,E),n(E,A),n(g,M),n(g,N),n(N,ae),n(g,H),n(t,W),n(t,V),n(t,G),n(t,P),F||(re=k(P,"click",e[3]),F=!0)},p(R,[x]){x&4&&se(z,R[2]),x&1&&se(A,R[0]),x&2&&se(ae,R[1])},i:ee,o:ee,d(R){R&&m(t),F=!1,re()}}}function Po(e,t,l){let i="1.0.0",s="1.0.0",r="Unknown";Gs().then(h=>{l(2,r=h)}),Vs().then(h=>{l(0,i=h)}),Xs().then(h=>{l(1,s=h)});function _(){b("popup_context_menu")}return[i,s,r,_]}class To extends tn{constructor(t){super(),en(this,t,Po,Co,Pt,{})}}var Ao={};En(Ao,{TauriEvent:()=>Js,emit:()=>bi,listen:()=>Nl,once:()=>Zs});var Js=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(Js||{});async function Qs(e,t){await b("plugin:event|unlisten",{event:e,eventId:t})}async function Nl(e,t,l){return b("plugin:event|listen",{event:e,windowLabel:l==null?void 0:l.target,handler:pi(t)}).then(i=>async()=>Qs(e,i))}async function Zs(e,t,l){return Nl(e,i=>{t(i),Qs(e,i.id).catch(()=>{})},l)}async function bi(e,t,l){await b("plugin:event|emit",{event:e,windowLabel:l==null?void 0:l.target,payload:t})}function Mo(e){let t,l,i,s,r,_,h,g;return{c(){t=o("div"),l=o("button"),l.textContent="Call Log API",i=c(),s=o("button"),s.textContent="Call Request (async) API",r=c(),_=o("button"),_.textContent="Send event to Rust",a(l,"class","btn"),a(l,"id","log"),a(s,"class","btn"),a(s,"id","request"),a(_,"class","btn"),a(_,"id","event")},m(d,I){w(d,t,I),n(t,l),n(t,i),n(t,s),n(t,r),n(t,_),h||(g=[k(l,"click",e[0]),k(s,"click",e[1]),k(_,"click",e[2])],h=!0)},p:ee,i:ee,o:ee,d(d){d&&m(t),h=!1,Fe(g)}}}function Io(e,t,l){let{onMessage:i}=t,s;Al(async()=>{s=await Nl("rust-event",i)}),Us(()=>{s&&s()});function r(){b("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function _(){b("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function h(){bi("js-event","this is the payload string")}return e.$$set=g=>{"onMessage"in g&&l(3,i=g.onMessage)},[r,_,h,i]}class Oo extends tn{constructor(t){super(),en(this,t,Io,Mo,Pt,{onMessage:3})}}var No={};En(No,{LogicalPosition:()=>gi,LogicalSize:()=>Ln,PhysicalPosition:()=>xe,PhysicalSize:()=>ht});var Ln=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},ht=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Ln(this.width/e,this.height/e)}},gi=class{constructor(t,l){this.type="Logical",this.x=t,this.y=l}},xe=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new gi(this.x/e,this.y/e)}},Wo={};En(Wo,{CloseRequestedEvent:()=>xs,Effect:()=>Il,EffectState:()=>Ol,LogicalPosition:()=>gi,LogicalSize:()=>Ln,PhysicalPosition:()=>xe,PhysicalSize:()=>ht,ProgressBarStatus:()=>Ml,UserAttentionType:()=>_i,Window:()=>Sn,availableMonitors:()=>Ho,currentMonitor:()=>Ro,getAll:()=>Tl,getCurrent:()=>mi,primaryMonitor:()=>Do});var _i=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(_i||{}),xs=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},Ml=(e=>(e.None="none",e.Normal="normal",e.Indeterminate="indeterminate",e.Paused="paused",e.Error="error",e))(Ml||{});function mi(){return new Sn(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function Tl(){return window.__TAURI_INTERNALS__.metadata.windows.map(e=>new Sn(e.label,{skip:!0})
`),R=o("input"),x=c(),te=o("label"),y=p(`Resizable
`),U=o("input"),j=c(),$=o("label"),ue=p(`Maximizable
`),K=o("input"),_e=c(),ke=o("label"),de=p(`Minimizable
`),oe=o("input"),J=c(),he=o("label"),q=p(`Closable
`),ne=o("input"),Z=c(),v=o("label"),X=p(`Has decorations
`),S=o("input"),fe=c(),Ee=o("label"),me=p(`Always on top
`),pe=o("input"),Me=c(),Se=o("label"),Ie=p(`Always on bottom
`),be=o("input"),ge=c(),ze=o("label"),Ce=p(`Content protected
`),ce=o("input"),Le=c(),le=o("label"),Oe=p(`Fullscreen
`),Ne=o("input"),Pe=c(),ie=o("br"),L=c(),Q=o("div"),C=o("div"),Te=o("div"),Cn=p(`X
`),We=o("input"),Pn=c(),Tt=o("div"),Tn=p(`Y
`),Re=o("input"),An=c(),$e=o("div"),At=o("div"),Mn=p(`Width
`),De=o("input"),In=c(),Mt=o("div"),On=p(`Height
`),He=o("input"),Nn=c(),et=o("div"),It=o("div"),Wn=p(`Min width
`),je=o("input"),Rn=c(),Ot=o("div"),Dn=p(`Min height
`),Ve=o("input"),Hn=c(),tt=o("div"),Nt=o("div"),Un=p(`Max width
`),Ue=o("input"),qn=c(),Wt=o("div"),Bn=p(`Max height
`),qe=o("input"),nn=c(),ln=o("br"),sn=c(),Ae=o("div"),nt=o("div"),Ge=o("div"),O=o("div"),O.textContent="Inner Size",on=c(),bt=o("span"),an=p("Width: "),Rt=p(gt),rn=c(),_t=o("span"),un=p("Height: "),Dt=p(mt),cn=c(),Be=o("div"),wt=o("div"),wt.textContent="Outer Size",dn=c(),vt=o("span"),fn=p("Width: "),Ht=p(yt),hn=c(),kt=o("span"),pn=p("Height: "),Ut=p(zt),Fn=c(),qt=o("div"),lt=o("div"),jn=o("div"),jn.textContent="Inner Logical Size",vi=c(),Vn=o("span"),yi=p("Width: "),Wl=p(Gn),ki=c(),Xn=o("span"),zi=p("Height: "),Rl=p(Yn),Li=c(),it=o("div"),Kn=o("div"),Kn.textContent="Outer Logical Size",Ei=c(),Jn=o("span"),Si=p("Width: "),Dl=p(Qn),Ci=c(),Zn=o("span"),Pi=p("Height: "),Hl=p(xn),Ti=c(),Bt=o("div"),st=o("div"),$n=o("div"),$n.textContent="Inner Position",Ai=c(),el=o("span"),Mi=p("x: "),Ul=p(tl),Ii=c(),nl=o("span"),Oi=p("y: "),ql=p(ll),Ni=c(),ot=o("div"),il=o("div"),il.textContent="Outer Position",Wi=c(),sl=o("span"),Ri=p("x: "),Bl=p(ol),Di=c(),al=o("span"),Hi=p("y: "),Fl=p(rl),Ui=c(),Ft=o("div"),at=o("div"),ul=o("div"),ul.textContent="Inner Logical Position",qi=c(),cl=o("span"),Bi=p("x: "),jl=p(dl),Fi=c(),fl=o("span"),ji=p("y: "),Vl=p(hl),Vi=c(),rt=o("div"),pl=o("div"),pl.textContent="Outer Logical Position",Gi=c(),bl=o("span"),Xi=p("x: "),Gl=p(gl),Yi=c(),_l=o("span"),Ki=p("y: "),Xl=p(ml),Yl=c(),Kl=o("br"),Jl=c(),bn=o("h4"),bn.textContent="Cursor",Ql=c(),Ke=o("div"),wl=o("label"),jt=o("input"),Ji=p(`
Grab`),Qi=c(),vl=o("label"),Vt=o("input"),Zi=p(`
Visible`),xi=c(),yl=o("label"),Gt=o("input"),$i=p(`
Ignore events`),Zl=c(),Je=o("div"),kl=o("label"),es=p(`Icon
`),Qe=o("select");for(let u=0;u<we.length;u+=1)we[u].c();ts=c(),zl=o("label"),ns=p(`X position
`),ut=o("input"),ls=c(),Ll=o("label"),is=p(`Y position
`),ct=o("input"),xl=c(),$l=o("br"),ei=c(),gn=o("div"),Lt=o("form"),dt=o("input"),ss=c(),_n=o("button"),_n.textContent="Set title",ti=c(),ni=o("br"),li=c(),mn=o("div"),Xt=o("div"),El=o("label"),os=p(`Progress Status
`),Ze=o("select");for(let u=0;u<ve.length;u+=1)ve[u].c();as=c(),Sl=o("label"),rs=p(`Progress
`),Xe=o("input"),ii=c(),Et&&Et.c(),si=hi(),a(h,"class","input grow"),a(d,"class","btn"),a(d,"type","submit"),a(_,"class","flex gap-1 grow"),a(i,"class","flex gap-1 items-center"),a(A,"class","btn"),a(A,"title","Unminimizes after 2 seconds"),a(N,"class","btn"),a(N,"title","Unminimizes after 2 seconds"),a(H,"class","btn"),a(H,"title","Visible again after 2 seconds"),a(V,"class","btn"),a(V,"title","Minimizes the window, requests attention for 3s and then resets it"),a(E,"class","flex flex-wrap gap-2"),a(R,"type","checkbox"),a(U,"type","checkbox"),a(K,"type","checkbox"),a(oe,"type","checkbox"),a(ne,"type","checkbox"),a(S,"type","checkbox"),a(pe,"type","checkbox"),a(be,"type","checkbox"),a(ce,"type","checkbox"),a(Ne,"type","checkbox"),a(P,"class","flex flex-wrap gap-2"),a(We,"class","input"),a(We,"type","number"),a(We,"min","0"),a(Re,"class","input"),a(Re,"type","number"),a(Re,"min","0"),a(C,"class","flex children:grow flex-col"),a(De,"class","input"),a(De,"type","number"),a(De,"min","400"),a(He,"class","input"),a(He,"type","number"),a(He,"min","400"),a($e,"class","flex children:grow flex-col"),a(je,"class","input"),a(je,"type","number"),a(Ve,"class","input"),a(Ve,"type","number"),a(et,"class","flex children:grow flex-col"),a(Ue,"class","input"),a(Ue,"type","number"),a(Ue,"min","800"),a(qe,"class","input"),a(qe,"type","number"),a(qe,"min","400"),a(tt,"class","flex children:grow flex-col"),a(Q,"class","flex flex-row gap-2 flex-wrap"),a(O,"class","text-accent dark:text-darkAccent font-700"),a(Ge,"class","grow"),a(wt,"class","text-accent dark:text-darkAccent font-700"),a(Be,"class","grow"),a(nt,"class","flex"),a(jn,"class","text-accent dark:text-darkAccent font-700"),a(lt,"class","grow"),a(Kn,"class","text-accent dark:text-darkAccent font-700"),a(it,"class","grow"),a(qt,"class","flex"),a($n,"class","text-accent dark:text-darkAccent font-700"),a(st,"class","grow"),a(il,"class","text-accent dark:text-darkAccent font-700"),a(ot,"class","grow"),a(Bt,"class","flex"),a(ul,"class","text-accent dark:text-darkAccent font-700"),a(at,"class","grow"),a(pl,"class","text-accent dark:text-darkAccent font-700"),a(rt,"class","grow"),a(Ft,"class","flex"),a(bn,"class","mb-2"),a(jt,"type","checkbox"),a(Vt,"type","checkbox"),a(Gt,"type","checkbox"),a(Ke,"class","flex gap-2"),a(Qe,"class","input"),e[24]===void 0&&pt(()=>e[83].call(Qe)),a(ut,"class","input"),a(ut,"type","number"),a(ct,"class","input"),a(ct,"type","number"),a(Je,"class","flex gap-2"),a(dt,"class","input grow"),a(dt,"id","title"),a(_n,"class","btn"),a(_n,"type","submit"),a(Lt,"class","flex gap-1"),a(gn,"class","flex flex-col gap-1"),a(Ze,"class","input"),e[26]===void 0&&pt(()=>e[87].call(Ze)),a(Xe,"class","input"),a(Xe,"type","number"),a(Xe,"min","0"),a(Xe,"max","100"),a(Xt,"class","flex gap-2"),a(mn,"class","flex flex-col gap-1")},m(u,f){w(u,t,f),w(u,l,f),w(u,i,f),n(i,s),n(i,r),n(i,_),n(_,h),T(h,e[43]),n(_,g),n(_,d),w(u,I,f),w(u,z,f),w(u,Y,f),w(u,E,f),n(E,A),n(E,M),n(E,N),n(E,ae),n(E,H),n(E,W),n(E,V),w(u,G,f),w(u,P,f),n(P,F),n(F,re),n(F,R),R.checked=e[6],n(P,x),n(P,te),n(te,y),n(te,U),U.checked=e[2],n(P,j),n(P,$),n($,ue),n($,K),K.checked=e[3],n(P,_e),n(P,ke),n(ke,de),n(ke,oe),oe.checked=e[4],n(P,J),n(P,he),n(he,q),n(he,ne),ne.checked=e[5],n(P,Z),n(P,v),n(v,X),n(v,S),S.checked=e[7],n(P,fe),n(P,Ee),n(Ee,me),n(Ee,pe),pe.checked=e[8],n(P,Me),n(P,Se),n(Se,Ie),n(Se,be),be.checked=e[9],n(P,ge),n(P,ze),n(ze,Ce),n(ze,ce),ce.checked=e[10],n(P,Le),n(P,le),n(le,Oe),n(le,Ne),Ne.checked=e[11],w(u,Pe,f),w(u,ie,f),w(u,L,f),w(u,Q,f),n(Q,C),n(C,Te),n(Te,Cn),n(Te,We),T(We,e[18]),n(C,Pn),n(C,Tt),n(Tt,Tn),n(Tt,Re),T(Re,e[19]),n(Q,An),n(Q,$e),n($e,At),n(At,Mn),n(At,De),T(De,e[12]),n($e,In),n($e,Mt),n(Mt,On),n(Mt,He),T(He,e[13]),n(Q,Nn),n(Q,et),n(et,It),n(It,Wn),n(It,je),T(je,e[14]),n(et,Rn),n(et,Ot),n(Ot,Dn),n(Ot,Ve),T(Ve,e[15]),n(Q,Hn),n(Q,tt),n(tt,Nt),n(Nt,Un),n(Nt,Ue),T(Ue,e[16]),n(tt,qn),n(tt,Wt),n(Wt,Bn),n(Wt,qe),T(qe,e[17]),w(u,nn,f),w(u,ln,f),w(u,sn,f),w(u,Ae,f),n(Ae,nt),n(nt,Ge),n(Ge,O),n(Ge,on),n(Ge,bt),n(bt,an),n(bt,Rt),n(Ge,rn),n(Ge,_t),n(_t,un),n(_t,Dt),n(nt,cn),n(nt,Be),n(Be,wt),n(Be
`),r=o("select");for(let v=0;v<q.length;v+=1)q[v].c();_=c(),h=o("label"),g=p(`State
`),d=o("select");for(let v=0;v<Z.length;v+=1)Z[v].c();I=c(),z=o("label"),Y=p(`Radius
`),E=o("input"),A=c(),M=o("div"),N=o("label"),ae=p(`Color
`),H=o("div"),W=o("input"),V=c(),G=o("input"),P=c(),F=o("input"),re=c(),R=o("input"),x=c(),te=o("div"),y=o("button"),y.textContent="Add",U=c(),j=o("div"),$=o("div"),ue=p("Applied effects: "),_e=p(K),ke=c(),de=o("button"),de.textContent="Clear",a(r,"class","input"),e[36]===void 0&&pt(()=>e[89].call(r)),a(d,"class","input"),e[37]===void 0&&pt(()=>e[90].call(d)),a(E,"class","input"),a(E,"type","number"),a(l,"class","flex"),Jt(W,"max-width","120px"),a(W,"class","input"),a(W,"type","number"),a(W,"placeholder","R"),Jt(G,"max-width","120px"),a(G,"class","input"),a(G,"type","number"),a(G,"placeholder","G"),Jt(F,"max-width","120px"),a(F,"class","input"),a(F,"type","number"),a(F,"placeholder","B"),Jt(R,"max-width","120px"),a(R,"class","input"),a(R,"type","number"),a(R,"placeholder","A"),a(H,"class","flex"),a(M,"class","flex"),a(y,"class","btn"),Jt(y,"width","80px"),a(te,"class","flex"),a(de,"class","btn"),Jt(de,"width","80px"),a(j,"class","flex"),a(t,"class","flex flex-col gap-1")},m(v,X){w(v,t,X),n(t,l),n(l,i),n(i,s),n(i,r);for(let S=0;S<q.length;S+=1)q[S]&&q[S].m(r,null);Ye(r,e[36],!0),n(l,_),n(l,h),n(h,g),n(h,d);for(let S=0;S<Z.length;S+=1)Z[S]&&Z[S].m(d,null);Ye(d,e[37],!0),n(l,I),n(l,z),n(z,Y),n(z,E),T(E,e[38]),n(t,A),n(t,M),n(M,N),n(N,ae),n(N,H),n(H,W),T(W,e[39]),n(H,V),n(H,G),T(G,e[40]),n(H,P),n(H,F),T(F,e[41]),n(H,re),n(H,R),T(R,e[42]),n(t,x),n(t,te),n(te,y),n(t,U),n(t,j),n(j,$),n($,ue),n($,_e),n(j,ke),n(j,de),oe||(J=[k(r,"change",e[89]),k(d,"change",e[90]),k(E,"input",e[91]),k(W,"input",e[92]),k(G,"input",e[93]),k(F,"input",e[94]),k(R,"input",e[95]),k(y,"click",e[55]),k(de,"click",e[56])],oe=!0)},p(v,X){if(X[1]&65536){he=ye(v[47]);let S;for(S=0;S<he.length;S+=1){const fe=ws(v,he,S);q[S]?q[S].p(fe,X):(q[S]=Ps(fe),q[S].c(),q[S].m(r,null))}for(;S<q.length;S+=1)q[S].d(1);q.length=he.length}if(X[1]&65568&&Ye(r,v[36]),X[1]&131072){ne=ye(v[48]);let S;for(S=0;S<ne.length;S+=1){const fe=ms(v,ne,S);Z[S]?Z[S].p(fe,X):(Z[S]=Ts(fe),Z[S].c(),Z[S].m(d,null))}for(;S<Z.length;S+=1)Z[S].d(1);Z.length=ne.length}X[1]&131136&&Ye(d,v[37]),X[1]&128&&B(E.value)!==v[38]&&T(E,v[38]),X[1]&256&&B(W.value)!==v[39]&&T(W,v[39]),X[1]&512&&B(G.value)!==v[40]&&T(G,v[40]),X[1]&1024&&B(F.value)!==v[41]&&T(F,v[41]),X[1]&2048&&B(R.value)!==v[42]&&T(R,v[42]),X[1]&16&&K!==(K=(v[35].length?v[35].join(","):"None")+"")&&se(_e,K)},d(v){v&&m(t),Ct(q,v),Ct(Z,v),oe=!1,Fe(J)}}}function Ps(e){let t,l=e[108]+"",i;return{c(){t=o("option"),i=p(l),t.__value=e[108],T(t,t.__value)},m(s,r){w(s,t,r),n(t,i)},p:ee,d(s){s&&m(t)}}}function Ts(e){let t,l=e[105]+"",i;return{c(){t=o("option"),i=p(l),t.__value=e[105],T(t,t.__value)},m(s,r){w(s,t,r),n(t,i)},p:ee,d(s){s&&m(t)}}}function qo(e){let t,l,i,s,r,_,h,g,d=Object.keys(e[1]).length>=1,I,z,Y,E=d&&zs(e),A=e[1][e[0]]&&Es(e);return{c(){t=o("div"),l=o("div"),i=o("input"),s=c(),r=o("button"),r.textContent="New window",_=c(),h=o("br"),g=c(),E&&E.c(),I=c(),A&&A.c(),a(i,"class","input grow"),a(i,"type","text"),a(i,"placeholder","New Window label.."),a(r,"class","btn"),a(l,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(M,N){w(M,t,N),n(t,l),n(l,i),T(i,e[28]),n(l,s),n(l,r),n(t,_),n(t,h),n(t,g),E&&E.m(t,null),n(t,I),A&&A.m(t,null),z||(Y=[k(i,"input",e[58]),k(r,"click",e[53])],z=!0)},p(M,N){N[0]&268435456&&i.value!==M[28]&&T(i,M[28]),N[0]&2&&(d=Object.keys(M[1]).length>=1),d?E?E.p(M,N):(E=zs(M),E.c(),E.m(t,I)):E&&(E.d(1),E=null),M[1][M[0]]?A?A.p(M,N):(A=Es(M),A.c(),A.m(t,null)):A&&(A.d(1),A=null)},i:ee,o:ee,d(M){M&&m(t),E&&E.d(),A&&A.d(),z=!1,Fe(Y)}}}function Bo(e,t,l){const i=mi();let s=i.label;const r={[i.label]:i},_=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"],h=["mica","blur","acrylic","tabbed","tabbedDark","tabbedLight"],g=navigator.appVersion.includes("Windows"),d=navigator.appVersion.includes(
`),l=o("div"),a(l,"class","i-ph-moon")},m(i,s){w(i,t,s),w(i,l,s)},d(i){i&&(m(t),m(l))}}}function xo(e){let t,l;return{c(){t=p(`Switch to Light mode
`),l=o("div"),a(l,"class","i-ph-sun")},m(i,s){w(i,t,s),w(i,l,s)},d(i){i&&(m(t),m(l))}}}function $o(e){let t,l,i,s,r,_,h;function g(){return e[14](e[28])}return{c(){t=o("a"),l=o("div"),i=c(),s=o("p"),s.textContent=`${e[28].label}`,a(l,"class",e[28].icon+" mr-2"),a(t,"href","##"),a(t,"class",r="nv "+(e[1]===e[28]?"nv_selected":""))},m(d,I){w(d,t,I),n(t,l),n(t,i),n(t,s),_||(h=k(t,"click",g),_=!0)},p(d,I){e=d,I&2&&r!==(r="nv "+(e[1]===e[28]?"nv_selected":""))&&a(t,"class",r)},d(d){d&&m(t),_=!1,h()}}}function Is(e){let t,l=e[28]&&$o(e);return{c(){l&&l.c(),t=hi()},m(i,s){l&&l.m(i,s),w(i,t,s)},p(i,s){i[28]&&l.p(i,s)},d(i){i&&m(t),l&&l.d(i)}}}function Os(e){let t,l=e[25].html+"",i;return{c(){t=new uo(!1),i=hi(),t.a=i},m(s,r){t.m(l,s,r),w(s,i,r)},p(s,r){r&16&&l!==(l=s[25].html+"")&&t.p(l)},d(s){s&&(m(i),t.d())}}}function ea(e){let t,l,i,s,r,_,h,g,d,I,z,Y,E,A,M,N,ae,H,W,V,G,P,F,re,R,x,te,y,U,j,$,ue,K=e[1].label+"",_e,ke,de,oe,J,he,q,ne,Z,v,X,S,fe,Ee,me,pe,Me,Se;function Ie(L,Q){return L[0]?Qo:Jo}let be=Ie(e),ge=be(e);function ze(L,Q){return L[2]?xo:Zo}let Ce=ze(e),ce=Ce(e),Le=ye(e[5]),le=[];for(let L=0;L<Le.length;L+=1)le[L]=Is(Ms(e,Le,L));var Oe=e[1].component;function Ne(L,Q){return{props:{onMessage:L[9],insecureRenderHtml:L[10]}}}Oe&&(J=fs(Oe,Ne(e)));let Pe=ye(e[4]),ie=[];for(let L=0;L<Pe.length;L+=1)ie[L]=Os(As(e,Pe,L));return{c(){t=o("div"),ge.c(),l=c(),i=o("div"),s=o("aside"),r=o("img"),h=c(),g=o("a"),ce.c(),d=c(),I=o("br"),z=c(),Y=o("div"),E=c(),A=o("br"),M=c(),N=o("a"),N.innerHTML=`Documentation
<span class="i-codicon-link-external"></span>`,ae=c(),H=o("a"),H.innerHTML=`GitHub
<span class="i-codicon-link-external"></span>`,W=c(),V=o("a"),V.innerHTML=`Source
<span class="i-codicon-link-external"></span>`,G=c(),P=o("br"),F=c(),re=o("div"),R=c(),x=o("br"),te=c(),y=o("div");for(let L=0;L<le.length;L+=1)le[L].c();U=c(),j=o("main"),$=o("div"),ue=o("h1"),_e=p(K),ke=c(),de=o("div"),oe=o("div"),J&&bs(J.$$.fragment),he=c(),q=o("div"),ne=o("div"),Z=c(),v=o("div"),X=o("p"),X.textContent="Console",S=c(),fe=o("div"),fe.innerHTML='<div class="i-codicon-clear-all"></div>',Ee=c(),me=o("div");for(let L=0;L<ie.length;L+=1)ie[L].c();a(t,"id","sidebarToggle"),a(t,"class","z-2000 display-none lt-sm:flex justify-center items-center absolute top-2 left-2 w-8 h-8 rd-8 bg-accent dark:bg-darkAccent active:bg-accentDark dark:active:bg-darkAccentDark"),a(r,"class","self-center p-7 cursor-pointer"),lo(r.src,_="tauri_logo.png")||a(r,"src",_),a(r,"alt","Tauri logo"),a(g,"href","##"),a(g,"class","nv justify-between h-8"),a(Y,"class","bg-white/5 h-2px"),a(N,"class","nv justify-between h-8"),a(N,"target","_blank"),a(N,"href","https://tauri.app/v1/guides/"),a(H,"class","nv justify-between h-8"),a(H,"target","_blank"),a(H,"href","https://github.com/tauri-apps/tauri"),a(V,"class","nv justify-between h-8"),a(V,"target","_blank"),a(V,"href","https://github.com/tauri-apps/tauri/tree/dev/examples/api"),a(re,"class","bg-white/5 h-2px"),a(y,"class","flex flex-col overflow-y-auto children-h-10 children-flex-none gap-1"),a(s,"id","sidebar"),a(s,"class","lt-sm:h-screen lt-sm:shadow-lg lt-sm:shadow lt-sm:transition-transform lt-sm:absolute lt-sm:z-1999 bg-darkPrimaryLighter transition-colors-250 overflow-hidden grid grid-rows-[min-content_auto] select-none px-2"),a(oe,"class","mr-2"),a(de,"class","overflow-y-auto"),a($,"class","px-5 overflow-hidden grid grid-rows-[auto_1fr]"),a(ne,"class","bg-black/20 h-2px cursor-ns-resize"),a(X,"class","font-semibold"),a(fe,"class","cursor-pointer h-85% rd-1 p-1 flex justify-center items-center hover:bg-hoverOverlay dark:hover:bg-darkHoverOverlay active:bg-hoverOverlay/25 dark:active:bg-darkHoverOverlay/25 "),a(v,"class","flex justify-between items-center px-2"),a(me,"class","px-2 overflow-y-auto all:font-mono code-block all:text-xs"),a(q,"id","console"),a(q,"class","select-none h-15rem grid grid-rows-[2px_2rem_1fr] gap-1 overflow-hidden"),a(j,"class","flex-1 bg-primary dark:bg-darkPrimary transition-transform transition-colors-250 grid grid-rows-[2fr_auto]"),a(i,"class","flex h-screen w-screen overflow-hidden children-pt8 children-pb-2 text-primaryText dark:text-darkPrimaryText")},m(L,Q){w(L,t,Q),ge.m(t,null),w(L,l,Q),w(L,i,Q),n(i,s),n(s,r),n(s,h),n(s,g),ce.m(g,null),n(s,d),n(s,I),n(s,z),n(s,Y),n(s,E),n(s,A),n(s,M),n(s,N),n(s,ae),n(s,H),n(s,W),n(s,V),n(s,G),n(s,P),n(s,F),n(s,re),n(s,R),n(s,x),n(s,te),n(s,y);for(let C=0;C<le.length;C+=1)le[C]&&le[C].m(y,null);n(i,U),n(i,j),n(j,$),n($,ue),n(ue,_e),n($,ke),n($,de),n(de,oe),J&&di(J,oe,null),n(j,he),n(j,q),n(q,ne),n(q,Z),n(q,v),n(v,X),n(v,S),n(v,fe),n(q,Ee),n(q,me);for(let C=0;C<ie.length;C+=1)ie[C]&&ie[C].m(me,null);e[15](q),pe=!0,Me||(Se=[k(g,"click",e[7]),k(ne,"mousedown",e[12]),k(fe,"click",e[11])],Me=!0)},p(L,[Q]){if(be!==(be=Ie(L))&&(ge.d(1),ge=be(L),ge&&(ge.c(),ge.m(t,null))),Ce!==(Ce=ze(L))&&(ce.d(1),ce=Ce(L),ce&&(ce.c(),ce.m(g,null))),Q&99){Le=ye(L[5]);let C;for(C=0;C<Le.length;C+=1){const Te=Ms(L,Le,C);le[C]?le[C].p(Te,Q):(le[C]=Is(Te),le[C].c(),le[C].m(y,null))}for(;C<le.length;C+=1)le[C].d(1);le.length=Le.length}if((!pe||Q&2)&&K!==(K=L[1].label+"")&&se(_e,K),Q&2&&Oe!==(Oe=L[1].component)){if(J){bo();const C=J;ps(C.$$.fragment,1,0,()=>{fi(C,1)}),go()}Oe?(J=fs(Oe,Ne(L)),bs(J.$$.fragment),ci(J.$$.fragment,1),di(J,oe,null)):J=null}if(Q&16){Pe=ye(L[4]);let C;for(C=0;C<Pe.length;C+=1){const Te=As(L,Pe,C);ie[C]?ie[C].p(Te,Q):(ie[C]=Os(Te),ie[C].c(),ie[C].m(me,null))}for(;C<ie.length;C+=1)ie[C].d(1);ie.length=Pe.length}},i(L){pe||(J&&ci(J.$$.fragment,L),pe=!0)},o(L){J&&ps(J.$$.fragment,L),pe=!1},d(L){L&&(m(t),m(l),m(i)),ge.d(),ce.d(),Ct(le,L),J&&fi(J),Ct(ie,L),e[15](null),Me=!1,Fe(Se)}}}let Ns=50;function Ws(e){const t=document.querySelector("html");e?t.classList.add("dark"):t.classList.remove("dark"),localStorage&&localStorage.