UNPKG

fubi

Version:

A lightweight, universal in-page feedback and collaboration tool for web applications.

3 lines 411 kB
var fubi=function(){"use strict";var $2=Object.defineProperty;var dc=vt=>{throw TypeError(vt)};var I2=(vt,pt,kt)=>pt in vt?$2(vt,pt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):vt[pt]=kt;var Et=(vt,pt,kt)=>I2(vt,typeof pt!="symbol"?pt+"":pt,kt),Ia=(vt,pt,kt)=>pt.has(vt)||dc("Cannot "+kt);var g=(vt,pt,kt)=>(Ia(vt,pt,"read from private field"),kt?kt.call(vt):pt.get(vt)),F=(vt,pt,kt)=>pt.has(vt)?dc("Cannot add the same private member more than once"):pt instanceof WeakSet?pt.add(vt):pt.set(vt,kt),yt=(vt,pt,kt,Br)=>(Ia(vt,pt,"write to private field"),Br?Br.call(vt,kt):pt.set(vt,kt),kt),Ta=(vt,pt,kt)=>(Ia(vt,pt,"access private method"),kt);var Be,zr,so,xn,uc,lo,je,se,cr,co,uo,fo,ho,po,go,vo,bo,mo,wo,xo,yo,Co,ko,_o,Eo,Cn,So,Lo,Uo,kn,_n,En,Sn,Ln,Un,Fo,Jl,dr,ur,fr,Qt,Ne,hr,Mr,pr,Ao,Se,Rr,Fn,fc,Le,Dr,$o,gr,Io,To,Oo,zo,Mo,Ro,Do,Po,Ho,Vo,Xl,Bo,jo,No,Zo,qo,Wo,Go,Ko,Yo,Jo,Xo,Qo,ti,ei,Ql,ri,oi,ii,ni,ai,tc,si,li,ci,di,ui,fi,hi,pi,gi,vi,bi,mi,wi,xi,ec,Pr,yi;const vt="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(vt);const pt=1,kt=2,Br=4,hc=8,pc=16,gc=1,vc=2,bc=4,mc=8,wc=16,xc=1,yc=2,Cc=4,kc=1,_c=2,Tt=Symbol(),Ec="http://www.w3.org/2000/svg",Oa=!1,te=2,za=4,_i=8,Ei=16,we=32,jr=64,Si=128,Gt=256,Li=512,Ot=1024,xe=2048,wr=4096,ye=8192,Ui=16384,Ma=32768,qe=65536,Sc=1<<17,Lc=1<<19,Ra=1<<20,We=Symbol("$state"),Uc=Symbol("legacy props"),Fc=Symbol("");var On=Array.isArray,Ac=Array.prototype.indexOf,zn=Array.from,$c=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,Da=Object.getOwnPropertyDescriptors,Ic=Object.prototype,Tc=Array.prototype,Mn=Object.getPrototypeOf;function Oc(r){return typeof r=="function"}const $e=()=>{};function zc(r){return r()}function Fi(r){for(var t=0;t<r.length;t++)r[t]()}function Mc(){var r,t,e=new Promise((o,i)=>{r=o,t=i});return{promise:e,resolve:r,reject:t}}let Nr=[],Rn=[];function Pa(){var r=Nr;Nr=[],Fi(r)}function Rc(){var r=Rn;Rn=[],Fi(r)}function Zr(r){Nr.length===0&&queueMicrotask(Pa),Nr.push(r)}function Ha(){Nr.length>0&&Pa(),Rn.length>0&&Rc()}function Va(r){return r===this.v}function Dn(r,t){return r!=r?t==t:r!==t||r!==null&&typeof r=="object"||typeof r=="function"}function Dc(r,t){return r!==t}function Pn(r){return!Dn(r,this.v)}function Pc(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Vc(r){throw new Error("https://svelte.dev/e/effect_orphan")}function Bc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jc(r){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qc(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Wc(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yr=!1,Gc=!1;function Kc(){yr=!0}function Ct(r,t){var e={f:0,v:r,reactions:null,equals:Va,rv:0,wv:0};return e}function T(r){return Yc(Ct(r))}function Ba(r,t=!1){var o;const e=Ct(r);return t||(e.equals=Pn),yr&&mt!==null&&mt.l!==null&&((o=mt.l).s??(o.s=[])).push(e),e}function Yc(r){return nt!==null&&!Kt&&(nt.f&te)!==0&&(ue===null?r1([r]):ue.push(r)),r}function E(r,t){return nt!==null&&!Kt&&Er()&&(nt.f&(te|Ei))!==0&&(ue===null||!ue.includes(r))&&Wc(),Hn(r,t)}function Hn(r,t){return r.equals(t)||(r.v,r.v=t,r.wv=Qa(),ja(r,xe),Er()&&at!==null&&(at.f&Ot)!==0&&(at.f&(we|jr))===0&&(Ce===null?o1([r]):Ce.push(r))),t}function ja(r,t){var e=r.reactions;if(e!==null)for(var o=Er(),i=e.length,n=0;n<i;n++){var a=e[n],s=a.f;(s&xe)===0&&(!o&&a===at||(fe(a,t),(s&(Ot|Gt))!==0&&((s&te)!==0?ja(a,wr):Di(a))))}}function j(r){var t=te|xe,e=nt!==null&&(nt.f&te)!==0?nt:null;return at===null||e!==null&&(e.f&Gt)!==0?t|=Gt:at.f|=Ra,{ctx:mt,deps:null,effects:null,equals:Va,f:t,fn:r,reactions:null,rv:0,v:null,wv:0,parent:e??at}}function Vn(r){const t=j(r);return t.equals=Pn,t}function Na(r){var t=r.effects;if(t!==null){r.effects=null;for(var e=0;e<t.length;e+=1)re(t[e])}}function Jc(r){for(var t=r.parent;t!==null;){if((t.f&te)===0)return t;t=t.parent}return null}function Xc(r){var t,e=at;de(Jc(r));try{Na(r),t=es(r)}finally{de(e)}return t}function Za(r){var t=Xc(r),e=(Ie||(r.f&Gt)!==0)&&r.deps!==null?wr:Ot;fe(r,e),r.equals(t)||(r.v=t,r.wv=Qa())}let Qc=!1;function I(r,t=null,e){if(typeof r!="object"||r===null||We in r)return r;const o=Mn(r);if(o!==Ic&&o!==Tc)return r;var i=new Map,n=On(r),a=Ct(0);n&&i.set("length",Ct(r.length));var s;return new Proxy(r,{defineProperty(l,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Nc();var f=i.get(c);return f===void 0?(f=Ct(u.value),i.set(c,f)):E(f,I(u.value,s)),!0},deleteProperty(l,c){var u=i.get(c);if(u===void 0)c in l&&i.set(c,Ct(Tt));else{if(n&&typeof c=="string"){var f=i.get("length"),d=Number(c);Number.isInteger(d)&&d<f.v&&E(f,d)}E(u,Tt),qa(a)}return!0},get(l,c,u){var v;if(c===We)return r;var f=i.get(c),d=c in l;if(f===void 0&&(!d||(v=xr(l,c))!=null&&v.writable)&&(f=Ct(I(d?l[c]:Tt,s)),i.set(c,f)),f!==void 0){var h=p(f);return h===Tt?void 0:h}return Reflect.get(l,c,u)},getOwnPropertyDescriptor(l,c){var u=Reflect.getOwnPropertyDescriptor(l,c);if(u&&"value"in u){var f=i.get(c);f&&(u.value=p(f))}else if(u===void 0){var d=i.get(c),h=d==null?void 0:d.v;if(d!==void 0&&h!==Tt)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,c){var h;if(c===We)return!0;var u=i.get(c),f=u!==void 0&&u.v!==Tt||Reflect.has(l,c);if(u!==void 0||at!==null&&(!f||(h=xr(l,c))!=null&&h.writable)){u===void 0&&(u=Ct(f?I(l[c],s):Tt),i.set(c,u));var d=p(u);if(d===Tt)return!1}return f},set(l,c,u,f){var m;var d=i.get(c),h=c in l;if(n&&c==="length")for(var v=u;v<d.v;v+=1){var b=i.get(v+"");b!==void 0?E(b,Tt):v in l&&(b=Ct(Tt),i.set(v+"",b))}d===void 0?(!h||(m=xr(l,c))!=null&&m.writable)&&(d=Ct(void 0),E(d,I(u,s)),i.set(c,d)):(h=d.v!==Tt,E(d,I(u,s)));var w=Reflect.getOwnPropertyDescriptor(l,c);if(w!=null&&w.set&&w.set.call(f,u),!h){if(n&&typeof c=="string"){var _=i.get("length"),y=Number(c);Number.isInteger(y)&&y>=_.v&&E(_,y+1)}qa(a)}return!0},ownKeys(l){p(a);var c=Reflect.ownKeys(l).filter(d=>{var h=i.get(d);return h===void 0||h.v!==Tt});for(var[u,f]of i)f.v!==Tt&&!(u in l)&&c.push(u);return c},setPrototypeOf(){Zc()}})}function qa(r,t=1){E(r,r.v+t)}var Wa,Ga,Ka,Ya;function t1(){if(Wa===void 0){Wa=window,Ga=/Firefox/.test(navigator.userAgent);var r=Element.prototype,t=Node.prototype;Ka=xr(t,"firstChild").get,Ya=xr(t,"nextSibling").get,r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__styles=null,r.__e=void 0,Text.prototype.__t=void 0}}function qr(r=""){return document.createTextNode(r)}function Ge(r){return Ka.call(r)}function Ai(r){return Ya.call(r)}function x(r,t){return Ge(r)}function wt(r,t){{var e=Ge(r);return e instanceof Comment&&e.data===""?Ai(e):e}}function U(r,t=1,e=!1){let o=r;for(;t--;)o=Ai(o);return o}function e1(r){r.textContent=""}let $i=!1,Ii=!1,Ti=null,Oi=!1,Bn=!1;function Ja(r){Bn=r}let Wr=[],T2=[],nt=null,Kt=!1;function ce(r){nt=r}let at=null;function de(r){at=r}let ue=null;function r1(r){ue=r}let zt=null,Ht=0,Ce=null;function o1(r){Ce=r}let Xa=1,zi=0,Ie=!1;function Qa(){return++Xa}function Gr(r){var f;var t=r.f;if((t&xe)!==0)return!0;if((t&wr)!==0){var e=r.deps,o=(t&Gt)!==0;if(e!==null){var i,n,a=(t&Li)!==0,s=o&&at!==null&&!Ie,l=e.length;if(a||s){var c=r,u=c.parent;for(i=0;i<l;i++)n=e[i],(a||!((f=n==null?void 0:n.reactions)!=null&&f.includes(c)))&&(n.reactions??(n.reactions=[])).push(c);a&&(c.f^=Li),s&&u!==null&&(u.f&Gt)===0&&(c.f^=Gt)}for(i=0;i<l;i++)if(n=e[i],Gr(n)&&Za(n),n.wv>r.wv)return!0}(!o||at!==null&&!Ie)&&fe(r,Ot)}return!1}function i1(r,t){for(var e=t;e!==null;){if((e.f&Si)!==0)try{e.fn(r);return}catch{e.f^=Si}e=e.parent}throw $i=!1,r}function n1(r){return(r.f&Ui)===0&&(r.parent===null||(r.parent.f&Si)===0)}function Mi(r,t,e,o){if($i){if(e===null&&($i=!1),n1(t))throw r;return}e!==null&&($i=!0);{i1(r,t);return}}function ts(r,t,e=!0){var o=r.reactions;if(o!==null)for(var i=0;i<o.length;i++){var n=o[i];(n.f&te)!==0?ts(n,t,!1):t===n&&(e?fe(n,xe):(n.f&Ot)!==0&&fe(n,wr),Di(n))}}function es(r){var h;var t=zt,e=Ht,o=Ce,i=nt,n=Ie,a=ue,s=mt,l=Kt,c=r.f;zt=null,Ht=0,Ce=null,Ie=(c&Gt)!==0&&(Kt||!Oi||nt===null),nt=(c&(we|jr))===0?r:null,ue=null,hs(r.ctx),Kt=!1,zi++;try{var u=(0,r.fn)(),f=r.deps;if(zt!==null){var d;if(Ri(r,Ht),f!==null&&Ht>0)for(f.length=Ht+zt.length,d=0;d<zt.length;d++)f[Ht+d]=zt[d];else r.deps=f=zt;if(!Ie)for(d=Ht;d<f.length;d++)((h=f[d]).reactions??(h.reactions=[])).push(r)}else f!==null&&Ht<f.length&&(Ri(r,Ht),f.length=Ht);if(Er()&&Ce!==null&&!Kt&&f!==null&&(r.f&(te|wr|xe))===0)for(d=0;d<Ce.length;d++)ts(Ce[d],r);return i!==null&&zi++,u}finally{zt=t,Ht=e,Ce=o,nt=i,Ie=n,ue=a,hs(s),Kt=l}}function a1(r,t){let e=t.reactions;if(e!==null){var o=Ac.call(e,r);if(o!==-1){var i=e.length-1;i===0?e=t.reactions=null:(e[o]=e[i],e.pop())}}e===null&&(t.f&te)!==0&&(zt===null||!zt.includes(t))&&(fe(t,wr),(t.f&(Gt|Li))===0&&(t.f^=Li),Na(t),Ri(t,0))}function Ri(r,t){var e=r.deps;if(e!==null)for(var o=t;o<e.length;o++)a1(r,e[o])}function jn(r){var t=r.f;if((t&Ui)===0){fe(r,Ot);var e=at,o=mt,i=Oi;at=r,Oi=!0;try{(t&Ei)!==0?v1(r):ls(r),ss(r);var n=es(r);r.teardown=typeof n=="function"?n:null,r.wv=Xa;var a=r.deps,s;Oa&&Gc&&r.f&xe}catch(l){Mi(l,r,e,o||r.ctx)}finally{Oi=i,at=e}}}function s1(){try{Bc()}catch(r){if(Ti!==null)Mi(r,Ti,null);else throw r}}function rs(){try{for(var r=0;Wr.length>0;){r++>1e3&&s1();var t=Wr,e=t.length;Wr=[];for(var o=0;o<e;o++){var i=t[o];(i.f&Ot)===0&&(i.f^=Ot);var n=c1(i);l1(n)}}}finally{Ii=!1,Ti=null}}function l1(r){var t=r.length;if(t!==0)for(var e=0;e<t;e++){var o=r[e];if((o.f&(Ui|ye))===0)try{Gr(o)&&(jn(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?cs(o):o.fn=null))}catch(i){Mi(i,o,null,o.ctx)}}}function Di(r){Ii||(Ii=!0,queueMicrotask(rs));for(var t=Ti=r;t.parent!==null;){t=t.parent;var e=t.f;if((e&(jr|we))!==0){if((e&Ot)===0)return;t.f^=Ot}}Wr.push(t)}function c1(r){for(var t=[],e=r.first;e!==null;){var o=e.f,i=(o&we)!==0,n=i&&(o&Ot)!==0;if(!n&&(o&ye)===0){if((o&za)!==0)t.push(e);else if(i)e.f^=Ot;else{var a=nt;try{nt=e,Gr(e)&&jn(e)}catch(c){Mi(c,e,null,e.ctx)}finally{nt=a}}var s=e.first;if(s!==null){e=s;continue}}var l=e.parent;for(e=e.next;e===null&&l!==null;)e=l.next,l=l.parent}return t}function d1(r){var t;for(Ha();Wr.length>0;)Ii=!0,rs(),Ha();return t}async function os(){await Promise.resolve(),d1()}function p(r){var t=r.f,e=(t&te)!==0;if(nt!==null&&!Kt){ue!==null&&ue.includes(r)&&qc();var o=nt.deps;r.rv<zi&&(r.rv=zi,zt===null&&o!==null&&o[Ht]===r?Ht++:zt===null?zt=[r]:(!Ie||!zt.includes(r))&&zt.push(r))}else if(e&&r.deps===null&&r.effects===null){var i=r,n=i.parent;n!==null&&(n.f&Gt)===0&&(i.f^=Gt)}return e&&(i=r,Gr(i)&&Za(i)),r.v}function ee(r){var t=Kt;try{return Kt=!0,r()}finally{Kt=t}}const u1=-7169;function fe(r,t){r.f=r.f&u1|t}function is(r){if(!(typeof r!="object"||!r||r instanceof EventTarget)){if(We in r)Nn(r);else if(!Array.isArray(r))for(let t in r){const e=r[t];typeof e=="object"&&e&&We in e&&Nn(e)}}}function Nn(r,t=new Set){if(typeof r=="object"&&r!==null&&!(r instanceof EventTarget)&&!t.has(r)){t.add(r),r instanceof Date&&r.getTime();for(let o in r)try{Nn(r[o],t)}catch{}const e=Mn(r);if(e!==Object.prototype&&e!==Array.prototype&&e!==Map.prototype&&e!==Set.prototype&&e!==Date.prototype){const o=Da(e);for(let i in o){const n=o[i].get;if(n)try{n.call(r)}catch{}}}}}function ns(r){at===null&&nt===null&&Vc(),nt!==null&&(nt.f&Gt)!==0&&at===null&&Hc(),Bn&&Pc()}function f1(r,t){var e=t.last;e===null?t.last=t.first=r:(e.next=r,r.prev=e,t.last=r)}function Cr(r,t,e,o=!0){var i=(r&jr)!==0,n=at,a={ctx:mt,deps:null,nodes_start:null,nodes_end:null,f:r|xe,first:null,fn:t,last:null,next:null,parent:i?null:n,prev:null,teardown:null,transitions:null,wv:0};if(e)try{jn(a),a.f|=Ma}catch(c){throw re(a),c}else t!==null&&Di(a);var s=e&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(Ra|Si))===0;if(!s&&!i&&o&&(n!==null&&f1(a,n),nt!==null&&(nt.f&te)!==0)){var l=nt;(l.effects??(l.effects=[])).push(a)}return a}function as(){return nt!==null&&!Kt}function h1(r){const t=Cr(_i,null,!1);return fe(t,Ot),t.teardown=r,t}function kr(r){ns();var t=at!==null&&(at.f&we)!==0&&mt!==null&&!mt.m;if(t){var e=mt;(e.e??(e.e=[])).push({fn:r,effect:at,reaction:nt})}else{var o=_r(r);return o}}function p1(r){return ns(),Te(r)}function g1(r){const t=Cr(jr,r,!0);return(e={})=>new Promise(o=>{e.outro?Ke(t,()=>{re(t),o(void 0)}):(re(t),o(void 0))})}function _r(r){return Cr(za,r,!1)}function Te(r){return Cr(_i,r,!0)}function A(r,t=[],e=j){const o=t.map(e);return Oe(()=>r(...o.map(p)))}function Oe(r,t=0){return Cr(_i|Ei|t,r,!0)}function he(r,t=!0){return Cr(_i|we,r,!0,t)}function ss(r){var t=r.teardown;if(t!==null){const e=Bn,o=nt;Ja(!0),ce(null);try{t.call(null)}finally{Ja(e),ce(o)}}}function ls(r,t=!1){var e=r.first;for(r.first=r.last=null;e!==null;){var o=e.next;re(e,t),e=o}}function v1(r){for(var t=r.first;t!==null;){var e=t.next;(t.f&we)===0&&re(t),t=e}}function re(r,t=!0){var e=!1;if((t||(r.f&Lc)!==0)&&r.nodes_start!==null){for(var o=r.nodes_start,i=r.nodes_end;o!==null;){var n=o===i?null:Ai(o);o.remove(),o=n}e=!0}ls(r,t&&!e),Ri(r,0),fe(r,Ui);var a=r.transitions;if(a!==null)for(const l of a)l.stop();ss(r);var s=r.parent;s!==null&&s.first!==null&&cs(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=null}function cs(r){var t=r.parent,e=r.prev,o=r.next;e!==null&&(e.next=o),o!==null&&(o.prev=e),t!==null&&(t.first===r&&(t.first=o),t.last===r&&(t.last=e))}function Ke(r,t){var e=[];Zn(r,e,!0),ds(e,()=>{re(r),t&&t()})}function ds(r,t){var e=r.length;if(e>0){var o=()=>--e||t();for(var i of r)i.out(o)}else t()}function Zn(r,t,e){if((r.f&ye)===0){if(r.f^=ye,r.transitions!==null)for(const a of r.transitions)(a.is_global||e)&&t.push(a);for(var o=r.first;o!==null;){var i=o.next,n=(o.f&qe)!==0||(o.f&we)!==0;Zn(o,t,n?e:!1),o=i}}}function Kr(r){us(r,!0)}function us(r,t){if((r.f&ye)!==0){r.f^=ye,(r.f&Ot)===0&&(r.f^=Ot),Gr(r)&&(fe(r,xe),Di(r));for(var e=r.first;e!==null;){var o=e.next,i=(e.f&qe)!==0||(e.f&we)!==0;us(e,i?t:!1),e=o}if(r.transitions!==null)for(const n of r.transitions)(n.is_global||t)&&n.in()}}function fs(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let mt=null;function hs(r){mt=r}function st(r,t=!1,e){mt={p:mt,c:null,e:null,m:!1,s:r,x:null,l:null},yr&&!t&&(mt.l={s:null,u:null,r1:[],r2:Ct(!1)})}function lt(r){const t=mt;if(t!==null){const a=t.e;if(a!==null){var e=at,o=nt;t.e=null;try{for(var i=0;i<a.length;i++){var n=a[i];de(n.effect),ce(n.reaction),_r(n.fn)}}finally{de(e),ce(o)}}mt=t.p,t.m=!0}return{}}function Er(){return!yr||mt!==null&&mt.l===null}function b1(r){return r.endsWith("capture")&&r!=="gotpointercapture"&&r!=="lostpointercapture"}const m1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function w1(r){return m1.includes(r)}const x1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function y1(r){return r=r.toLowerCase(),x1[r]??r}const C1=["touchstart","touchmove"];function k1(r){return C1.includes(r)}function _1(r,t){if(t){const e=document.body;r.autofocus=!0,Zr(()=>{document.activeElement===e&&r.focus()})}}let ps=!1;function E1(){ps||(ps=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{var t;if(!r.defaultPrevented)for(const e of r.target.elements)(t=e.__on_r)==null||t.call(e)})},{capture:!0}))}function qn(r){var t=nt,e=at;ce(null),de(null);try{return r()}finally{ce(t),de(e)}}function S1(r,t,e,o=e){r.addEventListener(t,()=>qn(e));const i=r.__on_r;i?r.__on_r=()=>{i(),o(!0)}:r.__on_r=()=>o(!0),E1()}const gs=new Set,Wn=new Set;function Gn(r,t,e,o={}){function i(n){if(o.capture||Yr.call(t,n),!n.cancelBubble)return qn(()=>e==null?void 0:e.call(this,n))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Zr(()=>{t.addEventListener(r,i,o)}):t.addEventListener(r,i,o),i}function Pi(r,t,e,o={}){var i=Gn(t,r,e,o);return()=>{r.removeEventListener(t,i,o)}}function Vt(r,t,e,o,i){var n={capture:o,passive:i},a=Gn(r,t,e,n);(t===document.body||t===window||t===document)&&h1(()=>{t.removeEventListener(r,a,n)})}function pe(r){for(var t=0;t<r.length;t++)gs.add(r[t]);for(var e of Wn)e(r)}function Yr(r){var y;var t=this,e=t.ownerDocument,o=r.type,i=((y=r.composedPath)==null?void 0:y.call(r))||[],n=i[0]||r.target,a=0,s=r.__root;if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){r.__root=t;return}var c=i.indexOf(t);if(c===-1)return;l<=c&&(a=l)}if(n=i[a]||r.target,n!==t){$c(r,"currentTarget",{configurable:!0,get(){return n||e}});var u=nt,f=at;ce(null),de(null);try{for(var d,h=[];n!==null;){var v=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+o];if(b!==void 0&&(!n.disabled||r.target===n))if(On(b)){var[w,..._]=b;w.apply(n,[r,..._])}else b.call(n,r)}catch(m){d?h.push(m):d=m}if(r.cancelBubble||v===t||v===null)break;n=v}if(d){for(let m of h)queueMicrotask(()=>{throw m});throw d}}finally{r.__root=t,delete r.currentTarget,ce(u),de(f)}}}function Kn(r){var t=document.createElement("template");return t.innerHTML=r,t.content}function Ye(r,t){var e=at;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=t)}function M(r,t){var e=(t&kc)!==0,o=(t&_c)!==0,i,n=!r.startsWith("<!>");return()=>{i===void 0&&(i=Kn(n?r:"<!>"+r),e||(i=Ge(i)));var a=o||Ga?document.importNode(i,!0):i.cloneNode(!0);if(e){var s=Ge(a),l=a.lastChild;Ye(s,l)}else Ye(a,a);return a}}function N(r,t,e="svg"){var o=!r.startsWith("<!>"),i=`<${e}>${o?r:"<!>"+r}</${e}>`,n;return()=>{if(!n){var a=Kn(i),s=Ge(a);n=Ge(s)}var l=n.cloneNode(!0);return Ye(l,l),l}}function Jr(r=""){{var t=qr(r+"");return Ye(t,t),t}}function Yt(){var r=document.createDocumentFragment(),t=document.createComment(""),e=qr();return r.append(t,e),Ye(t,e),r}function k(r,t){r!==null&&r.before(t)}let Hi=!0;function vs(r){Hi=r}function et(r,t){var e=t==null?"":typeof t=="object"?t+"":t;e!==(r.__t??(r.__t=r.nodeValue))&&(r.__t=e,r.nodeValue=e+"")}function bs(r,t){return L1(r,t)}const Sr=new Map;function L1(r,{target:t,anchor:e,props:o={},events:i,context:n,intro:a=!0}){t1();var s=new Set,l=f=>{for(var d=0;d<f.length;d++){var h=f[d];if(!s.has(h)){s.add(h);var v=k1(h);t.addEventListener(h,Yr,{passive:v});var b=Sr.get(h);b===void 0?(document.addEventListener(h,Yr,{passive:v}),Sr.set(h,1)):Sr.set(h,b+1)}}};l(zn(gs)),Wn.add(l);var c=void 0,u=g1(()=>{var f=e??t.appendChild(qr());return he(()=>{if(n){st({});var d=mt;d.c=n}i&&(o.$$events=i),Hi=a,c=r(f,o)||{},Hi=!0,n&&lt()}),()=>{var v;for(var d of s){t.removeEventListener(d,Yr);var h=Sr.get(d);--h===0?(document.removeEventListener(d,Yr),Sr.delete(d)):Sr.set(d,h)}Wn.delete(l),f!==e&&((v=f.parentNode)==null||v.removeChild(f))}});return U1.set(c,u),c}let U1=new WeakMap;function rt(r,t,e=!1){var o=r,i=null,n=null,a=Tt,s=e?qe:0,l=!1;const c=(f,d=!0)=>{l=!0,u(d,f)},u=(f,d)=>{a!==(a=f)&&(a?(i?Kr(i):d&&(i=he(()=>d(o))),n&&Ke(n,()=>{n=null})):(n?Kr(n):d&&(n=he(()=>d(o))),i&&Ke(i,()=>{i=null})))};Oe(()=>{l=!1,t(c),l||u(null,null)},s)}function Yn(r,t,e){var o=r,i=Tt,n,a=Er()?Dc:Dn;Oe(()=>{a(i,i=t())&&(n&&Ke(n),n=he(()=>e(o)))})}let Je=null;function ms(r){Je=r}function F1(r,t){return t}function A1(r,t,e,o){for(var i=[],n=t.length,a=0;a<n;a++)Zn(t[a].e,i,!0);var s=n>0&&i.length===0&&e!==null;if(s){var l=e.parentNode;e1(l),l.append(e),o.clear(),ze(r,t[0].prev,t[n-1].next)}ds(i,()=>{for(var c=0;c<n;c++){var u=t[c];s||(o.delete(u.k),ze(r,u.prev,u.next)),re(u.e,!s)}})}function Vi(r,t,e,o,i,n=null){var a=r,s={flags:t,items:new Map,first:null},l=(t&Br)!==0;if(l){var c=r;a=c.appendChild(qr())}var u=null,f=!1,d=Vn(()=>{var h=e();return On(h)?h:h==null?[]:zn(h)});Oe(()=>{var h=p(d),v=h.length;f&&v===0||(f=v===0,$1(h,s,a,i,t,o,e),n!==null&&(v===0?u?Kr(u):u=he(()=>n(a)):u!==null&&Ke(u,()=>{u=null})),p(d))})}function $1(r,t,e,o,i,n,a){var ht,xt,Ut,$t;var s=(i&hc)!==0,l=(i&(pt|kt))!==0,c=r.length,u=t.items,f=t.first,d=f,h,v=null,b,w=[],_=[],y,m,S,L;if(s)for(L=0;L<c;L+=1)y=r[L],m=n(y,L),S=u.get(m),S!==void 0&&((ht=S.a)==null||ht.measure(),(b??(b=new Set)).add(S));for(L=0;L<c;L+=1){if(y=r[L],m=n(y,L),S=u.get(m),S===void 0){var O=d?d.e.nodes_start:e;v=T1(O,t,v,v===null?t.first:v.next,y,m,L,o,i,a),u.set(m,v),w=[],_=[],d=v.next;continue}if(l&&I1(S,y,L,i),(S.e.f&ye)!==0&&(Kr(S.e),s&&((xt=S.a)==null||xt.unfix(),(b??(b=new Set)).delete(S))),S!==d){if(h!==void 0&&h.has(S)){if(w.length<_.length){var z=_[0],H;v=z.prev;var J=w[0],X=w[w.length-1];for(H=0;H<w.length;H+=1)ws(w[H],z,e);for(H=0;H<_.length;H+=1)h.delete(_[H]);ze(t,J.prev,X.next),ze(t,v,J),ze(t,X,z),d=z,v=X,L-=1,w=[],_=[]}else h.delete(S),ws(S,d,e),ze(t,S.prev,S.next),ze(t,S,v===null?t.first:v.next),ze(t,v,S),v=S;continue}for(w=[],_=[];d!==null&&d.k!==m;)(d.e.f&ye)===0&&(h??(h=new Set)).add(d),_.push(d),d=d.next;if(d===null)continue;S=d}w.push(S),v=S,d=S.next}if(d!==null||h!==void 0){for(var Q=h===void 0?[]:zn(h);d!==null;)(d.e.f&ye)===0&&Q.push(d),d=d.next;var G=Q.length;if(G>0){var gt=(i&Br)!==0&&c===0?e:null;if(s){for(L=0;L<G;L+=1)(Ut=Q[L].a)==null||Ut.measure();for(L=0;L<G;L+=1)($t=Q[L].a)==null||$t.fix()}A1(t,Q,gt,u)}}s&&Zr(()=>{var Ft;if(b!==void 0)for(S of b)(Ft=S.a)==null||Ft.apply()}),at.first=t.first&&t.first.e,at.last=v&&v.e}function I1(r,t,e,o){(o&pt)!==0&&Hn(r.v,t),(o&kt)!==0?Hn(r.i,e):r.i=e}function T1(r,t,e,o,i,n,a,s,l,c){var u=Je,f=(l&pt)!==0,d=(l&pc)===0,h=f?d?Ba(i):Ct(i):i,v=(l&kt)===0?a:Ct(a),b={i:v,v:h,k:n,a:null,e:null,prev:e,next:o};Je=b;try{return b.e=he(()=>s(r,h,v,c),Qc),b.e.prev=e&&e.e,b.e.next=o&&o.e,e===null?t.first=b:(e.next=b,e.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{Je=u}}function ws(r,t,e){for(var o=r.next?r.next.e.nodes_start:e,i=t?t.e.nodes_start:e,n=r.e.nodes_start;n!==o;){var a=Ai(n);i.before(n),n=a}}function ze(r,t,e){t===null?r.first=e:(t.next=e,t.e.next=e&&e.e),e!==null&&(e.prev=t,e.e.prev=t&&t.e)}function Xr(r,t,e,o,i){var n=r,a="",s;Oe(()=>{a!==(a=t()??"")&&(s!==void 0&&(re(s),s=void 0),a!==""&&(s=he(()=>{var l=a+"",c=Kn(l);Ye(Ge(c),c.lastChild),n.before(c)})))})}function Me(r,t,...e){var o=r,i=$e,n;Oe(()=>{i!==(i=t())&&(n&&(re(n),n=null),n=he(()=>i(o,...e)))},qe)}function Bi(r,t,e){var o=r,i,n;Oe(()=>{i!==(i=t())&&(n&&(Ke(n),n=null),i&&(n=he(()=>e(o,i))))},qe)}function O1(r,t,e,o,i,n){var a,s,l=null,c=r,u,f=Je;Oe(()=>{const d=t()||null;var h=d==="svg"?Ec:null;if(d!==a){var v=Je;ms(f),u&&(d===null?Ke(u,()=>{u=null,s=null}):d===s?Kr(u):(re(u),vs(!1))),d&&d!==s&&(u=he(()=>{if(l=h?document.createElementNS(h,d):document.createElement(d),Ye(l,l),o){var b=l.appendChild(qr());o(l,b)}at.nodes_end=l,c.before(l)})),a=d,a&&(s=a),vs(!0),ms(v)}},qe)}function z1(r,t,e){_r(()=>{var o=ee(()=>t(r,e==null?void 0:e())||{});if(e&&(o!=null&&o.update)){var i=!1,n={};Te(()=>{var a=e();is(a),i&&Dn(n,a)&&(n=a,o.update(a))}),i=!0}if(o!=null&&o.destroy)return()=>o.destroy()})}function xs(r){var t,e,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(t=0;t<i;t++)r[t]&&(e=xs(r[t]))&&(o&&(o+=" "),o+=e)}else for(e in r)r[e]&&(o&&(o+=" "),o+=e);return o}function M1(){for(var r,t,e=0,o="",i=arguments.length;e<i;e++)(r=arguments[e])&&(t=xs(r))&&(o&&(o+=" "),o+=t);return o}function Z(r){return typeof r=="object"?M1(r):r??""}const ys=[...` \r\f \v\uFEFF`];function R1(r,t,e){var o=r==null?"":""+r;if(t&&(o=o?o+" "+t:t),e){for(var i in e)if(e[i])o=o?o+" "+i:i;else if(o.length)for(var n=i.length,a=0;(a=o.indexOf(i,a))>=0;){var s=a+n;(a===0||ys.includes(o[a-1]))&&(s===o.length||ys.includes(o[s]))?o=(a===0?"":o.substring(0,a))+o.substring(s+1):a=s}}return o===""?null:o}function V(r,t,e,o,i,n){var a=r.__className;if(a!==e){var s=R1(e,o,n);s==null?r.removeAttribute("class"):t?r.className=s:r.setAttribute("class",s),r.__className=e}else if(n)for(var l in n){var c=!!n[l];(i==null||c!==!!i[l])&&r.classList.toggle(l,c)}return n}const Xe=Symbol("class");function D1(r,t){t?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function it(r,t,e,o){var i=r.__attributes??(r.__attributes={});i[t]!==(i[t]=e)&&(t==="style"&&"__styles"in r&&(r.__styles={}),t==="loading"&&(r[Fc]=e),e==null?r.removeAttribute(t):typeof e!="string"&&ks(r).includes(t)?r[t]=e:r.setAttribute(t,e))}function D(r,t,e,o,i=!1,n=!1,a=!1){var s=t||{},l=r.tagName==="OPTION";for(var c in t)c in e||(e[c]=null);e.class?e.class=Z(e.class):e[Xe]&&(e.class=null);var u=ks(r),f=r.__attributes??(r.__attributes={});for(const y in e){let m=e[y];if(l&&y==="value"&&m==null){r.value=r.__value="",s[y]=m;continue}if(y==="class"){var d=r.namespaceURI==="http://www.w3.org/1999/xhtml";V(r,d,m,o,t==null?void 0:t[Xe],e[Xe]),s[y]=m,s[Xe]=e[Xe];continue}var h=s[y];if(m!==h){s[y]=m;var v=y[0]+y[1];if(v!=="$$"){if(v==="on"){const S={},L="$$"+y;let O=y.slice(2);var b=w1(O);if(b1(O)&&(O=O.slice(0,-7),S.capture=!0),!b&&h){if(m!=null)continue;r.removeEventListener(O,s[L],S),s[L]=null}if(m!=null)if(b)r[`__${O}`]=m,pe([O]);else{let z=function(H){s[y].call(this,H)};s[L]=Gn(O,r,z,S)}else b&&(r[`__${O}`]=void 0)}else if(y==="style"&&m!=null)r.style.cssText=m+"";else if(y==="autofocus")_1(r,!!m);else if(!n&&(y==="__value"||y==="value"&&m!=null))r.value=r.__value=m;else if(y==="selected"&&l)D1(r,m);else{var w=y;i||(w=y1(w));var _=w==="defaultValue"||w==="defaultChecked";if(m==null&&!n&&!_)if(f[y]=null,w==="value"||w==="checked"){let S=r;const L=t===void 0;if(w==="value"){let O=S.defaultValue;S.removeAttribute(w),S.defaultValue=O,S.value=S.__value=L?O:null}else{let O=S.defaultChecked;S.removeAttribute(w),S.defaultChecked=O,S.checked=L?O:!1}}else r.removeAttribute(y);else _||u.includes(w)&&(n||typeof m!="string")?r[w]=m:typeof m!="function"&&it(r,w,m)}y==="style"&&"__styles"in r&&(r.__styles={})}}}return s}var Cs=new Map;function ks(r){var t=Cs.get(r.nodeName);if(t)return t;Cs.set(r.nodeName,t=[]);for(var e,o=r,i=Element.prototype;i!==o;){e=Da(o);for(var n in e)e[n].set&&t.push(n);o=Mn(o)}return t}const P1=()=>performance.now(),oe={tick:r=>requestAnimationFrame(r),now:()=>P1(),tasks:new Set};function _s(){const r=oe.now();oe.tasks.forEach(t=>{t.c(r)||(oe.tasks.delete(t),t.f())}),oe.tasks.size!==0&&oe.tick(_s)}function Jn(r){let t;return oe.tasks.size===0&&oe.tick(_s),{promise:new Promise(e=>{oe.tasks.add(t={c:r,f:e})}),abort(){oe.tasks.delete(t)}}}function ji(r,t){qn(()=>{r.dispatchEvent(new CustomEvent(t))})}function H1(r){if(r==="float")return"cssFloat";if(r==="offset")return"cssOffset";if(r.startsWith("--"))return r;const t=r.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function Es(r){const t={},e=r.split(";");for(const o of e){const[i,n]=o.split(":");if(!i||n===void 0)break;const a=H1(i.trim());t[a]=n.trim()}return t}const V1=r=>r;function B1(r,t,e){var o=Je,i,n,a,s=null;o.a??(o.a={element:r,measure(){i=this.element.getBoundingClientRect()},apply(){if(a==null||a.abort(),n=this.element.getBoundingClientRect(),i.left!==n.left||i.right!==n.right||i.top!==n.top||i.bottom!==n.bottom){const l=t()(this.element,{from:i,to:n},e==null?void 0:e());a=Ni(this.element,l,void 0,1,()=>{a==null||a.abort(),a=void 0})}},fix(){if(!r.getAnimations().length){var{position:l,width:c,height:u}=getComputedStyle(r);if(l!=="absolute"&&l!=="fixed"){var f=r.style;s={position:f.position,width:f.width,height:f.height,transform:f.transform},f.position="absolute",f.width=c,f.height=u;var d=r.getBoundingClientRect();if(i.left!==d.left||i.top!==d.top){var h=`translate(${i.left-d.left}px, ${i.top-d.top}px)`;f.transform=f.transform?`${f.transform} ${h}`:h}}}},unfix(){if(s){var l=r.style;l.position=s.position,l.width=s.width,l.height=s.height,l.transform=s.transform}}}),o.a.element=r}function ut(r,t,e,o){var i=(r&xc)!==0,n=(r&yc)!==0,a=i&&n,s=(r&Cc)!==0,l=a?"both":i?"in":"out",c,u=t.inert,f=t.style.overflow,d,h;function v(){var m=nt,S=at;ce(null),de(null);try{return c??(c=e()(t,(o==null?void 0:o())??{},{direction:l}))}finally{ce(m),de(S)}}var b={is_global:s,in(){var m;if(t.inert=u,!i){h==null||h.abort(),(m=h==null?void 0:h.reset)==null||m.call(h);return}n||d==null||d.abort(),ji(t,"introstart"),d=Ni(t,v(),h,1,()=>{ji(t,"introend"),d==null||d.abort(),d=c=void 0,t.style.overflow=f})},out(m){if(!n){m==null||m(),c=void 0;return}t.inert=!0,ji(t,"outrostart"),h=Ni(t,v(),d,0,()=>{ji(t,"outroend"),m==null||m()})},stop:()=>{d==null||d.abort(),h==null||h.abort()}},w=at;if((w.transitions??(w.transitions=[])).push(b),i&&Hi){var _=s;if(!_){for(var y=w.parent;y&&(y.f&qe)!==0;)for(;(y=y.parent)&&(y.f&Ei)===0;);_=!y||(y.f&Ma)!==0}_&&_r(()=>{ee(()=>b.in())})}}function Ni(r,t,e,o,i){var n=o===1;if(Oc(t)){var a,s=!1;return Zr(()=>{if(!s){var w=t({direction:n?"in":"out"});a=Ni(r,w,e,o,i)}}),{abort:()=>{s=!0,a==null||a.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(e==null||e.deactivate(),!(t!=null&&t.duration))return i(),{abort:$e,deactivate:$e,reset:$e,t:()=>o};const{delay:l=0,css:c,tick:u,easing:f=V1}=t;var d=[];if(n&&e===void 0&&(u&&u(0,1),c)){var h=Es(c(0,1));d.push(h,h)}var v=()=>1-o,b=r.animate(d,{duration:l});return b.onfinish=()=>{var w=(e==null?void 0:e.t())??1-o;e==null||e.abort();var _=o-w,y=t.duration*Math.abs(_),m=[];if(y>0){var S=!1;if(c)for(var L=Math.ceil(y/16.666666666666668),O=0;O<=L;O+=1){var z=w+_*f(O/L),H=Es(c(z,1-z));m.push(H),S||(S=H.overflow==="hidden")}S&&(r.style.overflow="hidden"),v=()=>{var J=b.currentTime;return w+_*f(J/y)},u&&Jn(()=>{if(b.playState!=="running")return!1;var J=v();return u(J,1-J),!0})}b=r.animate(m,{duration:y,fill:"forwards"}),b.onfinish=()=>{v=()=>o,u==null||u(o,1-o),i()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=$e)},deactivate:()=>{i=$e},reset:()=>{o===0&&(u==null||u(1,0))},t:()=>v()}}function j1(r,t,e=t){var o=Er();S1(r,"input",i=>{var n=i?r.defaultValue:r.value;if(n=Xn(r)?Qn(n):n,e(n),o&&n!==(n=t())){var a=r.selectionStart,s=r.selectionEnd;r.value=n??"",s!==null&&(r.selectionStart=a,r.selectionEnd=Math.min(s,r.value.length))}}),ee(t)==null&&r.value&&e(Xn(r)?Qn(r.value):r.value),Te(()=>{var i=t();Xn(r)&&i===Qn(r.value)||r.type==="date"&&!i&&!r.value||i!==r.value&&(r.value=i??"")})}function Xn(r){var t=r.type;return t==="number"||t==="range"}function Qn(r){return r===""?null:+r}const yn=class yn{constructor(t){F(this,xn);F(this,Be,new WeakMap);F(this,zr);F(this,so);yt(this,so,t)}observe(t,e){var o=g(this,Be).get(t)||new Set;return o.add(e),g(this,Be).set(t,o),Ta(this,xn,uc).call(this).observe(t,g(this,so)),()=>{var i=g(this,Be).get(t);i.delete(e),i.size===0&&(g(this,Be).delete(t),g(this,zr).unobserve(t))}}};Be=new WeakMap,zr=new WeakMap,so=new WeakMap,xn=new WeakSet,uc=function(){return g(this,zr)??yt(this,zr,new ResizeObserver(t=>{for(var e of t){yn.entries.set(e.target,e);for(var o of g(this,Be).get(e.target)||[])o(e)}}))},Et(yn,"entries",new WeakMap);let ta=yn;var N1=new ta({box:"border-box"});function ea(r,t,e){var o=N1.observe(r,()=>e(r[t]));_r(()=>(ee(()=>e(r[t])),o))}function Ss(r,t){return r===t||(r==null?void 0:r[We])===t}function Qe(r={},t,e,o){return _r(()=>{var i,n;return Te(()=>{i=n,n=[],ee(()=>{r!==e(...n)&&(t(r,...n),i&&Ss(e(...i),r)&&t(null,...i))})}),()=>{Zr(()=>{n&&Ss(e(...n),r)&&t(null,...n)})}}),r}function Z1(r,t,e,o=e){t.addEventListener("input",()=>{o(t[r])}),Te(()=>{var i=e();if(t[r]!==i)if(i==null){var n=t[r];o(n)}else t[r]=i+""})}function Re(r=!1){const t=mt,e=t.l.u;if(!e)return;let o=()=>is(t.s);if(r){let i=0,n={};const a=j(()=>{let s=!1;const l=t.s;for(const c in l)l[c]!==n[c]&&(n[c]=l[c],s=!0);return s&&i++,i});o=()=>p(a)}e.b.length&&p1(()=>{Ls(t,o),Fi(e.b)}),kr(()=>{const i=ee(()=>e.m.map(zc));return()=>{for(const n of i)typeof n=="function"&&n()}}),e.a.length&&kr(()=>{Ls(t,o),Fi(e.a)})}function Ls(r,t){if(r.l.s)for(const e of r.l.s)p(e);t()}function ra(r){var t=Ct(0);return function(){return arguments.length===1?(E(t,p(t)+1),arguments[0]):(p(t),r())}}function Qr(r){mt===null&&fs(),yr&&mt.l!==null?W1(mt).m.push(r):kr(()=>{const t=ee(r);if(typeof t=="function")return t})}function q1(r){mt===null&&fs(),Qr(()=>()=>ee(r))}function W1(r){var t=r.l;return t.u??(t.u={a:[],b:[],m:[]})}let Zi=!1;function G1(r){var t=Zi;try{return Zi=!1,[r(),Zi]}finally{Zi=t}}const K1={get(r,t){if(!r.exclude.includes(t))return r.props[t]},set(r,t){return!1},getOwnPropertyDescriptor(r,t){if(!r.exclude.includes(t)&&t in r.props)return{enumerable:!0,configurable:!0,value:r.props[t]}},has(r,t){return r.exclude.includes(t)?!1:t in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(t=>!r.exclude.includes(t))}};function P(r,t,e){return new Proxy({props:r,exclude:t},K1)}function K(r,t,e,o){var O;var i=(e&gc)!==0,n=!yr||(e&vc)!==0,a=(e&mc)!==0,s=(e&wc)!==0,l=!1,c;a?[c,l]=G1(()=>r[t]):c=r[t];var u=We in r||Uc in r,f=a&&(((O=xr(r,t))==null?void 0:O.set)??(u&&t in r&&(z=>r[t]=z)))||void 0,d=o,h=!0,v=!1,b=()=>(v=!0,h&&(h=!1,s?d=ee(o):d=o),d);c===void 0&&o!==void 0&&(f&&n&&jc(),c=b(),f&&f(c));var w;if(n)w=()=>{var z=r[t];return z===void 0?b():(h=!0,v=!1,z)};else{var _=(i?j:Vn)(()=>r[t]);_.f|=Sc,w=()=>{var z=p(_);return z!==void 0&&(d=void 0),z===void 0?d:z}}if((e&bc)===0)return w;if(f){var y=r.$$legacy;return function(z,H){return arguments.length>0?((!n||!H||y||l)&&f(H?w():z),z):w()}}var m=!1,S=Ba(c),L=j(()=>{var z=w(),H=p(S);return m?(m=!1,H):S.v=z});return i||(L.equals=Pn),function(z,H){if(arguments.length>0){const J=H?p(L):n&&a?I(z):z;return L.equals(J)||(m=!0,E(S,J),v&&d!==void 0&&(d=J),ee(()=>p(L))),z}return p(L)}}function Y1(r,t){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;const e=document.implementation.createHTMLDocument(),o=e.createElement("base"),i=e.createElement("a");return e.head.appendChild(o),e.body.appendChild(i),t&&(o.href=t),i.href=r,i.href}const J1=(()=>{let r=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${t()}${r}`)})();function De(r){const t=[];for(let e=0,o=r.length;e<o;e++)t.push(r[e]);return t}let Lr=null;function Us(r={}){return Lr||(r.includeStyleProperties?(Lr=r.includeStyleProperties,Lr):(Lr=De(window.getComputedStyle(document.documentElement)),Lr))}function qi(r,t){const o=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(t);return o?parseFloat(o.replace("px","")):0}function X1(r){const t=qi(r,"border-left-width"),e=qi(r,"border-right-width");return r.clientWidth+t+e}function Q1(r){const t=qi(r,"border-top-width"),e=qi(r,"border-bottom-width");return r.clientHeight+t+e}function Fs(r,t={}){const e=t.width||X1(r),o=t.height||Q1(r);return{width:e,height:o}}function t0(){let r,t;try{t=process}catch{}const e=t&&t.env?t.env.devicePixelRatio:null;return e&&(r=parseInt(e,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}const Bt=16384;function e0(r){(r.width>Bt||r.height>Bt)&&(r.width>Bt&&r.height>Bt?r.width>r.height?(r.height*=Bt/r.width,r.width=Bt):(r.width*=Bt/r.height,r.height=Bt):r.width>Bt?(r.height*=Bt/r.width,r.width=Bt):(r.width*=Bt/r.height,r.height=Bt))}function Wi(r){return new Promise((t,e)=>{const o=new Image;o.onload=()=>{o.decode().then(()=>{requestAnimationFrame(()=>t(o))})},o.onerror=e,o.crossOrigin="anonymous",o.decoding="async",o.src=r})}async function r0(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function o0(r,t,e){const o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),n=document.createElementNS(o,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${e}`),i.setAttribute("viewBox",`0 0 ${t} ${e}`),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("externalResourcesRequired","true"),i.appendChild(n),n.appendChild(r),r0(i)}const Rt=(r,t)=>{if(r instanceof t)return!0;const e=Object.getPrototypeOf(r);return e===null?!1:e.constructor.name===t.name||Rt(e,t)};function i0(r){const t=r.getPropertyValue("content");return`${r.cssText} content: '${t.replace(/'|"/g,"")}';`}function n0(r,t){return Us(t).map(e=>{const o=r.getPropertyValue(e),i=r.getPropertyPriority(e);return`${e}: ${o}${i?" !important":""};`}).join(" ")}function a0(r,t,e,o){const i=`.${r}:${t}`,n=e.cssText?i0(e):n0(e,o);return document.createTextNode(`${i}{${n}}`)}function As(r,t,e,o){const i=window.getComputedStyle(r,e),n=i.getPropertyValue("content");if(n===""||n==="none")return;const a=J1();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(a0(a,e,i,o)),t.appendChild(s)}function s0(r,t,e){As(r,t,":before",e),As(r,t,":after",e)}const $s="application/font-woff",Is="image/jpeg",l0={woff:$s,woff2:$s,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Is,jpeg:Is,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function c0(r){const t=/\.([^./]*?)$/g.exec(r);return t?t[1]:""}function oa(r){const t=c0(r).toLowerCase();return l0[t]||""}function d0(r){return r.split(/,/)[1]}function ia(r){return r.search(/^(data:)/)!==-1}function u0(r,t){return`data:${t};base64,${r}`}async function Ts(r,t,e){const o=await fetch(r,t);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);const i=await o.blob();return new Promise((n,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{n(e({res:o,result:s.result}))}catch(l){a(l)}},s.readAsDataURL(i)})}const na={};function f0(r,t,e){let o=r.replace(/\?.*/,"");return e&&(o=r),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),t?`[${t}]${o}`:o}async function aa(r,t,e){const o=f0(r,t,e.includeQueryParams);if(na[o]!=null)return na[o];e.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{const n=await Ts(r,e.fetchRequestInit,({res:a,result:s})=>(t||(t=a.headers.get("Content-Type")||""),d0(s)));i=u0(n,t)}catch(n){i=e.imagePlaceholder||"";let a=`Failed to fetch resource: ${r}`;n&&(a=typeof n=="string"?n:n.message),a&&console.warn(a)}return na[o]=i,i}async function h0(r){const t=r.toDataURL();return t==="data:,"?r.cloneNode(!1):Wi(t)}async function p0(r,t){if(r.currentSrc){const n=document.createElement("canvas"),a=n.getContext("2d");n.width=r.clientWidth,n.height=r.clientHeight,a==null||a.drawImage(r,0,0,n.width,n.height);const s=n.toDataURL();return Wi(s)}const e=r.poster,o=oa(e),i=await aa(e,o,t);return Wi(i)}async function g0(r,t){var e;try{if(!((e=r==null?void 0:r.contentDocument)===null||e===void 0)&&e.body)return await Gi(r.contentDocument.body,t,!0)}catch{}return r.cloneNode(!1)}async function v0(r,t){return Rt(r,HTMLCanvasElement)?h0(r):Rt(r,HTMLVideoElement)?p0(r,t):Rt(r,HTMLIFrameElement)?g0(r,t):r.cloneNode(Os(r))}const b0=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Os=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";async function m0(r,t,e){var o,i;if(Os(t))return t;let n=[];return b0(r)&&r.assignedNodes?n=De(r.assignedNodes()):Rt(r,HTMLIFrameElement)&&(!((o=r.contentDocument)===null||o===void 0)&&o.body)?n=De(r.contentDocument.body.childNodes):n=De(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),n.length===0||Rt(r,HTMLVideoElement)||await n.reduce((a,s)=>a.then(()=>Gi(s,e)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function w0(r,t,e){const o=t.style;if(!o)return;const i=window.getComputedStyle(r);i.cssText?(o.cssText=i.cssText,o.transformOrigin=i.transformOrigin):Us(e).forEach(n=>{let a=i.getPropertyValue(n);n==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Rt(r,HTMLIFrameElement)&&n==="display"&&a==="inline"&&(a="block"),n==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),o.setProperty(n,a,i.getPropertyPriority(n))})}function x0(r,t){Rt(r,HTMLTextAreaElement)&&(t.innerHTML=r.value),Rt(r,HTMLInputElement)&&t.setAttribute("value",r.value)}function y0(r,t){if(Rt(r,HTMLSelectElement)){const e=t,o=Array.from(e.children).find(i=>r.value===i.getAttribute("value"));o&&o.setAttribute("selected","")}}function C0(r,t,e){return Rt(t,Element)&&(w0(r,t,e),s0(r,t,e),x0(r,t),y0(r,t)),t}async function k0(r,t){const e=r.querySelectorAll?r.querySelectorAll("use"):[];if(e.length===0)return r;const o={};for(let n=0;n<e.length;n++){const s=e[n].getAttribute("xlink:href");if(s){const l=r.querySelector(s),c=document.querySelector(s);!l&&c&&!o[s]&&(o[s]=await Gi(c,t,!0))}}const i=Object.values(o);if(i.length){const n="http://www.w3.org/1999/xhtml",a=document.createElementNS(n,"svg");a.setAttribute("xmlns",n),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(n,"defs");a.appendChild(s);for(let l=0;l<i.length;l++)s.appendChild(i[l]);r.appendChild(a)}return r}async function Gi(r,t,e){return!e&&t.filter&&!t.filter(r)?null:Promise.resolve(r).then(o=>v0(o,t)).then(o=>m0(r,o,t)).then(o=>C0(r,o,t)).then(o=>k0(o,t))}const zs=/url\((['"]?)([^'"]+?)\1\)/g,_0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,E0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function S0(r){const t=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function L0(r){const t=[];return r.replace(zs,(e,o,i)=>(t.push(i),e)),t.filter(e=>!ia(e))}async function U0(r,t,e,o,i){try{const n=e?Y1(t,e):t,a=oa(t);let s;return i||(s=await aa(n,a,o)),r.replace(S0(t),`$1${s}$3`)}catch{}return r}function F0(r,{preferredFontFormat:t}){return t?r.replace(E0,e=>{for(;;){const[o,,i]=_0.exec(e)||[];if(!i)return"";if(i===t)return`src: ${o};`}}):r}function Ms(r){return r.search(zs)!==-1}async function Rs(r,t,e){if(!Ms(r))return r;const o=F0(r,e);return L0(o).reduce((n,a)=>n.then(s=>U0(s,a,t,e)),Promise.resolve(o))}async function Ur(r,t,e){var o;const i=(o=t.style)===null||o===void 0?void 0:o.getPropertyValue(r);if(i){const n=await Rs(i,null,e);return t.style.setProperty(r,n,t.style.getPropertyPriority(r)),!0}return!1}async function A0(r,t){await Ur("background",r,t)||await Ur("background-image",r,t),await Ur("mask",r,t)||await Ur("-webkit-mask",r,t)||await Ur("mask-image",r,t)||await Ur("-webkit-mask-image",r,t)}async function $0(r,t){const e=Rt(r,HTMLImageElement);if(!(e&&!ia(r.src))&&!(Rt(r,SVGImageElement)&&!ia(r.href.baseVal)))return;const o=e?r.src:r.href.baseVal,i=await aa(o,oa(o),t);await new Promise((n,a)=>{r.onload=n,r.onerror=t.onImageErrorHandler?(...l)=>{try{n(t.onImageErrorHandler(...l))}catch(c){a(c)}}:a;const s=r;s.decode&&(s.decode=n),s.loading==="lazy"&&(s.loading="eager"),e?(r.srcset="",r.src=i):r.href.baseVal=i})}async function I0(r,t){const o=De(r.childNodes).map(i=>Ds(i,t));await Promise.all(o).then(()=>r)}async function Ds(r,t){Rt(r,Element)&&(await A0(r,t),await $0(r,t),await I0(r,t))}function T0(r,t){const{style:e}=r;t.backgroundColor&&(e.backgroundColor=t.backgroundColor),t.width&&(e.width=`${t.width}px`),t.height&&(e.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(i=>{e[i]=o[i]}),r}const Ps={};async function Hs(r){let t=Ps[r];if(t!=null)return t;const o=await(await fetch(r)).text();return t={url:r,cssText:o},Ps[r]=t,t}async function Vs(r,t){let e=r.cssText;const o=/url\(["']?([^"')]+)["']?\)/g,n=(e.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(o,"$1");return s.startsWith("https://")||(s=new URL(s,r.url).href),Ts(s,t.fetchRequestInit,({result:l})=>(e=e.replace(a,`url(${l})`),[a,l]))});return Promise.all(n).then(()=>e)}function Bs(r){if(r==null)return[];const t=[],e=/(\/\*[\s\S]*?\*\/)/gi;let o=r.replace(e,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(o);if(l===null)break;t.push(l[0])}o=o.replace(i,"");const n=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let l=n.exec(o);if(l===null){if(l=s.exec(o),l===null)break;n.lastIndex=s.lastIndex}else s.lastIndex=n.lastIndex;t.push(l[0])}return t}async function O0(r,t){const e=[],o=[];return r.forEach(i=>{if("cssRules"in i)try{De(i.cssRules||[]).forEach((n,a)=>{if(n.type===CSSRule.IMPORT_RULE){let s=a+1;const l=n.href,c=Hs(l).then(u=>Vs(u,t)).then(u=>Bs(u).forEach(f=>{try{i.insertRule(f,f.startsWith("@import")?s+=1:i.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:f,error:d})}})).catch(u=>{console.error("Error loading remote css",u.toString())});o.push(c)}})}catch(n){const a=r.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&o.push(Hs(i.href).then(s=>Vs(s,t)).then(s=>Bs(s).forEach(l=>{a.insertRule(l,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",n)}}),Promise.all(o).then(()=>(r.forEach(i=>{if("cssRules"in i)try{De(i.cssRules||[]).forEach(n=>{e.push(n)})}catch(n){console.error(`Error while reading CSS rules from ${i.href}`,n)}}),e))}function z0(r){return r.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ms(t.style.getPropertyValue("src")))}async function M0(r,t){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const e=De(r.ownerDocument.styleSheets),o=await O0(e,t);return z0(o)}function js(r){return r.trim().replace(/["']/g,"")}function R0(r){const t=new Set;function e(o){(o.style.fontFamily||getComputedStyle(o).fontFamily).split(",").forEach(n=>{t.add(js(n))}),Array.from(o.children).forEach(n=>{n instanceof HTMLElement&&e(n)})}return e(r),t}async function D0(r,t){const e=await M0(r,t),o=R0(r);return(await Promise.all(e.filter(n=>o.has(js(n.style.fontFamily))).map(n=>{const a=n.parentStyleSheet?n.parentStyleSheet.href:null;return Rs(n.cssText,a,t)}))).join(` `)}async function P0(r,t){const e=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await D0(r,t);if(e){const o=document.createElement("style"),i=document.createTextNode(e);o.appendChild(i),r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)}}async function H0(r,t={}){const{width:e,height:o}=Fs(r,t),i=await Gi(r,t,!0);return await P0(i,t),await Ds(i,t),T0(i,t),await o0(i,e,o)}async function V0(r,t={}){const{width:e,height:o}=Fs(r,t),i=await H0(r,t),n=await Wi(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||t0(),c=t.canvasWidth||e,u=t.canvasHeight||o;return a.width=c*l,a.height=u*l,t.skipAutoScale||e0(a),a.style.width=`${c}`,a.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(n,0,0,a.width,a.height),a}async function B0(r,t={}){return(await V0(r,t)).toDataURL()}const Ki=typeof window<"u",Yi=(r,t={})=>r?t[r.status]||r:null,j0=()=>{const r=document.activeElement,t=["INPUT","TEXTAREA","SELECT","OPTION"],e=r.hasAttribute("contenteditable")&&r.getAttribute("contenteditable")!=="false";return t.includes(r.tagName)||e},N0=(r,t="screenshot.png")=>{const e=document.createElement("a");e.href=r,e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},Z0=r=>B0(r).catch(t=>{throw console.error("Error capturing screenshot:",t),t}),ke=(r,t)=>(r.match(t)||[])[2];class q0{constructor(){Et(this,"sortDesc",(t,e)=>(e!=null&&e.updated?new Date(e==null?void 0:e.updated):new Date(e==null?void 0:e.created))-(t!=null&&t.updated?new Date(t==null?void 0:t.updated):new Date(t==null?void 0:t.created)));Et(this,"sortAsc",(t,e)=>(t!=null&&t.updated?new Date(t==null?void 0:t.updated):new Date(t==null?void 0:t.created))-(e!=null&&e.updated?new Date(e==null?void 0:e.updated):new Date(e==null?void 0:e.created)));Et(this,"getResolution",()=>{const t=window.innerWidth,e=window.innerHeight;return{w:t,h:e}});Et(this,"getBrowser",()=>{const t=navigator.userAgent;let e="unknown";switch(e=/ucbrowser/i.test(t)?"UCBrowser":e,e=/edg/i.test(t)?"Edge":e,e=/googlebot/i.test(t)?"GoogleBot":e,e=/chromium/i.test(t)?"Chromium":e,e=/firefox|fxios/i.test(t)&&!/seamonkey/i.test(t)?"Firefox":e,e=/; msie|trident/i.test(t)&&!/ucbrowser/i.test(t)?"IE":e,e=/chrome|crios/i.test(t)&&!/opr|opera|chromium|edg|ucbrowser|googlebot/i.test(t)?"Chrome":e,e=/safari/i.test(t)&&!/chromium|edg|ucbrowser|chrome|crios|opr|opera|fxios|firefox/i.test(t)?"Safari":e,e=/opr|opera/i.test(t)?"Opera":e,e){case"UCBrowser":return{name:e,v:ke(t,/(ucbrowser)\/([\d\.]+)/i)};case"Edge":return{name:e,v:ke(t,/(edge|edga|edgios|edg)\/([\d\.]+)/i)};case"GoogleBot":return{name:e,v:ke(t,/(googlebot)\/([\d\.]+)/i)};case"Chromium":return{name:e,v:ke(t,/(chromium)\/([\d\.]+)/i)};case"Firefox":return{name:e,v:ke(t,/(firefox|fxios)\/([\d\.]+)/i)};case"Chrome":return{name:e,v:ke(t,/(chrome|crios)\/([\d\.]+)/i)};case"Safari":return{name:e,v:ke(t,/(safari)\/([\d\.]+)/i)};case"Opera":return{name:e,v:ke(t,/(opera|opr)\/([\d\.]+)/i)};case"IE":{const o=ke(t,/(trident)\/([\d\.]+)/i);return{name:e,v:o?(parseFloat(o)+4).toString():"7.0"}}default:return{name:"unknown",v:"0.0.0.0"}}})}scrollToElement({parent:t,element:e,axis:o="y",behavior:i="smooth"}){const n=t.getBoundingClientRect(),a=e.getBoundingClientRect();let s;o==="y"?(s=a.top-n.top+t.scrollTop,t.scrollTo({top:s,behavior:i})):o==="x"&&(s=a.left-n.left+t.scrollLeft,t.scrollTo({left:s,behavior:i}))}getFubiElement(t){const e=document.getElementById("fubi-shadow-host")||document.getElementById("fubi-container");if(!e)return B.error("Fubi main element not found",t),null;const i=(e.shadowRoot||e).querySelector(t);return i||(B.error("Element not found",t),null)}scrollIntoView(t,e="smooth",o="center",i="nearest"){t&&t.scrollIntoView({behavior:e,block:o,inline:i})}screenshot(t){Z0(t).then(e=>{N0(e)}).catch(e=>{console.error("Screenshot process failed:",e)})}getThread(t){if(console.log("getT