`),ct=u("input"),tn=v(),st=u("div"),Ft=u("div"),vt=u("div"),en=u("div"),en.textContent="Inner Size",Kn=v(),Kt=u("span"),Xn=S("Width: "),nn=S(Le),Yn=v(),Xt=u("span"),Qn=S("Height: "),on=S(Ee),Zn=v(),_t=u("div"),rn=u("div"),rn.textContent="Outer Size",xn=v(),Yt=u("span"),ti=S("Width: "),ln=S(De),ei=v(),Qt=u("span"),ni=S("Height: "),sn=S(Re),ii=v(),Ut=u("div"),gt=u("div"),un=u("div"),un.textContent="Inner Logical Size",oi=v(),Zt=u("span"),ri=S("Width: "),an=S(je),li=v(),xt=u("span"),si=S("Height: "),cn=S(Fe),ui=v(),bt=u("div"),dn=u("div"),dn.textContent="Outer Logical Size",ai=v(),te=u("span"),ci=S("Width: "),fn=S(Ue),di=v(),ee=u("span"),fi=S("Height: "),pn=S(He),pi=v(),Ht=u("div"),wt=u("div"),hn=u("div"),hn.textContent="Inner Position",hi=v(),ne=u("span"),mi=S("x: "),mn=S(Ie),vi=v(),ie=u("span"),_i=S("y: "),vn=S(Ne),gi=v(),yt=u("div"),_n=u("div"),_n.textContent="Outer Position",bi=v(),oe=u("span"),wi=S("x: "),gn=S(qe),yi=v(),re=u("span"),Mi=S("y: "),bn=S(Be),ki=v(),It=u("div"),Mt=u("div"),wn=u("div"),wn.textContent="Inner Logical Position",zi=v(),le=u("span"),Ti=S("x: "),yn=S(Ge),Ci=v(),se=u("span"),Si=S("y: "),Mn=S(Ve),Ai=v(),kt=u("div"),kn=u("div"),kn.textContent="Outer Logical Position",Pi=v(),ue=u("span"),Wi=S("x: "),zn=S(Je),Oi=v(),ae=u("span"),Li=S("y: "),Tn=S($e),Cn=v(),zt=u("form"),St=u("input"),Ei=v(),ce=u("button"),ce.textContent="Set title",Sn=v(),Tt=u("form"),At=u("input"),Di=v(),de=u("button"),de.textContent="Open URL",An=v(),Pt=u("button"),Pt.textContent="Request attention",Pn=v(),Nt=u("button"),Nt.textContent="New window",a(n,"class","button"),e[0]===void 0&&Ni(()=>e[31].call(n)),a(s,"type","checkbox"),a(f,"type","checkbox"),a(d,"title","Unminimizes after 2 seconds"),a(k,"title","Unminimizes after 2 seconds"),a(A,"title","Visible again after 2 seconds"),a(F,"type","checkbox"),a(q,"type","checkbox"),a(B,"type","checkbox"),a(Q,"type","checkbox"),a(it,"type","number"),a(it,"min","0"),a(it,"class","svelte-1tppwwz"),a(ot,"type","number"),a(ot,"min","0"),a(ot,"class","svelte-1tppwwz"),a(ft,"class","flex col grow svelte-1tppwwz"),a(rt,"type","number"),a(rt,"min","400"),a(rt,"class","svelte-1tppwwz"),a(lt,"type","number"),a(lt,"min","400"),a(lt,"class","svelte-1tppwwz"),a(pt,"class","flex col grow svelte-1tppwwz"),a(ht,"type","number"),a(ht,"class","svelte-1tppwwz"),a(mt,"type","number"),a(mt,"class","svelte-1tppwwz"),a(N,"class","flex col grow svelte-1tppwwz"),a(at,"type","number"),a(at,"min","400"),a(at,"class","svelte-1tppwwz"),a(ct,"type","number"),a(ct,"min","400"),a(ct,"class","svelte-1tppwwz"),a(jt,"class","flex col grow svelte-1tppwwz"),a(et,"class","window-controls flex flex-row svelte-1tppwwz"),a(t,"class","flex col"),a(Kt,"class","svelte-1tppwwz"),a(Xt,"class","svelte-1tppwwz"),a(vt,"class","grow window-property svelte-1tppwwz"),a(Yt,"class","svelte-1tppwwz"),a(Qt,"class","svelte-1tppwwz"),a(_t,"class","grow window-property svelte-1tppwwz"),a(Ft,"class","flex"),a(Zt,"class","svelte-1tppwwz"),a(xt,"class","svelte-1tppwwz"),a(gt,"class","grow window-property svelte-1tppwwz"),a(te,"class","svelte-1tppwwz"),a(ee,"class","svelte-1tppwwz"),a(bt,"class","grow window-property svelte-1tppwwz"),a(Ut,"class","flex"),a(ne,"class","svelte-1tppwwz"),a(ie,"class","svelte-1tppwwz"),a(wt,"class","grow window-property svelte-1tppwwz"),a(oe,"class","svelte-1tppwwz"),a(re,"class","svelte-1tppwwz"),a(yt,"class","grow window-property svelte-1tppwwz"),a(Ht,"class","flex"),a(le,"class","svelte-1tppwwz"),a(se,"class","svelte-1tppwwz"),a(Mt,"class","grow window-property svelte-1tppwwz"),a(ue,"class","svelte-1tppwwz"),a(ae,"class","svelte-1tppwwz"),a(kt,"class","grow window-property svelte-1tppwwz"),a(It,"class","flex"),a(St,"id","title"),a(ce,"class","button"),a(ce,"type","submit"),a(zt,"class","svelte-1tppwwz"),a(At,"id","url"),a(de,"class","button"),a(de,"id","open-url"),a(Tt,"class","svelte-1tppwwz"),a(Pt,"class","button"),a(Pt,"title","Minimizes the window, requests attention for 3s and then resets it"),a(Nt,"class","button")},m(y,L){P(y,t,L),r(t,n);for(let V=0;V<Z.length;V+=1)Z[V].m(n,null);Ye(n,e[0]),r(t,i),r(t,o)
<videoid="localVideo"autoplay=""playsinline=""><trackkind="captions"/></video>`},m(n,i){P(n,t,i)},p:I,i:I,o:I,d(n){n&&W(t)}}}function nl(e,t,n){let{onMessage:i}=t;const o=window.constraints={audio:!0,video:!0};function l(c){const p=document.querySelector("video"),h=c.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${h[0].label}`),window.stream=c,p.srcObject=c}function s(c){if(c.name==="ConstraintNotSatisfiedError"){const p=o.video;i(`The resolution ${p.width.exact}x${p.height.exact} px is not supported by your device.`)}else c.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${c.name}`,c)}return Ke(async()=>{try{const c=await navigator.mediaDevices.getUserMedia(o);l(c)}catch(c){s(c)}}),On(()=>{window.stream.getTracks().forEach(function(c){c.stop()})}),e.$$set=c=>{"onMessage"in c&&n(0,i=c.onMessage)},[i]}class il extends K{constructor(t){super();X(this,t,nl,el,Y,{onMessage:0})}}function ol(e){let t,n,i,o,l,s,c,p,h,f,M,m;return{c(){t=u("input"),n=v(),i=u("input"),o=v(),l=u("button"),l.textContent="Post it.",s=v(),c=u("p"),c.textContent="Result:",p=v(),h=u("pre"),f=S(e[2]),a(l,"type","button")},m(d,b){P(d,t,b),E(t,e[0]),P(d,n,b),P(d,i,b),E(i,e[1]),P(d,o,b),P(d,l,b),P(d,s,b),P(d,c,b),P(d,p,b),P(d,h,b),r(h,f),M||(m=[T(t,"input",e[4]),T(i,"input",e[5]),T(l,"click",e[3])],M=!0)},p(d,[b]){b&1&&t.value!==d[0]&&E(t,d[0]),b&2&&i.value!==d[1]&&E(i,d[1]),b&4&&G(f,d[2])},i:I,o:I,d(d){d&&W(t),d&&W(n),d&&W(i),d&&W(o),d&&W(l),d&&W(s),d&&W(c),d&&W(p),d&&W(h),M=!1,x(m)}}}function rl(e,t,n){let i="baz",o="qux",l=null;async function s(){let h=navigator.userAgent.includes("Windows")?"https://customprotocol.test/example.html":"customprotocol://test/example.html";const M=await(await fetch(h,{method:"POST",body:JSON.stringify({foo:i,bar:o})})).json();n(2,l=JSON.stringify(M))}function c(){i=this.value,n(0,i)}function p(){o=this.value,n(1,o)}return[i,o,l,s,c,p]}class ll extends K{constructor(t){super();X(this,t,rl,ol,Y,{})}}function jo(e,t,n){const i=e.slice();return i[10]=t[n],i}function Fo(e,t,n){const i=e.slice();return i[13]=t[n],i}function Uo(e){let t,n=e[13].label+"",i,o,l,s,c;function p(){return e[9](e[13])}return{c(){t=u("p"),i=S(n),o=v(),a(t,"class",l="nv noselect "+(e[0]===e[13]?"nv_selected":""))},m(h,f){P(h,t,f),r(t,i),r(t,o),s||(c=T(t,"click",p),s=!0)},p(h,f){e=h,f&1&&l!==(l="nv noselect "+(e[0]===e[13]?"nv_selected":""))&&a(t,"class",l)},d(h){h&&W(t),s=!1,c()}}}function sl(e){let t,n=e[10].html+"",i;return{c(){i=Vi(),t=new Xo(i)},m(o,l){t.m(n,o,l),P(o,i,l)},p(o,l){l&2&&n!==(n=o[10].html+"")&&t.p(n)},d(o){o&&W(i),o&&t.d()}}}function ul(e){let t,n=e[10].text+"",i;return{c(){t=u("p"),i=S(n)},m(o,l){P(o,t,l),r(t,i)},p(o,l){l&2&&n!==(n=o[10].text+"")&&G(i,n)},d(o){o&&W(t)}}}function Ho(e){let t;function n(l,s){return l[10].text?ul:sl}let i=n(e),o=i(e);return{c(){o.c(),t=Vi()},m(l,s){o.m(l,s),P(l,t,s)},p(l,s){i===(i=n(l))&&o?o.p(l,s):(o.d(1),o=i(l),o&&(o.c(),o.m(t.parentNode,t)))},d(l){o.d(l),l&&W(t)}}}function al(e){let t,n,i,o,l,s,c,p,h,f,M,m,d,b,k,w,A,C,j,F,U,O,H=e[2],q=[];for(let R=0;R<H.length;R+=1)q[R]=Uo(Fo(e,H,R));var tt=e[0].component;function ut(R){return{props:{onMessage:R[5],insecureRenderHtml:R[6]}}}tt&&(m=new tt(ut(e)));let $=e[1],B=[];for(let R=0;R<$.length;R+=1)B[R]=Ho(jo(e,$,R));return{c(){t=u("main"),n=u("div"),i=u("img"),l=v(),s=u("div"),s.innerHTML=`<a class="dark-link" target="_blank" href="https://tauri.studio/en/docs/get-started/intro">Documentation</a>