1var Ex=Object.defineProperty;var kx=(t,e,n)=>e in t?Ex(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Sx=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jn=(t,e,n)=>(kx(t,typeof e!="symbol"?e+"":e,n),n),Qg=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var re=(t,e,n)=>(Qg(t,e,"read from private field"),n?n.call(t):e.get(t)),tn=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},jt=(t,e,n,r)=>(Qg(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Mh=(t,e,n,r)=>({set _(i){jt(t,e,i,n)},get _(){return re(t,e,r)}}),Rt=(t,e,n)=>(Qg(t,e,"access private method"),n);var pme=Sx((ss,pr)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ee(){}const j0=t=>t;function ks(t,e){for(const n in e)t[n]=e[n];return t}function Tx(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function u5(t){return t()}function r3(){return Object.create(null)}function fn(t){t.forEach(u5)}function di(t){return typeof t=="function"}function dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Bh;function Mn(t,e){return t===e?!0:(Bh||(Bh=document.createElement("a")),Bh.href=e,t===Bh.href)}function $x(t){return Object.keys(t).length===0}function hd(t,...e){if(t==null){for(const r of e)r(void 0);return Ee}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function $i(t){let e;return hd(t,n=>e=n)(),e}function Ke(t,e,n){t.$$.on_destroy.push(hd(e,n))}function hi(t,e,n,r){if(t){const i=l5(t,e,n,r);return t[0](i)}}function l5(t,e,n,r){return t[1]&&r?ks(n.ctx.slice(),t[1](r(e))):n.ctx}function pi(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(e.dirty.length,i.length);for(let a=0;a<o;a+=1)s[a]=e.dirty[a]|i[a];return s}return e.dirty|i}return e.dirty}function mi(t,e,n,r,i,s){if(i){const o=l5(e,n,r,s);t.p(o,i)}}function gi(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Qp(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Zp(t,e){const n={};e=new Set(e);for(const r in t)!e.has(r)&&r[0]!=="$"&&(n[r]=t[r]);return n}function c5(t){const e={};for(const n in t)e[n]=!0;return e}function gr(t,e,n){return t.set(n),e}function zr(t){return t&&di(t.destroy)?t.destroy:Ee}function Cx(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const Ax=["",!0,1,"true","contenteditable"],f5=typeof window<"u";let Mb=f5?()=>window.performance.now():()=>Date.now(),Bb=f5?t=>requestAnimationFrame(t):Ee;const Tl=new Set;function d5(t){Tl.forEach(e=>{e.c(t)||(Tl.delete(e),e.f())}),Tl.size!==0&&Bb(d5)}function zb(t){let e;return Tl.size===0&&Bb(d5),{promise:new Promise(n=>{Tl.add(e={c:t,f:n})}),abort(){Tl.delete(e)}}}const U0=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function v(t,e){t.appendChild(e)}function Et(t,e,n){const r=jb(t);if(!r.getElementById(e)){const i=C("style");i.id=e,i.textContent=n,h5(r,i)}}function jb(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Dx(t){const e=C("style");return e.textContent="/* empty */",h5(jb(t),e),e.sheet}function h5(t,e){return v(t.head||t,e),e.sheet}function O(t,e,n){t.insertBefore(e,n||null)}function I(t){t.parentNode&&t.parentNode.removeChild(t)}function Ci(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function C(t){return document.createElement(t)}function wu(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function oe(t){return document.createTextNode(t)}function N(){return oe(" ")}function Pt(){return oe("")}function Ie(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Lr(t){return function(e){return e.preventDefault(),t.call(this,e)}}function J1(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function w(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ix=["width","height"];function Hl(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Ix.indexOf(r)===-1?t[r]=e[r]:w(t,r,e[r])}function Au(t){return t===""?null:+t}function Ox(t){return Array.from(t.childNodes)}function Wt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Nx(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Rx(t,e,n){~Ax.indexOf(n)?Nx(t,e):Wt(t,e)}function Yr(t,e){t.value=e??""}function He(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ve(t,e,n){t.classList.toggle(e,!!n)}function p5(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}let m5=class{constructor(e=!1){Jn(this,"is_svg",!1);Jn(this,"e");Jn(this,"n");Jn(this,"t");Jn(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}
vendor: 4,384 bytes, lines 1-4
1m(e,n,r=null){this.e||(this.is_svg?this.e=wu(n.nodeName):this.e=C(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)O(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(I)}};function i3(t,e){return new t(e)}const Xp=new Map;let Kp=0;function Px(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function xx(t,e){const n={stylesheet:Dx(e),rules:{}};return Xp.set(t,n),n}function Jp(t,e,n,r,i,s,o,a=0){const u=16.666/r;let l=`{ 2`;for(let y=0;y<=1;y+=u){const b=e+(n-e)*s(y);l+=y*100+`%{${o(b,1-b)}} 3`}const c=l+`100% {${o(n,1-n)}} 4}`,d=`__svelte_${Px(c)}_${a}`,h=jb(t),{stylesheet:m,rules:g}=Xp.get(h)||xx(h,t);g[d]||(g[d]=!0,m.insertRule(`@keyframes ${d} ${c}`,m.cssRules.length));const k=t.style.animation||"";return t.style.animation=`${k?`${k}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Kp+=1,d}function e0(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(t.style.animation=r.join(", "),Kp-=i,Kp||qx())}function qx(){Bb(()=>{Kp||(Xp.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&I(e)}),Xp.clear())})}let qf;function Lo(t){qf=t}function Ha(){if(!qf)throw new Error("Function called outside component initialization");return qf}function Fx(t){Ha().$$.before_update.push(t)}function $r(t){Ha().$$.on_mount.push(t)}function Va(t){Ha().$$.after_update.push(t)}function lo(t){Ha().$$.on_destroy.push(t)}function Cr(){const t=Ha();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=p5(e,n,{cancelable:r});return i.slice().forEach(o=>{o.call(t,s)}),!s.defaultPrevented}return!0}}function Sf(t,e){return Ha().$$.context.set(t,e),e}function jo(t){return Ha().$$.context.get(t)}function Ht(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const hl=[],Qe=[];let $l=[];const ev=[],Lx=Promise.resolve();let tv=!1;function Mx(){tv||(tv=!0,Lx.then(Ub))}function Xn(t){$l.push(t)}function wn(t){ev.push(t)}const Zg=new Set;let ol=0;function Ub(){if(ol!==0)return;const t=qf;do{try{for(;ol<hl.length;){const e=hl[ol];ol++,Lo(e),Bx(e.$$)}}catch(e){throw hl.length=0,ol=0,e}for(Lo(null),hl.length=0,ol=0;Qe.length;)Qe.pop()();for(let e=0;e<$l.length;e+=1){const n=$l[e];Zg.has(n)||(Zg.add(n),n())}$l.length=0}while(hl.length);for(;ev.length;)ev.pop()();tv=!1,Zg.clear(),Lo(t)}function Bx(t){if(t.fragment!==null){t.update(),fn(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Xn)}}function zx(t){const e=[],n=[];$l.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),$l=e}let Qc;function Hb(){return Qc||(Qc=Promise.resolve(),Qc.then(()=>{Qc=null})),Qc}function Eu(t,e,n){t.dispatchEvent(p5(`${e?"intro":"outro"}${n}`))}const Tp=new Set;let so;function $e(){so={r:0,c:[],p:so}}function Ce(){so.r||fn(so.c),so=so.p}function E(t,e){t&&t.i&&(Tp.delete(t),t.i(e))}function T(t,e,n,r){if(t&&t.o){if(Tp.has(t))return;Tp.add(t),so.c.push(()=>{Tp.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const Vb={duration:0};function fc(t,e,n){const r={direction:"in"};let i=e(t,n,r),s=!1,o,a,u=0;function l(){o&&e0(t,o)}function c(){const{delay:h=0,duration:m=300,easing:g=j0,tick:k=Ee,css:y}=i||Vb;y&&(o=Jp(t,0,1,m,h,g,y,u++)),k(0,1);const b=Mb()+h,S=b+m;a&&a.abort(),s=!0,Xn(()=>Eu(t,!0,"start")),a=zb($=>{if(s){if($>=S)return k(1,0),Eu(t,!0,"end"),l(),s=!1;if($>=b){const D=g(($-b)/m);k(D,1-D)}}return s})}let d=!1;return{start(){d||(d=!0,e0(t),di(i)?(i=i(r),Hb().then(c)):c())},invalidate(){d=!1},end(){s&&(l(),s=!1)}}}function g5(t,e,n){const r={direction:"out"};let i=e(t,n,r),s=!0,o;const a=so;a.r+=1;let u;function l(){const{delay:c=0,duration:d=300,easing:h=j0,tick:m=Ee,css:g}=i||Vb;g&&(o=Jp(t,1,0,d,c,h,g));const k=Mb()+c,y=k+d;Xn(()=>Eu(t,!1,"start")),"inert"in t&&(u=t.inert,t.inert=!0),zb(b=>{if(s){if(b>=y)return m(0,1),Eu(t,!1,"end"),--a.r||fn(a.c),!1;if(b>=k){const S=h((b-k)/d);m(1-S,S)}}return s})}return di(i)?Hb().then(()=>{i=i(r),l()}):l(),{end(c){c&&"inert"in t&&(t.inert=u),c&&i.tick&&i.tick(1,0),s&&(o&&e0(t,o),s=!1)}}}function Zn(t,e,n,r){let s=e(t,n,{direction:"both"}),o=r?0:1,a=null,u=null,l=null,c;function d(){l&&e0(t,l)}
4function h(g,k){const y=g.b-o;return k*=Math.abs(y),{a:o,b:g.b,d:y,duration:k,start:g.start,end:g.start+k,group:g.group}}function m(g){const{delay:k=0,duration:y=300,easing:b=j0,tick:S=Ee,css:$}=s||Vb,D={start:Mb()+k,b:g};g||(D.group=so,so.r+=1),"inert"in t&&(g?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),a||u?u=D:($&&(d(),l=Jp(t,o,g,y,k,b,$)),g&&S(0,1),a=h(D,y),Xn(()=>Eu(t,g,"start")),zb(P=>{if(u&&P>u.start&&(a=h(u,y),u=null,Eu(t,a.b,"start"),$&&(d(),l=Jp(t,o,a.b,a.duration,0,b,s.css))),a){if(P>=a.end)S(o=a.b,1-o),Eu(t,a.b,"end"),u||(a.b?d():--a.group.r||fn(a.group.c)),a=null;else if(P>=a.start){const x=P-a.start;o=a.a+a.d*b(x/a.duration),S(o,1-o)}}return!!(a||u)}))}return{run(g){di(s)?Hb().then(()=>{s=s({direction:g?"in":"out"}),m(g)}):m(g)},end(){d(),a=u=null}}}function nv(t,e){const n=e.token={};function r(i,s,o,a){if(e.token!==n)return;e.resolved=a;let u=e.ctx;o!==void 0&&(u=u.slice(),u[o]=a);const l=i&&(e.current=i)(u);let c=!1;e.block&&(e.blocks?e.blocks.forEach((d,h)=>{h!==s&&d&&($e(),T(d,1,1,()=>{e.blocks[h]===d&&(e.blocks[h]=null)}),Ce())}):e.block.d(1),l.c(),E(l,1),l.m(e.mount(),e.anchor),c=!0),e.block=l,e.blocks&&(e.blocks[s]=l),c&&Ub()}if(Tx(t)){const i=Ha();if(t.then(s=>{Lo(i),r(e.then,1,e.value,s),Lo(null)},s=>{if(Lo(i),r(e.catch,2,e.error,s),Lo(null),!e.hasCatch)throw s}),e.current!==e.pending)return r(e.pending,0),!0}else{if(e.current!==e.then)return r(e.then,1,e.value,t),!0;e.resolved=t}}function v5(t,e,n){const r=e.slice(),{resolved:i}=t;t.current===t.then&&(r[t.value]=i),t.current===t.catch&&(r[t.error]=i),t.block.p(r,n)}function Ut(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function co(t,e){T(t,1,1,()=>{e.delete(t.key)})}function fo(t,e,n,r,i,s,o,a,u,l,c,d){let h=t.length,m=s.length,g=h;const k={};for(;g--;)k[t[g].key]=g;const y=[],b=new Map,S=new Map,$=[];for(g=m;g--;){const R=d(i,s,g),q=n(R);let F=o.get(q);F?r&&$.push(()=>F.p(R,e)):(F=l(q,R),F.c()),b.set(q,y[g]=F),q in k&&S.set(q,Math.abs(g-k[q]))}const D=new Set,P=new Set;function x(R){E(R,1),R.m(a,c),o.set(R.key,R),c=R.first,m--}for(;h&&m;){const R=y[m-1],q=t[h-1],F=R.key,L=q.key;R===q?(c=R.first,h--,m--):b.has(L)?!o.has(F)||D.has(F)?x(R):P.has(L)?h--:S.get(F)>S.get(L)?(P.add(F),x(R)):(D.add(L),h--):(u(q,o),h--)}for(;h--;){const R=t[h];b.has(R.key)||u(R,o)}for(;m;)x(y[m-1]);return fn($),y}function Vl(t,e){const n={},r={},i={$$scope:1};let s=t.length;for(;s--;){const o=t[s],a=e[s];if(a){for(const u in o)u in a||(r[u]=1);for(const u in a)i[u]||(n[u]=a[u],i[u]=1);t[s]=a}else for(const u in o)i[u]=1}for(const o in r)o in n||(n[o]=void 0);return n}function hf(t){return typeof t=="object"&&t!==null?t:{}}function En(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function j(t){t&&t.c()}function B(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Xn(()=>{const s=t.$$.on_mount.map(u5).filter(di);t.$$.on_destroy?t.$$.on_destroy.push(...s):fn(s),t.$$.on_mount=[]}),i.forEach(Xn)}function z(t,e){const n=t.$$;n.fragment!==null&&(zx(n.after_update),fn(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jx(t,e){t.$$.dirty[0]===-1&&(hl.push(t),Mx(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ht(t,e,n,r,i,s,o,a=[-1]){const u=qf;Lo(t);const l=t.$$={fragment:null,ctx:[],props:s,update:Ee,not_equal:i,bound:r3(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:r3(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};o&&o(l.root);let c=!1;if(l.ctx=n?n(t,e.props||{},(d,h,...m)=>{const g=m.length?m[0]:h;return l.ctx&&i(l.ctx[d],l.ctx[d]=g)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](g),c&&jx(t,d)),h}):[],l.update(),c=!0,fn(l.before_update),l.fragment=r?r(l.ctx):!1,e.target){if(e.hydrate){const d=Ox(e.target);l.fragment&&l.fragment.l(d),d.forEach(I)}else l.fragment&&l.fragment.c();e.intro&&E(t.$$.fragment),B(t,e.target,e.anchor),Ub()}Lo(u)}class pt{constructor(){Jn(this,"$$");Jn(this,"$$set")}$destroy(){z(this,1),this.$destroy=Ee}$on(e,n){if(!di(n))return Ee;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!$x(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ux="4";
4typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ux);const t0={},n0={},b5={},H0=()=>jo(t0),_5=/^:(.+)/,s3=4,Hx=3,Vx=2,Wx=1,Gx=1,Ff=t=>t.replace(/(^\/+|\/+$)/g,"").split("/"),Xg=t=>t.replace(/(^\/+|\/+$)/g,""),Yx=(t,e)=>{const n=t.default?0:Ff(t.path).reduce((r,i)=>(r+=s3,i===""?r+=Gx:_5.test(i)?r+=Vx:i[0]==="*"?r-=s3+Wx:r+=Hx,r),0);return{route:t,score:n,index:e}},Qx=t=>t.map(Yx).sort((e,n)=>e.score<n.score?1:e.score>n.score?-1:e.index-n.index),o3=(t,e)=>{let n,r;const[i]=e.split("?"),s=Ff(i),o=s[0]==="",a=Qx(t);for(let u=0,l=a.length;u<l;u++){const c=a[u].route;let d=!1;if(c.default){r={route:c,params:{},uri:e};continue}const h=Ff(c.path),m={},g=Math.max(s.length,h.length);let k=0;for(;k<g;k++){const y=h[k],b=s[k];if(y&&y[0]==="*"){const $=y==="*"?"*":y.slice(1);m[$]=s.slice(k).map(decodeURIComponent).join("/");break}if(typeof b>"u"){d=!0;break}const S=_5.exec(y);if(S&&!o){const $=decodeURIComponent(b);m[S[1]]=$}else if(y!==b){d=!0;break}}if(!d){n={route:c,params:m,uri:"/"+s.slice(0,k).join("/")};break}}return n||r||null},Kg=(t,e)=>t+(e?`?${e}`:""),Zx=(t,e)=>{if(t.startsWith("/"))return t;const[n,r]=t.split("?"),[i]=e.split("?"),s=Ff(n),o=Ff(i);if(s[0]==="")return Kg(i,r);if(!s[0].startsWith(".")){const l=o.concat(s).join("/");return Kg((i==="/"?"":"/")+l,r)}const a=o.concat(s),u=[];return a.forEach(l=>{l===".."?u.pop():l!=="."&&u.push(l)}),Kg("/"+u.join("/"),r)},a3=(t,e)=>`${Xg(e==="/"?t:`${Xg(t)}/${Xg(e)}`)}/`,y5=t=>!t.defaultPrevented&&t.button===0&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey),Xx=t=>{const e=location.host;return t.host===e||t.href.indexOf(`https://${e}`)===0||t.href.indexOf(`http://${e}`)===0},w5=()=>typeof window<"u"&&"document"in window&&"location"in window,Kx=t=>({active:t&4}),u3=t=>({active:!!t[2]});function Jx(t){let e,n,r,i;const s=t[17].default,o=hi(s,t,t[16],u3);let a=[{href:t[0]},{"aria-current":t[2]},t[1],t[6]],u={};for(let l=0;l<a.length;l+=1)u=ks(u,a[l]);return{c(){e=C("a"),o&&o.c(),Hl(e,u)},m(l,c){O(l,e,c),o&&o.m(e,null),n=!0,r||(i=Ie(e,"click",t[5]),r=!0)},p(l,[c]){o&&o.p&&(!n||c&65540)&&mi(o,s,l,l[16],n?pi(s,l[16],c,Kx):gi(l[16]),u3),Hl(e,u=Vl(a,[(!n||c&1)&&{href:l[0]},(!n||c&4)&&{"aria-current":l[2]},c&2&&l[1],c&64&&l[6]]))},i(l){n||(E(o,l),n=!0)},o(l){T(o,l),n=!1},d(l){l&&I(e),o&&o.d(l),r=!1,i()}}}function eq(t,e,n){let r;const i=["to","replace","state","getProps","preserveScroll"];let s=Zp(e,i),o,a,{$$slots:u={},$$scope:l}=e,{to:c="#"}=e,{replace:d=!1}=e,{state:h={}}=e,{getProps:m=()=>({})}=e,{preserveScroll:g=!1}=e;const k=jo(t0);Ke(t,k,q=>n(14,o=q));const{base:y}=jo(n0);Ke(t,y,q=>n(15,a=q));const{navigate:b}=jo(b5),S=Cr();let $,D,P,x;const R=q=>{if(S("click",q),y5(q)){q.preventDefault();const F=o.pathname===$||d;b($,{state:h,replace:F,preserveScroll:g})}};return t.$$set=q=>{e=ks(ks({},e),Qp(q)),n(6,s=Zp(e,i)),"to"in q&&n(7,c=q.to),"replace"in q&&n(8,d=q.replace),"state"in q&&n(9,h=q.state),"getProps"in q&&n(10,m=q.getProps),"preserveScroll"in q&&n(11,g=q.preserveScroll),"$$scope"in q&&n(16,l=q.$$scope)},t.$$.update=()=>{t.$$.dirty&32896&&n(0,$=Zx(c,a.uri)),t.$$.dirty&16385&&n(12,D=o.pathname.startsWith($)),t.$$.dirty&16385&&n(13,P=$===o.pathname),t.$$.dirty&8192&&n(2,r=P?"page":void 0),n(1,x=m({location:o,href:$,isPartiallyCurrent:D,isCurrent:P,existingProps:s}))},[$,x,r,k,y,R,s,c,d,h,m,g,D,P,o,a,l,u]}class Ui extends pt{constructor(e){super(),ht(this,e,eq,Jx,dt,{to:7,replace:8,state:9,getProps:10,preserveScroll:11})}}const tq=t=>({params:t&4}),l3=t=>({params:t[2]});function c3(t){let e,n,r,i;const s=[rq,nq],o=[];function a(u,l){return u[0]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e===c?o[e].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n?n.p(u,l):(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function nq(t){let e;const n=t[8].default,r=hi(n,t,t[7],l3);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&132)&&mi(r,n,i,i[7],e?pi(n,i[7],s,tq):gi(i[7]),l3)},i(i){e||(E(r,i),e=!0)},o(i){T(r,i),e=!1},d(i){r&&r.d(i)}}}function rq(t){let e,n,r,i={ctx:t,current:null,token:null,hasCatch:!1,pending:oq,then:sq,catch:iq,value:12,blocks:[,,,]};return nv(n=t[0],i),{c(){e=Pt(),i.block.c()},m(s,o){O(s,e,o),i.block.m(s,i.anchor=o),i.mount=()=>e.parentNode,i.anchor=e,r=!0},p(s,o){t=s,i.ctx=t,o&1&&n!==(n=t[0])&&nv(n,i)||v5(i,t,o)},i(s){r||(E(i.block),r=!0)},o(s){for(let o=0;o<3;o+=1){const a=i.blocks[o];T(a)}r=!1},d(s){s&&I(e),i.block.d(s),i.token=null,i=null}}}function iq(t){return{c:Ee,m:Ee,p:Ee,i:Ee,o:Ee,d:Ee}}function sq(t){var a;let e,n,r;const i=[t[2],t[3]];var s=((a=t[12])==null?void 0:a.default)||t[12];function o(u,l){let c={};if(l!==void 0&&l&12)c=Vl(i,[l&4&&hf(u[2]),l&8&&hf(u[3])]);else for(let d=0;d<i.length;d+=1)c=ks(c,i[d]);return{props:c}}return s&&(e=i3(s,o(t))),{c(){e&&j(e.$$.fragment),n=Pt()},m(u,l){e&&B(e,u,l),O(u,n,l),r=!0},p(u,l){var c;if(l&1&&s!==(s=((c=u[12])==null?void 0:c.default)||u[12])){if(e){$e();const d=e;T(d.$$.fragment,1,0,()=>{z(d,1)}),Ce()}s?(e=i3(s,o(u,l)),j(e.$$.fragment),E(e.$$.fragment,1),B(e,n.parentNode,n)):e=null}else if(s){const d=l&12?Vl(i,[l&4&&hf(u[2]),l&8&&hf(u[3])]):{};e.$set(d)}},i(u){r||(e&&E(e.$$.fragment,u),r=!0)},o(u){e&&T(e.$$.fragment,u),r=!1},d(u){u&&I(n),e&&z(e,u)}}}function oq(t){return{c:Ee,m:Ee,p:Ee,i:Ee,o:Ee,d:Ee}}function aq(t){let e,n,r=t[1]&&t[1].route===t[5]&&c3(t);return{c(){r&&r.c(),e=Pt()},m(i,s){r&&r.m(i,s),O(i,e,s),n=!0},p(i,[s]){i[1]&&i[1].route===i[5]?r?(r.p(i,s),s&2&&E(r,1)):(r=c3(i),r.c(),E(r,1),r.m(e.parentNode,e)):r&&($e(
4),T(r,1,1,()=>{r=null}),Ce())},i(i){n||(E(r),n=!0)},o(i){T(r),n=!1},d(i){i&&I(e),r&&r.d(i)}}}function uq(t,e,n){let r,{$$slots:i={},$$scope:s}=e,{path:o=""}=e,{component:a=null}=e,u={},l={};const{registerRoute:c,unregisterRoute:d,activeRoute:h}=jo(n0);Ke(t,h,g=>n(1,r=g));const m={path:o,default:o===""};return c(m),lo(()=>{d(m)}),t.$$set=g=>{n(11,e=ks(ks({},e),Qp(g))),"path"in g&&n(6,o=g.path),"component"in g&&n(0,a=g.component),"$$scope"in g&&n(7,s=g.$$scope)},t.$$.update=()=>{if(r&&r.route===m){n(2,u=r.params);const{component:g,path:k,...y}=e;n(3,l=y),g&&(g.toString().startsWith("class ")?n(0,a=g):n(0,a=g())),w5()&&!r.preserveScroll&&(window==null||window.scrollTo(0,0))}},e=Qp(e),[a,r,u,l,h,m,o,s,i]}class ar extends pt{constructor(e){super(),ht(this,e,uq,aq,dt,{path:6,component:0})}}const al=[];function Hi(t,e){return{subscribe:nn(t,e).subscribe}}function nn(t,e=Ee){let n;const r=new Set;function i(a){if(dt(t,a)&&(t=a,n)){const u=!al.length;for(const l of r)l[1](),al.push(l,t);if(u){for(let l=0;l<al.length;l+=2)al[l][0](al[l+1]);al.length=0}}}function s(a){i(a(t))}function o(a,u=Ee){const l=[a,u];return r.add(l),r.size===1&&(n=e(i,s)||Ee),a(t),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:o}}function hr(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Hi(n,(o,a)=>{let u=!1;const l=[];let c=0,d=Ee;const h=()=>{if(c)return;d();const g=e(r?l[0]:l,o,a);s?o(g):d=di(g)?g:Ee},m=i.map((g,k)=>hd(g,y=>{l[k]=y,c&=~(1<<k),u&&h()},()=>{c|=1<<k}));return u=!0,h(),function(){fn(m),d(),u=!1}})}const Jg=t=>({...t.location,state:t.history.state,key:t.history.state&&t.history.state.key||"initial"}),lq=t=>{const e=[];let n=Jg(t);return{get location(){return n},listen(r){e.push(r);const i=()=>{n=Jg(t),r({location:n,action:"POP"})};return t.addEventListener("popstate",i),()=>{t.removeEventListener("popstate",i);const s=e.indexOf(r);e.splice(s,1)}},navigate(r,{state:i,replace:s=!1,preserveScroll:o=!1,blurActiveElement:a=!0}={}){i={...i,key:Date.now()+""};try{s?t.history.replaceState(i,"",r):t.history.pushState(i,"",r)}catch{t.location[s?"replace":"assign"](r)}n=Jg(t),e.forEach(u=>u({location:n,action:"PUSH",preserveScroll:o})),a&&document.activeElement.blur()}}},cq=(t="/")=>{let e=0;const n=[{pathname:t,search:""}],r=[];return{get location(){return n[e]},addEventListener(i,s){},removeEventListener(i,s){},history:{get entries(){return n},get index(){return e},get state(){return r[e]},pushState(i,s,o){const[a,u=""]=o.split("?");e++,n.push({pathname:a,search:u}),r.push(i)},replaceState(i,s,o){const[a,u=""]=o.split("?");n[e]={pathname:a,search:u},r[e]=i}}}},E5=lq(w5()?window:cq()),{navigate:Mi}=E5,fq=t=>({route:t&4,location:t&2}),f3=t=>({route:t[2]&&t[2].uri,location:t[1]}),dq=t=>({route:t&4,location:t&2}),d3=t=>({route:t[2]&&t[2].uri,location:t[1]});function hq(t){let e;const n=t[15].default,r=hi(n,t,t[14],f3);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&16390)&&mi(r,n,i,i[14],e?pi(n,i[14],s,fq):gi(i[14]),f3)},i(i){e||(E(r,i),e=!0)},o(i){T(r,i),e=!1},d(i){r&&r.d(i)}}}function pq(t){let e=t[1].pathname,n,r,i=h3(t);return{c(){i.c(),n=Pt()},m(s,o){i.m(s,o),O(s,n,o),r=!0},p(s,o){o&2&&dt(e,e=s[1].pathname)?($e(),T(i,1,1,Ee),Ce(),i=h3(s),i.c(),E(i,1),i.m(n.parentNode,n)):i.p(s,o)},i(s){r||(E(i),r=!0)},o(s){T(i),r=!1},d(s){s&&I(n),i.d(s)}}}function h3(t){let e,n,r,i;const s=t[15].default,o=hi(s,t,t[14],d3);return{c(){e=C("div"),o&&o.c()},m(a,u){O(a,e,u),o&&o.m(e,null),i=!0},p(a,u){o&&o.p&&(!i||u&16390)&&mi(o,s,a,a[14],i?pi(s,a[14],u,dq):gi(a[14]),d3)},i(a){i||(E(o,a),a&&Xn(()=>{i&&(r&&r.end(1),n=fc(e,t[3],{}),n.start())}),i=!0)},o(a){T(o,a),n&&n.invalidate(),a&&(r=g5(e,t[3],{})),i=!1},d(a){a&&I(e),o&&o.d(a),a&&r&&r.end()}}}function mq(t){let e,n,r,i;const s=[pq,hq],o=[];function a(u,l){return u[0]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,[l]){let c=e;e=a(u),e===c?o[e].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n?n.p(u,l):(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function gq(t,e,n){let r,i,s,o,{$$slots:a={},$$scope:u}=e,{basepath:l="/"}=e,{url:c=null}=e,{viewtransition:d=null}=e,{history:h=E5}=e;const m=(F,L,M)=>{const V=d(M);return typeof(V==null?void 0:V.fn)=="function"?V.fn(F,V):V};Sf(b5,h);const g=jo(t0),k=jo(n0),y=nn([]);Ke(t,y,F=>n(12,i=F));const b=nn(null);Ke(t,b,F=>n(2,o=F));let S=!1;const $=g||nn(c?{pathname:c}:h.location);Ke(t,$,F=>n(1,r=F));const D=k?k.routerBase:nn({path:l,uri:l});Ke(t,D,F=>n(13,s=F));const P=hr([D,b],([F,L])=>{if(!L)return F;const{path:M}=F,{route:V,uri:H}=L;return{path:V.default?M:V.path.replace(/\*.*$/,""),uri:H}}),x=F=>{const{path:L}=s;let{path:M}=F;if(F._path=M,F.path=a3(L,M),typeof window>"u"){if(S)return;const V=o3([F],r.pathname);V&&(b.set(V),S=!0)}else y.update(V=>
4[...V,F])},R=F=>{y.update(L=>L.filter(M=>M!==F))};let q=!1;return g||($r(()=>h.listen(L=>{n(11,q=L.preserveScroll||!1),$.set(L.location)})),Sf(t0,$)),Sf(n0,{activeRoute:b,base:D,routerBase:P,registerRoute:x,unregisterRoute:R}),t.$$set=F=>{"basepath"in F&&n(8,l=F.basepath),"url"in F&&n(9,c=F.url),"viewtransition"in F&&n(0,d=F.viewtransition),"history"in F&&n(10,h=F.history),"$$scope"in F&&n(14,u=F.$$scope)},t.$$.update=()=>{if(t.$$.dirty&8192){const{path:F}=s;y.update(L=>L.map(M=>Object.assign(M,{path:a3(F,M._path)})))}if(t.$$.dirty&6146){const F=o3(i,r.pathname);b.set(F&&{...F,preserveScroll:q})}},[d,r,o,m,y,b,$,D,l,c,h,q,i,s,u,a]}class k5 extends pt{constructor(e){super(),ht(this,e,gq,mq,dt,{basepath:8,url:9,viewtransition:0,history:10})}}const vq=t=>{const e=n=>{const r=n.currentTarget;(r.target===""||r.target==="_self")&&Xx(r)&&y5(n)&&(n.preventDefault(),Mi(r.pathname+r.search,{replace:r.hasAttribute("replace"),preserveScroll:r.hasAttribute("preserveScroll")}))};return t.addEventListener("click",e),{destroy(){t.removeEventListener("click",e)}}};var rv=function(t,e){return rv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},rv(t,e)};function Xr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ke=function(){return ke=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ke.apply(this,arguments)};function Pa(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function _a(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{l(r.next(c))}catch(d){o(d)}}function u(c){try{l(r.throw(c))}catch(d){o(d)}}function l(c){c.done?s(c.value):i(c.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function ya(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],i=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Oa(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var e1="Invariant Violation",p3=Object.setPrototypeOf,bq=p3===void 0?function(t,e){return t.__proto__=e,t}:p3,In=function(t){Xr(e,t);function e(n){n===void 0&&(n=e1);var r=t.call(this,typeof n=="number"?e1+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=e1,bq(r,e.prototype),r}return e}(Error);function ut(t,e){if(!t)throw new In(e)}var r0=["debug","log","warn","error","silent"],iv=r0.indexOf("log");function zh(t){return function(){if(r0.indexOf(t)>=iv){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=zh("debug"),t.log=zh("log"),t.warn=zh("warn"),t.error=zh("error")})(ut||(ut={}));function S5(t){var e=r0[iv];return iv=Math.max(0,r0.indexOf(t)),e}function _s(t){try{return t()}catch{}}const m3=_s(function(){return globalThis})||_s(function(){return window}
4)||_s(function(){return self})||_s(function(){return global})||_s(function(){return _s.constructor("return this")()});var g3="__",v3=[g3,g3].join("DEV");function _q(){try{return!!__DEV__}catch{return Object.defineProperty(m3,v3,{value:_s(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),m3[v3]}}const $p=_q();function wa(t){try{return t()}catch{}}var sv=wa(function(){return globalThis})||wa(function(){return window})||wa(function(){return self})||wa(function(){return global})||wa(function(){return wa.constructor("return this")()}),ov=!1;function yq(){sv&&!wa(function(){return"production"})&&!wa(function(){return process})&&(Object.defineProperty(sv,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),ov=!0)}yq();function b3(){ov&&(delete sv.process,ov=!1)}function Cp(t,e){if(!!!t)throw new Error(e)}function wq(t){return typeof t=="object"&&t!==null}function Eq(t,e){if(!!!t)throw new Error(e??"Unexpected invariant triggered.")}const kq=/\r\n|[\n\r]/g;function av(t,e){let n=0,r=1;for(const i of t.body.matchAll(kq)){if(typeof i.index=="number"||Eq(!1),i.index>=e)break;n=i.index+i[0].length,r+=1}return{line:r,column:e+1-n}}function Sq(t){return T5(t.source,av(t.source,t.start))}function T5(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,i=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=e.line===1?n:0,u=e.column+a,l=`${t.name}:${o}:${u} 5`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const h=Math.floor(u/80),m=u%80,g=[];for(let k=0;k<d.length;k+=80)g.push(d.slice(k,k+80));return l+_3([[`${o} |`,g[0]],...g.slice(1,h+1).map(k=>["|",k]),["|","^".padStart(m)],["|",g[h+1]]])}return l+_3([[`${o-1} |`,c[i-1]],[`${o} |`,d],["|","^".padStart(u)],[`${o+1} |`,c[i+1]]])}function _3(t){const e=t.filter(([r,i])=>i!==void 0),n=Math.max(...e.map(([r])=>r.length));return e.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` 6`)}function Tq(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Wb extends Error{constructor(e,...n){var r,i,s;const{nodes:o,source:a,positions:u,path:l,originalError:c,extensions:d}=Tq(n);super(e),this.name="GraphQLError",this.path=l??void 0,this.originalError=c??void 0,this.nodes=y3(Array.isArray(o)?o:o?[o]:void 0);const h=y3((r=this.nodes)===null||r===void 0?void 0:r.map(g=>g.loc).filter(g=>g!=null));this.source=a??(h==null||(i=h[0])===null||i===void 0?void 0:i.source),this.positions=u??(h==null?void 0:h.map(g=>g.start)),this.locations=u&&a?u.map(g=>av(a,g)):h==null?void 0:h.map(g=>av(g.source,g.start));const m=wq(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(s=d??m)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Wb):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=` 7 8`+Sq(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=` 9 10`+T5(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function y3(t){return t===void 0||t.length===0?void 0:t}function Gr(t,e,n){return new Wb(`Syntax Error: ${n}`,{source:t,positions:[e]})}class $q{constructor(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class $5{constructor(e,n,r,i,s,o){this.kind=e,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const C5={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
vendor: 4,886 bytes, lines 10-12
10Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Cq=new Set(Object.keys(C5));function w3(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&Cq.has(e)}var gu;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(gu||(gu={}));var uv;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(uv||(uv={}));var wt;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(wt||(wt={}));function lv(t){return t===9||t===32}function Lf(t){return t>=48&&t<=57}function A5(t){return t>=97&&t<=122||t>=65&&t<=90}function D5(t){return A5(t)||t===95}function Aq(t){return A5(t)||Lf(t)||t===95}function Dq(t){var e;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<t.length;++o){var s;const a=t[o],u=Iq(a);u!==a.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&u<n&&(n=u))}return t.map((o,a)=>a===0?o:o.slice(n)).slice((e=r)!==null&&e!==void 0?e:0,i+1)}function Iq(t){let e=0;for(;e<t.length&&lv(t.charCodeAt(e));)++e;return e}function Oq(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(m=>m.length===0||lv(m.charCodeAt(0))),o=n.endsWith('\\"""'),a=t.endsWith('"')&&!o,u=t.endsWith("\\"),l=a||u,c=!(e!=null&&e.minimize)&&(!i||t.length>70||l||s||o);let d="";const h=i&&lv(t.charCodeAt(0));return(c&&!h||s)&&(d+=` 11`),d+=n,(c||l)&&(d+=` 12`),'"""'+d+'"""'}var Me;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}
12",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(Me||(Me={}));class Nq{constructor(e){const n=new $5(Me.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Me.EOF)do if(e.next)e=e.next;else{const n=Pq(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===Me.COMMENT);return e}}function Rq(t){return t===Me.BANG||t===Me.DOLLAR||t===Me.AMP||t===Me.PAREN_L||t===Me.PAREN_R||t===Me.SPREAD||t===Me.COLON||t===Me.EQUALS||t===Me.AT||t===Me.BRACKET_L||t===Me.BRACKET_R||t===Me.BRACE_L||t===Me.PIPE||t===Me.BRACE_R}function dc(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function V0(t,e){return I5(t.charCodeAt(e))&&O5(t.charCodeAt(e+1))}function I5(t){return t>=55296&&t<=56319}function O5(t){return t>=56320&&t<=57343}function Du(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return Me.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Dr(t,e,n,r,i){const s=t.line,o=1+n-t.lineStart;return new $5(e,n,r,s,o,i)}function Pq(t,e){const n=t.source.body,r=n.length;let i=e;for(;i<r;){const s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return xq(t,i);case 33:return Dr(t,Me.BANG,i,i+1);case 36:return Dr(t,Me.DOLLAR,i,i+1);case 38:return Dr(t,Me.AMP,i,i+1);case 40:return Dr(t,Me.PAREN_L,i,i+1);case 41:return Dr(t,Me.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Dr(t,Me.SPREAD,i,i+3);break;case 58:return Dr(t,Me.COLON,i,i+1);case 61:return Dr(t,Me.EQUALS,i,i+1);case 64:return Dr(t,Me.AT,i,i+1);case 91:return Dr(t,Me.BRACKET_L,i,i+1);case 93:return Dr(t,Me.BRACKET_R,i,i+1);case 123:return Dr(t,Me.BRACE_L,i,i+1);case 124:return Dr(t,Me.PIPE,i,i+1);case 125:return Dr(t,Me.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?zq(t,i):Fq(t,i)}if(Lf(s)||s===45)return qq(t,i,s);if(D5(s))return jq(t,i);throw Gr(t.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:dc(s)||V0(n,i)?`Unexpected character: ${Du(t,i)}.`:`Invalid character: ${Du(t,i)}.`)}return Dr(t,Me.EOF,r,r)}function xq(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r;){const s=n.charCodeAt(i);if(s===10||s===13)break;if(dc(s))++i;else if(V0(n,i))i+=2;else break}return Dr(t,Me.COMMENT,e,i,n.slice(e+1,i))}function qq(t,e,n){const r=t.source.body;let i=e,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),Lf(s))throw Gr(t.source,i,`Invalid number, unexpected digit after 0: ${Du(t,i)}.`)}else i=t1(t,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=t1(t,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=t1(t,i,s),s=r.charCodeAt(i)),s===46||D5(s))throw Gr(t.source,i,`Invalid number, expected digit but got: ${Du(t,i)}.`);return Dr(t,o?Me.FLOAT:Me.INT,e,i,r.slice(e,i))}function t1(t,e,n){if(!Lf(n))throw Gr(t.source,e,`Invalid number, expected digit but got: ${Du(t,e)}.`);const r=t.source.body;let i=e+1;for(;Lf(r.charCodeAt(i));)++i;return i}function Fq(t,e){const n=t.source.body,r=n.length;let i=e+1,s=i,o="";for(;i<r;){const a=n.charCodeAt(i);if(a===34)return o+=n.slice(s,i),Dr(t,Me.STRING,e,i+1,o);if(a===92){o+=n.slice(s,i);const u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Lq(t,i):Mq(t,i):Bq(t,i);o+=u.value,i+=u.size,s=i;continue}if(a===10||a===13)break;if(dc(a))++i;else if(V0(n,i))i+=2;else throw Gr(t.source,i,`Invalid character within String: ${Du(t,i)}.`)}throw Gr(t.source,i,"Unterminated string.")}function Lq(t,e){const n=t.source.body;let r=0,i=3;for(;i<12;){const s=n.charCodeAt(e+i++);if(s===125){if(i<5||!dc(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|pf(s),r<0)break}throw Gr(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function Mq(t,e){const n=t.source.body,r=E3(n,e+2);if(dc(r))return{value:String.fromCodePoint(r),size:6};
vendor: 16,384 bytes, lines 12-25
12if(I5(r)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const i=E3(n,e+8);if(O5(i))return{value:String.fromCodePoint(r,i),size:12}}throw Gr(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function E3(t,e){return pf(t.charCodeAt(e))<<12|pf(t.charCodeAt(e+1))<<8|pf(t.charCodeAt(e+2))<<4|pf(t.charCodeAt(e+3))}function pf(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function Bq(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` 13`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Gr(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function zq(t,e){const n=t.source.body,r=n.length;let i=t.lineStart,s=e+3,o=s,a="";const u=[];for(;s<r;){const l=n.charCodeAt(s);if(l===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),u.push(a);const c=Dr(t,Me.BLOCK_STRING,e,s+3,Dq(u).join(` 14`));return t.line+=u.length-1,t.lineStart=i,c}if(l===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(l===10||l===13){a+=n.slice(o,s),u.push(a),l===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(dc(l))++s;else if(V0(n,s))s+=2;else throw Gr(t.source,s,`Invalid character within String: ${Du(t,s)}.`)}throw Gr(t.source,s,"Unterminated string.")}function jq(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r;){const s=n.charCodeAt(i);if(Aq(s))++i;else break}return Dr(t,Me.NAME,e,i,n.slice(e,i))}const Uq=10,N5=2;function Gb(t){return W0(t,[])}function W0(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Hq(t,e);default:return String(t)}}function Hq(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(Vq(t)){const r=t.toJSON();if(r!==t)return typeof r=="string"?r:W0(r,n)}else if(Array.isArray(t))return Gq(t,n);return Wq(t,n)}function Vq(t){return typeof t.toJSON=="function"}function Wq(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>N5?"["+Yq(t)+"]":"{ "+n.map(([i,s])=>i+": "+W0(s,e)).join(", ")+" }"}function Gq(t,e){if(t.length===0)return"[]";if(e.length>N5)return"[Array]";const n=Math.min(Uq,t.length),r=t.length-n,i=[];for(let s=0;s<n;++s)i.push(W0(t[s],e));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Yq(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const Qq=globalThis.process?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var r;const i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(i===s){const o=Gb(e);throw new Error(`Cannot use ${i} "${o}" from another module or realm. 15 16Ensure that there is only one instance of "graphql" in the node_modules 17directory. If different versions of "graphql" are the dependencies of other 18relied on modules, use "resolutions" to ensure only one version is installed. 19 20https://yarnpkg.com/en/docs/selective-version-resolutions 21 22Duplicate "graphql" modules cannot be used at the same time since different 23versions may have different capabilities and behavior. The data from one 24version used in the function from another could produce confusing and 25spurious results.`)}}return!1};class Yb{constructor(e,n="GraphQL request",r={line:1,column:1}){typeof e=="string"||Cp(!1,`Body must be a string. Received: ${Gb(e)}.`),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Cp(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Cp(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Zq(t){return Qq(t,Yb)}function Xq(t,e){return new Kq(t,e).parseDocument()}let Kq=class{constructor(e,n={}){const r=Zq(e)?e:new Yb(e);this._lexer=new Nq(r),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(Me.NAME);return this.node(e,{kind:wt.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:wt.DOCUMENT,definitions:this.many(Me.SOF,this.parseDefinition,Me.EOF)})}parseDefinition(){if(this.peek(Me.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===Me.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Gr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Me.BRACE_L))return this.node(e,{kind:wt.OPERATION_DEFINITION,operation:gu.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(Me.NAME)&&(r=this.parseName()),this.node(e,{kind:wt.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Me.NAME);switch(e.value){case"query":return gu.QUERY;case"mutation":return gu.MUTATION;case"subscription":return gu.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Me.PAREN_L,this.parseVariableDefinition,Me.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:wt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Me.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Me.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Me.DOLLAR),this.node(e,{kind:wt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:wt.SELECTION_SET,selections:this.many(Me.BRACE_L,this.parseSelection,Me.BRACE_R)})}parseSelection(){return this.peek(Me.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(Me.COLON)?(r=n,i=this.parseName()):i=n,this.node(e,{kind:wt.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Me.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Me.PAREN_L,n,Me.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Me.COLON),this.node(n,{kind:wt.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Me.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(Me.NAME)?this.node(e,{kind:wt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:wt.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:wt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:wt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case Me.BRACKET_L:return this.parseList(e);case Me.BRACE_L:return this.parseObject(e);case Me.INT:return this.advanceLexer(),this.node(n,{kind:wt.INT,value:n.value});case Me.FLOAT:return this.advanceLexer(),this.node(n,{kind:wt.FLOAT,value:n.value});case Me.STRING:case Me.BLOCK_STRING:return this.parseStringLiteral();case Me.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:wt.BOOLEAN,value:!0});case"false":return this.node(n,{kind:wt.BOOLEAN,value:!1});case"null":return this.node(n,{kind:wt.NULL});default:return this.node(n,{kind:wt.ENUM,value:n.value})}case Me.DOLLAR:if(e)if(this.expectToken(Me.DOLLAR),this._lexer.token.kind===Me.NAME){const r=this._lexer.token.value;throw Gr(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:wt.STRING,value:e.value,block:e.kind===Me.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:wt.LIST,values:this.any(Me.BRACKET_L,n,Me.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:wt.OBJECT,fields:this.any(Me.BRACE_L,n,Me.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,r=this.parseName();return this.expectToken(Me.COLON),this.node(n,{kind:wt.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(Me.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(Me.AT),this.node(n,{kind:wt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(Me.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Me.BRACKET_R),n=this.node(e,{kind:wt.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Me.BANG)?this.node(e,{kind:wt.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:wt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Me.STRING)||this.peek(Me.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(Me.BRACE_L,this.parseOperationTypeDefinition,Me.BRACE_R);return this.node(e,{kind:wt.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(Me.COLON);const r=this.parseNamedType();return this.node(e,{kind:wt.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:wt.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:wt.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Me.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Me.BRACE_L,this.parseFieldDefinition,Me.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Me.COLON);const s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:wt.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(Me.PAREN_L,this.parseInputValueDef,Me.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Me.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(Me.EQUALS)&&(s=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:wt.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:wt.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:wt.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Me.EQUALS)?this.delimitedMany(Me.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:wt.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Me.BRACE_L,this.parseEnumValueDefinition,Me.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:wt.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Gr(this._lexer.source,this._lexer.token.start,`${jh(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:wt.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Me.BRACE_L,this.parseInputValueDef,Me.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Me.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(Me.BRACE_L,this.parseOperationTypeDefinition,Me.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:wt.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword(
vendor: 6,175 bytes, line 25
25"extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(e,{kind:wt.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:wt.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:wt.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:wt.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:wt.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:wt.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Me.AT);const r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:wt.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Me.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(uv,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new $q(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw Gr(this._lexer.source,n.start,`Expected ${R5(e)}, found ${jh(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===Me.NAME&&n.value===e)this.advanceLexer();else throw Gr(this._lexer.source,n.start,`Expected "${e}", found ${jh(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===Me.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e??this._lexer.token;return Gr(this._lexer.source,n.start,`Unexpected ${jh(n)}.`)}any(e,n,r){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(e,n,r){if(this.expectOptionalToken(e)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(e,n,r){this.expectToken(e);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(e,n){this.expectOptionalToken(e);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==Me.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Gr(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function jh(t){const e=t.value;return R5(t.kind)+(e!=null?` "${e}"`:"")}function R5(t){return Rq(t)?`"${t}"`:t}function Jq(t){return`"${t.replace(eF,tF)}"`}const eF=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tF(t){return nF[t.charCodeAt(0)]}const nF=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Qb=Object.freeze({});function Uo(t,e,n=C5){const r=new Map;for(const b of Object.values(wt))r.set(b,rF(e,b));let i,s=Array.isArray(t),o=[t],a=-1,u=[],l=t,c,d;const h=[],m=[];do{a++;const b=a===o.length,S=b&&u.length!==0;if(b){if(c=m.length===0?void 0:h[h.length-1],l=d,d=m.pop(),S)if(s){l=l.slice();let D=0;for(const[P,x]of u){const R=P-D;x===null?(l.splice(R,1),D++):l[R]=x}}else{l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(const[D,P]of u)l[D]=P}a=i.index,o=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(d){if(c=s?a:o[a],l=d[c],l==null)continue;h.push(c)}let $;if(!Array.isArray(l)){var g,k;w3(l)||Cp(!1,`Invalid AST Node: ${Gb(l)}.`);const D=b?(g=r.get(l.kind))===null||g===void 0?void 0:g.leave:(k=r.get(l.kind))===null||k===void 0?void 0:k.enter;if($=D==null?void 0:D.call(e,l,c,d,h,m),$===Qb)break;
25if($===!1){if(!b){h.pop();continue}}else if($!==void 0&&(u.push([c,$]),!b))if(w3($))l=$;else{h.pop();continue}}if($===void 0&&S&&u.push([c,l]),b)h.pop();else{var y;i={inArray:s,index:a,keys:o,edits:u,prev:i},s=Array.isArray(l),o=s?l:(y=n[l.kind])!==null&&y!==void 0?y:[],a=-1,u=[],d&&m.push(d),d=l}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:t}function rF(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function iF(t){return Uo(t,oF)}const sF=80,oF={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>kt(t.definitions,` 26 27`)},OperationDefinition:{leave(t){const e=hn("(",kt(t.variableDefinitions,", "),")"),n=kt([t.operation,kt([t.name,e]),kt(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r})=>t+": "+e+hn(" = ",n)+hn(" ",kt(r," "))},SelectionSet:{leave:({selections:t})=>Is(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const s=hn("",t,": ")+e;let o=s+hn("(",kt(n,", "),")");return o.length>sF&&(o=s+hn(`( 28`,Ap(kt(n,` 29`)),` 30)`)),kt([o,kt(r," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+hn(" ",kt(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>kt(["...",hn("on ",t),kt(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${t}${hn("(",kt(n,", "),")")} on ${e} ${hn("",kt(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Oq(t):Jq(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+kt(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+kt(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+hn("(",kt(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>hn("",t,` 31`)+kt(["schema",kt(e," "),Is(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>hn("",t,` 32`)+kt(["scalar",e,kt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>hn("",t,` 33`)+kt(["type",e,hn("implements ",kt(n," & ")),kt(r," "),Is(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>hn("",t,` 34`)+e+(k3(n)?hn(`( 35`,Ap(kt(n,` 36`)),` 37)`):hn("(",kt(n,", "),")"))+": "+r+hn(" ",kt(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>hn("",t,` 38`)+kt([e+": "+n,hn("= ",r),kt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>hn("",t,` 39`)+kt(["interface",e,hn("implements ",kt(n," & ")),kt(r," "),Is(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>hn("",t,` 40`)+kt(["union",e,kt(n," "),hn("= ",kt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>hn("",t,` 41`)+kt(["enum",e,kt(n," "),Is(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>hn("",t,` 42`)+kt([e,kt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>hn("",t,` 43`)+kt(["input",e,kt(n," "),Is(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:r,locations:i})=>hn("",t,` 44`)+"directive @"+e+(k3(n)?hn(`( 45`,Ap(kt(n,` 46`)),` 47)`):hn("(",kt(n,", "),")"))+(r?" repeatable":"")+" on "+kt(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>kt(["extend schema",kt(t," "),Is(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>kt(["extend scalar",t,kt(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>kt(["extend type",t,hn("implements ",kt(e," & ")),kt(n," "),Is(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>kt(["extend interface",t,hn("implements ",kt(e," & ")),kt(n," "),Is(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>kt(["extend union",t,kt(e," "),hn("= ",kt(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>kt(["extend enum",t,kt(e," "),Is(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>kt(["extend input",t,kt(e," "),Is(n)]," ")}};function kt(t,e=""){var n;return(n=t==null?void 0:t.filter(r=>r).join(e))!==null&&n!==void 0?n:""}function Is(t){return hn(`{ 48`,Ap(kt(t,` 49`)),` 50}`)}function hn(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function Ap(t){return hn(" ",t.replace(/\n/g,` 51 `))}function k3(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(` 52`)))!==null&&e!==void 0?e:!1}function S3(t){return t.kind===wt.FIELD||t.kind===wt.FRAGMENT_SPREAD||t.kind===wt.INLINE_FRAGMENT}function aF(){return b3()}function uF(){__DEV__?ut(typeof $p=="boolean",$p):ut(typeof $p=="boolean",39)}aF();uF();function G0(t,e){var n=t.directives;return!n||!n.length?!0:fF(n).every(function(r){var i=r.directive,s=r.ifArgument,o=!1;return s.value.kind==="Variable"?(o=e&&e[s.value.name.value],__DEV__?ut(o!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):ut(o!==void 0,40)):o=s.value.value,i.name.value==="skip"?!o:o})}function Zb(t,e,n){var r=new Set(t),i=r.size;return Uo(e,{Directive:function(s){if(r.delete(s.name.value)&&(!n||!r.size))return Qb}}),n?!r.size:r.size<i}function lF(t){return t&&Zb(["client","export"],t,!0)}function cF(t){var e=t.name.value;return e==="skip"||e==="include"}function fF(t){var e=[];return t&&t.length&&t.forEach(function(n){if(cF(n)){var r=n.arguments,i=n.name.value;__DEV__?ut(r&&r.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):ut(r&&r.length===1,41);var s=r[0];__DEV__?ut(s.name&&s.name.value==="if","Invalid argument for the @".concat(i," directive.")):ut(s.name&&s.name.value==="if",42);var o=s.value;__DEV__?ut(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):ut(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),43),e.push({directive:n,ifArgument:s})}}),e}function dF(t,e){var n=e,r=[];t.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw __DEV__?new In("Found a ".concat(s.operation," operation").concat(s.name?" named '".concat(s.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new In(44);s.kind==="FragmentDefinition"&&r.push(s)}),typeof n>"u"&&(__DEV__?ut(r.length===1,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):ut(r.length===1,45),n=r[0].name.value);var i=ke(ke({},t),{definitions:Oa([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],t.definitions,!0)});return i}function Xb(t){t===void 0&&(t=[]);var e={};return t.forEach(function(n){e[n.name.value]=n}),e}function Kb(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var n=t.name.value;if(typeof e=="function")return e(n);var r=e&&e[n];return __DEV__?ut(r,"No fragment named ".concat(n)):ut(r,46),r||null}default:return null}}function lr(t){return t!==null&&typeof t=="object"}function ku(t){return{__ref:String(t)}}function Nn(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function hF(t){return lr(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function pF(t){return t.kind==="StringValue"}function mF(t){return t.kind==="BooleanValue"}function gF(t){return t.kind==="IntValue"}function vF(t){return t.kind==="FloatValue"}function bF(t){return t.kind==="Variable"}function _F(t){return t.kind==="ObjectValue"}function yF(t){return t.kind==="ListValue"}function wF(t){return t.kind==="EnumValue"}
52function EF(t){return t.kind==="NullValue"}function Wl(t,e,n,r){if(gF(n)||vF(n))t[e.value]=Number(n.value);else if(mF(n)||pF(n))t[e.value]=n.value;else if(_F(n)){var i={};n.fields.map(function(o){return Wl(i,o.name,o.value,r)}),t[e.value]=i}else if(bF(n)){var s=(r||{})[n.name.value];t[e.value]=s}else if(yF(n))t[e.value]=n.values.map(function(o){var a={};return Wl(a,e,o,r),a[e.value]});else if(wF(n))t[e.value]=n.value;else if(EF(n))t[e.value]=null;else throw __DEV__?new In('The inline argument "'.concat(e.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new In(55)}function kF(t,e){var n=null;t.directives&&(n={},t.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(s){var o=s.name,a=s.value;return Wl(n[i.name.value],o,a,e)})}));var r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(function(i){var s=i.name,o=i.value;return Wl(r,s,o,e)})),Jb(t.name.value,r,n)}var SF=["connection","include","skip","client","rest","export"],Jb=Object.assign(function(t,e,n){if(e&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(a){i[a]=e[a]}),"".concat(n.connection.key,"(").concat(Zc(i),")")}else return n.connection.key;var s=t;if(e){var o=Zc(e);s+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(a){SF.indexOf(a)===-1&&(n[a]&&Object.keys(n[a]).length?s+="@".concat(a,"(").concat(Zc(n[a]),")"):s+="@".concat(a))}),s},{setStringify:function(t){var e=Zc;return Zc=t,e}}),Zc=function(e){return JSON.stringify(e,TF)};function TF(t,e){return lr(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(n,r){return n[r]=e[r],n},{})),e}function Y0(t,e){if(t.arguments&&t.arguments.length){var n={};return t.arguments.forEach(function(r){var i=r.name,s=r.value;return Wl(n,i,s,e)}),n}return null}function Iu(t){return t.alias?t.alias.value:t.name.value}function cv(t,e,n){for(var r,i=0,s=e.selections;i<s.length;i++){var o=s[i];if(Ou(o)){if(o.name.value==="__typename")return t[Iu(o)]}else r?r.push(o):r=[o]}if(typeof t.__typename=="string")return t.__typename;if(r)for(var a=0,u=r;a<u.length;a++){var o=u[a],l=cv(t,Kb(o,n).selectionSet,n);if(typeof l=="string")return l}}function Ou(t){return t.kind==="Field"}function $F(t){return t.kind==="InlineFragment"}function Q0(t){__DEV__?ut(t&&t.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ut(t&&t.kind==="Document",47);var e=t.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw __DEV__?new In('Schema type definitions not allowed in queries. Found: "'.concat(n.kind,'"')):new In(48);return n});return __DEV__?ut(e.length<=1,"Ambiguous GraphQL document: contains ".concat(e.length," operations")):ut(e.length<=1,49),t}function pd(t){return Q0(t),t.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function fv(t){return t.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function e_(t){return t.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function P5(t){var e=pd(t);return __DEV__?ut(e&&e.operation==="query","Must contain a query definition."):ut(e&&e.operation==="query",50),e}function CF(t){__DEV__?ut(t.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ut(t.kind==="Document",51),__DEV__?ut(t.definitions.length<=1,"Fragment must have exactly one definition."):ut(t.definitions.length<=1,52);var e=t.definitions[0];return __DEV__?ut(e.kind==="FragmentDefinition","Must be a fragment definition."):ut(e.kind==="FragmentDefinition",53),e}function Z0(t){Q0(t);for(var e,n=0,r=t.definitions;n<r.length;n++){var i=r[n];if(i.kind==="OperationDefinition"){var s=i.operation;if(s==="query"||s==="mutation"||s==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw __DEV__?new In("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new In(54)}function t_(t){var e=Object.create(null),n=t&&t.variableDefinitions;
52return n&&n.length&&n.forEach(function(r){r.defaultValue&&Wl(e,r.variable.name,r.defaultValue)}),e}var _r=Array.isArray;function ho(t){return Array.isArray(t)&&t.length>0}var T3={kind:wt.FIELD,name:{kind:wt.NAME,value:"__typename"}};function x5(t,e){return!t||t.selectionSet.selections.every(function(n){return n.kind===wt.FRAGMENT_SPREAD&&x5(e[n.name.value],e)})}function AF(t){return x5(pd(t)||CF(t),Xb(e_(t)))?null:t}function DF(t){var e=new Set,n=[];return t.forEach(function(r){r.name?e.add(r.name):r.test&&n.push(r.test)}),function(r){return e.has(r.name.value)||n.some(function(i){return i(r)})}}function $3(t){var e=new Map;return function(r){r===void 0&&(r=t);var i=e.get(r);return i||e.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function q5(t,e){for(var n=$3(""),r=$3(""),i=function(S){for(var $=0,D=void 0;$<S.length&&(D=S[$]);++$)if(!_r(D)){if(D.kind===wt.OPERATION_DEFINITION)return n(D.name&&D.name.value);if(D.kind===wt.FRAGMENT_DEFINITION)return r(D.name.value)}return __DEV__&&ut.error("Could not find operation or fragment"),null},s=0,o=e.definitions.length-1;o>=0;--o)e.definitions[o].kind===wt.OPERATION_DEFINITION&&++s;var a=DF(t),u=t.some(function(S){return S.remove}),l=function(S){return u&&S&&S.some(a)},c=new Map,d=!1,h={enter:function(S){if(l(S.directives))return d=!0,null}},m=Uo(e,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(S,$,D,P,x){var R=i(x);R&&R.variables.add(S.name.value)}},FragmentSpread:{enter:function(S,$,D,P,x){if(l(S.directives))return d=!0,null;var R=i(x);R&&R.fragmentSpreads.add(S.name.value)}},FragmentDefinition:{enter:function(S,$,D,P){c.set(JSON.stringify(P),S)},leave:function(S,$,D,P){var x=c.get(JSON.stringify(P));if(S===x)return S;if(s>0&&S.selectionSet.selections.every(function(R){return R.kind===wt.FIELD&&R.name.value==="__typename"}))return r(S.name.value).removed=!0,d=!0,null}},Directive:{leave:function(S){if(a(S))return d=!0,null}}});if(!d)return e;var g=function(S){return S.transitiveVars||(S.transitiveVars=new Set(S.variables),S.removed||S.fragmentSpreads.forEach(function($){g(r($)).transitiveVars.forEach(function(D){S.transitiveVars.add(D)})})),S},k=new Set;m.definitions.forEach(function(S){S.kind===wt.OPERATION_DEFINITION?g(n(S.name&&S.name.value)).fragmentSpreads.forEach(function($){k.add($)}):S.kind===wt.FRAGMENT_DEFINITION&&s===0&&!r(S.name.value).removed&&k.add(S.name.value)}),k.forEach(function(S){g(r(S)).fragmentSpreads.forEach(function($){k.add($)})});var y=function(S){return!!(!k.has(S)||r(S).removed)},b={enter:function(S){if(y(S.name.value))return null}};return AF(Uo(m,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(S){if(S.variableDefinitions){var $=g(n(S.name&&S.name.value)).transitiveVars;if($.size<S.variableDefinitions.length)return ke(ke({},S),{variableDefinitions:S.variableDefinitions.filter(function(D){return $.has(D.variable.name.value)})})}}}}))}var n_=Object.assign(function(t){return Uo(t,{SelectionSet:{enter:function(e,n,r){if(!(r&&r.kind===wt.OPERATION_DEFINITION)){var i=e.selections;if(i){var s=i.some(function(a){return Ou(a)&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)});if(!s){var o=r;if(!(Ou(o)&&o.directives&&o.directives.some(function(a){return a.name.value==="export"})))return ke(ke({},e),{selections:Oa(Oa([],i,!0),[T3],!1)})}}}}}})},{added:function(t){return t===T3}}),IF={test:function(t){var e=t.name.value==="connection";return e&&(!t.arguments||!t.arguments.some(function(n){return n.name.value==="key"}))&&__DEV__&&ut.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),e}};function OF(t){return q5([IF],Q0(t))}function NF(t){var e=Z0(t),n=e.operation;if(n==="query")return t;var r=Uo(t,{OperationDefinition:{enter:function(i){return ke(ke({},i),{operation:"query"})}}});return r}function RF(t){Q0(t);var e=q5([{test:function(n){return n.name.value==="client"},remove:!0}],t);return e}var PF=Object.prototype.hasOwnProperty;function C3(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r_(t)}function r_(t){var e=t[0]||{},n=t.length;if(n>1)for(var r=new xa,i=1;i<n;
52++i)e=r.merge(e,t[i]);return e}var xF=function(t,e,n){return this.merge(t[n],e[n])},xa=function(){function t(e){e===void 0&&(e=xF),this.reconciler=e,this.isObject=lr,this.pastCopies=new Set}return t.prototype.merge=function(e,n){for(var r=this,i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];return lr(n)&&lr(e)?(Object.keys(n).forEach(function(o){if(PF.call(e,o)){var a=e[o];if(n[o]!==a){var u=r.reconciler.apply(r,Oa([e,n,o],i,!1));u!==a&&(e=r.shallowCopyForMerge(e),e[o]=u)}}else e=r.shallowCopyForMerge(e),e[o]=n[o]}),e):n},t.prototype.shallowCopyForMerge=function(e){return lr(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=ke({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},t}();function qF(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=FF(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FF(t,e){if(t){if(typeof t=="string")return A3(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A3(t,e)}}function A3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i_(t,e,n){return e&&D3(t.prototype,e),n&&D3(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var s_=function(){return typeof Symbol=="function"},o_=function(t){return s_()&&!!Symbol[t]},a_=function(t){return o_(t)?Symbol[t]:"@@"+t};s_()&&!o_("observable")&&(Symbol.observable=Symbol("observable"));var LF=a_("iterator"),dv=a_("observable"),F5=a_("species");function i0(t,e){var n=t[e];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function Xc(t){var e=t.constructor;return e!==void 0&&(e=e[F5],e===null&&(e=void 0)),e!==void 0?e:Dn}function MF(t){return t instanceof Dn}function Gl(t){Gl.log?Gl.log(t):setTimeout(function(){throw t})}function Dp(t){Promise.resolve().then(function(){try{t()}catch(e){Gl(e)}})}function L5(t){var e=t._cleanup;if(e!==void 0&&(t._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var n=i0(e,"unsubscribe");n&&n.call(e)}}catch(r){Gl(r)}}function hv(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function BF(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var n=0;n<e.length&&(M5(t,e[n].type,e[n].value),t._state!=="closed");++n);}}function M5(t,e,n){t._state="running";var r=t._observer;try{var i=i0(r,e);switch(e){case"next":i&&i.call(r,n);break;case"error":if(hv(t),i)i.call(r,n);else throw n;break;case"complete":hv(t),i&&i.call(r);break}}catch(s){Gl(s)}t._state==="closed"?L5(t):t._state==="running"&&(t._state="ready")}function n1(t,e,n){if(t._state!=="closed"){if(t._state==="buffering"){t._queue.push({type:e,value:n});return}if(t._state!=="ready"){t._state="buffering",t._queue=[{type:e,value:n}],Dp(function(){return BF(t)});return}M5(t,e,n)}}var zF=function(){function t(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var i=new jF(this);try{this._cleanup=r.call(void 0,i)}catch(s){i.error(s)}this._state==="initializing"&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(hv(this),L5(this))},i_(t,[{key:"closed",get:function(){return this._state==="closed"}}]),t}(),jF=function(){function t(n){this._subscription=n}var e=t.prototype;return e.next=function(r){n1(this._subscription,"next",r)},e.error=function(r){n1(this._subscription,"error",r)},e.complete=function(){n1(this._subscription,"complete")},i_(t,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),t}(),Dn=function(){function t(n){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var e=t.prototype;return e.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new zF(r,this._subscriber)},e.forEach=function(r){var i=this;return new Promise(function(s,o){if(typeof r!="function"){o(new TypeError(r+" is not a function"));return}function a(){u.unsubscribe(),s()}var u=i.subscribe({next:function(l){try{r(l,a)}catch(c){o(c),u.unsubscribe()}},error:o,complete:s})})},e.map=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Xc(this);return new s(function(o){return i.subscribe({next:function(a){try{a=r(a)}catch(u){return o.error(u)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},e.filter=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Xc(this);return new s(function(o){return i.subscribe({next:function(a){try{if(!r(a))return}catch(u){return o.error(u)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},e.reduce=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Xc(this),o=arguments.length>1,a=!1,u=arguments[1],l=u;return new s(function(c){return i.subscribe({next:function(d){var h=!a;if(a=!0,!h||o)try{l=r(l,d)}catch(m){return c.error(m)}else l=d},error:function(d){c.error(d)},complete:function(){if(!a&&!o)return c.error(new TypeError("Cannot reduce an empty sequence"));c.next(l),c.complete()}})})},e.concat=function(){for(var r=this,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=Xc(this);return new a(function(u){var l,c=0;function d(h){l=h.subscribe({next:function(m){u.next(m)},error:function(m){u.error(m)},complete:function(){c===s.length?(l=void 0,u.complete()):d(a.from(s[c++]))}})}return d(r),function(){l&&(l.unsubscribe(),l=void 0)}})},e.flatMap=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Xc(this);return new s(function(o){var a=[],u=i.subscribe({next:function(c){if(r)try{c=r(c)}catch(h){return o.error(h)}var d=s.from(c).subscribe({next:function(h){o.next(h)},error:function(h){o.error(h)},complete:function(){var h=a.indexOf(d);h>=0&&a.splice(h,1),l()}});a.push(d)},error:function(c){o.error(c)},complete:function(){l()}});function l(){u.closed&&a.length===0&&o.complete()}return function(){a.forEach(function(c){return c.unsubscribe()}),u.unsubscribe()}})},e[dv]=function(){return this},t.from=function(r){var i=typeof this=="function"?this:t;if(r==null)throw new TypeError(r+" is not an object");var s=i0(r,dv);if(s){var o=s.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return MF(o)&&o.constructor===i?o:new i(function(a){return o.subscribe(a)})}if(o_("iterator")&&(s=i0(r,LF),s))return new i(function(a){Dp(function(){if(!a.closed){for(var u=qF(s.call(r)),l;!(l=u()).done;){var c=l.value;if(a.next(c),a.closed)return}a.complete()}})});if(Array.isArray(r))return new i(function(a){Dp(function(){if(!a.closed){for(var u=0;u<r.length;++u)if(a.next(r[u]),a.closed)return;a.complete()}})});throw new TypeError(r+" is not observable")},t.of=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o=typeof this=="function"?this:t;return new o(function(a){Dp(function(){if(!a.closed){for(var u=0;u<i.length;++u)if(a.next(i[u]),a.closed)return;a.complete()}})})},i_(t,null,[{key:F5,get:function(){return this}}]),t}();s_()&&Object.defineProperty(Dn,Symbol("extensions"),{value:{symbol:dv,hostReportError:Gl},configurable:!0});function UF(t){var e,n=t.Symbol;if(typeof n=="function")if(n.observable)e=n.observable;else{typeof n.for=="function"?e=n.for("https://github.com/benlesh/symbol-observable"):e=n("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch{}}else e="@@observable";return e}var pl;typeof self<"u"?pl=self:typeof window<"u"?pl=window:typeof global<"u"?pl=global:typeof pr<"u"?pl=pr:pl=Function("return this")();UF(pl);var I3=Dn.prototype,O3="@@observable";I3[O3]||(I3[O3]=function(){return this});var HF=Object.prototype.toString;function B5(t){return pv(t)}function pv(t,e){switch(HF.call(t)){case"[object Array]":{if(e=e||new Map,e.has(t))return e.get(t);var n=t.slice(0);
53return e.set(t,n),n.forEach(function(i,s){n[s]=pv(i,e)}),n}case"[object Object]":{if(e=e||new Map,e.has(t))return e.get(t);var r=Object.create(Object.getPrototypeOf(t));return e.set(t,r),Object.keys(t).forEach(function(i){r[i]=pv(t[i],e)}),r}default:return t}}function VF(t){var e=new Set([t]);return e.forEach(function(n){lr(n)&&WF(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){lr(n[r])&&e.add(n[r])})}),t}function WF(t){if(__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function mv(t){return __DEV__&&VF(t),t}function Tf(t,e,n){var r=[];t.forEach(function(i){return i[e]&&r.push(i)}),r.forEach(function(i){return i[e](n)})}function r1(t,e,n){return new Dn(function(r){var i=r.next,s=r.error,o=r.complete,a=0,u=!1,l={then:function(m){return new Promise(function(g){return g(m())})}};function c(m,g){return m?function(k){++a;var y=function(){return m(k)};l=l.then(y,y).then(function(b){--a,i&&i.call(r,b),u&&d.complete()},function(b){throw--a,b}).catch(function(b){s&&s.call(r,b)})}:function(k){return g&&g.call(r,k)}}var d={next:c(e,i),error:c(n,s),complete:function(){u=!0,a||o&&o.call(r)}},h=t.subscribe(d);return function(){return h.unsubscribe()}})}var Bu=typeof WeakMap=="function"&&_s(function(){return navigator.product})!=="ReactNative",GF=typeof WeakSet=="function",z5=typeof Symbol=="function"&&typeof Symbol.for=="function",X0=z5&&Symbol.asyncIterator;_s(function(){return window.document.createElement});_s(function(){return navigator.userAgent.indexOf("jsdom")>=0});function j5(t){function e(n){Object.defineProperty(t,n,{value:Dn})}return z5&&Symbol.species&&e(Symbol.species),e("@@species"),t}function N3(t){return t&&typeof t.then=="function"}var ml=function(t){Xr(e,t);function e(n){var r=t.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,s){r.resolve=i,r.reject=s}),r.handlers={next:function(i){r.sub!==null&&(r.latest=["next",i],r.notify("next",i),Tf(r.observers,"next",i))},error:function(i){var s=r.sub;s!==null&&(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),Tf(r.observers,"error",i))},complete:function(){var i=r,s=i.sub,o=i.sources,a=o===void 0?[]:o;if(s!==null){var u=a.shift();u?N3(u)?u.then(function(l){return r.sub=l.subscribe(r.handlers)}):r.sub=u.subscribe(r.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Tf(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.complete()},r.promise.catch(function(i){}),typeof n=="function"&&(n=[new Dn(n)]),N3(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return e.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},e.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},e.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},e.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(s){return s(n,r)}))},e.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,s){r||(r=!0,n(i,s))})},e}(Dn);j5(ml);function Cl(t){return"incremental"in t}function YF(t){return"hasNext"in t&&"data"in t}function QF(t){return Cl(t)||YF(t)}function ZF(t){return lr(t)&&"payload"in t}function U5(t,e){var n=t,r=new xa;return Cl(e)&&ho(e.incremental)&&e.incremental.forEach(function(i){for(var s=i.data,o=i.path,a=o.length-1;a>=0;--a){var u=o[a],l=!isNaN(+u),c=l?[]:{};c[u]=s,s=c}n=r.merge(n,s)}),n}function Ip(t){var e=gv(t);return ho(e)}function gv(t){var e=ho(t.errors)?t.errors.slice(0):[];return Cl(t)&&ho(t.incremental)&&t.incremental.forEach(function(n){n.errors&&e.push.apply(e,n.errors)}),e}function K0(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object.create(null);return t.forEach(function(r){r&&Object.keys(r).forEach(function(i){var s=r[i];s!==void 0&&(n[i]=s)})}),n}var R3=new Map;function vv(t){var e=R3.get(t)||1;return R3.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function XF(t){var e=vv("stringifyForDisplay");return JSON.stringify(t,function(n,r){return r===void 0?e:r}).split(JSON.stringify(e)).join("<undefined>")}function Op(t,e){return K0(t,e,e.variables&&{variables:ke(ke({},t&&t.variables),e.variables)})}function Mf(t){return new Dn(function(e){e.error(t)})}function KF(t){var e=!1;return new Promise(function(n,r){t.subscribe({next:function(i){e?__DEV__&&ut.warn("Promise Wrapper does not support multiple results from Observable"):(e=!0,n(i))},error:r})})}function JF(t){return new Dn(function(e){t.then(function(n){e.next(n),e.complete()}).catch(e.error.bind(e))})}var s0=function(t,e,n){var r=new Error(n);throw r.name="ServerError",r.response=t,r.statusCode=t.status,r.result=e,r};function eL(t){for(var e=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(e.indexOf(i)<0)throw __DEV__?new In("illegal argument: ".concat(i)):new In(27)}return t}function tL(t,e){var n=ke({},t),r=function(s){typeof s=="function"?n=ke(ke({},n),s(n)):n=ke(ke({},n),s)},i=function(){return ke({},n)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:r}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function nL(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName=typeof e.query!="string"?fv(e.query)||void 0:""),e}function P3(t,e){return e?e(t):Dn.of()}function Kc(t){return typeof t=="function"?new Ai(t):t}function Uh(t){return t.request.length<=1}
53var rL=function(t){Xr(e,t);function e(n,r){var i=t.call(this,n)||this;return i.link=r,i}return e}(Error),Ai=function(){function t(e){e&&(this.request=e)}return t.empty=function(){return new t(function(){return Dn.of()})},t.from=function(e){return e.length===0?t.empty():e.map(Kc).reduce(function(n,r){return n.concat(r)})},t.split=function(e,n,r){var i=Kc(n),s=Kc(r||new t(P3));return Uh(i)&&Uh(s)?new t(function(o){return e(o)?i.request(o)||Dn.of():s.request(o)||Dn.of()}):new t(function(o,a){return e(o)?i.request(o,a)||Dn.of():s.request(o,a)||Dn.of()})},t.execute=function(e,n){return e.request(tL(n.context,nL(eL(n))))||Dn.of()},t.concat=function(e,n){var r=Kc(e);if(Uh(r))return __DEV__&&ut.warn(new rL("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Kc(n);return Uh(i)?new t(function(s){return r.request(s,function(o){return i.request(o)||Dn.of()})||Dn.of()}):new t(function(s,o){return r.request(s,function(a){return i.request(a,o)||Dn.of()})||Dn.of()})},t.prototype.split=function(e,n,r){return this.concat(t.split(e,n,r||new t(P3)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(e,n){throw __DEV__?new In("request is not implemented"):new In(22)},t.prototype.onError=function(e,n){if(n&&n.error)return n.error(e),!1;throw e},t.prototype.setOnError=function(e){return this.onError=e,this},t}(),iL=Ai.empty,sL=Ai.from,oL=Ai.split,aL=Ai.concat,o0=Ai.execute,uL="3.7.17";function lL(t){return!!t.body}function cL(t){return!!t.getReader}function fL(t){return!!(X0&&t[Symbol.asyncIterator])}function dL(t){return!!t.stream}function hL(t){return!!t.arrayBuffer}function pL(t){return!!t.pipe}function mL(t){var e,n=t[Symbol.asyncIterator]();return e={next:function(){return n.next()}},e[Symbol.asyncIterator]=function(){return this},e}function gL(t){var e=null,n=null,r=!1,i=[],s=[];function o(d){if(!n){if(s.length){var h=s.shift();if(Array.isArray(h)&&h[0])return h[0]({value:d,done:!1})}i.push(d)}}function a(d){n=d;var h=s.slice();h.forEach(function(m){m[1](d)}),!e||e()}function u(){r=!0;var d=s.slice();d.forEach(function(h){h[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,t.removeListener("data",o),t.removeListener("error",a),t.removeListener("end",u),t.removeListener("finish",u),t.removeListener("close",u)},t.on("data",o),t.on("error",a),t.on("end",u),t.on("finish",u),t.on("close",u);function l(){return new Promise(function(d,h){if(n)return h(n);if(i.length)return d({value:i.shift(),done:!1});if(r)return d({value:void 0,done:!0});s.push([d,h])})}var c={next:function(){return l()}};return X0&&(c[Symbol.asyncIterator]=function(){return this}),c}function vL(t){var e=!1,n={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(r,i){t.then(function(s){r({value:s,done:!1})}).catch(i)}))}};return X0&&(n[Symbol.asyncIterator]=function(){return this}),n}function x3(t){var e={next:function(){return t.read()}};return X0&&(e[Symbol.asyncIterator]=function(){return this}),e}function bL(t){var e=t;if(lL(t)&&(e=t.body),fL(e))return mL(e);if(cL(e))return x3(e.getReader());if(dL(e))return x3(e.stream().getReader());if(hL(e))return vL(e.arrayBuffer());if(pL(e))return gL(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var u_=Symbol();function _L(t){return t.extensions?Array.isArray(t.extensions[u_]):!1}function H5(t){return t.hasOwnProperty("graphQLErrors")}var yL=function(t){var e=Oa(Oa(Oa([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(n){return lr(n)&&n.message||"Error message not found."}).join(` 54`)},cu=function(t){Xr(e,t);function e(n){var r=n.graphQLErrors,i=n.protocolErrors,s=n.clientErrors,o=n.networkError,a=n.errorMessage,u=n.extraInfo,l=t.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=s||[],l.networkError=o||null,l.message=a||yL(l),l.extraInfo=u,l.__proto__=e.prototype,l}return e}(Error),q3=Object.prototype.hasOwnProperty;function wL(t,e){var n,r,i,s,o;return _a(this,void 0,void 0,function(){var a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H;return ya(this,function(J){switch(J.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),u=(n=t.headers)===null||n===void 0?void 0:n.get("content-type"),l="boundary=",c=u!=null&&u.includes(l)?u==null?void 0:u.substring((u==null?void 0:u.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",d=`\r 55--`.concat(c),h="",m=bL(t),g=!0,J.label=1;case 1:return g?[4,m.next()]:[3,3];case 2:for(k=J.sent(),y=k.value,b=k.done,S=typeof y=="string"?y:a.decode(y),$=h.length-d.length+1,g=!b,h+=S,D=h.indexOf(d,$);D>-1;){if(P=void 0,V=[h.slice(0,D),h.slice(D+d.length)],P=V[0],h=V[1],x=P.indexOf(`\r 56\r 57`),R=EL(P.slice(0,x)),q=R["content-type"],q&&q.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");
57if(F=P.slice(x),F)try{L=V5(t,F),Object.keys(L).length>1||"data"in L||"incremental"in L||"errors"in L||"payload"in L?ZF(L)?(M={},"payload"in L&&(M=ke({},L.payload)),"errors"in L&&(M=ke(ke({},M),{extensions:ke(ke({},"extensions"in M?M.extensions:null),(H={},H[u_]=L.errors,H))})),(r=e.next)===null||r===void 0||r.call(e,M)):(i=e.next)===null||i===void 0||i.call(e,L):Object.keys(L).length===1&&"hasNext"in L&&!L.hasNext&&((s=e.complete)===null||s===void 0||s.call(e))}catch(Z){l_(Z,e)}D=h.indexOf(d)}return[3,1];case 3:return(o=e.complete)===null||o===void 0||o.call(e),[2]}})})}function EL(t){var e={};return t.split(` 58`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),s=n.slice(r+1).trim();e[i]=s}}),e}function V5(t,e){if(t.status>=300){var n=function(){try{return JSON.parse(e)}catch{return e}};s0(t,n(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var r=i;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}function l_(t,e){var n,r;t.name!=="AbortError"&&(t.result&&t.result.errors&&t.result.data&&((n=e.next)===null||n===void 0||n.call(e,t.result)),(r=e.error)===null||r===void 0||r.call(e,t))}function kL(t,e,n){J0(e)(t).then(function(r){var i,s;(i=n.next)===null||i===void 0||i.call(n,r),(s=n.complete)===null||s===void 0||s.call(n)}).catch(function(r){return l_(r,n)})}function J0(t){return function(e){return e.text().then(function(n){return V5(e,n)}).then(function(n){return e.status>=300&&s0(e,n,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(n)&&!q3.call(n,"data")&&!q3.call(n,"errors")&&s0(e,n,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(r){return r.operationName}):t.operationName,"'.")),n})}}var Yl=function(t,e){var n;try{n=JSON.stringify(t)}catch(i){var r=__DEV__?new In("Network request failed. ".concat(e," is not serializable: ").concat(i.message)):new In(24);throw r.parseError=i,r}return n},SL={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},TL={accept:"*/*","content-type":"application/json"},$L={method:"POST"},em={http:SL,headers:TL,options:$L},md=function(t,e){return e(t)};function W5(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return n.unshift(e),gd.apply(void 0,Oa([t,md],n,!1))}function gd(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},s={};n.forEach(function(d){i=ke(ke(ke({},i),d.options),{headers:ke(ke({},i.headers),d.headers)}),d.credentials&&(i.credentials=d.credentials),s=ke(ke({},s),d.http)}),i.headers&&(i.headers=CL(i.headers,s.preserveHeaderCase));var o=t.operationName,a=t.extensions,u=t.variables,l=t.query,c={operationName:o,variables:u};return s.includeExtensions&&(c.extensions=a),s.includeQuery&&(c.query=e(l,iF)),{options:i,body:c}}function CL(t,e){if(!e){var n=Object.create(null);return Object.keys(Object(t)).forEach(function(s){n[s.toLowerCase()]=t[s]}),n}var r=Object.create(null);Object.keys(Object(t)).forEach(function(s){r[s.toLowerCase()]={originalName:s,value:t[s]}});var i=Object.create(null);return Object.keys(r).forEach(function(s){i[r[s].originalName]=r[s].value}),i}var tm=function(t){if(!t&&typeof fetch>"u")throw __DEV__?new In(` 59"fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example: 60 61import fetch from 'cross-fetch'; 62import { ApolloClient, HttpLink } from '@apollo/client'; 63const client = new ApolloClient({ 64 link: new HttpLink({ uri: '/graphql', fetch }) 65}); 66 `):new In(23)},nm=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},Bf=function(t,e){var n=t.getContext(),r=n.uri;return r||(typeof e=="function"?e(t):e||"/graphql")};function c_(t,e){var n=[],r=function(d,h){n.push("".concat(d,"=").concat(encodeURIComponent(h)))};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){var i=void 0;try{i=Yl(e.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",i)}if(e.extensions){var s=void 0;try{s=Yl(e.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",s)}var o="",a=t,u=t.indexOf("#");u!==-1&&(o=t.substr(u),a=t.substr(0,u));var l=a.indexOf("?")===-1?"?":"&",c=a+l+n.join("&")+o;return{newURI:c}}var F3=_s(function(){return fetch}),f_=function(t){t===void 0&&(t={});var e=t.uri,n=e===void 0?"/graphql":e,r=t.fetch,i=t.print,s=i===void 0?md:i,o=t.includeExtensions,a=t.preserveHeaderCase,u=t.useGETForQueries,l=t.includeUnusedVariables,c=l===void 0?!1:l,d=Pa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&tm(r||F3);var h={http:{includeExtensions:o,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Ai(function(m){var g=Bf(m,n),k=m.getContext(),y={};if(k.clientAwareness){var b=k.clientAwareness,S=b.name,$=b.version;S&&(y["apollographql-client-name"]=S),$&&(y["apollographql-client-version"]=$)}var D=ke(ke({},y),k.headers),P={http:k.http,options:k.fetchOptions,credentials:k.credentials,headers:D},x=gd(m,s,em,h,P),R=x.options,q=x.body;if(q.variables&&!c){var F=new Set(Object.keys(q.variables));Uo(m.query,{Variable:function(Ae,ee,ue){ue&&ue.kind!=="VariableDefinition"&&F.delete(Ae.name.value)}}),F.size&&(q.variables=ke({},q.variables),F.forEach(function(Ae){delete q.variables[Ae]}))}var L;if(!R.signal){var M=nm(),V=M.controller,H=M.signal;L=V,L&&(R.signal=H)}var J=function(Ae){return Ae.kind==="OperationDefinition"&&Ae.operation==="mutation"},Z=function(Ae){return Ae.kind==="OperationDefinition"&&Ae.operation==="subscription"},Q=Z(Z0(m.query)),K=Zb(["defer"],m.query);if(u&&!m.query.definitions.some(J)&&(R.method="GET"),K||Q){R.headers=R.headers||{};var G="multipart/mixed;";Q&&K&&__DEV__&&ut.warn("Multipart-subscriptions do not support @defer"),Q?G+="boundary=graphql;subscriptionSpec=1.0,application/json":K&&(G+="deferSpec=20220824,application/json"),R.headers.accept=G}if(R.method==="GET"){var se=c_(g,q),fe=se.newURI,me=se.parseError;if(me)return Mf(me);g=fe}else try{R.body=Yl(q,"Payload")}catch(Ae){return Mf(Ae)}
66return new Dn(function(Ae){var ee=r||_s(function(){return fetch})||F3;return ee(g,R).then(function(ue){var ie;m.setContext({response:ue});var de=(ie=ue.headers)===null||ie===void 0?void 0:ie.get("content-type");return de!==null&&/^multipart\/mixed/i.test(de)?wL(ue,Ae):kL(ue,m,Ae)}).catch(function(ue){return l_(ue,Ae)}),function(){L&&L.abort()}})})},d_=function(t){Xr(e,t);function e(n){n===void 0&&(n={});var r=t.call(this,f_(n).request)||this;return r.options=n,r}return e}(Ai);const AL=Object.freeze(Object.defineProperty({__proto__:null,HttpLink:d_,checkFetcher:tm,createHttpLink:f_,createSignalIfSupported:nm,defaultPrinter:md,fallbackHttpConfig:em,parseAndCheckHttpResponse:J0,rewriteURIForGET:c_,selectHttpOptionsAndBody:W5,selectHttpOptionsAndBodyInternal:gd,selectURI:Bf,serializeFetchParameter:Yl},Symbol.toStringTag,{value:"Module"})),{toString:L3,hasOwnProperty:DL}=Object.prototype,M3=Function.prototype.toString,bv=new Map;function Mr(t,e){try{return _v(t,e)}finally{bv.clear()}}function _v(t,e){if(t===e)return!0;const n=L3.call(t),r=L3.call(e);if(n!==r)return!1;switch(n){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(z3(t,e))return!0;const i=B3(t),s=B3(e),o=i.length;if(o!==s.length)return!1;for(let a=0;a<o;++a)if(!DL.call(e,i[a]))return!1;for(let a=0;a<o;++a){const u=i[a];if(!_v(t[u],e[u]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(z3(t,e))return!0;const i=t.entries(),s=n==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[a,u]=o.value;if(!e.has(a)||s&&!_v(u,e.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=M3.call(t);return i!==M3.call(e)?!1:!NL(i,OL)}}return!1}function B3(t){return Object.keys(t).filter(IL,t)}function IL(t){return this[t]!==void 0}const OL="{ [native code] }";function NL(t,e){const n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}function z3(t,e){let n=bv.get(t);if(n){if(n.has(e))return!0}else bv.set(t,n=new Set);return n.add(e),!1}var RL=function(){return Object.create(null)},G5=Array.prototype,PL=G5.forEach,xL=G5.slice,qL=function(){function t(e,n){e===void 0&&(e=!0),n===void 0&&(n=RL),this.weakness=e,this.makeData=n}return t.prototype.lookup=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.lookupArray(e)},t.prototype.lookupArray=function(e){var n=this;return PL.call(e,function(r){return n=n.getChildTrie(r)}),n.data||(n.data=this.makeData(xL.call(e)))},t.prototype.getChildTrie=function(e){var n=this.weakness&&FL(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(e);return r||n.set(e,r=new t(this.weakness,this.makeData)),r},t}();function FL(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}let ti=null;const j3={};let LL=1;const ML=()=>class{constructor(){this.id=["slot",LL++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=ti;e;e=e.parent)if(this.id in e.slots){const n=e.slots[this.id];if(n===j3)break;return e!==ti&&(ti.slots[this.id]=n),!0}return ti&&(ti.slots[this.id]=j3),!1}getValue(){if(this.hasValue())return ti.slots[this.id]}withValue(e,n,r,i){const s={__proto__:null,[this.id]:e},o=ti;ti={parent:o,slots:s};try{return n.apply(i,r)}finally{ti=o}}static bind(e){const n=ti;return function(){const r=ti;try{return ti=n,e.apply(this,arguments)}finally{ti=r}}}static noContext(e,n,r){if(ti){const i=ti;try{return ti=null,e.apply(r,n)}finally{ti=i}}else return e.apply(r,n)}};function U3(t){try{return t()}catch{}}const i1="@wry/context:Slot",BL=U3(()=>globalThis)||U3(()=>global)||Object.create(null),H3=BL,Y5=H3[i1]||Array[i1]||function(t){try{Object.defineProperty(H3,i1,{value:t,enumerable:!1,writable:!1,
66configurable:!0})}finally{return t}}(ML());function zL(){}var jL=function(){function t(e,n){e===void 0&&(e=1/0),n===void 0&&(n=zL),this.max=e,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(e){return this.map.has(e)},t.prototype.get=function(e){var n=this.getNode(e);return n&&n.value},t.prototype.getNode=function(e){var n=this.map.get(e);if(n&&n!==this.newest){var r=n.older,i=n.newer;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n},t.prototype.set=function(e,n){var r=this.getNode(e);return r?r.value=n:(r={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(e){var n=this.map.get(e);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(e),this.dispose(n.value,e),!0):!1},t}(),rm=new Y5,s1,UL=Object.prototype.hasOwnProperty,h_=(s1=Array.from,s1===void 0?function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e}:s1);function a0(t){var e=t.unsubscribe;typeof e=="function"&&(t.unsubscribe=void 0,e())}var zf=[],HL=100;function Ql(t,e){if(!t)throw new Error(e||"assertion failure")}function VL(t,e){var n=t.length;return n>0&&n===e.length&&t[n-1]===e[n-1]}function Q5(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function WL(t){return t.slice(0)}var GL=function(){function t(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}return t.prototype.peek=function(){if(this.value.length===1&&!qa(this))return V3(this),this.value[0]},t.prototype.recompute=function(e){return Ql(!this.recomputing,"already recomputing"),V3(this),qa(this)?YL(this,e):Q5(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Z5(this),a0(this))},t.prototype.dispose=function(){var e=this;this.setDirty(),tT(this),p_(this,function(n,r){n.setDirty(),nT(n,e)})},t.prototype.forget=function(){this.dispose()}
vendor: 1,391 bytes, line 66
66,t.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=zf.pop()||new Set),this.deps.add(e)},t.prototype.forgetDeps=function(){var e=this;this.deps&&(h_(this.deps).forEach(function(n){return n.delete(e)}),this.deps.clear(),zf.push(this.deps),this.deps=null)},t.count=0,t}();function V3(t){var e=rm.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),qa(t)?K5(e,t):J5(e,t),e}function YL(t,e){return tT(t),rm.withValue(t,QL,[t,e]),XL(t,e)&&ZL(t),Q5(t.value)}function QL(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(n){t.value[1]=n}t.recomputing=!1}function qa(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function ZL(t){t.dirty=!1,!qa(t)&&X5(t)}function Z5(t){p_(t,K5)}function X5(t){p_(t,J5)}function p_(t,e){var n=t.parents.size;if(n)for(var r=h_(t.parents),i=0;i<n;++i)e(r[i],t)}function K5(t,e){Ql(t.childValues.has(e)),Ql(qa(e));var n=!qa(t);if(!t.dirtyChildren)t.dirtyChildren=zf.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),n&&Z5(t)}function J5(t,e){Ql(t.childValues.has(e)),Ql(!qa(e));var n=t.childValues.get(e);n.length===0?t.childValues.set(e,WL(e.value)):VL(n,e.value)||t.setDirty(),eT(t,e),!qa(t)&&X5(t)}function eT(t,e){var n=t.dirtyChildren;n&&(n.delete(e),n.size===0&&(zf.length<HL&&zf.push(n),t.dirtyChildren=null))}function tT(t){t.childValues.size>
660&&t.childValues.forEach(function(e,n){nT(t,n)}),t.forgetDeps(),Ql(t.dirtyChildren===null)}function nT(t,e){e.parents.delete(t),t.childValues.delete(e),eT(t,e)}function XL(t,e){if(typeof t.subscribe=="function")try{a0(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}var KL={setDirty:!0,dispose:!0,forget:!0};function rT(t){var e=new Map,n=t&&t.subscribe;function r(i){var s=rm.getValue();if(s){var o=e.get(i);o||e.set(i,o=new Set),s.dependOn(o),typeof n=="function"&&(a0(o),o.unsubscribe=n(i))}}return r.dirty=function(s,o){var a=e.get(s);if(a){var u=o&&UL.call(KL,o)?o:"setDirty";h_(a).forEach(function(l){return l[u]()}),e.delete(s),a0(a)}},r}function iT(){var t=new qL(typeof WeakMap=="function");return function(){return t.lookupArray(arguments)}}iT();var o1=new Set;function u0(t,e){e===void 0&&(e=Object.create(null));var n=new jL(e.max||Math.pow(2,16),function(l){return l.dispose()}),r=e.keyArgs,i=e.makeCacheKey||iT(),s=function(){var l=i.apply(null,r?r.apply(null,arguments):arguments);if(l===void 0)return t.apply(null,arguments);var c=n.get(l);c||(n.set(l,c=new GL(t)),c.subscribe=e.subscribe,c.forget=function(){return n.delete(l)});var d=c.recompute(Array.prototype.slice.call(arguments));return n.set(l,c),o1.add(n),rm.hasValue()||(o1.forEach(function(h){return h.clean()}),o1.clear()),d};Object.defineProperty(s,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1});function o(l){var c=n.get(l);c&&c.setDirty()}s.dirtyKey=o,s.dirty=function(){o(i.apply(null,arguments))};function a(l){var c=n.get(l);if(c)return c.peek()}s.peekKey=a,s.peek=function(){return a(i.apply(null,arguments))};function u(l){return n.delete(l)}return s.forgetKey=u,s.forget=function(){return u(i.apply(null,arguments))},s.makeCacheKey=i,s.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(s)}var sT=function(){function t(){this.getFragmentDoc=u0(dF)}return t.prototype.batch=function(e){var n=this,r=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(n)},r),i},t.prototype.recordOptimisticTransaction=function(e,n){this.performTransaction(e,n)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,n){return n===void 0&&(n=!!e.optimistic),this.read(ke(ke({},e),{rootId:e.id||"ROOT_QUERY",optimistic:n}))},t.prototype.readFragment=function(e,n){return n===void 0&&(n=!!e.optimistic),this.read(ke(ke({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:n}))},t.prototype.writeQuery=function(e){var n=e.id,r=e.data,i=Pa(e,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},t.prototype.writeFragment=function(e){var n=e.id,r=e.data,i=e.fragment,s=e.fragmentName,o=Pa(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,s),dataId:n,result:r}))},t.prototype.updateQuery=function(e,n){return this.batch({update:function(r){var i=r.readQuery(e),s=n(i);return s==null?i:(r.writeQuery(ke(ke({},e),{data:s})),s)}})},t.prototype.updateFragment=function(e,n){return this.batch({update:function(r){var i=r.readFragment(e),s=n(i);return s==null?i:(r.writeFragment(ke(ke({},e),{data:s})),s)}})},t}(),yv;yv||(yv={});var m_=function(t){Xr(e,t);function e(n,r,i,s){var o,a=t.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=s,Array.isArray(a.path)){a.missing=a.message;for(var u=a.path.length-1;u>=0;--u)a.missing=(o={},o[a.path[u]]=a.missing,o)}else a.missing=a.path;return a.__proto__=e.prototype,a}return e}(Error);const JL=()=>Object.create(null),{forEach:eM,slice:tM}=Array.prototype,{hasOwnProperty:nM}=Object.prototype;class hc{constructor(e=!0,n=JL){this.weakness=e,this.makeData=n}lookup(...e){return this.lookupArray(e)}lookupArray(e){let n=this;return eM.call(e,r=>n=n.getChildTrie(r)),nM.call(n,"data")?n.data:n.data=this.makeData(tM.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let n=this;for(let r=0,i=e.length;n&&r<i;++r){const s=this.weakness&&W3(e[r])?n.weak:n.strong;n=s&&s.get(e[r])}return n&&n.data}getChildTrie(e){const n=this.weakness&&W3(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let r=n.get(e);return r||n.set(e,r=new hc(this.weakness,this.makeData)),r}}function W3(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}var Vr=Object.prototype.hasOwnProperty;
66function Jc(t){return t==null}function g_(t,e){var n=t.__typename,r=t.id,i=t._id;if(typeof n=="string"&&(e&&(e.keyObject=Jc(r)?Jc(i)?void 0:{_id:i}:{id:r}),Jc(r)&&!Jc(i)&&(r=i),!Jc(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var oT={dataIdFromObject:g_,addTypename:!0,resultCaching:!0,canonizeResults:!1};function rM(t){return K0(oT,t)}function aT(t){var e=t.canonizeResults;return e===void 0?oT.canonizeResults:e}function iM(t,e){return Nn(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var uT=/^[_a-z][_0-9a-z]*/i;function Fa(t){var e=t.match(uT);return e?e[0]:t}function wv(t,e,n){return lr(e)?_r(e)?e.every(function(r){return wv(t,r,n)}):t.selections.every(function(r){if(Ou(r)&&G0(r,n)){var i=Iu(r);return Vr.call(e,i)&&(!r.selectionSet||wv(r.selectionSet,e[i],n))}return!0}):!1}function bl(t){return lr(t)&&!Nn(t)&&!_r(t)}function sM(){return new xa}function lT(t,e){var n=Xb(e_(t));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&e&&(i=e.lookup(r)),i||null}}}var Np=Object.create(null),a1=function(){return Np},G3=Object.create(null),jf=function(){function t(e,n){var r=this;this.policies=e,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,s){return mv(Nn(i)?r.get(i.__ref,s):i&&i[s])},this.canRead=function(i){return Nn(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,s){if(typeof i=="string")return ku(i);if(Nn(i))return i;var o=r.policies.identify(i)[0];if(o){var a=ku(o);return s&&r.merge(o,i),a}}}return t.prototype.toObject=function(){return ke({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,n){if(this.group.depend(e,n),Vr.call(this.data,e)){var r=this.data[e];if(r&&Vr.call(r,n))return r[n]}if(n==="__typename"&&Vr.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof pa)return this.parent.get(e,n)},t.prototype.lookup=function(e,n){if(n&&this.group.depend(e,"__exists"),Vr.call(this.data,e))return this.data[e];if(this instanceof pa)return this.parent.lookup(e,n);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,n){var r=this,i;Nn(e)&&(e=e.__ref),Nn(n)&&(n=n.__ref);var s=typeof e=="string"?this.lookup(i=e):e,o=typeof n=="string"?this.lookup(i=n):n;if(o){__DEV__?ut(typeof i=="string","store.merge expects a string ID"):ut(typeof i=="string",1);var a=new xa(aM).merge(s,o);if(this.data[i]=a,a!==s&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);s||(u.__exists=1),Object.keys(o).forEach(function(l){if(!s||s[l]!==a[l]){u[l]=1;var c=Fa(l);c!==l&&!r.policies.hasKeyArgs(a.__typename,c)&&(u[c]=1),a[l]===void 0&&!(r instanceof pa)&&delete a[l]}}),u.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete u.__typename,Object.keys(u).forEach(function(l){return r.group.dirty(i,l)})}}},t.prototype.modify=function(e,n){var r=this,i=this.lookup(e);if(i){var s=Object.create(null),o=!1,a=!0,u={DELETE:Np,INVALIDATE:G3,isReference:Nn,toReference:this.toReference,canRead:this.canRead,readField:function(l,c){return r.policies.readField(typeof l=="string"?{fieldName:l,from:c||ku(e)}:l,{store:r})}};
66if(Object.keys(i).forEach(function(l){var c=Fa(l),d=i[l];if(d!==void 0){var h=typeof n=="function"?n:n[l]||n[c];if(h){var m=h===a1?Np:h(mv(d),ke(ke({},u),{fieldName:c,storeFieldName:l,storage:r.getStorage(e,l)}));m===G3?r.group.dirty(e,l):(m===Np&&(m=void 0),m!==d&&(s[l]=m,o=!0,d=m))}d!==void 0&&(a=!1)}}),o)return this.merge(e,s),a&&(this instanceof pa?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,n,r){var i,s=this.lookup(e);if(s){var o=this.getFieldValue(s,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(e,a?(i={},i[a]=a1,i):a1)}return!1},t.prototype.evict=function(e,n){var r=!1;return e.id&&(Vr.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof pa&&this!==n&&(r=this.parent.evict(e,n)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Vr.call(e.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},t.prototype.replace=function(e){var n=this;if(Object.keys(this.data).forEach(function(s){e&&Vr.call(e,s)||n.delete(s)}),e){var r=e.__META,i=Pa(e,["__META"]);
66Object.keys(i).forEach(function(s){n.merge(s,i[s])}),r&&r.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var n=--this.rootIds[e];return n||delete this.rootIds[e],n}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof pa?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(o){Vr.call(r,o)&&(Object.keys(e.findChildRefIds(o)).forEach(n.add,n),delete r[o])});var i=Object.keys(r);if(i.length){for(var s=this;s instanceof pa;)s=s.parent;i.forEach(function(o){return s.delete(o)})}return i},t.prototype.findChildRefIds=function(e){if(!Vr.call(this.refs,e)){var n=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return n;var i=new Set([r]);i.forEach(function(s){Nn(s)&&(n[s.__ref]=!0),lr(s)&&Object.keys(s).forEach(function(o){var a=s[o];lr(a)&&i.add(a)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),cT=function(){function t(e,n){n===void 0&&(n=null),this.caching=e,this.parent=n,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?rT():null,this.keyMaker=new hc(Bu)}
66,t.prototype.depend=function(e,n){if(this.d){this.d(u1(e,n));var r=Fa(n);r!==n&&this.d(u1(e,r)),this.parent&&this.parent.depend(e,n)}},t.prototype.dirty=function(e,n){this.d&&this.d.dirty(u1(e,n),n==="__exists"?"forget":"setDirty")},t}();function u1(t,e){return e+"#"+t}function Y3(t,e){$f(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(n){Xr(r,n);function r(i){var s=i.policies,o=i.resultCaching,a=o===void 0?!0:o,u=i.seed,l=n.call(this,s,new cT(a))||this;return l.stump=new oM(l),l.storageTrie=new hc(Bu),u&&l.replace(u),l}return r.prototype.addLayer=function(i,s){return this.stump.addLayer(i,s)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(t);t.Root=e})(jf||(jf={}));var pa=function(t){Xr(e,t);function e(n,r,i,s){var o=t.call(this,r.policies,s)||this;return o.id=n,o.parent=r,o.replay=i,o.group=s,i(o),o}return e.prototype.addLayer=function(n,r){return new e(n,this,r,this.group)},e.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var o=r.data[s],a=i.lookup(s);a?o?o!==a&&Object.keys(o).forEach(function(u){Mr(o[u],a[u])||r.group.dirty(s,u)}):(r.group.dirty(s,"__exists"),Object.keys(a).forEach(function(u){r.group.dirty(s,u)})):r.delete(s)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return ke(ke({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Vr.call(this.data,n)?ke(ke({},r),t.prototype.findChildRefIds.call(this,n)):r},e.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},e}(jf),oM=function(t){Xr(e,t);function e(n){return t.call(this,"EntityStore.Stump",n,function(){},new cT(n.group.caching,n.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(pa);function aM(t,e,n){var r=t[n],i=e[n];return Mr(r,i)?r:i}function $f(t){return!!(t instanceof jf&&t.group.caching)}function uM(t){return lr(t)?_r(t)?t.slice(0):ke({__proto__:Object.getPrototypeOf(t)},t):t}var Ev=function(){function t(){this.known=new(GF?WeakSet:Set),this.pool=new hc(Bu),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return lr(e)&&this.known.has(e)},t.prototype.pass=function(e){if(lr(e)){var n=uM(e);return this.passes.set(n,e),n}return e},t.prototype.admit=function(e){var n=this;if(lr(e)){var r=this.passes.get(e);if(r)return r;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var s=e.map(this.admit,this),o=this.pool.lookupArray(s);return o.array||(this.known.add(o.array=s),__DEV__&&Object.freeze(s)),o.array}case null:case Object.prototype:{if(this.known.has(e))return e;var a=Object.getPrototypeOf(e),u=[a],l=this.sortedKeys(e);u.push(l.json);var c=u.length;l.sorted.forEach(function(m){u.push(n.admit(e[m]))});var o=this.pool.lookupArray(u);if(!o.object){var d=o.object=Object.create(a);this.known.add(d),l.sorted.forEach(function(m,g){d[m]=u[c+g]}),__DEV__&&Object.freeze(d)}return o.object}}}return e},t.prototype.sortedKeys=function(e){var n=Object.keys(e),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},t}(),Su=Object.assign(function(t){if(lr(t)){kv===void 0&&Q3();var e=kv.admit(t),n=Sv.get(e);return n===void 0&&Sv.set(e,n=JSON.stringify(e)),n}return JSON.stringify(t)},{reset:Q3}),kv,Sv;function Q3(){kv=new Ev,Sv=new(Bu?WeakMap:Map)}function Z3(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var lM=function(){function t(e){var n=this;this.knownResults=new(Bu?WeakMap:Map),this.config=K0(e,{addTypename:e.addTypename!==!1,canonizeResults:aT(e)}),this.canon=e.canon||new Ev,this.executeSelectionSet=u0(function(r){var i,s=r.context.canonizeResults,o=Z3(r);o[3]=!s;var a=(i=n.executeSelectionSet).peek.apply(i,o);return a?s?ke(ke({},a),{result:n.canon.admit(a.result)}):a:(Y3(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:Z3,makeCacheKey:function(r,i,s,o){if($f(s.store))return s.store.makeCacheKey(r,Nn(i)?i.__ref:i,s.varString,o)}}),this.executeSubSelectedArray=u0(function(r){return Y3(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,s=r.array,o=r.context;if($f(o.store))return o.store.makeCacheKey(i,s,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new Ev},t.prototype.diffQueryAgainstStore=function(e){var n=e.store,r=e.query,i=e.rootId,s=i===void 0?"ROOT_QUERY":i,o=e.variables,a=e.returnPartialData,u=a===void 0?!0:a,l=e.canonizeResults,c=l===void 0?this.config.canonizeResults:l,d=this.config.cache.policies;o=ke(ke({},t_(P5(r))),o);var h=ku(s),m=this.executeSelectionSet({selectionSet:Z0(r).selectionSet,objectOrReference:h,enclosingRef:h,context:ke({store:n,query:r,policies:d,variables:o,varString:Su(o),canonizeResults:c},lT(r,this.config.fragments))}),g;if(m.missing&&(g=[new m_(cM(m.missing),m.missing,r,o)],!u))throw g[0];return{result:m.result,complete:!g,missing:g}},t.prototype.isFresh=function(e,n,r,i){if($f(i.store)&&this.knownResults.get(e)===r){var s=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(e));if(s&&e===s.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var n=this,r=e.selectionSet,i=e.objectOrReference,s=e.enclosingRef,o=e.context;if(Nn(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var a=o.variables,u=o.policies,l=o.store,c=l.getFieldValue(i,"__typename"),d=[],h,m=new xa;this.config.addTypename&&typeof c=="string"&&!u.rootIdsByTypename[c]&&d.push({__typename:c}
66);function g($,D){var P;return $.missing&&(h=m.merge(h,(P={},P[D]=$.missing,P))),$.result}var k=new Set(r.selections);k.forEach(function($){var D,P;if(G0($,a))if(Ou($)){var x=u.readField({fieldName:$.name.value,field:$,variables:o.variables,from:i},o),R=Iu($);x===void 0?n_.added($)||(h=m.merge(h,(D={},D[R]="Can't find field '".concat($.name.value,"' on ").concat(Nn(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),D))):_r(x)?x=g(n.executeSubSelectedArray({field:$,array:x,enclosingRef:s,context:o}),R):$.selectionSet?x!=null&&(x=g(n.executeSelectionSet({selectionSet:$.selectionSet,objectOrReference:x,enclosingRef:Nn(x)?x:s,context:o}),R)):o.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&d.push((P={},P[R]=x,P))}else{var q=Kb($,o.lookupFragment);if(!q&&$.kind===wt.FRAGMENT_SPREAD)throw __DEV__?new In("No fragment named ".concat($.name.value)):new In(5);q&&u.fragmentMatches(q,c)&&q.selectionSet.selections.forEach(k.add,k)}});var y=r_(d),b={result:y,missing:h},S=o.canonizeResults?this.canon.admit(b):mv(b);return S.result&&this.knownResults.set(S.result,r),S},t.prototype.execSubSelectedArrayImpl=function(e){var n=this,r=e.field,i=e.array,s=e.enclosingRef,o=e.context,a,u=new xa;function l(c,d){var h;return c.missing&&(a=u.merge(a,(h={},h[d]=c.missing,h))),c.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(c,d){return c===null?null:_r(c)?l(n.executeSubSelectedArray({field:r,array:c,enclosingRef:s,context:o}),d):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:c,enclosingRef:Nn(c)?c:s,context:o}),d):(__DEV__&&fM(o.store,r,c),c)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:a}},t}();function cM(t){try{JSON.stringify(t,function(e,n){if(typeof n=="string")throw n;return n})}catch(e){return e}}function fM(t,e,n){if(!e.selectionSet){var r=new Set([n]);r.forEach(function(i){lr(i)&&(__DEV__?ut(!Nn(i),"Missing selection set for object of type ".concat(iM(t,i)," returned for query field ").concat(e.name.value)):ut(!Nn(i),6),Object.values(i).forEach(r.add,r))})}}var v_=new Y5,X3=new WeakMap;function Cf(t){var e=X3.get(t);return e||X3.set(t,e={vars:new Set,dep:rT()}),e}function K3(t){Cf(t).vars.forEach(function(e){return e.forgetCache(t)})}function dM(t){Cf(t).vars.forEach(function(e){return e.attachCache(t)})}function fT(t){var e=new Set,n=new Set,r=function(s){if(arguments.length>0){if(t!==s){t=s,e.forEach(function(u){Cf(u).dep.dirty(r),hM(u)});var o=Array.from(n);n.clear(),o.forEach(function(u){return u(t)})}}else{var a=v_.getValue();a&&(i(a),Cf(a).dep(r))}return t};r.onNextChange=function(s){return n.add(s),function(){n.delete(s)}};var i=r.attachCache=function(s){return e.add(s),Cf(s).vars.add(r),r};return r.forgetCache=function(s){return e.delete(s)},r}function hM(t){t.broadcastWatches&&t.broadcastWatches()}var J3=Object.create(null);function b_(t){var e=JSON.stringify(t);return J3[e]||(J3[e]=Object.create(null))}function e4(t){var e=b_(t);return e.keyFieldsFn||(e.keyFieldsFn=function(n,r){var i=function(o,a){return r.readField(a,o)},s=r.keyObject=__(t,function(o){var a=Al(r.storeObject,o,i);return a===void 0&&n!==r.storeObject&&Vr.call(n,o[0])&&(a=Al(n,o,hT)),__DEV__?ut(a!==void 0,"Missing field '".concat(o.join("."),"' while extracting keyFields from ").concat(JSON.stringify(n))):ut(a!==void 0,2),a});return"".concat(r.typename,":").concat(JSON.stringify(s))})}function t4(t){var e=b_(t);return e.keyArgsFn||(e.keyArgsFn=function(n,r){var i=r.field,s=r.variables,o=r.fieldName,a=__(t,function(l){var c=l[0],d=c.charAt(0);if(d==="@"){if(i&&ho(i.directives)){var h=c.slice(1),m=i.directives.find(function(b){return b.name.value===h}),g=m&&Y0(m,s);return g&&Al(g,l.slice(1))}return}if(d==="$"){var k=c.slice(1);if(s&&Vr.call(s,k)){var y=l.slice(0);return y[0]=k,Al(s,y)}return}if(n)return Al(n,l)}),u=JSON.stringify(a);return(n||u!=="{}")&&(o+=":"+u),o})}function __(t,e){var n=new xa;return dT(t).reduce(function(r,i){var s,o=e(i);if(o!==void 0){for(var a=i.length-1;a>=0;--a)o=(s={},s[i[a]]=o,s);r=n.merge(r,o)}return r},Object.create(null))}function dT(t){var e=b_(t);if(!e.paths){var n=e.paths=[],r=[];
66t.forEach(function(i,s){_r(i)?(dT(i).forEach(function(o){return n.push(r.concat(o))}),r.length=0):(r.push(i),_r(t[s+1])||(n.push(r.slice(0)),r.length=0))})}return e.paths}function hT(t,e){return t[e]}function Al(t,e,n){return n=n||hT,pT(e.reduce(function r(i,s){return _r(i)?i.map(function(o){return r(o,s)}):i&&n(i,s)},t))}function pT(t){return lr(t)?_r(t)?t.map(pT):__(Object.keys(t).sort(),function(e){return Al(t,e)}):t}Jb.setStringify(Su);function Tv(t){return t.args!==void 0?t.args:t.field?Y0(t.field,t.variables):null}var pM=function(){},n4=function(t,e){return e.fieldName},r4=function(t,e,n){var r=n.mergeObjects;return r(t,e)},i4=function(t,e){return e},mM=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ke({dataIdFromObject:g_},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,n){var r,i=this,s=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||e.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o=n&&n.storeObject||e,a=ke(ke({},n),{typename:s,storeObject:o,readField:n&&n.readField||function(){var h=y_(arguments,o);return i.readField(h,{store:i.cache.data,variables:h.variables})}}),u,l=s&&this.getTypePolicy(s),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var d=c(ke(ke({},e),o),a);if(_r(d))c=e4(d);else{u=d;break}}return u=u?String(u):void 0,a.keyObject?[u,a.keyObject]:[u]},t.prototype.addTypePolicies=function(e){var n=this;Object.keys(e).forEach(function(r){var i=e[r],s=i.queryType,o=i.mutationType,a=i.subscriptionType,u=Pa(i,["queryType","mutationType","subscriptionType"]);s&&n.setRootTypename("Query",r),o&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Vr.call(n.toBeAdded,r)?n.toBeAdded[r].push(u):n.toBeAdded[r]=[u]})},t.prototype.updateTypePolicy=function(e,n){var r=this,i=this.getTypePolicy(e),s=n.keyFields,o=n.fields;function a(u,l){u.merge=typeof l=="function"?l:l===!0?r4:l===!1?i4:u.merge}a(i,n.merge),i.keyFn=s===!1?pM:_r(s)?e4(s):typeof s=="function"?s:i.keyFn,o&&Object.keys(o).forEach(function(u){var l=r.getFieldPolicy(e,u,!0),c=o[u];if(typeof c=="function")l.read=c;else{var d=c.keyArgs,h=c.read,m=c.merge;l.keyFn=d===!1?n4:_r(d)?t4(d):typeof d=="function"?d:l.keyFn,typeof h=="function"&&(l.read=h),a(l,m)}l.read&&l.merge&&(l.keyFn=l.keyFn||n4)})}
66,t.prototype.setRootTypename=function(e,n){n===void 0&&(n=e);var r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(__DEV__?ut(!i||i===e,"Cannot change root ".concat(e," __typename more than once")):ut(!i||i===e,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},t.prototype.addPossibleTypes=function(e){var n=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){n.getSupertypeSet(r,!0),e[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var s=i.match(uT);(!s||s[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var n=this;if(!Vr.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(o){var a=n.getTypePolicy(o),u=a.fields,l=Pa(a,["fields"]);Object.assign(r,l),Object.assign(r.fields,u)})}var s=this.toBeAdded[e];return s&&s.length&&s.splice(0).forEach(function(o){n.updateTypePolicy(e,o)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,n,r){if(e){var i=this.getTypePolicy(e).fields;return i[n]||r&&(i[n]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,n){var r=this.supertypeMap.get(e);return!r&&n&&this.supertypeMap.set(e,r=new Set),r},t.prototype.fragmentMatches=function(e,n,r,i){var s=this;if(!e.typeCondition)return!0;if(!n)return!1;var o=e.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(n,!0),u=[a],l=function(g){var k=s.getSupertypeSet(g,!1);k&&k.size&&u.indexOf(k)<0&&u.push(k)},c=!!(r&&this.fuzzySubtypes.size),d=!1,h=0;h<u.length;++h){var m=u[h];if(m.has(o))return a.has(o)||(d&&__DEV__&&ut.warn("Inferring subtype ".concat(n," of supertype ").concat(o)),a.add(o)),!0;m.forEach(l),c&&h===u.length-1&&wv(e.selectionSet,r,i)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(g,k){var y=n.match(g);y&&y[0]===n&&l(k)}))}return!1},t.prototype.hasKeyArgs=function(e,n){var r=this.getFieldPolicy(e,n,!1);return!!(r&&r.keyFn)},t.prototype.getStoreFieldName=function(e){var n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),s,o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},u=Tv(e);o;){var l=o(u,a);if(_r(l))o=t4(l);else{s=l||r;break}}return s===void 0&&(s=e.field?kF(e.field,e.variables):Jb(r,Tv(e))),s===!1?r:r===Fa(s)?s:r+":"+s},t.prototype.readField=function(e,n){var r=e.from;if(r){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var s=n.store.getFieldValue(r,"__typename");s&&(e.typename=s)}var o=this.getStoreFieldName(e),a=Fa(o),u=n.store.getFieldValue(r,o),l=this.getFieldPolicy(e.typename,a,!1),c=l&&l.read;if(c){var d=s4(this,r,e,n,n.store.getStorage(Nn(r)?r.__ref:r,o));return v_.withValue(this.cache,c,[u,d])}return u}}},t.prototype.getReadFunction=function(e,n){var r=this.getFieldPolicy(e,n,!1);return r&&r.read},t.prototype.getMergeFunction=function(e,n,r){var i=this.getFieldPolicy(e,n,!1),s=i&&i.merge;return!s&&r&&(i=this.getTypePolicy(r),s=i&&i.merge),s},t.prototype.runMergeFunction=function(e,n,r,i,s){var o=r.field,a=r.typename,u=r.merge;return u===r4?mT(i.store)(e,n):u===i4?n:(i.overwrite&&(e=void 0),u(e,n,s4(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:i.variables},i,s||Object.create(null))))},t}();function s4(t,e,n,r,i){var s=t.getStoreFieldName(n),o=Fa(s),a=n.variables||r.variables,u=r.store,l=u.toReference,c=u.canRead;return{args:Tv(n),field:n.field||null,fieldName:o,storeFieldName:s,variables:a,isReference:Nn,toReference:l,storage:i,cache:t.cache,canRead:c,readField:function(){return t.readField(y_(arguments,e,a),r)},mergeObjects:mT(r.store)}}function y_(t,e,n){var r=t[0],i=t[1],s=t.length,o;return typeof r=="string"?o={fieldName:r,from:s>1?i:e}:(o=ke({},r),Vr.call(o,"from")||(o.from=e)),__DEV__&&o.from===void 0&&__DEV__&&ut.warn("Undefined 'from' passed to readField with arguments ".concat(XF(Array.from(t)))),o.variables===void 0&&(o.variables=n),o}function mT(t){return function(n,r){if(_r(n)||_r(r))throw __DEV__?new In("Cannot automatically merge arrays"):new In(4);if(lr(n)&&lr(r)){var i=t.getFieldValue(n,"__typename"),s=t.getFieldValue(r,"__typename"),o=i&&s&&i!==s;if(o)return r;if(Nn(n)&&bl(r))return t.merge(n.__ref,r),n;if(bl(n)&&Nn(r))return t.merge(n,r.__ref),r;if(bl(n)&&bl(r))return ke(ke({},n),r)}return r}}function l1(t,e,n){var r="".concat(e).concat(n),i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===e&&t.deferred===n?t:ke(ke({},t),{clientOnly:e,deferred:n})),i}var gM=function(){function t(e,n,r){this.cache=e,this.reader=n,this.fragments=r}return t.prototype.writeToStore=function(e,n){var r=this,i=n.query,s=n.result,o=n.dataId,a=n.variables,u=n.overwrite,l=pd(i),c=sM();a=ke(ke({},t_(l)),a);var d=ke(ke({store:e,written:Object.create(null),merge:function(m,g){return c.merge(m,g)},variables:a,varString:Su(a)},lT(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:s||Object.create(null),dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!Nn(h))throw __DEV__?new In("Could not identify object ".concat(JSON.stringify(s))):new In(7);
66return d.incomingById.forEach(function(m,g){var k=m.storeObject,y=m.mergeTree,b=m.fieldNodeSet,S=ku(g);if(y&&y.map.size){var $=r.applyMerges(y,S,k,d);if(Nn($))return;k=$}if(__DEV__&&!d.overwrite){var D=Object.create(null);b.forEach(function(R){R.selectionSet&&(D[R.name.value]=!0)});var P=function(R){return D[Fa(R)]===!0},x=function(R){var q=y&&y.map.get(R);return!!(q&&q.info&&q.info.merge)};Object.keys(k).forEach(function(R){P(R)&&!x(R)&&vM(S,k,R,d.store)})}e.merge(g,k)}),e.retain(h.__ref),h},t.prototype.processSelectionSet=function(e){var n=this,r=e.dataId,i=e.result,s=e.selectionSet,o=e.context,a=e.mergeTree,u=this.cache.policies,l=Object.create(null),c=r&&u.rootTypenamesById[r]||cv(i,s,o.fragmentMap)||r&&o.store.get(r,"__typename");typeof c=="string"&&(l.__typename=c);var d=function(){var $=y_(arguments,l,o.variables);if(Nn($.from)){var D=o.incomingById.get($.from.__ref);if(D){var P=u.readField(ke(ke({},$),{from:D.storeObject}),o);if(P!==void 0)return P}}return u.readField($,o)},h=new Set;this.flattenFields(s,i,o,c).forEach(function($,D){var P,x=Iu(D),R=i[x];if(h.add(D),R!==void 0){var q=u.getStoreFieldName({typename:c,fieldName:D.name.value,field:D,variables:$.variables}),F=o4(a,q),L=n.processFieldValue(R,D,D.selectionSet?l1($,!1,!1):$,F),M=void 0;D.selectionSet&&(Nn(L)||bl(L))&&(M=d("__typename",L));var V=u.getMergeFunction(c,D.name.value,M);V?F.info={field:D,typename:c,merge:V}:a4(a,q),l=$.merge(l,(P={},P[q]=L,P))}else __DEV__&&!$.clientOnly&&!$.deferred&&!n_.added(D)&&!u.getReadFunction(c,D.name.value)&&__DEV__&&ut.error("Missing field '".concat(Iu(D),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var m=u.identify(i,{typename:c,selectionSet:s,fragmentMap:o.fragmentMap,storeObject:l,readField:d}),g=m[0],k=m[1];r=r||g,k&&(l=o.merge(l,k))}catch($){if(!r)throw $}if(typeof r=="string"){var y=ku(r),b=o.written[r]||(o.written[r]=[]);if(b.indexOf(s)>=0||(b.push(s),this.reader&&this.reader.isFresh(i,y,s,o)))return y;var S=o.incomingById.get(r);return S?(S.storeObject=o.merge(S.storeObject,l),S.mergeTree=$v(S.mergeTree,a),h.forEach(function($){return S.fieldNodeSet.add($)})):o.incomingById.set(r,{storeObject:l,mergeTree:l0(a)?void 0:a,fieldNodeSet:h}),y}return l},t.prototype.processFieldValue=function(e,n,r,i){var s=this;return!n.selectionSet||e===null?__DEV__?B5(e):e:_r(e)?e.map(function(o,a){var u=s.processFieldValue(o,n,r,o4(i,a));return a4(i,a),u}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i})},t.prototype.flattenFields=function(e,n,r,i){i===void 0&&(i=cv(n,e,r.fragmentMap));var s=new Map,o=this.cache.policies,a=new hc(!1);return function u(l,c){var d=a.lookup(l,c.clientOnly,c.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(h){if(G0(h,r.variables)){var m=c.clientOnly,g=c.deferred;if(!(m&&g)&&ho(h.directives)&&h.directives.forEach(function(b){var S=b.name.value;if(S==="client"&&(m=!0),S==="defer"){var $=Y0(b,r.variables);(!$||$.if!==!1)&&(g=!0)}}),Ou(h)){var k=s.get(h);k&&(m=m&&k.clientOnly,g=g&&k.deferred),s.set(h,l1(r,m,g))}else{var y=Kb(h,r.lookupFragment);if(!y&&h.kind===wt.FRAGMENT_SPREAD)throw __DEV__?new In("No fragment named ".concat(h.name.value)):new In(8);y&&o.fragmentMatches(y,i,n,r.variables)&&u(y.selectionSet,l1(r,m,g))}}}))}(e,r),s},t.prototype.applyMerges=function(e,n,r,i,s){var o,a=this;if(e.map.size&&!Nn(r)){var u=!_r(r)&&(Nn(n)||bl(n))?n:void 0,l=r;u&&!s&&(s=[Nn(u)?u.__ref:u]);var c,d=function(h,m){return _r(h)?typeof m=="number"?h[m]:void 0:i.store.getFieldValue(h,String(m))};e.map.forEach(function(h,m){var g=d(u,m),k=d(l,m);if(k!==void 0){s&&s.push(m);var y=a.applyMerges(h,g,k,i,s);y!==k&&(c=c||new Map,c.set(m,y)),s&&ut(s.pop()===m)}}),c&&(r=_r(l)?l.slice(0):ke({},l),c.forEach(function(h,m){r[m]=h}))}return e.info?this.cache.policies.runMergeFunction(n,r,e.info,i,s&&(o=i.store).getStorage.apply(o,s)):r},t}(),gT=[];function o4(t,e){var n=t.map;return n.has(e)||n.set(e,gT.pop()||{map:new Map}),n.get(e)}function $v(t,e){if(t===e||!e||l0(e))return t;if(!t||l0(t))return e;var n=t.info&&e.info?ke(ke({},t.info),e.info):t.info||e.info,r=t.map.size&&e.map.size,i=r?new Map:t.map.size?t.map:e.map,s={info:n,map:i};if(r){var o=new Set(e.map.keys());
66t.map.forEach(function(a,u){s.map.set(u,$v(a,e.map.get(u))),o.delete(u)}),o.forEach(function(a){s.map.set(a,$v(e.map.get(a),t.map.get(a)))})}return s}function l0(t){return!t||!(t.info||t.map.size)}function a4(t,e){var n=t.map,r=n.get(e);r&&l0(r)&&(gT.push(r),n.delete(e))}var u4=new Set;function vM(t,e,n,r){var i=function(d){var h=r.getFieldValue(d,n);return typeof h=="object"&&h},s=i(t);if(s){var o=i(e);if(o&&!Nn(s)&&!Mr(s,o)&&!Object.keys(s).every(function(d){return r.getFieldValue(o,d)!==void 0})){var a=r.getFieldValue(t,"__typename")||r.getFieldValue(e,"__typename"),u=Fa(n),l="".concat(a,".").concat(u);if(!u4.has(l)){u4.add(l);var c=[];!_r(s)&&!_r(o)&&[s,o].forEach(function(d){var h=r.getFieldValue(d,"__typename");typeof h=="string"&&!c.includes(h)&&c.push(h)}),__DEV__&&ut.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(a,` object. 67 68This could cause additional (usually avoidable) network requests to fetch data that were otherwise cached. 69 70To address this problem (which is not a bug in Apollo Client), `).concat(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l,` field, so InMemoryCache can safely merge these objects: 71 72 existing: `).concat(JSON.stringify(s).slice(0,1e3),` 73 incoming: `).concat(JSON.stringify(o).slice(0,1e3),` 74 75For more information about these options, please refer to the documentation: 76 77 * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers 78 * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects 79`))}}}}var vT=function(t){Xr(e,t);function e(n){n===void 0&&(n={});var r=t.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=fT,r.txCount=0,r.config=rM(n),r.addTypename=!!r.config.addTypename,r.policies=new mM({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return e.prototype.init=function(){var n=this.data=new jf.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},e.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,s=this.config.fragments;this.storeWriter=new gM(this,this.storeReader=new lM({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:aT(this.config),canon:n?void 0:i&&i.canon,fragments:s}),s),this.maybeBroadcastWatch=u0(function(o,a){return r.broadcastWatch(o,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(o){var a=o.optimistic?r.optimisticData:r.data;if($f(a)){var u=o.optimistic,l=o.id,c=o.variables;return a.makeCacheKey(o.query,o.callback,Su({optimistic:u,id:l,variables:c}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},e.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},e.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(ke(ke({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(s){if(s instanceof m_)return null;throw s}},e.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(n){if(Vr.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(ke(ke({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(n){var r=this;return this.watches.size||dM(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&
79!r.watches.size&&K3(r),r.maybeBroadcastWatch.forget(n)}},e.prototype.gc=function(n){Su.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},e.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},e.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},e.prototype.identify=function(n){if(Nn(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){__DEV__&&ut.warn(r)}},e.prototype.evict=function(n){if(!n.id){if(Vr.call(n,"id"))return!1;n=ke(ke({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(n){var r=this;return this.init(),Su.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),K3(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},e.prototype.batch=function(n){var r=this,i=n.update,s=n.optimistic,o=s===void 0?!0:s,a=n.removeOptimistic,u=n.onWatchUpdated,l,c=function(h){var m=r,g=m.data,k=m.optimisticData;++r.txCount,h&&(r.data=r.optimisticData=h);try{return l=i(r)}finally{--r.txCount,r.data=g,r.optimisticData=k}},d=new Set;return u&&!this.txCount&&this.broadcastWatches(ke(ke({},n),{onWatchUpdated:function(h){return d.add(h),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,c):o===!1?c(this.data):c(),typeof a=="string"&&(this.optimisticData=this.optimisticData.removeLayer(a)),u&&d.size?(this.broadcastWatches(ke(ke({},n),{onWatchUpdated:function(h,m){var g=u.call(this,h,m);return g!==!1&&d.delete(h),g}})),d.size&&d.forEach(function(h){return r.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(n),l},e.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},e.prototype.transformDocument=function(n){if(this.addTypename){var r=this.typenameDocumentCache.get(n);return r||(r=n_(n),this.typenameDocumentCache.set(n,r),this.typenameDocumentCache.set(r,r)),r}return n},e.prototype.transformForLink=function(n){var r=this.config.fragments;return r?r.transform(n):n},e.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},e.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,s=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(s.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,s,i)===!1)||(!i||!Mr(i.result,s.result))&&n.callback(n.lastDiff=s,i)},e}(sT),xn;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(xn||(xn={}));function Uf(t){return t?t<7:!1}var bM=Object.assign,_M=Object.hasOwnProperty,c0=function(t){Xr(e,t);function e(n){var r=n.queryManager,i=n.queryInfo,s=n.options,o=t.call(this,function(y){try{var b=y._subscription._observer;b&&!b.error&&(b.error=yM)}catch{}var S=!o.observers.size;o.observers.add(y);var $=o.last;return $&&$.error?y.error&&y.error($.error):$&&$.result&&y.next&&y.next($.result),S&&o.reobserve().catch(function(){}),function(){o.observers.delete(y)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=c1(s.fetchPolicy),o.isTornDown=!1;var a=r.defaultOptions.watchQuery,u=a===void 0?{}:a,l=u.fetchPolicy,c=l===void 0?"cache-first":l,d=s.fetchPolicy,h=d===void 0?c:d,m=s.initialFetchPolicy,g=m===void 0?h==="standby"?c:h:m;o.options=ke(ke({},s),{initialFetchPolicy:g,fetchPolicy:h}),o.queryId=i.queryId||r.generateQueryId();var k=pd(o.query);return o.queryName=k&&k.name&&k.name.value,o}return Object.defineProperty(e.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document}
79,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var n=this;return new Promise(function(r,i){var s={next:function(a){r(a),n.observers.delete(s),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=n.subscribe(s)})},e.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||xn.ready,s=ke(ke({},r),{loading:Uf(i),networkStatus:i}),o=this.options.fetchPolicy,a=o===void 0?"cache-first":o;if(!(c1(a)||this.queryManager.transform(this.options.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(s.data=u.result),Mr(s.data,{})&&(s.data=void 0),u.complete?(delete s.partial,u.complete&&s.networkStatus===xn.loading&&(a==="cache-first"||a==="cache-only")&&(s.networkStatus=xn.ready,s.loading=!1)):s.partial=!0,__DEV__&&!u.complete&&!this.options.partialRefetch&&!s.loading&&!s.data&&!s.error&&_T(u.missing)}return n&&this.updateLastResult(s),s},e.prototype.isDifferentFromLastResult=function(n,r){return!this.last||!Mr(this.last.result,n)||r&&!Mr(this.last.variables,r)},e.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||Mr(i.variables,this.variables)))return i[n]},e.prototype.getLastResult=function(n){return this.getLast("result",n)},e.prototype.getLastError=function(n){return this.getLast("error",n)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(n){var r,i={pollInterval:0},s=this.options.fetchPolicy;if(s==="cache-and-network"?i.fetchPolicy=s:s==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",__DEV__&&n&&_M.call(n,"variables")){var o=P5(this.query),a=o.variableDefinitions;(!a||!a.some(function(u){return u.variable.name.value==="variables"}))&&__DEV__&&ut.warn("Called refetch(".concat(JSON.stringify(n),") for query ").concat(((r=o.name)===null||r===void 0?void 0:r.value)||JSON.stringify(o),`, which does not declare a $variables variable. 80Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return n&&!Mr(this.options.variables,n)&&(i.variables=this.options.variables=ke(ke({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,xn.refetch)},e.prototype.fetchMore=function(n){var r=this,i=ke(ke({},n.query?n:ke(ke(ke(ke({},this.options),{query:this.query}),n),{variables:ke(ke({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"}),s=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=xn.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(s,i,xn.fetchMore).then(function(l){return r.queryManager.removeQuery(s),o.networkStatus===xn.fetchMore&&(o.networkStatus=a),r.queryManager.cache.batch({update:function(c){var d=n.updateQuery;d?c.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(h){return d(h,{fetchMoreResult:l.data,variables:i.variables})}):c.writeQuery({query:i.query,variables:i.variables,data:l.data})},onWatchUpdated:function(c){u.add(c.query)}}),l}).finally(function(){u.has(r.query)||bT(r)})},e.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(s){var o=n.updateQuery;o&&r.updateQuery(function(a,u){var l=u.variables;return o(a,{subscriptionData:s,variables:l})})},error:function(s){if(n.onError){n.onError(s);return}__DEV__&&ut.error("Unhandled GraphQL subscription error",s)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(n){return this.reobserve(n)},e.prototype.setVariables=function(n){return Mr(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},xn.setVariables):Promise.resolve())},e.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,s=n(i,{variables:this.variables});s&&(r.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),r.broadcastQueries())},e.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,s=i===void 0?"cache-first":i,o=r.initialFetchPolicy,a=o===void 0?s:o;s==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(s,{reason:n,options:r,observable:this,initialFetchPolicy:a}):n==="variables-changed"?r.fetchPolicy=a:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},e.prototype.fetch=function(n,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,r)},e.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,s=r.options.pollInterval;
80if(!s){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===s)){__DEV__?ut(s,"Attempted to start a polling query without a polling interval."):ut(s,13);var o=i||(this.pollingInfo={});o.interval=s;var a=function(){n.pollingInfo&&(Uf(n.queryInfo.networkStatus)?u():n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},xn.poll).then(u,u))},u=function(){var l=n.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(a,l.interval))};u()}}},e.prototype.updateLastResult=function(n,r){return r===void 0&&(r=this.variables),this.last=ke(ke({},this.last),{result:this.queryManager.assumeImmutableResults?n:B5(n),variables:r}),ho(n.errors)||delete this.last.error,this.last},e.prototype.reobserveAsConcast=function(n,r){var i=this;this.isTornDown=!1;var s=r===xn.refetch||r===xn.fetchMore||r===xn.poll,o=this.options.variables,a=this.options.fetchPolicy,u=K0(this.options,n||{}),l=s?u:bM(this.options,u);s||(this.updatePolling(),n&&n.variables&&!Mr(n.variables,o)&&l.fetchPolicy!=="standby"&&l.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=xn.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=c1(l.fetchPolicy));var c=function(){i.concast===m&&(i.waitForOwnResult=!1)},d=l.variables&&ke({},l.variables),h=this.fetch(l,r),m=h.concast,g=h.fromLink,k={next:function(y){c(),i.reportResult(y,d)},error:function(y){c(),i.reportError(y,d)}};return!s&&g&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=k),m.addObserver(k),m},e.prototype.reobserve=function(n,r){return this.reobserveAsConcast(n,r).promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(n,r){var i=this.getLastError();(i||this.isDifferentFromLastResult(n,r))&&((i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),Tf(this.observers,"next",n))},e.prototype.reportError=function(n,r){var i=ke(ke({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:xn.error,loading:!1});this.updateLastResult(i,r),Tf(this.observers,"error",this.last.error=n)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e}(Dn);j5(c0);function bT(t){var e=t.options,n=e.fetchPolicy,r=e.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,typeof r=="function"?r.apply(this,arguments):n}}):t.reobserve()}function yM(t){__DEV__&&ut.error("Unhandled error",t.message,t.stack)}function _T(t){__DEV__&&t&&__DEV__&&ut.debug("Missing cache result fields: ".concat(JSON.stringify(t)),t)}function c1(t){return t==="network-only"||t==="no-cache"||t==="standby"}var yT=function(){function t(e){var n=e.cache,r=e.client,i=e.resolvers,s=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),s&&this.setFragmentMatcher(s)}return t.prototype.addResolvers=function(e){var n=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(r){n.resolvers=C3(n.resolvers,r)}):this.resolvers=C3(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){var n=e.document,r=e.remoteResult,i=e.context,s=e.variables,o=e.onlyRunForcedResolvers,a=o===void 0?!1:o;return _a(this,void 0,void 0,function(){return ya(this,function(u){return n?[2,this.resolveDocument(n,r.data,i,s,this.fragmentMatcher,a).then(function(l){return ke(ke({},r),{data:l.result})})]:[2,r]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return Zb(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return RF(e)},t.prototype.prepareContext=function(e){var n=this.cache;return ke(ke({},e),{cache:n,getCacheKey:function(r){return n.identify(r)}})},t.prototype.addExportedVariables=function(e,n,r){return n===void 0&&(n={}),r===void 0&&(r={}),_a(this,void 0,void 0,function(){return ya(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,n)||{},this.prepareContext(r),n).then(function(s){return ke(ke({},n),s.exportedVariables)})]:[2,ke({},n)]})})},t.prototype.shouldForceResolvers=function(e){var n=!1;return Uo(e,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return Qb}}}),n},t.prototype.buildRootValueFromCache=function(e,n){return this.cache.diff({query:NF(e),variables:n,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,n,r,i,s,o){return r===void 0&&(r={}),i===void 0&&(i={}),s===void 0&&(s=function(){return!0}),o===void 0&&(o=!1),_a(this,void 0,void 0,function(){var a,u,l,c,d,h,m,g,k,y,b;return ya(this,function(S){return a=Z0(e),u=e_(e),l=Xb(u),c=this.collectSelectionsToResolve(a,l),d=a.operation,h=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=this,g=m.cache,k=m.client,y={fragmentMap:l,context:ke(ke({},r),{cache:g,client:k}),variables:i,fragmentMatcher:s,defaultOperationType:h,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},b=!1,[2,this.resolveSelectionSet(a.selectionSet,b,n,y).then(function($){return{result:$,exportedVariables:y.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,n,r,i){return _a(this,void 0,void 0,function(){var s,o,a,u,l,c=this;return ya(this,function(d){return s=i.fragmentMap,o=i.context,a=i.variables,u=[r],l=function(h){return _a(c,void 0,void 0,function(){var m,g;return ya(this,function(k){return!n&&!i.selectionsToResolve.has(h
80)?[2]:G0(h,a)?Ou(h)?[2,this.resolveField(h,n,r,i).then(function(y){var b;typeof y<"u"&&u.push((b={},b[Iu(h)]=y,b))})]:($F(h)?m=h:(m=s[h.name.value],__DEV__?ut(m,"No fragment named ".concat(h.name.value)):ut(m,11)),m&&m.typeCondition&&(g=m.typeCondition.name.value,i.fragmentMatcher(r,g,o))?[2,this.resolveSelectionSet(m.selectionSet,n,r,i).then(function(y){u.push(y)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return r_(u)})]})})},t.prototype.resolveField=function(e,n,r,i){return _a(this,void 0,void 0,function(){var s,o,a,u,l,c,d,h,m,g=this;return ya(this,function(k){return r?(s=i.variables,o=e.name.value,a=Iu(e),u=o!==a,l=r[a]||r[o],c=Promise.resolve(l),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=r.__typename||i.defaultOperationType,h=this.resolvers&&this.resolvers[d],h&&(m=h[u?o:a],m&&(c=Promise.resolve(v_.withValue(this.cache,m,[r,Y0(e,s),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,c.then(function(y){var b,S;if(y===void 0&&(y=l),e.directives&&e.directives.forEach(function(D){D.name.value==="export"&&D.arguments&&D.arguments.forEach(function(P){P.name.value==="as"&&P.value.kind==="StringValue"&&(i.exportedVariables[P.value.value]=y)})}),!e.selectionSet||y==null)return y;var $=(S=(b=e.directives)===null||b===void 0?void 0:b.some(function(D){return D.name.value==="client"}))!==null&&S!==void 0?S:!1;if(Array.isArray(y))return g.resolveSubSelectedArray(e,n||$,y,i);if(e.selectionSet)return g.resolveSelectionSet(e.selectionSet,n||$,y,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,n,r,i){var s=this;return Promise.all(r.map(function(o){if(o===null)return null;if(Array.isArray(o))return s.resolveSubSelectedArray(e,n,o,i);if(e.selectionSet)return s.resolveSelectionSet(e.selectionSet,n,o,i)}))},t.prototype.collectSelectionsToResolve=function(e,n){var r=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function s(o){if(!i.has(o)){var a=new Set;i.set(o,a),Uo(o,{Directive:function(u,l,c,d,h){u.name.value==="client"&&h.forEach(function(m){r(m)&&S3(m)&&a.add(m)})},FragmentSpread:function(u,l,c,d,h){var m=n[u.name.value];__DEV__?ut(m,"No fragment named ".concat(u.name.value)):ut(m,12);var g=s(m);g.size>0&&(h.forEach(function(k){r(k)&&S3(k)&&a.add(k)}),a.add(u),g.forEach(function(k){a.add(k)}))}})}return i.get(o)}return s(e)},t}(),_l=new(Bu?WeakMap:Map);function f1(t,e){var n=t[e];typeof n=="function"&&(t[e]=function(){return _l.set(t,(_l.get(t)+1)%1e15),n.apply(this,arguments)})}function l4(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var d1=function(){function t(e,n){n===void 0&&(n=e.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;_l.has(r)||(_l.set(r,0),f1(r,"evict"),f1(r,"modify"),f1(r,"reset"))}return t.prototype.init=function(e){var n=e.networkStatus||xn.loading;return this.variables&&this.networkStatus!==xn.loading&&!Mr(this.variables,e.variables)&&(n=xn.setVariables),Mr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){l4(this),this.dirty=!1},t.prototype.getDiff=function(e){e===void 0&&(e=this.variables);var n=this.getDiffOptions(e);if(this.lastDiff&&Mr(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var i=this.cache.diff(n);return this.updateLastDiff(i,n),i},t.prototype.updateLastDiff=function(e,n){this.lastDiff=e?{diff:e,options:n||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var n;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},t.prototype.setDiff=function(e){var n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!Mr(r&&r.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.setObservableQuery=function(e){var n=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?e.observe():bT(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;
80l4(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Uf(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach(function(n){return n.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var n=this;e===void 0&&(e=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=ke(ke({},this.getDiffOptions(e)),{watcher:this,callback:function(s){return n.setDiff(s)}});(!this.lastWatch||!Mr(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,n){var r=this.lastWrite;return!(r&&r.dmCount===_l.get(this.cache)&&Mr(n,r.variables)&&Mr(e.data,r.result.data))},t.prototype.markResult=function(e,n,r,i){var s=this,o=new xa,a=ho(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&ho(e.incremental)){var u=U5(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(Cv(e,r.errorPolicy)?this.cache.performTransaction(function(c){if(s.shouldWrite(e,r.variables))c.writeQuery({query:n,data:e.data,variables:r.variables,overwrite:i===1}),s.lastWrite={result:e,variables:r.variables,dmCount:_l.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){e.data=s.lastDiff.diff.result;return}var d=s.getDiffOptions(r.variables),h=c.diff(d);s.stopped||s.updateWatch(r.variables),s.updateLastDiff(h,d),h.complete&&(e.data=h.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=xn.ready},t.prototype.markError=function(e){return this.networkStatus=xn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function Cv(t,e){e===void 0&&(e="none");var n=e==="ignore"||e==="all",r=!Ip(t);return!r&&n&&t.data&&(r=!0),r}var wM=Object.prototype.hasOwnProperty,EM=function(){function t(e){var n=e.cache,r=e.link,i=e.defaultOptions,s=e.queryDeduplication,o=s===void 0?!1:s,a=e.onBroadcast,u=e.ssrMode,l=u===void 0?!1:u,c=e.clientAwareness,d=c===void 0?{}:c,h=e.localState,m=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Bu?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=o,this.clientAwareness=d,this.localState=h||new yT({cache:n}),this.ssrMode=l,this.assumeImmutableResults=!!m,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(n,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new In("QueryManager stopped while query was in flight"):new In(14))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(n){return n(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){var n,r,i=e.mutation,s=e.variables,o=e.optimisticResponse,a=e.updateQueries,u=e.refetchQueries,l=u===void 0?[]:u,c=e.awaitRefetchQueries,d=c===void 0?!1:c,h=e.update,m=e.onQueryUpdated,g=e.fetchPolicy,k=g===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.fetchPolicy)||"network-only":g,y=e.errorPolicy,b=y===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.errorPolicy)||"none":y,S=e.keepRootFields,$=e.context;return _a(this,void 0,void 0,function(){var D,P,x,R,q,F;return ya(this,function(L){switch(L.label){case 0:return __DEV__?ut(i,"mutation option is required. You must specify your GraphQL document in the mutation option."):ut(i,15),__DEV__?ut(k==="network-only"||k==="no-cache","Mutations supp
80ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):ut(k==="network-only"||k==="no-cache",16),D=this.generateMutationId(),P=this.transform(i),x=P.document,R=P.hasClientExports,i=this.cache.transformForLink(x),s=this.getVariables(i,s),R?[4,this.localState.addExportedVariables(i,s,$)]:[3,2];case 1:s=L.sent(),L.label=2;case 2:return q=this.mutationStore&&(this.mutationStore[D]={mutation:i,variables:s,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:D,document:i,variables:s,fetchPolicy:k,errorPolicy:b,context:$,updateQueries:a,update:h,keepRootFields:S}),this.broadcastQueries(),F=this,[2,new Promise(function(M,V){return r1(F.getObservableFromLink(i,ke(ke({},$),{optimisticResponse:o}),s,!1),function(H){if(Ip(H)&&b==="none")throw new cu({graphQLErrors:gv(H)});q&&(q.loading=!1,q.error=null);var J=ke({},H);return typeof l=="function"&&(l=l(J)),b==="ignore"&&Ip(J)&&delete J.errors,F.markMutationResult({mutationId:D,result:J,document:i,variables:s,fetchPolicy:k,errorPolicy:b,context:$,update:h,updateQueries:a,awaitRefetchQueries:d,refetchQueries:l,removeOptimistic:o?D:void 0,onQueryUpdated:m,keepRootFields:S})}).subscribe({next:function(H){F.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&M(H)},error:function(H){q&&(q.loading=!1,q.error=H),o&&F.cache.removeOptimistic(D),F.broadcastQueries(),V(H instanceof cu?H:new cu({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,n){var r=this;n===void 0&&(n=this.cache);var i=e.result,s=[],o=e.fetchPolicy==="no-cache";if(!o&&Cv(i,e.errorPolicy)){if(Cl(i)||s.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Cl(i)&&ho(i.incremental)){var a=n.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;a.result&&(u=U5(a.result,i)),typeof u<"u"&&(i.data=u,s.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(d,h){var m=d.observableQuery,g=m&&m.queryName;if(!(!g||!wM.call(l,g))){var k=l[g],y=r.queries.get(h),b=y.document,S=y.variables,$=n.diff({query:b,variables:S,returnPartialData:!0,optimistic:!1}),D=$.result,P=$.complete;if(P&&D){var x=k(D,{mutationResult:i,queryName:b&&fv(b)||void 0,queryVariables:S});x&&s.push({result:x,dataId:"ROOT_QUERY",query:b,variables:S})}}})}if(s.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(d){o||s.forEach(function(k){return d.write(k)});var h=e.update,m=!QF(i)||Cl(i)&&!i.hasNext;if(h){if(!o){var g=d.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});g.complete&&(i=ke(ke({},i),{data:g.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}m&&h(d,i,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&m&&d.modify({id:"ROOT_MUTATION",fields:function(k,y){var b=y.fieldName,S=y.DELETE;return b==="__typename"?k:S}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(d){return c.push(d)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,n){var r=this,i=typeof e=="function"?e(n.variables):e;return this.cache.recordOptimisticTransaction(function(s){try{r.markMutationResult(ke(ke({},n),{result:{data:i}}),s)}catch(o){__DEV__&&ut.error(o)}},n.mutationId)},t.prototype.fetchQuery=function(e,n,r){return this.fetchQueryObservable(e,n,r).promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(n,r){e[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var n=this.queries.get(e);n&&(n.networkError=void 0,n.graphQLErrors=[])},t.prototype.transform=function(e){var n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=OF(r),s=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),a={document:r,hasClientExports:lF(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:s,serverQuery:o,defaultVars:t_(pd(r)),asQuery:ke(ke({},r),{definitions:r.definitions.map(function(l){return l.kind==="OperationDefinition"&&l.operation!=="query"?ke(ke({},l),{operation:"query"}):l})})},u=function(l){l&&!n.has(l)&&n.set(l,a)};
80u(e),u(r),u(s),u(o)}return n.get(e)},t.prototype.getVariables=function(e,n){return ke(ke({},this.transform(e).defaultVars),n)},t.prototype.watchQuery=function(e){e=ke(ke({},e),{variables:this.getVariables(e.query,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new d1(this),r=new c0({queryManager:this,queryInfo:n,options:e});return this.queries.set(r.queryId,n),n.init({document:r.query,observableQuery:r,variables:r.variables}),r},t.prototype.query=function(e,n){var r=this;return n===void 0&&(n=this.generateQueryId()),__DEV__?ut(e.query,"query option is required. You must specify your GraphQL document in the query option."):ut(e.query,17),__DEV__?ut(e.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):ut(e.query.kind==="Document",18),__DEV__?ut(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):ut(!e.returnPartialData,19),__DEV__?ut(!e.pollInterval,"pollInterval option only supported on watchQuery."):ut(!e.pollInterval,20),this.fetchQuery(n,e).finally(function(){return r.stopQuery(n)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var n=this.queries.get(e);n&&n.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new In("Store reset while query was in flight (not completed in link chain)"):new In(21)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=xn.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var n=this;e===void 0&&(e="active");var r=new Map,i=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(o){typeof o=="string"?i.set(o,!1):hF(o)?i.set(n.transform(o).document,!1):lr(o)&&o.query&&s.add(o)}),this.queries.forEach(function(o,a){var u=o.observableQuery,l=o.document;if(u){if(e==="all"){r.set(a,u);return}var c=u.queryName,d=u.options.fetchPolicy;if(d==="standby"||e==="active"&&!u.hasObservers())return;(e==="active"||c&&i.has(c)||l&&i.has(l))&&(r.set(a,u),c&&i.set(c,!0),l&&i.set(l,!0))}}),s.size&&s.forEach(function(o){var a=vv("legacyOneTimeQuery"),u=n.getQuery(a).init({document:o.query,variables:o.variables}),l=new c0({queryManager:n,queryInfo:u,options:ke(ke({},o),{fetchPolicy:"network-only"})});ut(l.queryId===a),u.setObservableQuery(l),r.set(a,l)}),__DEV__&&i.size&&i.forEach(function(o,a){o||__DEV__&&ut.warn("Unknown query ".concat(typeof a=="string"?"named ":"").concat(JSON.stringify(a,null,2)," requested in refetchQueries options.include array"))}),r},t.prototype.reFetchObservableQueries=function(e){var n=this;e===void 0&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,s){var o=i.options.fetchPolicy;i.resetLastResults(),(e||o!=="standby"&&o!=="cache-only")&&r.push(i.refetch()),n.getQuery(s).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var n=this,r=e.query,i=e.fetchPolicy,s=e.errorPolicy,o=e.variables,a=e.context,u=a===void 0?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(d){return n.getObservableFromLink(r,u,d).map(function(h){i!=="no-cache"&&(Cv(h,s)&&n.cache.write({query:r,result:h.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),n.broadcastQueries());var m=Ip(h),g=_L(h);if(m||g){var k={};throw m&&(k.graphQLErrors=h.errors),g&&(k.protocolErrors=h.extensions[u_]),new cu(k)}return h})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,u).then(l);return new Dn(function(d){var h=null;return c.then(function(m){return h=m.subscribe(d)},d.error),function(){return h&&h.unsubscribe()}})}return l(o)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEac
80h(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,n,r,i){var s=this,o;i===void 0&&(i=(o=n==null?void 0:n.queryDeduplication)!==null&&o!==void 0?o:this.queryDeduplication);var a,u=this.transform(e).serverQuery;if(u){var l=this,c=l.inFlightLinkObservables,d=l.link,h={query:u,variables:r,operationName:fv(u)||void 0,context:this.prepareContext(ke(ke({},n),{forceFetch:!i}))};if(n=h.context,i){var m=c.get(u)||new Map;c.set(u,m);var g=Su(r);if(a=m.get(g),!a){var k=new ml([o0(d,h)]);m.set(g,a=k),k.beforeNext(function(){m.delete(g)&&m.size<1&&c.delete(u)})}}else a=new ml([o0(d,h)])}else a=new ml([Dn.of({data:{}})]),n=this.prepareContext(n);var y=this.transform(e).clientQuery;return y&&(a=r1(a,function(b){return s.localState.runResolvers({document:y,remoteResult:b,context:n,variables:r})})),a},t.prototype.getResultsFromLink=function(e,n,r){var i=e.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(this.transform(e.document).document);return r1(this.getObservableFromLink(s,r.context,r.variables),function(o){var a=gv(o),u=a.length>0;if(i>=e.lastRequestId){if(u&&r.errorPolicy==="none")throw e.markError(new cu({graphQLErrors:a}));e.markResult(o,s,r,n),e.markReady()}var l={data:o.data,loading:!1,networkStatus:xn.ready};return u&&r.errorPolicy!=="ignore"&&(l.errors=a,l.networkStatus=xn.error),l},function(o){var a=H5(o)?o:new cu({networkError:o});throw i>=e.lastRequestId&&e.markError(a),a})},t.prototype.fetchQueryObservable=function(e,n,r){return this.fetchConcastWithInfo(e,n,r).concast},t.prototype.fetchConcastWithInfo=function(e,n,r){var i=this;r===void 0&&(r=xn.loading);var s=this.transform(n.query).document,o=this.getVariables(s,n.variables),a=this.getQuery(e),u=this.defaultOptions.watchQuery,l=n.fetchPolicy,c=l===void 0?u&&u.fetchPolicy||"cache-first":l,d=n.errorPolicy,h=d===void 0?u&&u.errorPolicy||"none":d,m=n.returnPartialData,g=m===void 0?!1:m,k=n.notifyOnNetworkStatusChange,y=k===void 0?!1:k,b=n.context,S=b===void 0?{}:b,$=Object.assign({},n,{query:s,variables:o,fetchPolicy:c,errorPolicy:h,returnPartialData:g,notifyOnNetworkStatusChange:y,context:S}),D=function(F){$.variables=F;var L=i.fetchQueryByPolicy(a,$,r);return $.fetchPolicy!=="standby"&&L.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),L},P=function(){return i.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(F){P(),setTimeout(function(){return x.cancel(F)})});var x,R;if(this.transform($.query).hasClientExports)x=new ml(this.localState.addExportedVariables($.query,$.variables,$.context).then(D).then(function(F){return F.sources})),R=!0;else{var q=D($.variables);R=q.fromLink,x=new ml(q.sources)}return x.promise.then(P,P),{concast:x,fromLink:R}},t.prototype.refetchQueries=function(e){var n=this,r=e.updateCache,i=e.include,s=e.optimistic,o=s===void 0?!1:s,a=e.removeOptimistic,u=a===void 0?o?vv("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;i&&this.getObservableQueries(i).forEach(function(h,m){c.set(m,{oq:h,lastDiff:n.getQuery(m).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(h,m,g){var k=h.watcher instanceof d1&&h.watcher.observableQuery;if(k){if(l){c.delete(k.queryId);var y=l(k,m,g);return y===!0&&(y=k.refetch()),y!==!1&&d.set(k,y),y}l!==null&&c.set(k.queryId,{oq:k,lastDiff:g,diff:m})}}}),c.size&&c.forEach(function(h,m){var g=h.oq,k=h.lastDiff,y=h.diff,b;if(l){if(!y){var S=g.queryInfo;S.reset(),y=S.getDiff()}b=l(g,y,k)}(!l||b===!0)&&(b=g.refetch()),b!==!1&&d.set(g,b),m.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(m)}),u&&this.cache.removeOptimistic(u),d},t.prototype.fetchQueryByPolicy=function(e,n,r){var i=this,s=n.query,o=n.variables,a=n.fetchPolicy,u=n.refetchWritePolicy,l=n.errorPolicy,c=n.returnPartialData,d=n.context,h=n.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(s).document,variables:o,networkStatus:r});var g=function(){return e.getDiff(o)},k=function(D,P){P===void 0&&(P=e.networkStatus||xn.loading);var x=D.result;__DEV__&&!c&&!Mr(x,{})&&_T(D.missing);var R=function(q){return Dn.of(ke({data:q,loading:Uf(P),networkStatus:P},D.complete?null:{partial:!0}))};return x&&i.transform(s).hasForcedResolvers?i.localState.runResolvers({document:s,remoteResult:{data:x},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(q){return R(q.data||void 0)}):l==="none"&&P===xn.refetch&&Array.isArray(D.missing)?R(void 0):R(x)},y=a==="no-cache"?0:r===xn.refetch&&u!=="merge"?1:2,b=function(){return i.getResultsFromLink(e,y,{variables:o,context:d,fetchPolicy:a,errorPolicy:l})},S=h&&typeof m=="number"&&m!==r&&Uf(r);switch(a){default:case"cache-first":{var $=g();return $.complete?{fromLink:!1,sources:[k($,e.markReady())]}:c||S?{fromLink:!0,sources:[k($),b()]}:{fromLink:!0,sources:[b()]}}case"cache-and-network":{var $=g();return $.complete||c||S?{fromLink:!0,sources:[k($),b()]}:{fromLink:!0,sources:[b()]}}case"cache-only":return{fromLink:!1,sources:[k(g(),e.markReady())]};case"network-only":return S?{fromLink:!0,sources:[k(g()),b()]}:{fromLink:!0,sources:[b()]};case"no-cache":return S?{fromLink:!0,sources:[k(e.getDiff()),b()]}:{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new d1(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var n=this.localState.prepareContext(e);return ke(ke({},n),{clientAwareness:this.clientAwareness})},t}(),c4=!1,wT=function(){function t(e){var n=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,i=e.credentials,s=e.headers,o=e.cache,a=e.ssrMode,u=a===void 0?!1:a,l=e.ssrForceFetchDelay,c=l===void 0?0:l,d=e.connectToDevTools,h=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:d,m=e.queryDeduplication,g=m===void 0?!0:m,k=e.defaultOptions,y=e.assumeImmutableResults,b=y===void 0?!1:y,S=e.resolvers,$=e.typeDefs,D=e.fragmentMatcher,P=e.name,x=e.version,R=e.link;if(R||(R=r?new d_({uri:r,credentials:i,headers:s}):Ai.empty()),!o)throw __DEV__?new In(`To initialize Apollo Client, you must specify a 'cache' property in the options object. 81For more information, please visit: https://go.apollo.dev/c/docs`):new In(9);if(this.link=R,this.cache=o,this.disableNetworkFetches=u||c>0,this.queryDeduplication=g,this.defaultOptions=k||Object.create(null),this.typeDefs=$,c&&setTimeout(function(){return n.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!c4&&h&&__DEV__&&(c4=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var q=window.navigator,F=q&&q.userAgent,L=void 0;typeof F=="string"&&(F.indexOf("Chrome/")>-1?L="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":F.indexOf("Firefox/")>-1&&(L="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),L&&__DEV__&&ut.log("Download the Apollo DevTools for a better development experience: "+L)}this.version=uL,this.localState=new yT({cache:o,client:this,resolvers:S,fragmentMatcher:D}),this.queryManager=new EM({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:u,clientAwareness:{name:P,version:x},localState:this.localState,assumeImmutableResults:b,onBroadcast:h?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Op(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=ke(ke({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=Op(this.defaultOptions.query,e)),__DEV__?ut(e.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):ut(e.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=ke(ke({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Op(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,n){return n===void 0&&(n=!1),this.cache.readQuery(e,n)},t.prototype.readFragment=function(e,n){return n===void 0&&(n=!1),this.cache.readFragment(e,n)},t.prototype.writeQuery=function(e){var n=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n},t.prototype.writeFragment=function(e){var n=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return o0(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(n){return n()}))})},t.prototype.onResetStore=function(e){var n=this;return this.resetStoreCallbacks.push(e),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==e})}},t.prototype.onClearStore=function(e){var n=this;return this.clearStoreCallbacks.push(e),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var n=this.queryManager.refetchQueries(e),r=[],i=[];
81n.forEach(function(o,a){r.push(a),i.push(o)});var s=Promise.all(i);return s.queries=r,s.results=i,s.catch(function(o){__DEV__&&ut.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(o))}),s},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},t}(),Rp=new Map,Av=new Map,ET=!0,f0=!1;function kT(t){return t.replace(/[\s,]+/g," ").trim()}function kM(t){return kT(t.source.body.substring(t.start,t.end))}function SM(t){var e=new Set,n=[];return t.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,s=kM(r.loc),o=Av.get(i);o&&!o.has(s)?ET&&console.warn("Warning: fragment with name "+i+` already exists. 82graphql-tag enforces all fragment names across your application to be unique; read more about 83this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):o||Av.set(i,o=new Set),o.add(s),e.has(s)||(e.add(s),n.push(r))}else n.push(r)}),ke(ke({},t),{definitions:n})}function TM(t){var e=new Set(t.definitions);e.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var s=r[i];s&&typeof s=="object"&&e.add(s)})});var n=t.loc;return n&&(delete n.startToken,delete n.endToken),t}function $M(t){var e=kT(t);if(!Rp.has(e)){var n=Xq(t,{experimentalFragmentVariables:f0,allowLegacyFragmentVariables:f0});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");Rp.set(e,TM(SM(n)))}return Rp.get(e)}function Nu(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];typeof t=="string"&&(t=[t]);var r=t[0];return e.forEach(function(i,s){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=t[s+1]}),$M(r)}function ST(){Rp.clear(),Av.clear()}function TT(){ET=!1}function $T(){f0=!0}function CT(){f0=!1}var ef={gql:Nu,resetCaches:ST,disableFragmentWarnings:TT,enableExperimentalFragmentVariables:$T,disableExperimentalFragmentVariables:CT};(function(t){t.gql=ef.gql,t.resetCaches=ef.resetCaches,t.disableFragmentWarnings=ef.disableFragmentWarnings,t.enableExperimentalFragmentVariables=ef.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=ef.disableExperimentalFragmentVariables})(Nu||(Nu={}));Nu.default=Nu;const $t=Nu;S5($p?"log":"silent");const CM=Object.freeze(Object.defineProperty({__proto__:null,ApolloCache:sT,ApolloClient:wT,ApolloError:cu,ApolloLink:Ai,get Cache(){return yv},HttpLink:d_,InMemoryCache:vT,MissingFieldError:m_,get NetworkStatus(){return xn},Observable:Dn,ObservableQuery:c0,checkFetcher:tm,concat:aL,createHttpLink:f_,createSignalIfSupported:nm,defaultDataIdFromObject:g_,defaultPrinter:md,disableExperimentalFragmentVariables:CT,disableFragmentWarnings:TT,empty:iL,enableExperimentalFragmentVariables:$T,execute:o0,fallbackHttpConfig:em,from:sL,fromError:Mf,fromPromise:JF,get gql(){return Nu},isApolloError:H5,isReference:Nn,makeReference:ku,makeVar:fT,mergeOptions:Op,parseAndCheckHttpResponse:J0,resetCaches:ST,rewriteURIForGET:c_,selectHttpOptionsAndBody:W5,selectHttpOptionsAndBodyInternal:gd,selectURI:Bf,serializeFetchParameter:Yl,setLogVerbosity:S5,split:oL,throwServerError:s0,toPromise:KF},Symbol.toStringTag,{value:"Module"}));var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function w_(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}const AM=w_(CM),DM=w_(AL);var IM=class{constructor({uri:e,name:n,type:r}){this.uri=e,this.name=n,this.type=r}};const OM=IM;var DT=function(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||e instanceof OM};const NM=DT;var RM=function(e,n="",r=NM){const i=new Map,s=new Map;function o(a,u,l){let c=a;if(r(a)){c=null;const d=i.get(a);d?d.push(u):i.set(a,[u])}
83else{const d=Array.isArray(a)||typeof FileList<"u"&&a instanceof FileList,h=a&&a.constructor===Object;if(d||h){const m=s.has(a);if(m?c=s.get(a):(c=d?[]:{},s.set(a,c)),!l.has(a)){const g=u?`${u}.`:"",k=new Set(l).add(a);if(d){let y=0;for(const b of a){const S=o(b,g+y++,k);m||c.push(S)}}else for(const y in a){const b=o(a[y],g+y,k);m||(c[y]=b)}}}}return c}return{clone:o(e,n,new Set),files:i}},PM=function(e,n,r){e.append(n,r,r.name)},xM=DT;const{ApolloLink:qM,Observable:f4}=AM,{createSignalIfSupported:FM,fallbackHttpConfig:LM,parseAndCheckHttpResponse:MM,rewriteURIForGET:BM,selectHttpOptionsAndBody:zM,selectURI:jM,serializeFetchParameter:d4}=DM,UM=RM,HM=PM,VM=xM;var WM=function({uri:e="/graphql",useGETForQueries:n,isExtractableFile:r=VM,FormData:i,formDataAppendFile:s=HM,fetch:o,fetchOptions:a,credentials:u,headers:l,includeExtensions:c}={}){const d={http:{includeExtensions:c},options:a,credentials:u,headers:l};return new qM(h=>{const m=h.getContext(),{clientAwareness:{name:g,version:k}={},headers:y}=m,b={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:{...g&&{"apollographql-client-name":g},...k&&{"apollographql-client-version":k},...y}},{options:S,body:$}=zM(h,LM,d,b),{clone:D,files:P}=UM($,"",r);let x=jM(h,e);if(P.size){delete S.headers["content-type"];const F=i||FormData,L=new F;L.append("operations",d4(D,"Payload"));const M={};let V=0;P.forEach(H=>{M[++V]=H}),L.append("map",JSON.stringify(M)),V=0,P.forEach((H,J)=>{s(L,++V,J)}),S.body=L}else if(n&&!h.query.definitions.some(F=>F.kind==="OperationDefinition"&&F.operation==="mutation")&&(S.method="GET"),S.method==="GET"){const{newURI:F,parseError:L}=BM(x,$);if(L)return new f4(M=>{M.error(L)});x=F}else S.body=d4(D,"Payload");const{controller:R}=FM();R&&(S.signal&&(S.signal.aborted?R.abort():S.signal.addEventListener("abort",()=>{R.abort()},{once:!0})),S.signal=R.signal);const q=o||fetch;return new f4(F=>{let L;return q(x,S).then(M=>(h.setContext({response:M}),M)).then(MM(h)).then(M=>{F.next(M),F.complete()}).catch(M=>{L||(M.result&&M.result.errors&&M.result.data&&F.next(M.result),F.error(M))}),()=>{L=!0,R&&R.abort()}})})};const GM=AT(WM);function IT(t){return new Ai(function(e,n){var r=Pa(e,[]);return new Dn(function(i){var s,o=!1;return Promise.resolve(r).then(function(a){return t(a,e.getContext())}).then(e.setContext).then(function(){o||(s=n(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,s&&s.unsubscribe()}})})}var YM=function(){function t(e){var n=e.batchDebounce,r=e.batchInterval,i=e.batchMax,s=e.batchHandler,o=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=n,this.batchInterval=r,this.batchMax=i||0,this.batchHandler=s,this.batchKey=o||function(){return""}}return t.prototype.enqueueRequest=function(e){var n=this,r=ke(ke({},e),{next:[],error:[],complete:[],subscribers:new Set}),i=this.batchKey(e.operation);return r.observable||(r.observable=new Dn(function(s){var o=n.batchesByKey.get(i);o||n.batchesByKey.set(i,o=new Set);var a=o.size===0,u=r.subscribers.size===0;return r.subscribers.add(s),u&&o.add(r),s.next&&r.next.push(s.next.bind(s)),s.error&&r.error.push(s.error.bind(s)),s.complete&&r.complete.push(s.complete.bind(s)),(a||n.batchDebounce)&&n.scheduleQueueConsumption(i),o.size===n.batchMax&&n.consumeQueue(i),function(){var l;r.subscribers.delete(s)&&r.subscribers.size<1&&o.delete(r)&&o.size<1&&(n.consumeQueue(i),(l=o.subscription)===null||l===void 0||l.unsubscribe())}})),r.observable},t.prototype.consumeQueue=function(e){e===void 0&&(e="");var n=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),!(!n||!n.size)){var r=[],i=[],s=[],o=[],a=[],u=[];n.forEach(function(d){r.push(d.operation),i.push(d.forward),s.push(d.observable),o.push(d.next),a.push(d.error),u.push(d.complete)});var l=this.batchHandler(r,i)||Dn.of(),c=function(d){a.forEach(function(h){h&&h.forEach(function(m){return m(d)})})};return n.subscription=l.subscribe({next:function(d){if(Array.isArray(d)||(d=[d]),o.length!==d.length){var h=new Error("server returned results with length ".concat(d.length,", expected length of ").concat(o.length));return h.result=d,c(h)}
83d.forEach(function(m,g){o[g]&&o[g].forEach(function(k){return k(m)})})},error:c,complete:function(){u.forEach(function(d){d&&d.forEach(function(h){return h()})})}}),s}},t.prototype.scheduleQueueConsumption=function(e){var n=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(function(){n.consumeQueue(e),n.scheduledBatchTimerByKey.delete(e)},this.batchInterval))},t}(),QM=function(t){Xr(e,t);function e(n){var r=t.call(this)||this,i=n||{},s=i.batchDebounce,o=i.batchInterval,a=o===void 0?10:o,u=i.batchMax,l=u===void 0?0:u,c=i.batchHandler,d=c===void 0?function(){return null}:c,h=i.batchKey,m=h===void 0?function(){return""}:h;return r.batcher=new YM({batchDebounce:s,batchInterval:a,batchMax:l,batchHandler:d,batchKey:m}),n.batchHandler.length<=1&&(r.request=function(g){return r.batcher.enqueueRequest({operation:g})}),r}return e.prototype.request=function(n,r){return this.batcher.enqueueRequest({operation:n,forward:r})},e}(Ai),ZM=function(t){Xr(e,t);function e(n){var r=t.call(this)||this,i=n||{},s=i.uri,o=s===void 0?"/graphql":s,a=i.fetch,u=i.print,l=u===void 0?md:u,c=i.includeExtensions,d=i.preserveHeaderCase,h=i.batchInterval,m=i.batchDebounce,g=i.batchMax,k=i.batchKey,y=Pa(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey"]);tm(a),a||(a=fetch);var b={http:{includeExtensions:c,preserveHeaderCase:d},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};r.batchDebounce=m,r.batchInterval=h||10,r.batchMax=g||10;var S=function($){var D=Bf($[0],o),P=$[0].getContext(),x={};if(P.clientAwareness){var R=P.clientAwareness,q=R.name,F=R.version;q&&(x["apollographql-client-name"]=q),F&&(x["apollographql-client-version"]=F)}var L={http:P.http,options:P.fetchOptions,credentials:P.credentials,headers:ke(ke({},x),P.headers)},M=$.map(function(G){return gd(G,l,em,b,L)}),V=M.map(function(G){var se=G.body;return se}),H=M[0].options;if(H.method==="GET")return Mf(new Error("apollo-link-batch-http does not support GET requests"));try{H.body=Yl(V,"Payload")}catch(G){return Mf(G)}var J;if(!H.signal){var Z=nm(),Q=Z.controller,K=Z.signal;J=Q,J&&(H.signal=K)}return new Dn(function(G){return a(D,H).then(function(se){return $.forEach(function(fe){return fe.setContext({response:se})}),se}).then(J0($)).then(function(se){return G.next(se),G.complete(),se}).catch(function(se){se.name!=="AbortError"&&(se.result&&se.result.errors&&se.result.data&&G.next(se.result),G.error(se))}),function(){J&&J.abort()}})};return k=k||function($){var D=$.getContext(),P={http:D.http,options:D.fetchOptions,credentials:D.credentials,headers:D.headers};return Bf($,o)+JSON.stringify(P)},r.batcher=new QM({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:k,batchHandler:S}),r}return e.prototype.request=function(n){return this.batcher.request(n)},e}(Ai),OT=typeof global=="object"&&global&&global.Object===Object&&global,XM=typeof self=="object"&&self&&self.Object===Object&&self,Hs=OT||XM||Function("return this")(),Ss=Hs.Symbol,NT=Object.prototype,KM=NT.hasOwnProperty,JM=NT.toString,tf=Ss?Ss.toStringTag:void 0;function eB(t){var e=KM.call(t,tf),n=t[tf];try{t[tf]=void 0;var r=!0}catch{}var i=JM.call(t);return r&&(e?t[tf]=n:delete t[tf]),i}var tB=Object.prototype,nB=tB.toString;function rB(t){return nB.call(t)}var iB="[object Null]",sB="[object Undefined]",h4=Ss?Ss.toStringTag:void 0;function pc(t){return t==null?t===void 0?sB:iB:h4&&h4 in Object(t)?eB(t):rB(t)}function La(t){return t!=null&&typeof t=="object"}var oB="[object Symbol]";function Ru(t){return typeof t=="symbol"||La(t)&&pc(t)==oB}function Pp(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Ts=Array.isArray,aB=1/0,p4=Ss?Ss.prototype:void 0,m4=p4?p4.toString:void 0;function RT(t){if(typeof t=="string")return t;if(Ts(t))return Pp(t,RT)+"";if(Ru(t))return m4?m4.call(t):"";var e=t+"";return e=="0"&&1/t==-aB?"-0":e}var uB=/\s/;function lB(t){for(var e=t.length;e--&&uB.test(t.charAt(e)););return e}var cB=/^\s+/;function fB(t){return t&&t.slice(0,lB(t)+1).replace(cB,"")}function po(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var g4=NaN,dB=/^[-+]0x[0-9a-f]+$/i,hB=/^0b[01]+$/i,pB=/^0o[0-7]+$/i,mB=parseInt;function Dv(t){if(typeof t=="number")return t;if(Ru(t))return g4;if(po(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=po(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=fB(t);var n=hB.test(t);return n||pB.test(t)?mB(t.slice(2),n?2:8):dB.test(t)?g4:+t}var v4=1/0,gB=17976931348623157e292;function h1(t){if(!t)return t===0?t:0;if(t=Dv(t),t===v4||t===-v4){var e=t<0?-1:1;return e*gB}return t===t?t:0}function vd(t){return t}var vB="[object AsyncFunction]",bB="[object Function]",_B="[object GeneratorFunction]",yB="[object Proxy]";function PT(t){if(!po(t))return!1;var e=pc(t);return e==bB||e==_B||e==vB||e==yB}var p1=Hs["__core-js_shared__"],b4=function(){var t=/[^.]+$/.exec(p1&&p1.keys&&p1.keys.IE_PROTO||"");
vendor: 4,113 bytes, line 83
83return t?"Symbol(src)_1."+t:""}();function wB(t){return!!b4&&b4 in t}var EB=Function.prototype,kB=EB.toString;function zu(t){if(t!=null){try{return kB.call(t)}catch{}try{return t+""}catch{}}return""}var SB=/[\\^$.*+?()[\]{}|]/g,TB=/^\[object .+?Constructor\]$/,$B=Function.prototype,CB=Object.prototype,AB=$B.toString,DB=CB.hasOwnProperty,IB=RegExp("^"+AB.call(DB).replace(SB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function OB(t){if(!po(t)||wB(t))return!1;var e=PT(t)?IB:TB;return e.test(zu(t))}function NB(t,e){return t==null?void 0:t[e]}function ju(t,e){var n=NB(t,e);return OB(n)?n:void 0}var Iv=ju(Hs,"WeakMap"),_4=Object.create,RB=function(){function t(){}return function(e){if(!po(e))return{};if(_4)return _4(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function PB(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function xB(){}function qB(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var FB=800,LB=16,MB=Date.now;function BB(t){var e=0,n=0;return function(){var r=MB(),i=LB-(r-n);if(n=r,i>0){if(++e>=FB)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function zB(t){return function(){return t}}var d0=function(){try{var t=ju(Object,"defineProperty");return t({},"",{}),t}catch{}}(),jB=d0?function(t,e){return d0(t,"toString",{configurable:!0,enumerable:!1,value:zB(e),writable:!0})}:vd;const UB=jB;var HB=BB(UB);function VB(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function WB(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function GB(t){return t!==t}function YB(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function QB(t,e,n){return e===e?YB(t,e,n):WB(t,GB,n)}function ZB(t,e){var n=t==null?0:t.length;return!!n&&QB(t,e,0)>-1}var XB=9007199254740991,KB=/^(?:0|[1-9]\d*)$/;function E_(t,e){var n=typeof t;return e=e??XB,!!e&&(n=="number"||n!="symbol"&&KB.test(t))&&t>-1&&t%1==0&&t<e}function xT(t,e,n){e=="__proto__"&&d0?d0(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function im(t,e){return t===e||t!==t&&e!==e}var JB=Object.prototype,ez=JB.hasOwnProperty;function qT(t,e,n){var r=t[e];(!(ez.call(t,e)&&im(r,n))||n===void 0&&!(e in t))&&xT(t,e,n)}function sm(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],u=r?r(n[a],t[a],a,n,t):void 0;u===void 0&&(u=t[a]),i?xT(n,a,u):qT(n,a,u)}return n}var y4=Math.max;function tz(t,e,n){return e=y4(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=y4(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),PB(t,this,a)}}function nz(t,e){return HB(tz(t,e,vd),t+"")}var rz=9007199254740991;function k_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rz}function bd(t){return t!=null&&k_(t.length)&&!PT(t)}function Ov(t,e,n){if(!po(n))return!1;var r=typeof e;return(r=="number"?bd(n)&&E_(e,n.length):r=="string"&&e in n)?im(n[e],t):!1}var iz=Object.prototype;function S_(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||iz;return t===n}function sz(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var oz="[object Arguments]";function w4(t){return La(t)&&pc(t)==oz}var FT=Object.prototype,az=FT.hasOwnProperty,uz=FT.propertyIsEnumerable,T_=w4(function(){return arguments}())?w4:function(t){return La(t)&&az.call(t,"callee")&&!uz.call(t,"callee")};function lz(){return!1}var LT=typeof ss=="object"&&ss&&!ss.nodeType&&ss,E4=LT&&typeof pr=="object"&&pr&&!pr.nodeType&&pr,cz=E4&&E4.exports===LT,k4=cz?Hs.Buffer:void 0,fz=k4?k4.isBuffer:void 0,h0=fz||lz,dz="[object Arguments]",hz="[object Array]",pz="[object Boolean]",mz="[object Date]",gz="[object Error]",vz="[object Function]",bz="[object Map]",_z="[object Number]",yz="[object Object]",wz="[object RegExp]",Ez="[object Set]",kz="[object String]",Sz="[object WeakMap]",Tz="[object ArrayBuffer]",$z="[object DataView]",Cz="[object Float32Array]",Az="[object Float64Array
83]",Dz="[object Int8Array]",Iz="[object Int16Array]",Oz="[object Int32Array]",Nz="[object Uint8Array]",Rz="[object Uint8ClampedArray]",Pz="[object Uint16Array]",xz="[object Uint32Array]",nr={};nr[Cz]=nr[Az]=nr[Dz]=nr[Iz]=nr[Oz]=nr[Nz]=nr[Rz]=nr[Pz]=nr[xz]=!0;nr[dz]=nr[hz]=nr[Tz]=nr[pz]=nr[$z]=nr[mz]=nr[gz]=nr[vz]=nr[bz]=nr[_z]=nr[yz]=nr[wz]=nr[Ez]=nr[kz]=nr[Sz]=!1;function qz(t){return La(t)&&k_(t.length)&&!!nr[pc(t)]}function om(t){return function(e){return t(e)}}var MT=typeof ss=="object"&&ss&&!ss.nodeType&&ss,Af=MT&&typeof pr=="object"&&pr&&!pr.nodeType&&pr,Fz=Af&&Af.exports===MT,m1=Fz&&OT.process,Zl=function(){try{var t=Af&&Af.require&&Af.require("util").types;return t||m1&&m1.binding&&m1.binding("util")}catch{}}(),S4=Zl&&Zl.isTypedArray,BT=S4?om(S4):qz,Lz=Object.prototype,Mz=Lz.hasOwnProperty;function zT(t,e){var n=Ts(t),r=!n&&T_(t),i=!n&&!r&&h0(t),s=!n&&!r&&!i&&BT(t),o=n||r||i||s,a=o?sz(t.length,String):[],u=a.length;for(var l in t)(e||Mz.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||E_(l,u)))&&a.push(l);return a}function jT(t,e){return function(n){return t(e(n))}}var Bz=jT(Object.keys,Object),zz=Object.prototype,jz=zz.hasOwnProperty;function Uz(t){if(!S_(t))return Bz(t);var e=[];for(var n in Object(t))jz.call(t,n)&&n!="constructor"&&e.push(n);return e}function _d(t){return bd(t)?zT(t):Uz(t)}function Hz(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Vz=Object.prototype,Wz=Vz.hasOwnProperty;function Gz(t){if(!po(t))return Hz(t);var e=S_(t),n=[];for(var r in t)r=="constructor"&&(e||!Wz.call(t,r))||n.push(r);return n}function $_(t){return bd(t)?zT(t,!0):Gz(t)}var Yz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qz=/^\w*$/;function C_(t,e){if(Ts(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ru(t)?!0:Qz.test(t)||!Yz.test(t)||e!=null&&t in Object(e)}var Hf=ju(Object,"create");function Zz(){this.__data__=Hf?Hf(null):{},this.size=0}function Xz(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Kz="__lodash_hash_undefined__",Jz=Object.prototype,ej=Jz.hasOwnProperty;function tj(t){var e=this.__data__;if(Hf){var n=e[t];return n===Kz?void 0:n}return ej.call(e,t)?e[t]:void 0}var nj=Object.prototype,rj=nj.hasOwnProperty;function ij(t){var e=this.__data__;return Hf?e[t]!==void 0:rj.call(e,t)}var sj="__lodash_hash_undefined__";function oj(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hf&&e===void 0?sj:e,this}function Pu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pu.prototype.clear=Zz;Pu.prototype.delete=Xz;Pu.prototype.get=tj;Pu.prototype.has=ij;Pu.prototype.set=oj;function aj(){this.__data__=[],this.size=0}function am(t,e){for(var n=t.length;n--;)if(im(t[n][0],e))return n;return-1}var uj=Array.prototype,lj=uj.splice;function cj(t){var e=this.__data__,n=am(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():lj.call(e,n,1),--this.size,!0}function fj(t){var e=this.__data__,n=am(e,t);return n<0?void 0:e[n][1]}function dj(t){return am(this.__data__,t)>-1}function hj(t,e){var n=this.__data__,r=am(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Qo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Qo.prototype.clear=aj;Qo.prototype.delete=cj;Qo.prototype.get=fj;Qo.prototype.has=dj;Qo.prototype.set=hj;var Vf=ju(Hs,"Map");function pj(){this.size=0,this.__data__={hash:new Pu,map:new(Vf||Qo),string:new Pu}}function mj(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function um(t,e){var n=t.__data__;
vendor: 5,034 bytes, line 83
83return mj(e)?n[typeof e=="string"?"string":"hash"]:n.map}function gj(t){var e=um(this,t).delete(t);return this.size-=e?1:0,e}function vj(t){return um(this,t).get(t)}function bj(t){return um(this,t).has(t)}function _j(t,e){var n=um(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Zo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Zo.prototype.clear=pj;Zo.prototype.delete=gj;Zo.prototype.get=vj;Zo.prototype.has=bj;Zo.prototype.set=_j;var yj="Expected a function";function A_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(yj);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(A_.Cache||Zo),n}A_.Cache=Zo;var wj=500;function Ej(t){var e=A_(t,function(r){return n.size===wj&&n.clear(),r}),n=e.cache;return e}var kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sj=/\\(\\)?/g,Tj=Ej(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(kj,function(n,r,i,s){e.push(i?s.replace(Sj,"$1"):r||n)}),e});function $j(t){return t==null?"":RT(t)}function UT(t,e){return Ts(t)?t:C_(t,e)?[t]:Tj($j(t))}var Cj=1/0;function lm(t){if(typeof t=="string"||Ru(t))return t;var e=t+"";return e=="0"&&1/t==-Cj?"-0":e}function D_(t,e){e=UT(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[lm(e[n++])];return n&&n==r?t:void 0}function Aj(t,e,n){var r=t==null?void 0:D_(t,e);return r===void 0?n:r}function I_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var T4=Ss?Ss.isConcatSpreadable:void 0;function Dj(t){return Ts(t)||T_(t)||!!(T4&&t&&t[T4])}function HT(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Dj),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?HT(a,e-1,n,r,i):I_(i,a):r||(i[i.length]=a)}return i}var Ij=jT(Object.getPrototypeOf,Object);const VT=Ij;function Oj(){this.__data__=new Qo,this.size=0}function Nj(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Rj(t){return this.__data__.get(t)}function Pj(t){return this.__data__.has(t)}var xj=200;function qj(t,e){var n=this.__data__;if(n instanceof Qo){var r=n.__data__;if(!Vf||r.length<xj-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zo(r)}return n.set(t,e),this.size=n.size,this}function ao(t){var e=this.__data__=new Qo(t);this.size=e.size}ao.prototype.clear=Oj;ao.prototype.delete=Nj;ao.prototype.get=Rj;ao.prototype.has=Pj;ao.prototype.set=qj;function Fj(t,e){return t&&sm(e,_d(e),t)}function Lj(t,e){return t&&sm(e,$_(e),t)}var WT=typeof ss=="object"&&ss&&!ss.nodeType&&ss,$4=WT&&typeof pr=="object"&&pr&&!pr.nodeType&&pr,Mj=$4&&$4.exports===WT,C4=Mj?Hs.Buffer:void 0,A4=C4?C4.allocUnsafe:void 0;function Bj(t,e){if(e)return t.slice();var n=t.length,r=A4?A4(n):new t.constructor(n);return t.copy(r),r}function zj(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function GT(){return[]}var jj=Object.prototype,Uj=jj.propertyIsEnumerable,D4=Object.getOwnPropertySymbols,O_=D4?function(t){return t==null?[]:(t=Object(t),zj(D4(t),function(e){return Uj.call(t,e)}))}:GT;function Hj(t,e){return sm(t,O_(t),e)}var Vj=Object.getOwnPropertySymbols,YT=Vj?function(t){for(var e=[];t;)I_(e,O_(t)),t=VT(t);return e}:GT;function Wj(t,e){return sm(t,YT(t),e)}function QT(t,e,n){var r=e(t);return Ts(t)?r:I_(r,n(t))}function Nv(t){return QT(t,_d,O_)}function Gj(t){return QT(t,$_,YT)}var Rv=ju(Hs,"DataView"),Pv=ju(Hs,"Promise"),Dl=ju(Hs,"Set"),I4="[object Map]",Yj="[object Object]",O4="[object Promise]",N4="[object Set]",R4="[object WeakMap]",P4="[object DataView]",Qj=zu(Rv),Zj=zu(Vf),Xj=zu(Pv),Kj=zu(Dl),Jj=zu(Iv),fu=pc;(Rv&&fu(new Rv(new ArrayBuffer(1)))!=P4||Vf&&fu(new Vf)!=I4||Pv&&fu(Pv.resolve())!=O4||Dl&&fu(new Dl)!=N4||Iv&&fu(new Iv)!=R4)&&(fu=function(t){var e=pc(t),n=e==Yj?t.constructor:void 0,r=n?zu(n):"";if(r)switch(r){case Qj:return P4;case Zj:return I4;case Xj:return O4;case Kj:return N4;case Jj:return R4}return e});const Wf=fu;var eU=Object.prototype,tU=eU.hasOwnProperty;function nU(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&tU.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var p0=Hs.Uint8Array;function N_(t){var e=new t.constructor(t.byteLength);return new p0(e).set(new p0(t)),e}function rU(t,e){var n=e?N_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var iU=/\w*$/;function sU(t){var e=new t.constructor(t.source,iU.exec(t));return e.lastIndex=t.lastIndex,e}var x4=Ss?Ss.prototype:void 0,q4=x4?x4.valueOf:void 0;function oU(t){return q4?Object(q4.call(t)):{}}function aU(t,e){var n=e?N_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var uU="[object Boolean]",lU="[object Date]",cU="[object Map]",fU="[object Number]",dU="[object RegExp]",hU="[object Set]",pU="[object String]",mU="[object Symbol]",gU="[object ArrayBuffer]",vU="[object DataView]",bU="[object Float32Array]",_U="[object Float64Array
83]",yU="[object Int8Array]",wU="[object Int16Array]",EU="[object Int32Array]",kU="[object Uint8Array]",SU="[object Uint8ClampedArray]",TU="[object Uint16Array]",$U="[object Uint32Array]";function CU(t,e,n){var r=t.constructor;switch(e){case gU:return N_(t);case uU:case lU:return new r(+t);case vU:return rU(t,n);case bU:case _U:case yU:case wU:case EU:case kU:case SU:case TU:case $U:return aU(t,n);case cU:return new r;case fU:case pU:return new r(t);case dU:return sU(t);case hU:return new r;case mU:return oU(t)}}function AU(t){return typeof t.constructor=="function"&&!S_(t)?RB(VT(t)):{}}var DU="[object Map]";function IU(t){return La(t)&&Wf(t)==DU}var F4=Zl&&Zl.isMap,OU=F4?om(F4):IU,NU="[object Set]";function RU(t){return La(t)&&Wf(t)==NU}var L4=Zl&&Zl.isSet,PU=L4?om(L4):RU,xU=1,qU=2,FU=4,ZT="[object Arguments]",LU="[object Array]",MU="[object Boolean]",BU="[object Date]",zU="[object Error]",XT="[object Function]",jU="[object GeneratorFunction]",UU="[object Map]",HU="[object Number]",KT="[object Object]",VU="[object RegExp]",WU="[object Set]",GU="[object String]",YU="[object Symbol]",QU="[object WeakMap]",ZU="[object ArrayBuffer]",XU="[object DataView]",KU="[object Float32Array]",JU="[object Float64Array]",eH="[object Int8Array]",tH="[object Int16Array]",nH="[object Int32Array]",rH="[object Uint8Array]",iH="[object Uint8ClampedArray]",sH="[object Uint16Array]",oH="[object Uint32Array]",Qn={};Qn[ZT]=Qn[LU]=Qn[ZU]=Qn[XU]=Qn[MU]=Qn[BU]=Qn[KU]=Qn[JU]=Qn[eH]=Qn[tH]=Qn[nH]=Qn[UU]=Qn[HU]=Qn[KT]=Qn[VU]=Qn[WU]=Qn[GU]=Qn[YU]=Qn[rH]=Qn[iH]=Qn[sH]=Qn[oH]=!0;Qn[zU]=Qn[XT]=Qn[QU]=!1;function Df(t,e,n,r,i,s){var o,a=e&xU,u=e&qU,l=e&FU;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!po(t))return t;var c=Ts(t);if(c){if(o=nU(t),!a)return qB(t,o)}else{var d=Wf(t),h=d==XT||d==jU;if(h0(t))return Bj(t,a);if(d==KT||d==ZT||h&&!i){if(o=u||h?{}:AU(t),!a)return u?Wj(t,Lj(o,t)):Hj(t,Fj(o,t))}else{if(!Qn[d])return i?t:{};o=CU(t,d,a)}}s||(s=new ao);var m=s.get(t);if(m)return m;s.set(t,o),PU(t)?t.forEach(function(y){o.add(Df(y,e,n,y,t,s))}):OU(t)&&t.forEach(function(y,b){o.set(b,Df(y,e,n,b,t,s))});var g=l?u?Gj:Nv:u?$_:_d,k=c?void 0:g(t);return VB(k||t,function(y,b){k&&(b=y,y=t[b]),qT(o,b,Df(y,e,n,b,t,s))}),o}var aH=4;function uH(t){return Df(t,aH)}var lH=1,cH=4;function Gf(t){return Df(t,lH|cH)}var fH="__lodash_hash_undefined__";function dH(t){return this.__data__.set(t,fH),this}function hH(t){return this.__data__.has(t)}function Yf(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Zo;++e<n;)this.add(t[e])}Yf.prototype.add=Yf.prototype.push=dH;Yf.prototype.has=hH;function pH(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function JT(t,e){return t.has(e)}var mH=1,gH=2;function e$(t,e,n,r,i,s){var o=n&mH,a=t.length,u=e.length;if(a!=u&&!(o&&u>a))return!1;var l=s.get(t),c=s.get(e);if(l&&c)return l==e&&c==t;var d=-1,h=!0,m=n&gH?new Yf:void 0;for(s.set(t,e),s.set(e,t);++d<a;){var g=t[d],k=e[d];if(r)var y=o?r(k,g,d,e,t,s):r(g,k,d,t,e,s);if(y!==void 0){if(y)continue;h=!1;break}if(m){if(!pH(e,function(b,S){if(!JT(m,S)&&(g===b||i(g,b,n,r,s)))return m.push(S)})){h=!1;break}}else if(!(g===k||i(g,k,n,r,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function vH(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function R_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var bH=1,_H=2,yH="[object Boolean]",wH="[object Date]",EH="[object Error]",kH="[object Map]",SH="[object Number]",TH="[object RegExp]",$H="[object Set]",CH="[object String]",AH="[object Symbol]",DH="[object ArrayBuffer]",IH="[object DataView]",M4=Ss?Ss.prototype:void 0,g1=M4?M4.valueOf:void 0;function OH(t,e,n,r,i,s,o){switch(n){case IH:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case DH:return!(t.byteLength!=e.byteLength||!s(new p0(t),new p0(e)));case yH:case wH:case SH:return im(+t,+e);case EH:return t.name==e.name&&t.message==e.message;case TH:case CH:return t==e+"";case kH:var a=vH;case $H:var u=r&bH;if(a||(a=R_),t.size!=e.size&&!u)return!1;var l=o.get(t);if(l)return l==e;r|=_H,o.set(t,e);var c=e$(a(t),a(e),r,i,s,o);return o.delete(t),c;case AH:if(g1)return g1.call(t)==g1.call(e)}return!1}var NH=1,RH=Object.prototype,PH=RH.hasOwnProperty;function xH(t,e,n,r,i,s){var o=n&NH,a=Nv(t),u=a.length,l=Nv(e),c=l.length;if(u!=c&&!o)return!1;for(var d=u;d--;){var h=a[d];if(!(o?h in e:PH.call(e,h)))return!1}var m=s.get(t),g=s.get(e);if(m&&g)return m==e&&g==t;var k=!0;s.set(t,e),s.set(e,t);for(var y=o;++d<u;){h=a[d];var b=t[h],S=e[h];if(r)var $=o?r(S,b,h,e,t,s):r(b,S,h,t,e,s);if(!($===void 0?b===S||i(b,S,n,r,s):$)){k=!1;break}y||(y=h=="constructor")}if(k&&!y){var D=t.constructor,P=e.constructor;D!=P&&"constructor"in t&&"constructor"in e&&!(typeof D=="function"&&D instanceof D&&typeof P=="function"&&P instanceof P)&&(k=!1)}return s.delete(t),s.delete(e),k}var qH=1,B4="[object Arguments]",z4="[object Array]",Hh="[object Object]",FH=Object.prototype,j4=FH.hasOwnProperty;function LH(t,e,n,r,i,s){var o=Ts(t),a=Ts(e),u=o?z4:Wf(t),l=a?z4:Wf(e);u=u==B4?Hh:u,l=l==B4?Hh:l;var c=u==Hh,d=l==Hh,h=u==l;if(h&&h0(t)){if(!h0(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new ao),o||BT(t)?e$(t,e,n,r,i,s):OH(t,e,u,n,r,i,s);if(!(n&qH)){var m=c&&j4.call(t,"__wrapped__"),g=d&&j4.call(e,"__wrapped__");
vendor: 2,827 bytes, line 83
83if(m||g){var k=m?t.value():t,y=g?e.value():e;return s||(s=new ao),i(k,y,n,r,s)}}return h?(s||(s=new ao),xH(t,e,n,r,i,s)):!1}function cm(t,e,n,r,i){return t===e?!0:t==null||e==null||!La(t)&&!La(e)?t!==t&&e!==e:LH(t,e,n,r,cm,i)}var MH=1,BH=2;function zH(t,e,n,r){var i=n.length,s=i,o=!r;if(t==null)return!s;for(t=Object(t);i--;){var a=n[i];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<s;){a=n[i];var u=a[0],l=t[u],c=a[1];if(o&&a[2]){if(l===void 0&&!(u in t))return!1}else{var d=new ao;if(r)var h=r(l,c,u,t,e,d);if(!(h===void 0?cm(c,l,MH|BH,r,d):h))return!1}}return!0}function t$(t){return t===t&&!po(t)}function jH(t){for(var e=_d(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,t$(i)]}return e}function n$(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function UH(t){var e=jH(t);return e.length==1&&e[0][2]?n$(e[0][0],e[0][1]):function(n){return n===t||zH(n,t,e)}}function HH(t,e){return t!=null&&e in Object(t)}function VH(t,e,n){e=UT(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=lm(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&k_(i)&&E_(o,i)&&(Ts(t)||T_(t)))}function WH(t,e){return t!=null&&VH(t,e,HH)}var GH=1,YH=2;function QH(t,e){return C_(t)&&t$(e)?n$(lm(t),e):function(n){var r=Aj(n,t);return r===void 0&&r===e?WH(n,t):cm(e,r,GH|YH)}}function ZH(t){return function(e){return e==null?void 0:e[t]}}function XH(t){return function(e){return D_(e,t)}}function KH(t){return C_(t)?ZH(lm(t)):XH(t)}function P_(t){return typeof t=="function"?t:t==null?vd:typeof t=="object"?Ts(t)?QH(t[0],t[1]):UH(t):KH(t)}function JH(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var u=o[t?a:++i];if(n(s[u],u,s)===!1)break}return e}}var eV=JH();const tV=eV;function nV(t,e){return t&&tV(t,e,_d)}function rV(t,e){return function(n,r){if(n==null)return n;if(!bd(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=Object(n);(e?s--:++s<i)&&r(o[s],s,o)!==!1;);return n}}var iV=rV(nV),v1=function(){return Hs.Date.now()},sV="Expected a function",oV=Math.max,aV=Math.min;function r$(t,e,n){var r,i,s,o,a,u,l=0,c=!1,d=!1,h=!0;if(typeof t!="function")throw new TypeError(sV);e=Dv(e)||0,po(n)&&(c=!!n.leading,d="maxWait"in n,s=d?oV(Dv(n.maxWait)||0,e):s,h="trailing"in n?!!n.trailing:h);function m(x){var R=r,q=i;return r=i=void 0,l=x,o=t.apply(q,R),o}function g(x){return l=x,a=setTimeout(b,e),c?m(x):o}function k(x){var R=x-u,q=x-l,F=e-R;return d?aV(F,s-q):F}function y(x){var R=x-u,q=x-l;return u===void 0||R>=e||R<0||d&&q>=s}function b(){var x=v1();if(y(x))return S(x);a=setTimeout(b,k(x))}function S(x){return a=void 0,h&&r?m(x):(r=i=void 0,o)}function $(){a!==void 0&&clearTimeout(a),l=0,r=u=i=a=void 0}function D(){return a===void 0?o:S(v1())}function P(){var x=v1(),R=y(x);if(r=arguments,i=this,u=x,R){if(a===void 0)return g(u);
vendor: 4,420 bytes, line 83
83if(d)return clearTimeout(a),a=setTimeout(b,e),m(u)}return a===void 0&&(a=setTimeout(b,e)),o}return P.cancel=$,P.flush=D,P}function uV(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function lV(t){return t&&t.length?t[0]:void 0}function cV(t,e){var n=-1,r=bd(t)?Array(t.length):[];return iV(t,function(i,s,o){r[++n]=e(i,s,o)}),r}function i$(t,e){return t>e}function Xl(t,e){return cm(t,e)}function fV(t,e){return t<e}function x_(t,e,n){for(var r=-1,i=t.length;++r<i;){var s=t[r],o=e(s);if(o!=null&&(a===void 0?o===o&&!Ru(o):n(o,a)))var a=o,u=s}return u}function dV(t){return t&&t.length?x_(t,vd,i$):void 0}function s$(t,e){return t&&t.length?x_(t,P_(e),i$):void 0}function hV(t,e){return t&&t.length?x_(t,P_(e),fV):void 0}function pV(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function mV(t,e){if(t!==e){var n=t!==void 0,r=t===null,i=t===t,s=Ru(t),o=e!==void 0,a=e===null,u=e===e,l=Ru(e);if(!a&&!l&&!s&&t>e||s&&o&&u&&!a&&!l||r&&o&&u||!n&&u||!i)return 1;if(!r&&!s&&!l&&t<e||l&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!u)return-1}return 0}function gV(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var u=mV(i[r],s[r]);if(u){if(r>=a)return u;var l=n[r];return u*(l=="desc"?-1:1)}}return t.index-e.index}function vV(t,e,n){e.length?e=Pp(e,function(s){return Ts(s)?function(o){return D_(o,s.length===1?s[0]:s)}:s}):e=[vd];var r=-1;e=Pp(e,om(P_));var i=cV(t,function(s,o,a){var u=Pp(e,function(l){return l(s)});return{criteria:u,index:++r,value:s}});return pV(i,function(s,o){return gV(s,o,n)})}var bV=Math.ceil,_V=Math.max;function yV(t,e,n,r){for(var i=-1,s=_V(bV((e-t)/(n||1)),0),o=Array(s);s--;)o[r?s:++i]=t,t+=n;return o}function wV(t){return function(e,n,r){return r&&typeof r!="number"&&Ov(e,n,r)&&(n=r=void 0),e=h1(e),n===void 0?(n=e,e=0):n=h1(n),r=r===void 0?e<n?1:-1:h1(r),yV(e,n,r,t)}}var EV=wV(),o$=nz(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Ov(t,e[0],e[1])?e=[]:n>2&&Ov(e[0],e[1],e[2])&&(e=[e[0]]),vV(t,HT(e,1),[])}),kV=1/0,SV=Dl&&1/R_(new Dl([,-0]))[1]==kV?function(t){return new Dl(t)}:xB,TV=200;function $V(t,e,n){var r=-1,i=ZB,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=uV;else if(s>=TV){var l=e?null:SV(t);if(l)return R_(l);o=!1,i=JT,u=new Yf}else u=e?[]:a;e:for(;++r<s;){var c=t[r],d=e?e(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var h=u.length;h--;)if(u[h]===d)continue e;e&&u.push(d),a.push(c)}else i(u,d,n)||(u!==a&&u.push(d),a.push(c))}return a}function CV(t){return t&&t.length?$V(t):[]}/*! js-cookie v3.0.5 | MIT */function Vh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var AV={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function xv(t,e){function n(i,s,o){if(!(typeof document>"u")){o=Vh({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),l=u.slice(1).join("=");try{var c=decodeURIComponent(u[0]);if(o[c]=t.read(l,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Vh({},s,{expires:-1}))},withAttributes:function(i){return xv(this.converter,Vh({},this.attributes,i))},withConverter:function(i){return xv(Vh({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var b1=xv(AV,{path:"/"}),DV={APP_SENTRY_DSN:"https://[email protected]/6773076",APP_COOKIE_DOMAIN:"hyper.place",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Il="accessToken",IV=365,U4=()=>({domain:"hyper.place",secure:!0,expires:IV}),q_={get:()=>b1.get(Il),reset:()=>b1.remove(Il,U4()),set:t=>b1.set(Il,t,U4())},F_={get:()=>localStorage.getItem(Il),reset:()=>localStorage.removeItem(Il),set:t=>localStorage.setItem(Il,t)},a$=()=>q_.get()||F_.get(),Ma=nn(a$());let OV=0;const NV=1e3,RV=()=>
83{if(Date.now()-OV<=NV)return $i(Ma);const e=a$();return Ma.set(e),e},PV=()=>{q_.reset(),F_.reset(),Ma.set(void 0)},u$=t=>{q_.set(t),F_.set(t),Ma.set(t)},qv=nn(0),xV=IT((t,e)=>{c$(t)||qv.update(r=>r===Number.MAX_SAFE_INTEGER?0:r+1);const n=$i(qv);return{headers:{...e.headers,"x-sync-clock":n}}}),qV=new Ai((t,e)=>e(t).map(n=>{var s;const i=(s=t.getContext().response)==null?void 0:s.headers;if(i){const o=i.get("x-refresh-token");o&&u$(o)}return n})).concat(xV),FV=IT((t,e)=>{const n=RV();return{headers:{...e.headers,authorization:n?`Bearer ${n}`:""}}}).concat(qV),l$=DV.APP_API_URL||"/api/graphql",LV=GM({uri:l$}),MV=new ZM({uri:l$,batchMax:10,batchInterval:20}),c$=t=>!t.query.definitions.find(n=>n.kind===wt.OPERATION_DEFINITION&&n.operation===gu.MUTATION),BV=FV.concat(Ai.split(c$,MV,LV)),Yt=new wT({connectToDevTools:!1,defaultOptions:{query:{errorPolicy:"all"},watchQuery:{errorPolicy:"all"},mutate:{errorPolicy:"all"}},link:BV,cache:new vT({typePolicies:{Space:{fields:{books:{merge(t=[],e){return e}},pinnedEntries:{merge(t=[],e){return e}}}},Entry:{fields:{books:{merge(t=[],e){return e.filter(n=>!n.id)}}}},Query:{fields:{entries:{keyArgs:["spaceId","query","bookId","pinned"],merge(t,e,{readField:n}){if(e.length===0)return t;const r=new Set(e.map(a=>a.__ref)),i=t?t.slice(0):[],s=i.length;for(let a=0;a<s;a+=1){const u=i[a].__ref;if(r.has(u)){const l=e.find(c=>c.__ref===u);i[a]=l,r.delete(u)}}for(let a of e)r.has(a.__ref)&&(i.push(a),r.delete(a.__ref));return o$(i,a=>n("createdAt",a))}}}}}})});var yl=(t=>(t.Failed="failed",t.Idle="idle",t.Successful="successful",t.Waiting="waiting",t))(yl||{}),zs=(t=>(t.Auto="AUTO",t.Dark="DARK",t.Light="LIGHT",t))(zs||{}),m0=(t=>(t.Del="DEL",t.Set="SET",t))(m0||{}),f$=(t=>(t.App="app",t.Ext="ext",t))(f$||{}),Kl=(t=>(t.Room="ROOM",t.Wall="WALL",t))(Kl||{});const Fn=$t` 84 fragment CoreErrorFields on ModelError { 85 attribute 86 message 87 type 88} 89 `,Wa=$t` 90 fragment CoreSpaceFields on Space { 91 id 92 publicId 93 isPublic 94 isVisiting 95 name 96 hue 97 saturation 98 urlFull 99 urlPath 100 previewSvgUrl 101 entriesCount 102 drawerEntriesCount 103 createdAt 104 updatedAt 105 lastEntryCreatedAt 106} 107 `,d$=$t` 108 fragment CoreSpaceUserFields on SpaceUser { 109 user { 110 id 111 publicId 112 username 113 email 114 } 115 isOwner 116} 117 `,h$=$t` 118 fragment CorePreferencesFields on Preferences { 119 colorTheme 120} 121 `,p$=$t` 122 fragment CoreSpacePreferencesFields on SpacePreferences { 123 id 124 x 125 y 126 zoom 127 viewMode 128 activeChatIds 129 activeBookIds 130} 131 `,mc=$t` 132 fragment CoreAgentConversationFields on AgentConversation { 133 id 134 spaceId 135 title 136 entriesCount 137 state 138} 139 `,L_=$t` 140 fragment CoreUserFields on User { 141 id 142 publicId 143 email 144 username 145 isActive 146} 147 `,Xo=$t` 148 fragment CoreBookFields on Book { 149 id 150 publicId 151 spaceId 152 name 153 entriesCount 154 isDestroyed 155} 156 `,zV=$t` 157 fragment CoreEntryPinFields on EntryPin { 158 id 159 x 160 y 161 z 162 width 163 height 164 fontSize 165 isExpanded 166 color { 167 hue 168 saturation 169 lightness 170 alpha 171 } 172} 173 `,M_=$t` 174 fragment CoreAttachmentFields on Attachment { 175 id 176 publicId 177 fileType 178 fileName 179 url 180 mimeType 181} 182 `,m$=$t` 183 fragment CoreEntityFields on Entity { 184 id 185 url 186 state 187 title 188 image 189 embed 190 description 191 video { 192 url 193 type 194 width 195 height 196 } 197 audio { 198 url 199 type 200 } 201} 202 `,Ko=$t` 203 fragment CoreEntryFields on Entry { 204 id 205 publicId 206 spaceId 207 agentConversationId 208 content 209 inReplyToId 210 source 211 updatedAt 212 createdAt 213 author { 214 ... on EntryAuthorUser { 215 id 216 authorType 217 displayName 218 user { 219 ...CoreUserFields 220 } 221 } 222 ... on EntryAuthorAgent { 223 id 224 authorType 225 displayName 226 agentType 227 } 228 } 229 user { 230 ...CoreUserFields 231 } 232 attachmentsCount 233 entitiesCount 234 booksCount 235 books { 236 ...CoreBookFields 237 } 238 isPinned 239 pin { 240 ...CoreEntryPinFields 241 } 242 attachments { 243 ...CoreAttachmentFields 244 } 245 entities { 246 ...CoreEntityFields 247 } 248} 249 ${L_} 250${Xo} 251${zV} 252${M_} 253${m$}`,jV=$t` 254 fragment CorePlanFields on Plan { 255 id 256 name 257 spaceLimit 258 attachmentSizeLimit 259 isDefault 260 isActive 261 canLoadCredit 262} 263 `,UV=$t` 264 fragment CoreSubscriptionFields on Subscription { 265 status 266 cancelAtPeriodEnd 267 currentPeriodStart 268 currentPeriodEnd 269} 270 `,HV=$t` 271 fragment CoreUserWalletFields on UserWallet { 272 id 273 balance 274} 275 `,VV=$t` 276 fragment CoreLoadCreditTransactionType on LoadCreditTransaction { 277 id 278 amount 279 receiptUrl 280 createdAt 281 updatedAt 282} 283 `,WV=$t` 284 fragment CorePlanUsageFields on PlanUsage { 285 id 286 attachmentSize 287 spaceCount 288} 289 `,GV=$t` 290 mutation createSpace($name: String!, $hue: Float, $saturation: Float) { 291 createSpace(name: $name, hue: $hue, saturation: $saturation) { 292 space { 293 ...CoreSpaceFields 294 spaceUsers { 295 user { 296 id 297 publicId 298 username 299 email 300 } 301 isOwner 302 } 303 } 304 errors { 305 ...CoreErrorFields 306 } 307 } 308} 309 ${Wa} 310${Fn}`,YV=$t` 311 mutation updateSpace($id: ID!, $hue: Float, $saturation: Float, $name: String, $isPublic: Boolean) { 312 updateSpace( 313 id: $id 314 name: $name 315 hue: $hue 316 saturation: $saturation 317 isPublic: $isPublic 318 ) { 319 space { 320 ...CoreSpaceFields 321 } 322 errors { 323 ...CoreErrorFields 324 } 325 } 326} 327 ${Wa} 328${Fn}`,QV=$t` 329 mutation sendInvitation($email: String!, $spaceId: ID!) { 330 sendInvitation(email: $email, spaceId: $spaceId) { 331 errors { 332 ...CoreErrorFields 333 } 334 } 335} 336 ${Fn}`,ZV=$t` 337 mutation sendResetPasswordInstructions($email: String!) { 338 sendResetPasswordInstructions(email: $email) { 339 errors { 340 ...CoreErrorFields 341 } 342 } 343} 344 ${Fn}`,XV=$t` 345 mutation resetPassword($token: String!, $password: String!, $passwordConfirmation: String!) { 346 resetPassword( 347 token: $token 348 password: $password 349 passwordConfirmation: $passwordConfirmation 350 ) { 351 errors { 352 ...CoreErrorFields 353 } 354 } 355} 356 ${Fn}`,KV=$t` 357 mutation joinWaitingList($email: String!) { 358 joinWaitingList(email: $email) { 359 errors { 360 ...CoreErrorFields 361 } 362 } 363} 364 ${Fn}`,JV=$t` 365 mutation createUser($username: String!, $email: String!, $password: String!, $passwordConfirmation: String!) { 366 createUser( 367 username: $username 368 email: $email 369 password: $password 370 passwordConfirmation: $passwordConfirmation 371 ) { 372 errors { 373 ...CoreErrorFields 374 } 375 } 376} 377 ${Fn}`,eW=$t` 378 mutation acceptInvitation($username: String!, $token: String!, $password: String!, $passwordConfirmation: String!) { 379 acceptInvitation( 380 username: $username 381 token: $token 382 password: $password 383 passwordConfirmation: $passwordConfirmation 384 ) { 385 errors { 386 ...CoreErrorFields 387 } 388 } 389} 390 ${Fn}`,tW=$t`
391 mutation confirmationResend($email: String!) { 392 confirmationResend(email: $email) { 393 errors { 394 ...CoreErrorFields 395 } 396 } 397} 398 ${Fn}`,nW=$t` 399 mutation confirmEmail($token: String!) { 400 confirmEmail(token: $token) { 401 errors { 402 ...CoreErrorFields 403 } 404 } 405} 406 ${Fn}`,rW=$t` 407 mutation createSession($email: String!, $password: String!) { 408 createSession(email: $email, password: $password) { 409 accessToken 410 errors { 411 ...CoreErrorFields 412 } 413 } 414} 415 ${Fn}`,iW=$t` 416 mutation destroySpace($id: String!) { 417 destroySpace(id: $id) { 418 errors { 419 ...CoreErrorFields 420 } 421 } 422} 423 ${Fn}`,g$=$t` 424 mutation entryPersistBatch($spaceId: String!, $changes: [EntryChangeInput!]!) { 425 entryPersistBatch(spaceId: $spaceId, changes: $changes) { 426 space { 427 id 428 pinnedEntries { 429 id 430 } 431 } 432 entries { 433 ...CoreEntryFields 434 syncClock 435 } 436 books { 437 ...CoreBookFields 438 } 439 refs { 440 id 441 ref 442 } 443 errors { 444 ...CoreErrorFields 445 } 446 } 447} 448 ${Ko} 449${Xo} 450${Fn}`,sW=$t` 451 mutation createEntry($spaceId: String!, $content: String!, $bookIds: [String!] = [], $attachmentIds: [String!] = [], $inReplyToId: String) { 452 createEntry( 453 spaceId: $spaceId 454 content: $content 455 bookIds: $bookIds 456 attachmentIds: $attachmentIds 457 inReplyToId: $inReplyToId 458 ) { 459 entry { 460 ...CoreEntryFields 461 syncClock 462 } 463 books { 464 ...CoreBookFields 465 } 466 errors { 467 ...CoreErrorFields 468 } 469 } 470} 471 ${Ko} 472${Xo} 473${Fn}`,oW=$t` 474 mutation editEntry($id: String!, $content: String, $attachmentIds: [String!], $entryBooks: [EntryBookInput!]) { 475 editEntry( 476 id: $id 477 content: $content 478 attachmentIds: $attachmentIds 479 entryBooks: $entryBooks 480 ) { 481 entry { 482 ...CoreEntryFields 483 syncClock 484 } 485 updatedBooks { 486 id 487 bookEntries { 488 id 489 position 490 entry { 491 ...CoreEntryFields 492 } 493 } 494 } 495 errors { 496 ...CoreErrorFields 497 } 498 } 499} 500 ${Ko} 501${Fn}`,aW=$t` 502 mutation destroyEntry($id: String!) { 503 destroyEntry(id: $id) { 504 books { 505 ...CoreBookFields 506 } 507 errors { 508 ...CoreErrorFields 509 } 510 } 511} 512 ${Xo} 513${Fn}`,uW=$t` 514 mutation unpinEntry($id: ID!) { 515 unpinEntry(id: $id) { 516 entry { 517 ...CoreEntryFields 518 space { 519 id 520 pinnedEntries { 521 id 522 } 523 } 524 syncClock 525 } 526 errors { 527 ...CoreErrorFields 528 } 529 } 530} 531 ${Ko} 532${Fn}`,lW=$t` 533 mutation createBook($spaceId: String!, $name: String!) { 534 createBook(spaceId: $spaceId, name: $name) { 535 book { 536 ...CoreBookFields 537 space { 538 id 539 books { 540 id 541 } 542 } 543 } 544 errors { 545 ...CoreErrorFields 546 } 547 } 548} 549 ${Xo} 550${Fn}`,cW=$t` 551 mutation updateBook($id: ID!, $name: String) { 552 updateBook(id: $id, name: $name) { 553 book { 554 ...CoreBookFields 555 } 556 errors { 557 ...CoreErrorFields 558 } 559 } 560} 561 ${Xo} 562${Fn}`,fW=$t` 563 mutation destroyBook($id: String!) { 564 destroyBook(id: $id) { 565 book { 566 ...CoreBookFields 567 isDestroyed 568 space { 569 id 570 books { 571 id 572 } 573 } 574 } 575 errors { 576 ...CoreErrorFields 577 } 578 } 579} 580 ${Xo} 581${Fn}`,dW=$t` 582 mutation createAttachment($spaceId: String!, $file: Upload!) { 583 createAttachment(spaceId: $spaceId, file: $file) { 584 attachment { 585 ...CoreAttachmentFields 586 } 587 errors { 588 ...CoreErrorFields 589 } 590 } 591} 592 ${M_} 593${Fn}`;$t` 594 mutation createAttachmentFromUrl($spaceId: String!, $url: String!) { 595 createAttachmentFromUrl(spaceId: $spaceId, url: $url) { 596 attachment { 597 ...CoreAttachmentFields 598 } 599 errors { 600 ...CoreErrorFields 601 } 602 } 603} 604 ${M_} 605${Fn}`;const hW=$t` 606 mutation setColorThemePreference($value: ColorTheme!) { 607 setPreference(colorTheme: $value) { 608 preferences { 609 ...CorePreferencesFields 610 } 611 errors { 612 ...CoreErrorFields 613 } 614 } 615} 616 ${h$} 617${Fn}`,pW=$t` 618 mutation setSpacePreference($id: ID!, $x: Float, $y: Float, $zoom: Float, $viewM
618ode: SpaceViewMode, $activeChatIds: [ID!], $activeBookIds: [ID!]) { 619 setSpacePreference( 620 id: $id 621 x: $x 622 y: $y 623 zoom: $zoom 624 viewMode: $viewMode 625 activeChatIds: $activeChatIds 626 activeBookIds: $activeBookIds 627 ) { 628 preferences { 629 ...CoreSpacePreferencesFields 630 } 631 errors { 632 ...CoreErrorFields 633 } 634 } 635} 636 ${p$} 637${Fn}`,mW=$t` 638 mutation changeUsername($username: String!, $currentPassword: String!) { 639 changeUsername(username: $username, currentPassword: $currentPassword) { 640 me { 641 ...CoreUserFields 642 } 643 errors { 644 ...CoreErrorFields 645 } 646 } 647} 648 ${L_} 649${Fn}`,gW=$t` 650 mutation agentConversationCreate($spaceId: String!, $title: String) { 651 agentConversationCreate(spaceId: $spaceId, title: $title) { 652 agentConversation { 653 ...CoreAgentConversationFields 654 space { 655 id 656 agentConversations { 657 id 658 } 659 } 660 } 661 errors { 662 ...CoreErrorFields 663 } 664 } 665} 666 ${mc} 667${Fn}`,vW=$t` 668 mutation agentConversationUpdate($id: ID!, $title: String!) { 669 agentConversationUpdate(id: $id, title: $title) { 670 agentConversation { 671 ...CoreAgentConversationFields 672 } 673 errors { 674 ...CoreErrorFields 675 } 676 } 677} 678 ${mc} 679${Fn}`,bW=$t` 680 mutation agentConversationArchive($id: ID!) { 681 agentConversationArchive(id: $id) { 682 agentConversation { 683 space { 684 id 685 agentConversations { 686 id 687 } 688 } 689 } 690 errors { 691 ...CoreErrorFields 692 } 693 } 694} 695 ${Fn}`,_W=$t` 696 mutation agentConversationChat($spaceId: String!, $agentConversationId: String!, $content: String!, $attachmentIds: [String!] = []) { 697 agentConversationChat( 698 spaceId: $spaceId 699 agentConversationId: $agentConversationId 700 content: $content 701 attachmentIds: $attachmentIds 702 ) { 703 entry { 704 ...CoreEntryFields 705 syncClock 706 } 707 agentConversation { 708 ...CoreAgentConversationFields 709 } 710 errors { 711 ...CoreErrorFields 712 } 713 } 714} 715 ${Ko} 716${mc} 717${Fn}`,yW=$t` 718 mutation llmPromptGenerate($content: String!, $agentConversationId: ID!, $recallScoreThreshold: Float!) { 719 llmPromptGenerate( 720 content: $content 721 agentConversationId: $agentConversationId 722 recallScoreThreshold: $recallScoreThreshold 723 ) { 724 prompt 725 } 726} 727 `,wW=$t` 728 mutation llmPromptSend($prompt: String!) { 729 llmPromptSend(prompt: $prompt) { 730 response 731 } 732} 733 `,EW=$t` 734 query getSpaceBooks($id: ID!) { 735 space(identifier: {id: $id}) { 736 id 737 books { 738 ...CoreBookFields 739 } 740 } 741} 742 ${Xo}`,kW=$t` 743 query getCurrentUser { 744 me { 745 ...CoreUserFields 746 canDebugConversations 747 plan { 748 ...CorePlanFields 749 } 750 } 751 wallet { 752 ...CoreUserWalletFields 753 } 754 planUsage { 755 ...CorePlanUsageFields 756 } 757 activeSubscription { 758 ...CoreSubscriptionFields 759 } 760 plans { 761 ...CorePlanFields 762 } 763 preferences { 764 ...CorePreferencesFields 765 } 766} 767 ${L_} 768${jV} 769${HV} 770${WV} 771${UV} 772${h$}`,SW=$t` 773 query getInvitationValidity($token: String!) { 774 invitationValidity(token: $token) 775} 776 `,TW=$t` 777 query loadSpaceScreen($publicId: String!) { 778 space(identifier: {publicId: $publicId}) { 779 ...CoreSpaceFields 780 books { 781 ...CoreBookFields 782 } 783 agentConversations { 784 ...CoreAgentConversationFields 785 } 786 spaceUsers { 787 ...CoreSpaceUserFields 788 } 789 preferences { 790 ...CoreSpacePreferencesFields 791 } 792 pinnedEntries { 793 ...CoreEntryFields 794 syncClock 795 } 796 } 797} 798 ${Wa} 799${Xo} 800${mc} 801${d$} 802${p$} 803${Ko}`,v$=$t` 804 query getEntryById($id: ID!) { 805 entry(identifier: {id: $id}) { 806 ...CoreEntryFields 807 } 808} 809 ${Ko}`,$W=$t` 810 query getBook($id: ID!) { 811 book(identifier: {id: $id}) { 812 id 813 spaceId 814 bookEntries { 815 id 816 position 817 entryId 818 bookId 819 entry { 820 ...CoreEntryFields 821 } 822 } 823 } 824} 825 ${Ko}`,CW=$t` 826 query getEntity($id: ID!) { 827 entity(id: $id) { 828 ...CoreEntityFields 829 } 830} 831 ${m$}`,AW=$t` 832 query getHome { 833 spaces { 834 ...CoreSpaceFields 835 spaceUsers { 836 ...CoreSpaceUserFields 837 } 838 } 839} 840 ${Wa} 841${d$}`,DW=$t` 842 query getTelegramIntegrationStatus($spaceId: ID!) { 843 telegramIntegrationStatus(spaceId: $spaceId) { 844 id 845 botName 846 connectUrl 847 connectToken 848 userConnected 849 spaceConnected 850 } 851} 852 `,IW=$t` 853 query entryStream($query: EntryStreamQueryInput!, $spaceId: ID!) { 854 space(identifier: {id: $spaceId}) { 855 ...CoreSpaceFields 856 } 857 entries: entryStream(query: $query) { 858 ...CoreEntryFields 859 } 860} 861 ${Wa} 862${Ko}`,OW=$t` 863 query getAgentConversation($id: ID!) { 864 agentConversation(id: $id) { 865 ...CoreAgentConversationFields 866 space { 867 ...CoreSpaceFields 868 } 869 } 870} 871 ${mc} 872${Wa}`,NW=$t` 873 query agentConversationDebug($id: ID!) { 874 agentConversation(id: $id) { 875 baseScoreThreshold 876 ...CoreAgentConversationFields 877 space { 878 ...CoreSpaceFields 879 } 880 } 881} 882 ${mc} 883${Wa}`,RW=$t` 884 query getLoadCreditTransactions { 885 getLoadCreditTransactions { 886 ...CoreLoadCreditTransactionType 887 } 888} 889 ${VV}`,PW=t=>Yt.mutate({mutation:GV,...t}),Fv=t=>Yt.mutate({mutation:YV,...t}),xW=t=>Yt.mutate({mutation:QV,...t}),qW=t=>Yt.mutate({mutation:ZV,...t}),FW=t=>Yt.mutate({mutation:XV,...t}),LW=t=>Yt.mutate({mutation:KV,...t}),MW=t=>Yt.mutate({mutation:JV,...t}),BW=t=>Yt.mutate({mutation:eW,...t}),zW=t=>Yt.mutate({mutation:tW,...t}),jW=t=>Yt.mutate({mutation:nW,...t}),UW=t=>Yt.mutate({mutation:rW,...t}),HW=t=>Yt.mutate({mutation:iW,...t}),VW=t=>Yt.mutate({mutation:g$,...t}),WW=t=>Yt.mutate({mutation:sW,...t}),g0=t=>Yt.mutate({mutation:oW,...t}),GW=t=>Yt.mutate({mutation:aW,...t}),YW=t=>Yt.mutate({mutation:uW,...t}),QW=t=>Yt.mutate({mutation:lW,...t}),ZW=t=>Yt.mutate({mutation:cW,...t}),XW=t=>Yt.mutate({mutation:fW,...t}),KW=t=>Yt.mutate({mutation:dW,...t}),JW=t=>Yt.mutate({mutation:hW,...t}),eG=t=>Yt.mutate({mutation:pW,...t}),tG=t=>Yt.mutate({mutation:mW,...t}),nG=t=>Yt.mutate({mutation:gW,...t}),rG=t=>Yt.mutate({mutation:vW,...t}),iG=t=>Yt.mutate({mutation:bW,...t}),sG=t=>Yt.mutate({mutation:_W,...t}),oG=t=>Yt.mutate({mutation:yW,...t}),aG=t=>Yt.mutate({mutation:wW,...t}),uG=t=>{const e=Yt.watchQuery({query:EW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},lG=t=>{const e=Yt.watchQuery({query:kW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},cG=t=>{const e=Yt.watchQuery({query:SW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},fG=t=>{const e=Yt.watchQuery({query:TW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},dG=t=>{const e=Yt.watchQuery({query:v$,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},hG=t=>{const e=Yt.watchQuery({query:$W,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},pG=t=>{const e=Yt.watchQuery({query:CW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},mG=t=>{const e=Yt.watchQuery({query:AW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},gG=t=>{const e=Yt.watchQuery({query:DW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},vG=t=>{const e=Yt.watchQuery({query:IW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n}
889,bG=t=>{const e=Yt.watchQuery({query:OW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},_G=t=>{const e=Yt.watchQuery({query:NW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n},yG=t=>{const e=Yt.watchQuery({query:RW,...t});var n=Hi({data:{},loading:!0,error:void 0,networkStatus:1,query:e},r=>{e.subscribe(i=>{r({...i,query:e})})});return n};var xp={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},dr={log(...t){this.enabled&&(t.push(Date.now()),xp.logger.log("[ActionCable]",...t))}};const mf=()=>new Date().getTime(),Wh=t=>(mf()-t)/1e3;class B_{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=mf(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),dr.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=mf(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),dr.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=mf()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,dr.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=mf(),dr.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,r=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*r*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(dr.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Wh(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?dr.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Wh(this.disconnectedAt)} s`):(dr.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Wh(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Wh(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(dr.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}B_.staleThreshold=6;B_.reconnectionBackoffRate=.15;var b$={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:nf,protocols:Lv}=b$,wG=Lv.slice(0,Lv.length-1),H4=[].indexOf;class z_{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new B_(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return dr.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Lv,...this.consumer.subprotocols||[]];return dr.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new xp.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(dr.log(`Reopening WebSocket, current state is ${this.get
889State()}`),this.isActive())try{return this.close()}catch(e){dr.log("Failed to reopen WebSocket",e)}finally{dr.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return H4.call(wG,this.getProtocol())>=0}isState(...e){return H4.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in xp.WebSocket)if(xp.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}z_.reopenDelay=500;z_.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:r,reconnect:i,type:s}=JSON.parse(t.data);switch(s){case nf.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case nf.disconnect:return dr.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:i});case nf.ping:return this.monitor.recordPing();case nf.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case nf.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(dr.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return dr.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(dr.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){dr.log("WebSocket onerror event")}};const EG=function(t,e){if(e!=null)for(let n in e){const r=e[n];t[n]=r}return t};class kG{constructor(e,n={},r){this.consumer=e,this.identifier=JSON.stringify(n),EG(this,r)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class SG{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(dr.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):dr.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){dr.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{dr.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class TG{constructor(e){this.consumer=e,this.guarantor=new SG(this),this.subscriptions=[]}create(e,n){const r=e,i=typeof r=="object"?r:{channel:r},s=new kG(this.consumer,i,n);return this.add(s)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(r=>this.notify(r,e,...n))}notify(e,n,...r){let i;return typeof e=="string"?i=this.findAll(e):i=[e],i.map(s=>typeof s[n]=="function"?s[n](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){dr.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}
889sendCommand(e,n){const{identifier:r}=e;return this.consumer.send({command:n,identifier:r})}}class $G{constructor(e){this._url=e,this.subscriptions=new TG(this),this.connection=new z_(this),this.subprotocols=[]}get url(){return CG(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function CG(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function AG(t=DG("url")||b$.default_mount_path){return new $G(t)}function DG(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}const _$={colorTheme:zs.Auto},vi=nn(),fm=nn([]),dm=nn(),yd=nn(),gc=nn(),v0=nn(!1),IG=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,y$=nn(IG()?zs.Dark:zs.Light);window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>{y$.set(t.matches?zs.Dark:zs.Light)});let gl=null;const w$=hr(vi,t=>(gl&&(gl.disconnect(),gl=null),t?(gl=AG(`/cable?access_token=${$i(Ma)}`),gl):null)),OG=async()=>new Promise((t,e)=>{if(gl)t();else{let n;n=w$.subscribe(r=>{r?(n&&n(),t()):e()})}}),vc=nn(_$),ji=hr([vc,y$],([t,e])=>({...t,darkMode:(t.colorTheme===zs.Auto?e:t.colorTheme)===zs.Dark}));let b0;const wd=hr([vi,fm],([t,e])=>t!=null&&t.plan?t.plan:e.find(n=>n.isDefault));window.currentUser=()=>$i(vi);window.preferences=()=>$i(vc);const E$=async()=>{await $i(b0).query.refetch();const{data:t}=$i(b0);t&&(vi.set(t.me),dm.set(t.activeSubscription),fm.set(t.plans),vc.set(t.preferences),yd.set(t.wallet),gc.set(t.planUsage))},NG=()=>{b0=lG({}),Ma.subscribe(t=>{t||k$()}),b0.subscribe(({loading:t,data:e})=>{!t&&e&&(vi.set(e.me),dm.set(e.activeSubscription),fm.set(e.plans),vc.set(e.preferences),yd.set(e.wallet),gc.set(e.planUsage)),v0.set(!t)})},RG=async(t,e,n=f$.App)=>{const r=await UW({variables:{email:t,password:e}});return r.data.createSession.errors.length===0&&(u$(r.data.createSession.accessToken),await E$()),r},k$=async()=>{v0.set(!1),PV(),vi.set(void 0),vc.set(_$),dm.set(void 0),v0.set(!0)},PG=()=>async t=>{const e=await JW({variables:{value:t}});vc.set(e.data.setPreference.preferences)};function Qf(t,e){let n=document.createTextNode("");t.parentElement.insertBefore(n,t);let r;const i=o=>{e=o,e instanceof HTMLElement?r=e:r=void 0,r===void 0?n.parentElement.insertBefore(t,n):r.appendChild(t)},s=()=>{t.parentNode&&t.parentNode.removeChild(t),n.parentElement.removeChild(n)};return i(e),{update:i,destroy:s}}var _1={dragStart:!0},V4=(t,e,n)=>Math.min(Math.max(t,e),n),y1=t=>typeof t=="string",xG=([t,e],n,r)=>
889{const i=(s,o)=>o===0?0:Math.ceil(s/o)*o;return[i(n,t),i(r,e)]},W4=(t,e)=>t.some(n=>e.some(r=>n.contains(r)));function w1(t,e){if(t===void 0)return;if(Mv(t))return t.getBoundingClientRect();if(typeof t=="object"){const{top:r=0,left:i=0,right:s=0,bottom:o=0}=t;return{top:r,right:window.innerWidth-s,bottom:window.innerHeight-o,left:i}}if(t==="parent")return e.parentNode.getBoundingClientRect();const n=document.querySelector(t);if(n===null)throw new Error("The selector provided for bound doesn't exists in the document.");return n.getBoundingClientRect()}var Gh=(t,e,n)=>t.style.setProperty(e,n),Mv=t=>t instanceof HTMLElement,hm=(t,e={})=>{let n,r,{bounds:i,axis:s="both",gpuAcceleration:o=!0,legacyTranslate:a=!0,transform:u,applyUserSelectHack:l=!0,disabled:c=!1,ignoreMultitouch:d=!1,recomputeBounds:h=_1,grid:m,position:g,cancel:k,handle:y,defaultClass:b="neodrag",defaultClassDragging:S="neodrag-dragging",defaultClassDragged:$="neodrag-dragged",defaultPosition:D={x:0,y:0},onDragStart:P,onDrag:x,onDragEnd:R}=e,q=!1,F=0,L=0,M=0,V=0,H=0,J=0,{x:Z,y:Q}=g?{x:(g==null?void 0:g.x)??0,y:(g==null?void 0:g.y)??0}:D;de(Z,Q);let K,G,se,fe,me,Ae="",ee=!!g;h={..._1,...h};const ue=document.body.style,ie=t.classList;function de(Ne=F,Ge=L){if(!u){if(a){let rt=`${+Ne}px, ${+Ge}px`;return Gh(t,"transform",o?`translate3d(${rt}, 0)`:`translate(${rt})`)}return Gh(t,"translate",`${+Ne}px ${+Ge}px ${o?"1px":""}`)}const nt=u({offsetX:Ne,offsetY:Ge,rootNode:t});y1(nt)&&Gh(t,"transform",nt)}const Fe=(Ne,Ge)=>{const nt={offsetX:F,offsetY:L,rootNode:t,currentNode:me};t.dispatchEvent(new CustomEvent(Ne,{detail:nt})),Ge==null||Ge(nt)},Ve=addEventListener;Ve("pointerdown",we,!1),Ve("pointerup",je,!1),Ve("pointermove",Je,!1),Gh(t,"touch-action","none");const Te=()=>{let Ne=t.offsetWidth/G.width;return isNaN(Ne)&&(Ne=1),Ne};function we(Ne){if(c||Ne.button===2||d&&!Ne.isPrimary)return;if(h.dragStart&&(K=w1(i,t)),y1(y)&&y1(k)&&y===k)throw new Error("`handle` selector can't be same as `cancel` selector");if(ie.add(b),se=function(at,bt){if(!at)return[bt];if(Mv(at))return[at];if(Array.isArray(at))return at;const he=bt.querySelectorAll(at);if(he===null)throw new Error("Selector passed for `handle` option should be child of the element on which the action is applied");return Array.from(he.values())}(y,t),fe=function(at,bt){if(!at)return[];if(Mv(at))return[at];if(Array.isArray(at))return at;const he=bt.querySelectorAll(at);if(he===null)throw new Error("Selector passed for `cancel` option should be child of the element on which the action is applied");return Array.from(he.values())}(k,t),n=/(both|x)/.test(s),r=/(both|y)/.test(s),W4(fe,se))throw new Error("Element being dragged can't be a child of the element on which `cancel` is applied");const Ge=Ne.composedPath()[0];if(!se.some(at=>{var bt;return at.contains(Ge)||((bt=at.shadowRoot)==null?void 0:bt.contains(Ge))})||W4(fe,[Ge]))return;me=se.length===1?t:se.find(at=>at.contains(Ge)),q=!0,G=t.getBoundingClientRect(),l&&(Ae=ue.userSelect,ue.userSelect="none"),Fe("neodrag:start",P);const{clientX:nt,clientY:rt}=Ne,Ze=Te();n&&(M=nt-Z/Ze),r&&(V=rt-Q/Ze),K&&(H=nt-G.left,J=rt-G.top)}function je(){q&&(h.dragEnd&&(K=w1(i,t)),ie.remove(S),ie.add($),l&&(ue.userSelect=Ae),Fe("neodrag:end",R),n&&(M=F),r&&(V=L),q=!1)}function Je(Ne){if(!q)return;h.drag&&(K=w1(i,t)),ie.add(S),Ne.preventDefault(),G=t.getBoundingClientRect();let Ge=Ne.clientX,nt=Ne.clientY;const rt=Te();if(K){const Ze={left:K.left+H,top:K.top+J,right:K.right+H-G.width,bottom:K.bottom+J-G.height};Ge=V4(Ge,Ze.left,Ze.right),nt=V4(nt,Ze.top,Ze.bottom)}if(Array.isArray(m)){let[Ze,at]=m;if(isNaN(+Ze)||Ze<0)throw new Error("1st argument of `grid` must be a valid positive number");if(isNaN(+at)||at<0)throw new Error("2nd argument of `grid` must be a valid positive number");let bt=Ge-M,he=nt-V;[bt,he]=xG([Ze/rt,at/rt],bt,he),Ge=M+bt,nt=V+he}n&&(F=Math.round((Ge-M)*rt)),r&&(L=Math.round((nt-V)*rt)),Z=F,Q=L,Fe("neodrag",x),de()}return{destroy:()=>{const Ne=removeEventListener;Ne("pointerdown",we,!1),Ne("pointerup",je,!1),Ne("pointermove",Je,!1)},update:Ne=>{var nt,rt;s=Ne.axis||"both",c=Ne.disabled??!1,d=Ne.ignoreMultitouch??!1,y=Ne.handle,i=Ne.bounds,h=Ne.recomputeBounds??_1,k=Ne.cancel,l=Ne.applyUserSelectHack??!0,m=Ne.grid,o=Ne.gpuAcceleration??!0,a=Ne.legacyTranslate??!0,u=Ne.transform;const Ge=ie.contains($);ie.remove(b,$),b=Ne.defaultClass??"neodrag",S=Ne.defaultClassDragging??"neodrag-dragging",$=Ne.defaultClassDragged??"neodrag-dragged",ie.add(b),Ge&&ie.add($),ee&&(Z=F=((nt=Ne.position)==null?void 0:nt.x)??F,Q=L=((rt=Ne.position)==null?void 0:rt.y)??L,de())}}};function Mo(t){return Math.sqrt(1- --t*t)}function qG(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function oo(t){const e=t-1;return e*e*e+1}function Bo(t,{delay:e=0,duration:n=400,easing:r=qG,amount:i=5,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,u=o.filter==="none"?"":o.filter,l=a*(1-s),[c,d]=Cx(i);return{delay:e,duration:n,easing:r,css:(h,m)=>`opacity: ${a-l*m}; filter: ${u} blur(${m*c}${d});`}}function Sr(t,{delay:e=0,duration:n=400,easing:r=j0}={}
889){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:s=>`opacity: ${s*i}`}}function S$(t,{delay:e=0,duration:n=400,easing:r=oo,axis:i="y"}={}){const s=getComputedStyle(t),o=+s.opacity,a=i==="y"?"height":"width",u=parseFloat(s[a]),l=i==="y"?["top","bottom"]:["left","right"],c=l.map(b=>`${b[0].toUpperCase()}${b.slice(1)}`),d=parseFloat(s[`padding${c[0]}`]),h=parseFloat(s[`padding${c[1]}`]),m=parseFloat(s[`margin${c[0]}`]),g=parseFloat(s[`margin${c[1]}`]),k=parseFloat(s[`border${c[0]}Width`]),y=parseFloat(s[`border${c[1]}Width`]);return{delay:e,duration:n,easing:r,css:b=>`overflow: hidden;opacity: ${Math.min(b*20,1)*o};${a}: ${b*u}px;padding-${l[0]}: ${b*d}px;padding-${l[1]}: ${b*h}px;margin-${l[0]}: ${b*m}px;margin-${l[1]}: ${b*g}px;border-${l[0]}-width: ${b*k}px;border-${l[1]}-width: ${b*y}px;`}}function FG(t){Et(t,"svelte-1eu5b4t",'.Button.block.svelte-1eu5b4t{display:block}.Button.svelte-1eu5b4t{position:relative;display:inline-block;height:4rem;padding:0 1.4rem;text-align:center;line-height:3.6rem;font-size:1.6rem;font-weight:500;letter-spacing:0.2px;color:var(--c-text-inverse);outline:none;cursor:pointer;z-index:3;border:none;text-decoration:none;background-color:transparent;transition:color var(--transition-props);transition-duration:0.15s}.Button.svelte-1eu5b4t:before{content:"";display:inline-block;position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;white-space:nowrap;background-color:var(--c-button-bg);border-radius:2rem;transition-property:background-color, opacity;transition-duration:0.15s;transition-timing-function:var(--transition-timing-function)}.Button.hovering.svelte-1eu5b4t:not(.transparent),.Button.svelte-1eu5b4t:hover:not(.transparent){color:var(--c-text-inverse-hover)}.Button.hovering.svelte-1eu5b4t:not(.transparent):before,.Button.svelte-1eu5b4t:hover:not(.transparent):before{background-color:var(--c-button-bg-hover);transform:scale(1.1);transform-origin:center}.Button.circle.svelte-1eu5b4t{width:4rem;padding:0}.Button.square.svelte-1eu5b4t{width:4rem;padding:0}.Button.square.svelte-1eu5b4t:before{border-radius:0}.Button.tiny.svelte-1eu5b4t{height:2rem;padding:0 0.75rem;font-size:1.4rem;line-height:2rem}.Button.tiny.circle.svelte-1eu5b4t{width:2rem;padding:0}.Button.tiny.square.svelte-1eu5b4t{width:2rem;padding:0}.Button.tiny.square.svelte-1eu5b4t::before{border-radius:0}.Button.small.svelte-1eu5b4t{height:3rem;padding:0 1.25rem;font-size:1.6rem;line-height:3rem}.Button.small.circle.svelte-1eu5b4t{width:3rem;padding:0}.Button.small.square.svelte-1eu5b4t{width:2.8rem;height:2.8rem;padding:0}.Button.small.square.svelte-1eu5b4t::before{border-radius:0}.Button.big.svelte-1eu5b4t{width:6rem;height:6rem;text-align:center;font-size:1.8rem;line-height:6rem}.Button.outline.svelte-1eu5b4t,.Button.outline.hovering.svelte-1eu5b4t,.Button.outline.svelte-1eu5b4t:hover{color:var(--c-text)}.Button.outline.svelte-1eu5b4t::before{width:calc(100% - 4px);height:calc(100% - 4px);background-color:transparent;border:2px solid var(--c-button-bg)}.Button.outline.hovering.svelte-1eu5b4t:before,.Button.outline.svelte-1eu5b4t:hover:before{background-color:transparent}.Button.accent.svelte-1eu5b4t{color:var(--cf-text-light)}.Button.accent.svelte-1eu5b4t:before{background-color:var(--c-accent)}.Button.accent.hovering.svelte-1eu5b4t:before,.Button.accent.svelte-1eu5b4t:hover:before{background-color:var(--c-accent)}.Button.transparent.svelte-1eu5b4t,.Button.reveal.svelte-1eu5b4t{color:var(--c-text)}.Button.transparent.svelte-1eu5b4t:before,.Button.reveal.svelte-1eu5b4t:before{background-color:transparent}.Button.transparent.svelte-1eu5b4t:hover{color:var(--c-text-hover)}.Button.semiTransparent.svelte-1eu5b4t{color:var(--c-text)}.Button.semiTransparent.svelte-1eu5b4t:before{opacity:0.1}.Button.semiTransparent.hovering.svelte-1eu5b4t:before,.Button.semiTransparent.svelte-1eu5b4t:hover:before{opacity:1}.Button.danger.svelte-1eu5b4t:hover:before{background-color:var(--c-danger)}.Button.destroy.svelte-1eu5b4t,.Button.destroy.svelte-1eu5b4t:hover,.Button.danger.svelte-1eu5b4t:hover{color:var(--cf-text-light)}.Button.destroy.svelte-1eu5b4t:before,.Button.destroy.svelte-1eu5b4t:hover:before{background-color:var(--c-danger)}.Button.disabled.svelte-1eu5b4t{opacity:0.6;pointer-events:none}')}function LG(t){let e,n,r,i,s;const o=t[30].default,a=hi(o,t,t[29],null);let u=[t[10],t[11],{style:n=(t[0]?`position:absolute; ${t[6]} ${t[9]} ${t[7]} ${t[8]}`:"")+" "+(t[1]?"margin:"+t[1]+";":"")+" "+(t[5]?"z-index:"+t[5]+";":"")+" "+(t[3]?"cursor:"+t[3]+";":"")}],l={};for(let c=0;c<u.length;c+=1)l=ks(l,u[c]);return{c(){e=C("button"),a&&a.c(),Hl(e,l),ve(e,"svelte-1eu5b4t",!0)},m(c,d){O(c,e,d),a&&a.m(e,null),e.autofocus&&e.focus(),r=!0,i||(s=[Ie(e,"click",J1(t[36])),Ie(e,"mouseenter",t[37]),Ie(e,"mouseleave",t[38]),Ie(e,"mousedown",t[39]),Ie(e,"mouseup",t[40])],i=!0)},p(c,d){a&&a.p&&(!r||d[0]&536870912)&&mi(a,o,c,c[29],r?pi(o,c[29],d,null):gi(c[29]),null),Hl(e,l=Vl(u,[d[0]&1024&&c[10],d[0]&2048&&c[11],(!r||d[0]&1003&&n!==(n=(c[0]?`position:absolute; ${c[6]} ${c[9]} ${c[7]} ${c[8]}`:"")+" "+(c[1]?"margin:"+c[1]+";":"")+" "+(c[5]?"z-index:"+c[5]+";":"")+" "+(c[3]?"cursor:"+c[3]+";":"")))&&{style:n}])),ve(e,"svelte-1eu5b4t",!0)},i(c){r||(E(a,c),r=!0)},o(c){T(a,c),r=!1},d(c){c&&I(e),a&&a.d(c),i=!1,fn(s)}}}function MG(t){let e,n,r,i,s;const o=t[30].default,a=hi(o,t,t[29],null);let u=[t[10],t[11],{style:n=(t[0]?`position:absolute; ${t[6]} ${t[9]} ${t[7]} ${t[8]}`:"")+" "+(t[1]?"margin:"+t[1]+";":"")+" "+(t[5]?"z-index:"+t[5]+";":"")+" "+(t[3]?"cursor:"+t[3]+";":"")}],l={};for(let c=0;c<u.length;c+=1)l=ks(l,u[c]);return{c(){e=C("a"),a&&a.c(),Hl(e,l),ve(e,"svelte-1eu5b4t",!0)},m(c,d){O(c,e,d),a&&a.m(e,null),r=!0,i||(s=[Ie(e,"click",t[31]),Ie(e,"mouseenter",t[32]),Ie(e,"mouseleave",t[33]),Ie(e,"mousedown",t[34]),Ie(e,"mouseup",t[35]),zr(vq.call(null,e))],i=!0)},p(c,d){a&&a.p&&(!r||d[0]&536870912)&&mi(a,o,c,c[29],r?pi(o,c[29],d,null):gi(c[29]),null),Hl(e,l=Vl(u,[d[0]&1024&&c[10],d[0]&2048&&c[11],(!r||d[0]&1003&&n!==(n=(c[0]?`position:absolute; ${c[6]} ${c[9]} ${c[7]} ${c[8]}`:"")+" "+(c[1]?"margin:"+c[1]+";":"")+" "+(c[5]?"z-index:"+c[5]+";":"")+" "+(c[3]?"cursor:"+c[3]+";":"")))&&{style:n}])),ve(e,"svelte-1eu5b4t",!0)},i(c){r||(E(a,c),r=!0)},o(c){T(a,c),r=!1},d(c){c&&I(e),a&&a.d(c),i=!1,fn(s)}}}function BG(t){let e,n,r,i;const s=[MG,LG],o=[];function a(u,l){return u[4]&&!u[2]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e===c?o[e].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n?n.p(u,l):(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function zG(t,e,n){const r=["type","circle","square","pos","margin","tiny","small","big","outline","transparent","accent","reveal","danger","destroy","hovering","disabled","semiTransparent","block","cursor","title","href","target","zindex"];let i=Zp(e,r),{$$slots:s={},$$scope:o}=e,{type:a="button"}=e,{circle:u=!1}=e,{square:l=!1}=e,{pos:c=void 0}=e,{margin:d=void 0}=e,{tiny:h=!1}=e,{small:m=!1}=e,{big:g=!1}=e,{outline:k=!1}=e,{transparent:y=!1}=e,{accent:b=!1}=e,{reveal:S=!1}=e,{danger:$=!1}=e,{destroy:D=!1}=e,{hovering:P=!1}=e,{disabled:x=!1}=e,{semiTransparent:R=!1}=e,{block:q=!1}=e,{cursor:F=void 0}=e,{title:L=""}=e,{href:M=void 0}=e,{target:V="_self"}=e,{zindex:H=void 0}=e,J,Z,Q,K,G={};function se(Te){Ht.call(this,t,Te)}function fe(Te){Ht.call(this,t,Te)}function me(Te){Ht.call(this,t,Te)}function Ae(Te){Ht.call(this,t,Te)}function ee(Te){Ht.call(this,t,Te)}function ue(Te){Ht.call(this,t,Te)}function ie(Te){Ht.call(this,t,Te)}function de(Te){Ht.call(this,t,Te)}function Fe(Te){Ht.call(this,t,Te)}function Ve(Te){Ht.call(this,t,Te)}return t.$$set=Te=>{e=ks(ks({}
889,e),Qp(Te)),n(11,i=Zp(e,r)),"type"in Te&&n(12,a=Te.type),"circle"in Te&&n(13,u=Te.circle),"square"in Te&&n(14,l=Te.square),"pos"in Te&&n(0,c=Te.pos),"margin"in Te&&n(1,d=Te.margin),"tiny"in Te&&n(15,h=Te.tiny),"small"in Te&&n(16,m=Te.small),"big"in Te&&n(17,g=Te.big),"outline"in Te&&n(18,k=Te.outline),"transparent"in Te&&n(19,y=Te.transparent),"accent"in Te&&n(20,b=Te.accent),"reveal"in Te&&n(21,S=Te.reveal),"danger"in Te&&n(22,$=Te.danger),"destroy"in Te&&n(23,D=Te.destroy),"hovering"in Te&&n(24,P=Te.hovering),"disabled"in Te&&n(2,x=Te.disabled),"semiTransparent"in Te&&n(25,R=Te.semiTransparent),"block"in Te&&n(26,q=Te.block),"cursor"in Te&&n(3,F=Te.cursor),"title"in Te&&n(27,L=Te.title),"href"in Te&&n(4,M=Te.href),"target"in Te&&n(28,V=Te.target),"zindex"in Te&&n(5,H=Te.zindex),"$$scope"in Te&&n(29,o=Te.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(6,J=(c==null?void 0:c.top)!==void 0?`top: ${c.top}rem;`:""),t.$$.dirty[0]&1&&n(7,Z=(c==null?void 0:c.bottom)!==void 0?`bottom: ${c.bottom}rem;`:""),t.$$.dirty[0]&1&&n(8,Q=(c==null?void 0:c.left)!==void 0?`left: ${c.left}rem;`:""),t.$$.dirty[0]&1&&n(9,K=(c==null?void 0:c.right)!==void 0?`right: ${c.right}rem;`:""),t.$$.dirty[0]&536866836&&n(10,G={role:"button",type:M&&!x?void 0:a,disabled:x,href:M,target:M?V:void 0,title:L,class:["Button",q&&"block",u&&"circle",l&&"square",h&&"tiny",m&&"small",g&&"big",k&&"outline",b&&"accent",y&&"transparent",R&&"semiTransparent",S&&"reveal",$&&"danger",D&&"destroy",P&&"hovering",x&&"disabled"].filter(Boolean).join(" ")})},[c,d,x,F,M,H,J,Z,Q,K,G,i,a,u,l,h,m,g,k,y,b,S,$,D,P,R,q,L,V,o,s,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve]}class We extends pt{constructor(e){super(),ht(this,e,zG,BG,dt,{type:12,circle:13,square:14,pos:0,margin:1,tiny:15,small:16,big:17,outline:18,transparent:19,accent:20,reveal:21,danger:22,destroy:23,hovering:24,disabled:2,semiTransparent:25,block:26,cursor:3,title:27,href:4,target:28,zindex:5},FG,[-1,-1])}}function jG(t){Et(t,"svelte-1myvl1i",".Modal.svelte-1myvl1i{position:fixed;z-index:10;top:0;left:0;width:30rem;padding:2rem;color:var(--c-text-strong);border-radius:2rem;backdrop-filter:blur(2rem);-webkit-backdrop-filter:blur(2rem);background:var(--c-window-gradient)}.medium.svelte-1myvl1i{width:46rem}h2.svelte-1myvl1i{margin-bottom:2rem;user-select:none}.footer.svelte-1myvl1i{margin-top:2rem}.ModalFader.svelte-1myvl1i{position:fixed;z-index:1;top:0;left:0;width:100vw;height:100vh;backdrop-filter:blur(2rem);-webkit-backdrop-filter:blur(2rem);background:var(--c-space-gradient)}")}const UG=t=>({}),G4=t=>({}),HG=t=>({}),Y4=t=>({}),VG=t=>({}),Q4=t=>({});function Z4(t){let e,n,r;const i=t[12].title,s=hi(i,t,t[14],Q4);return{c(){e=C("div"),n=C("h2"),s&&s.c(),w(n,"class","svelte-1myvl1i"),w(e,"class","header")},m(o,a){O(o,e,a),v(e,n),s&&s.m(n,null),r=!0},p(o,a){s&&s.p&&(!r||a&16384)&&mi(s,i,o,o[14],r?pi(i,o[14],a,VG):gi(o[14]),Q4)},i(o){r||(E(s,o),r=!0)},o(o){T(s,o),r=!1},d(o){o&&I(e),s&&s.d(o)}}}function X4(t){let e,n;const r=t[12].content,i=hi(r,t,t[14],Y4);return{c(){e=C("div"),i&&i.c(),w(e,"class","content")},m(s,o){O(s,e,o),i&&i.m(e,null),n=!0},p(s,o){i&&i.p&&(!n||o&16384)&&mi(i,r,s,s[14],n?pi(r,s[14],o,HG):gi(s[14]),Y4)},i(s){n||(E(i,s),n=!0)},o(s){T(i,s),n=!1},d(s){s&&I(e),i&&i.d(s)}}}function K4(t){let e;const n=t[12].primaryButton,r=hi(n,t,t[14],G4);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&16384)&&mi(r,n,i,i[14],e?pi(n,i[14],s,UG):gi(i[14]),G4)},i(i){e||(E(r,i),e=!0)},o(i){T(r,i),e=!1},d(i){r&&r.d(i)}}}function J4(t){let e,n;return e=new We({props:{small:!0,outline:!0,$$slots:{default:[WG]},$$scope:{ctx:t}}}),e.$on("click",function(){di(t[0])&&t[0].apply(this,arguments)}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){t=r;const s={};i&16386&&(s.$$scope={dirty:i,ctx:t}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function WG(t){let e;return{c(){e=oe(t[1])},m(n,r){O(n,e,r)},p(n,r){r&2&&Wt(e,n[1])},d(n){n&&I(e)}}}function GG(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k=t[10].title&&Z4(t),y=t[10].content&&X4(t),b=t[10].primaryButton&&K4(t),S=!!t[0]&&J4(t);return{c(){e=C("div"),k&&k.c(),n=N(),y&&y.c(),r=N(),i=C("div"),b&&b.c(),s=N(),S&&S.c(),l=N(),c=C("div"),w(i,"class","footer svelte-1myvl1i"),w(e,"class","Modal svelte-1myvl1i"),ve(e,"medium",t[2]),He(e,"z-index",t[6]),w(c,"class","ModalFader svelte-1myvl1i"),He(c,"z-index",t[6]-1),He(c,"dis
889play",t[3]?"block":"none")},m($,D){O($,e,D),k&&k.m(e,null),v(e,n),y&&y.m(e,null),v(e,r),v(e,i),b&&b.m(i,null),v(i,s),S&&S.m(i,null),t[13](e),O($,l,D),O($,c,D),h=!0,m||(g=[zr(o=Qf.call(null,e,t[4])),zr(a=hm.call(null,e,{cancel:".noDrag, p, a",bounds:"parent",position:{y:t[8],x:t[7]}})),Ie(e,"mousedown",t[9])],m=!0)},p($,[D]){$[10].title?k?(k.p($,D),D&1024&&E(k,1)):(k=Z4($),k.c(),E(k,1),k.m(e,n)):k&&($e(),T(k,1,1,()=>{k=null}),Ce()),$[10].content?y?(y.p($,D),D&1024&&E(y,1)):(y=X4($),y.c(),E(y,1),y.m(e,r)):y&&($e(),T(y,1,1,()=>{y=null}),Ce()),$[10].primaryButton?b?(b.p($,D),D&1024&&E(b,1)):(b=K4($),b.c(),E(b,1),b.m(i,s)):b&&($e(),T(b,1,1,()=>{b=null}),Ce()),$[0]?S?(S.p($,D),D&1&&E(S,1)):(S=J4($),S.c(),E(S,1),S.m(i,null)):S&&($e(),T(S,1,1,()=>{S=null}),Ce()),o&&di(o.update)&&D&16&&o.update.call(null,$[4]),a&&di(a.update)&&D&384&&a.update.call(null,{cancel:".noDrag, p, a",bounds:"parent",position:{y:$[8],x:$[7]}}),(!h||D&4)&&ve(e,"medium",$[2]),D&64&&He(e,"z-index",$[6]),D&64&&He(c,"z-index",$[6]-1),D&8&&He(c,"display",$[3]?"block":"none")},i($){h||(E(k),E(y),E(b),E(S),$&&Xn(()=>{h&&(u||(u=Zn(e,Bo,{amount:20,duration:600,easing:Mo},!0)),u.run(1))}),$&&Xn(()=>{h&&(d||(d=Zn(c,Bo,{amount:20,duration:600,easing:Mo},!0)),d.run(1))}),h=!0)},o($){T(k),T(y),T(b),T(S),$&&(u||(u=Zn(e,Bo,{amount:20,duration:600,easing:Mo},!1)),u.run(0)),$&&(d||(d=Zn(c,Bo,{amount:20,duration:600,easing:Mo},!1)),d.run(0)),h=!1},d($){$&&(I(e),I(l),I(c)),k&&k.d(),y&&y.d(),b&&b.d(),S&&S.d(),t[13](null),$&&u&&u.end(),$&&d&&d.end(),m=!1,fn(g)}}}const T$=nn({x:0,y:0}),YG=t=>{T$.set({x:t.clientX,y:t.clientY})};document.body.addEventListener("mousedown",YG);const E1=nn(100);function QG(t,e,n){let r,i;Ke(t,T$,P=>n(15,r=P)),Ke(t,E1,P=>n(16,i=P));let{$$slots:s={},$$scope:o}=e;const a=c5(s);let{onClose:u=void 0}=e,{closeText:l="Done"}=e,{medium:c=!1}=e,{centered:d=!1}=e,{withFader:h=!1}=e,{portalTarget:m=document.body}=e,g,k=i,y=-1*(c?230:150),b=40;$r(()=>{gr(E1,i++,i),$()});const S=()=>{n(6,k=gr(E1,i++,i))},$=()=>{const P=window.innerWidth,x=window.innerHeight,R=r.x,q=r.y,F=g.offsetWidth,L=g.offsetHeight,M=40,V=P/2-F/2,H=x/2-L/2-M,J=q+L>x+M;let Q=R>P/2?R-(F+M):R+M,K=J?q-L:q-M;K<0&&(K=M),K+L>x-M&&(K=x-L-M),n(7,y=d?V:Q),n(8,b=d?H:K)};function D(P){Qe[P?"unshift":"push"](()=>{g=P,n(5,g)})}return t.$$set=P=>{"onClose"in P&&n(0,u=P.onClose),"closeText"in P&&n(1,l=P.closeText),"medium"in P&&n(2,c=P.medium),"centered"in P&&n(11,d=P.centered),"withFader"in P&&n(3,h=P.withFader),"portalTarget"
889in P&&n(4,m=P.portalTarget),"$$scope"in P&&n(14,o=P.$$scope)},[u,l,c,h,m,g,k,y,b,S,a,d,s,D,o]}class Ar extends pt{constructor(e){super(),ht(this,e,QG,GG,dt,{onClose:0,closeText:1,medium:2,centered:11,withFader:3,portalTarget:4},jG)}}function ZG(t){Et(t,"svelte-1x6r937","label.svelte-1x6r937{display:block;margin:1.75rem 0 0.25rem;font-size:1.4rem;font-weight:bold;letter-spacing:0.025rem;white-space:nowrap}")}function XG(t){let e,n;const r=t[3].default,i=hi(r,t,t[2],null);return{c(){e=C("label"),i&&i.c(),w(e,"for",t[1]),w(e,"class","svelte-1x6r937")},m(s,o){O(s,e,o),i&&i.m(e,null),t[4](e),n=!0},p(s,[o]){i&&i.p&&(!n||o&4)&&mi(i,r,s,s[2],n?pi(r,s[2],o,null):gi(s[2]),null),(!n||o&2)&&w(e,"for",s[1])},i(s){n||(E(i,s),n=!0)},o(s){T(i,s),n=!1},d(s){s&&I(e),i&&i.d(s),t[4](null)}}}function KG(t,e,n){let{$$slots:r={},$$scope:i}=e,{ref:s=null}=e,{name:o=""}=e;function a(u){Qe[u?"unshift":"push"](()=>{s=u,n(0,s)})}return t.$$set=u=>{"ref"in u&&n(0,s=u.ref),"name"in u&&n(1,o=u.name),"$$scope"in u&&n(2,i=u.$$scope)},[s,o,i,r,a]}class Tr extends pt{constructor(e){super(),ht(this,e,KG,XG,dt,{ref:0,name:1},ZG)}}function JG(t){Et(t,"svelte-ghmgk9",".inputWrapper.svelte-ghmgk9{position:relative}input.svelte-ghmgk9{appearance:none;padding:0.6rem 1rem;width:100%;height:3.4rem;outline:0;font-size:1.6rem;color:var(--c-text);border:2px solid var(--c-border);border-radius:2rem;background-color:transparent;cursor:text}
889input.svelte-ghmgk9:focus{box-shadow:var(--box-shadow);border-color:var(--c-nav-bg)}input.error.svelte-ghmgk9{color:var(--c-danger)}.asideRight.svelte-ghmgk9{position:absolute;top:0.6rem;right:0.6rem}.asideRight.svelte-ghmgk9:hover{opacity:1}")}const eY=t=>({}),e6=t=>({});function t6(t){let e,n;const r=t[15].asideRight,i=hi(r,t,t[14],e6);return{c(){e=C("div"),i&&i.c(),w(e,"class","asideRight svelte-ghmgk9")},m(s,o){O(s,e,o),i&&i.m(e,null),n=!0},p(s,o){i&&i.p&&(!n||o&16384)&&mi(i,r,s,s[14],n?pi(r,s[14],o,eY):gi(s[14]),e6)},i(s){n||(E(i,s),n=!0)},o(s){T(i,s),n=!1},d(s){s&&I(e),i&&i.d(s)}}}function tY(t){let e,n,r,i,s,o,a,u,l=t[12].asideRight&&t6(t);return{c(){e=C("div"),n=C("input"),i=N(),l&&l.c(),w(n,"type",t[1]),w(n,"class","noDrag svelte-ghmgk9"),w(n,"name",t[2]),w(n,"id",t[2]),n.value=t[0],w(n,"autocomplete",t[3]),n.disabled=t[6],n.required=t[5],w(n,"spellcheck",t[7]),w(n,"placeholder",t[8]),w(n,"style",r=t[10]?`padding-right:${t[10]}`:""),ve(n,"error",t[4]),w(e,"class",s="inputWrapper "+(t[9]?t[9]:"")+" svelte-ghmgk9")},m(c,d){O(c,e,d),v(e,n),t[21](n),v(e,i),l&&l.m(e,null),o=!0,a||(u=[Ie(n,"change",t[16]),Ie(n,"focus",t[17]),Ie(n,"blur",t[18]),Ie(n,"input",t[19]),Ie(n,"input",t[22]),Ie(n,"keydown",t[20])],a=!0)},p(c,[d]){(!o||d&2)&&w(n,"type",c[1]),(!o||d&4)&&w(n,"name",c[2]),(!o||d&4)&&w(n,"id",c[2]),(!o||d&1&&n.value!==c[0])&&(n.value=c[0]),(!o||d&8)&&w(n,"autocomplete",c[3]),(!o||d&64)&&(n.disabled=c[6]),(!o||d&32)&&(n.required=c[5]),(!o||d&128)&&w(n,"spellcheck",c[7]),(!o||d&256)&&w(n,"placeholder",c[8]),(!o||d&1024&&r!==(r=c[10]?`padding-right:${c[10]}`:""))&&w(n,"style",r),(!o||d&16)&&ve(n,"error",c[4]),c[12].asideRight?l?(l.p(c,d),d&4096&&E(l,1)):(l=t6(c),l.c(),E(l,1),l.m(e,null)):l&&($e(),T(l,1,1,()=>{l=null}),Ce()),(!o||d&512&&s!==(s="inputWrapper "+(c[9]?c[9]:"")+" svelte-ghmgk9"))&&w(e,"class",s)},i(c){o||(E(l),o=!0)},o(c){T(l),o=!1},d(c){c&&I(e),t[21](null),l&&l.d(),a=!1,fn(u)}}}function nY(t,e,n){let{$$slots:r={},$$scope:i}=e;const s=c5(r);let{type:o="text"}=e,{name:a=""}=e,{value:u=""}=e,{autocomplete:l="off"}=e,{error:c=!1}=e,{required:d=!1}=e,{disabled:h=!1}=e,{focused:m=!1}=e,{spellcheck:g=!1}=e,{placeholder:k=""}=e,{classList:y=""}=e,{paddingRight:b=""}=e,S;$r(()=>m?S.focus():"");function $(L){Ht.call(this,t,L)}function D(L){Ht.call(this,t,L)}function P(L){Ht.call(this,t,L)}function x(L){Ht.call(this,t,L)}function R(L){Ht.call(this,t,L)}function q(L){Qe[L?"unshift":"push"](()=>{S=L,n(11,S)})}const F=()=>n(0,u=S.value);return t.$$set=L=>{"type"in L&&n(1,o=L.type),"name"in L&&n(2,a=L.name),"value"in L&&n(0,u=L.value),"autocomplete"in L&&n(3,l=L.autocomplete),"error"in L&&n(4,c=L.error),"required"in L&&n(5,d=L.required),"disabled"in L&&n(6,h=L.disabled),"focused"in L&&n(13,m=L.focused),"spellcheck"in L&&n(7,g=L.spellcheck),"placeholder"in L&&n(8,k=L.placeholder),"classList"in L&&n(9,y=L.classList),"paddingRight"in L&&n(10,b=L.paddingRight),"$$scope"in L&&n(14,i=L.$$scope)},[u,o,a,l,c,d,h,g,k,y,b,S,s,m,i,r,$,D,P,x,R,q,F]}let Zr=class extends pt{constructor(e){super(),ht(this,e,nY,tY,dt,{type:1,name:2,value:0,autocomplete:3,error:4,required:5,disabled:6,focused:13,spellcheck:7,placeholder:8,classList:9,paddingRight:10},JG)}};function rY(t){Et(t,"svelte-2zkjq9","div.svelte-2zkjq9{color:var(--c-text-danger)}")}function n6(t,e,n){const r=t.slice();return r[5]=e[n],r}function r6(t){let e,n=(t[0]||"")+"",r,i=t[5].message+"",s,o;return{c(){e=C("div"),r=oe(n),s=oe(i),w(e,"class","noDrag svelte-2zkjq9")},m(a,u){O(a,e,u),v(e,r),v(e,s)},p(a,u){u&1&&n!==(n=(a[0]||"")+"")&&Wt(r,n),u&2&&i!==(i=a[5].message+"")&&Wt(s,i)},i(a){a&&(o||Xn(()=>{o=fc(e,S$,{}),o.start()}))},o:Ee,d(a){a&&I(e)}}}function iY(t){let e,n=Ut(t[1]),r=[];for(let i=0;i<n.length;i+=1)r[i]=r6(n6(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Pt()},m(i,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(i,s);O(i,e,s)},p(i,[s]){if(s&3){n=Ut(i[1]);let o;for(o=0;o<n.length;o+=1){const a=n6(i,n,o);r[o]?(r[o].p(a,s),E(r[o],1)):(r[o]=r6(a),r[o].c(),E(r[o],1),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},i(i){for(let s=0;s<n.length;s+=1)E(r[s])},o:Ee,d(i){i&&I(e),Ci(r,i)}}}function sY(t,e,n){let{errors:r=[]}=e,{prefix:i=void 0}=e,{field:s=void 0}=e,o=[];const a=(u=[],l)=>u.filter(c=>c.attribute===l);return o=a(r,s),t.$$set=u=>{"errors"in u&&n(2,r=u.errors),"prefix"in u&&n(0,i=u.prefix),"field"in u&&n(3,s=u.field)},t.$$.update=()=>{t.$$.dirty&12&&n(1,o=a(r,s))},[i,o,r,s]}class ir extends pt{constructor(e){super(),ht(this,e,sY,iY,dt,{errors:2,prefix:0,field:3},rY)}}
889function oY(t){Et(t,"svelte-1leu0ay",`@font-face{font-family:"FaktumSemiBold";src:url("/fonts/FaktumSemiBold.woff2") format("woff2"), 890 url("/fonts/FaktumSemiBold.woff") format("woff")}h1.svelte-1leu0ay.svelte-1leu0ay{display:inline-block;font-family:"FaktumSemiBold", system-ui, sans-serif;font-size:2.3rem;font-weight:500;line-height:3.5rem;letter-spacing:0.025em;color:var(--c-text);transition-property:color;transition-timing-function:var(--transition-timing-function);transition-duration:var(--transition-duration-fast)}span.svelte-1leu0ay.svelte-1leu0ay{display:inline-block;margin:0 -0.125em 0 -0.15em;opacity:0;transition-property:opacity, margin;transition-timing-function:var(--transition-timing-function);transition-duration:var(--transition-duration-fast)}h1.svelte-1leu0ay.svelte-1leu0ay:hover{color:var(--c-text-strong)}h1.svelte-1leu0ay:hover span.svelte-1leu0ay{margin:0 0 0 -0.05em;opacity:1}`)}function aY(t){let e,n,r,i;return{c(){e=C("h1"),n=oe("Hyper"),r=C("span"),r.textContent=".",i=oe("place"),w(r,"class","svelte-1leu0ay"),He(e,"font-size",t[0]+"rem"),w(e,"class","svelte-1leu0ay"),ve(e,"accent",t[1])},m(s,o){O(s,e,o),v(e,n),v(e,r),v(e,i)},p(s,[o]){o&1&&He(e,"font-size",s[0]+"rem"),o&2&&ve(e,"accent",s[1])},i:Ee,o:Ee,d(s){s&&I(e)}}}function uY(t,e,n){let{size:r=2}=e,{accent:i=!1}=e;return t.$$set=s=>{"size"in s&&n(0,r=s.size),"accent"in s&&n(1,i=s.accent)},[r,i]}class j_ extends pt{constructor(e){super(),ht(this,e,uY,aY,dt,{size:0,accent:1},oY)}}function lY(t){Et(t,"svelte-1q790gn","header.svelte-1q790gn.svelte-1q790gn{display:flex;flex-direction:row;justify-content:center;padding:3rem 4rem;transition-property:padding, background-color;transition:var(--transition-props)}header.fixed.svelte-1q790gn.svelte-1q790gn{position:fixed;z-index:10;top:0;width:100vw}header.opaque.svelte-1q790gn.svelte-1q790gn{background-color:var(--bgColor);border-bottom:1px solid var(--c-border)}nav.svelte-1q790gn.svelte-1q790gn:not(.centered){margin-left:auto}header.svelte-1q790gn nav ul.svelte-1q790gn{display:flex;flex-direction:row;gap:1rem;line-height:4rem;font-size:1.6rem;font-weight:500;letter-spacing:0.1px}header.svelte-1q790gn nav ul li.svelte-1q790gn{list-style:none;transition:opacity var(--transition-props)}header.svelte-1q790gn nav ul li.svelte-1q790gn a:not(.Button){color:var(--c-text)}header.svelte-1q790gn nav.faded ul li.svelte-1q790gn:not(:last-of-type){opacity:0.5}header.svelte-1q790gn:hover nav.faded ul li.svelte-1q790gn{opacity:1}@media screen and (max-height: 640px){header.svelte-1q790gn.svelte-1q790gn{padding-top:2rem;padding-bottom:2rem}}@media screen and (max-width: 768px){header.svelte-1q790gn.svelte-1q790gn{padding:1rem 2rem}header.svelte-1q790gn nav ul.svelte-1q790gn{gap:0}}")}function cY(t){let e,n;return e=new j_({props:{size:2.4}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function i6(t){let e,n,r,i,s,o,a,u;return i=new We({props:{"data-test":"sign-in",href:"/login",transparent:!0,$$slots:{default:[fY]},$$scope:{ctx:t}}}),a=new We({props:{"data-test":"sign-up",href:"/sign-up",small:t[4],$$slots:{default:[dY]},$$scope:{ctx:t}}}),{c(){e=C("nav"),n=C("ul"),r=C("li"),j(i.$$.fragment),s=N(),o=C("li"),j(a.$$.fragment),w(r,"class","svelte-1q790gn"),w(o,"class","svelte-1q790gn"),w(n,"class","svelte-1q790gn"),w(e,"class","svelte-1q790gn"),ve(e,"faded",t[0])},m(l,c){O(l,e,c),v(e,n),v(n,r),B(i,r,null),v(n,s),v(n,o),B(a,o,null),u=!0},p(l,c){const d={};c&32&&(d.$$scope={dirty:c,ctx:l}),i.$set(d);const h={};c&32&&(h.$$scope={dirty:c,ctx:l}),a.$set(h),(!u||c&1)&&ve(e,"faded",l[0])},i(l){u||(E(i.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(i.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&I(e),z(i),z(a)}}}function fY(t){let e;return{c(){e=oe("Sign in")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function dY(t){let e;return{c(){e=oe("Try for free")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function hY(t){let e,n,r,i;n=new Ui({props:{to:"/",$$slots:{default:[cY]},$$scope:{ctx:t}}});let s=!t[1]&&i6(t);return{c(){e=C("header"),j(n.$$.fragment),r=N(),s&&s.c(),w(e,"class","svelte-1q790gn"),ve(e,"fixed",t[2]),ve(e,"opaque",t[3])},m(o,a){O(o,e,a),B(n,e,null),v(e,r),s&&s.m(e,null),i=!0},p(o,[a]){const u={};a&32&&(u.$$scope={dirty:a,ctx:o}),n.$set(u),o[1]?s&&($e(),T(s,1,1,()=>{s=null}),Ce()):s?(s.p(o,a),a&2&&E(s,1)):(s=i6(o),s.c(),E(s,1),s.m(e,null)),(!i||a&4)&&ve(e,"fixed",o[2]),(!i||a&8)&&ve(e,"opaque",o[3])},i(o){i||(E(n.$$.fragment,o),E(s),i=!0)},o(o){T(n.$$.fragment,o),T(s),i=!1},d(o){o&&I(e),z(n),s&&s.d()}}}function pY(t,e,n){let{navFaded:r=!1}=e,{logoOnly:i=!1}=e,{fixed:s=!0}=e,{opaque:o=!1}=e;const a=window.innerWidth<768;return t.$$set=u=>{"navFaded"in u&&n(0,r=u.navFaded),"logoOnly"in u&&n(1,i=u.logoOnly),"fixed"in u&&n(2,s=u.fixed),"opaque"in u&&n(3,o=u.opaque)},[r,i,s,o,a]}class Di extends pt{constructor(e){super(),ht(this,e,pY,hY,dt,{navFaded:0,logoOnly:1,fixed:2,opaque:3},lY)}}var _0={exports:{}};/** 891 * @license 892 * Lodash <https://lodash.com/>
893 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 894 * Released under MIT license <https://lodash.com/license> 895 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 896 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 897 */_0.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",d=1,h=2,m=4,g=1,k=2,y=1,b=2,S=4,$=8,D=16,P=32,x=64,R=128,q=256,F=512,L=30,M="...",V=800,H=16,J=1,Z=2,Q=3,K=1/0,G=9007199254740991,se=17976931348623157e292,fe=NaN,me=4294967295,Ae=me-1,ee=me>>>1,ue=[["ary",R],["bind",y],["bindKey",b],["curry",$],["curryRight",D],["flip",F],["partial",P],["partialRight",x],["rearg",q]],ie="[object Arguments]",de="[object Array]",Fe="[object AsyncFunction]",Ve="[object Boolean]",Te="[object Date]",we="[object DOMException]",je="[object Error]",Je="[object Function]",Ne="[object GeneratorFunction]",Ge="[object Map]",nt="[object Number]",rt="[object Null]",Ze="[object Object]",at="[object Promise]",bt="[object Proxy]",he="[object RegExp]",Pe="[object Set]",Se="[object String]",Le="[object Symbol]",te="[object Undefined]",X="[object WeakMap]",ye="[object WeakSet]",Xe="[object ArrayBuffer]",Be="[object DataView]",it="[object Float32Array]",mt="[object Float64Array]",Ct="[object Int8Array]",ft="[object Int16Array]",It="[object Int32Array]",Tt="[object Uint8Array]",_t="[object Uint8ClampedArray]",gt="[object Uint16Array]",ce="[object Uint32Array]",pe=/\b__p \+= '';/g,st=/\b(__p \+=) '' \+/g,vn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,bn=/[&<>"']/g,kn=RegExp(Tn.source),$n=RegExp(bn.source),qt=/<%-([\s\S]+?)%>/g,Rn=/<%([\s\S]+?)%>/g,Hn=/<%=([\s\S]+?)%>/g,Sn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zt=/^\w*$/,be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,St=RegExp(tt.source),an=/^\s+/,rn=/\s/,Mt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gt=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,Vn=/\\(\\)?/g,vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mn=/\w*$/,Gs=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,Jo=/^\[object .+?Constructor\]$/,Cc=/^0o[0-7]+$/i,us=/^(?:0|[1-9]\d*)$/,Ya=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,132 bytes, line 897
8977f]/g,ea=/($^)/,ta=/['\n\r\u2028\u2029\\]/g,bo="\\ud800-\\udfff",_o="\\u0300-\\u036f",Ac="\\ufe20-\\ufe2f",ls="\\u20d0-\\u20ff",yo=_o+Ac+ls,ii="\\u2700-\\u27bf",Qa="a-z\\xdf-\\xf6\\xf8-\\xff",Dc="\\xac\\xb1\\xd7\\xf7",Ic="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Oc="\\u2000-\\u206f",wo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vu="A-Z\\xc0-\\xd6\\xd8-\\xde",Wu="\\ufe0e\\ufe0f",Oe=Dc+Ic+Oc+wo,Ft="['â]",Nr="["+bo+"]",Rr="["+Oe+"]",Za="["+yo+"]",Hd="\\d+",Bm="["+ii+"]",Vd="["+Qa+"]",Wd="[^"+bo+Oe+Hd+ii+Qa+Vu+"]",Xa="\\ud83c[\\udffb-\\udfff]",zm="(?:"+Za+"|"+Xa+")",Gd="[^"+bo+"]",Nc="(?:\\ud83c[\\udde6-\\uddff]){2}",Rc="[\\ud800-\\udbff][\\udc00-\\udfff]",na="["+Vu+"]",Yd="\\u200d",Qd="(?:"+Vd+"|"+Wd+")",jm="(?:"+na+"|"+Wd+")",Zd="(?:"+Ft+"(?:d|ll|m|re|s|t|ve))?",Xd="(?:"+Ft+"(?:D|LL|M|RE|S|T|VE))?",Kd=zm+"?",Jd="["+Wu+"]?",Um="(?:"+Yd+"(?:"+[Gd,Nc,Rc].join("|")+")"+Jd+Kd+")*",ae="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ot="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ot=Jd+Kd+Um,sn="(?:"+[Bm,Nc,Rc].join("|")+")"+Ot,Jt="(?:"+[Gd+Za+"?",Za,Nc,Rc,Nr].join("|")+")",si=RegExp(Ft,"g"),Kr=RegExp(Za,"g"),bi=RegExp(Xa+"(?="+Xa+")|"+Jt+Ot,"g"),Ka=RegExp([na+"?"+Vd+"+"+Zd+"(?="+[Rr,na,"$"].join("|")+")",jm+"+"+Xd+"(?="+[Rr,na+Qd,"$"].join("|")+")",na+"?"+Qd+"+"+Zd,na+"+"+Xd,ot,ae,Hd,sn].join("|"),"g"),Yy=RegExp("["+Yd+bo+yo+Wu+"]"),Qy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],FD=-1,Kn={};Kn[it]=Kn[mt]=Kn[Ct]=Kn[ft]=Kn[It]=Kn[Tt]=Kn[_t]=Kn[gt]=Kn[ce]=!0,Kn[ie]=Kn[de]=Kn[Xe]=Kn[Ve]=Kn[Be]=Kn[Te]=Kn[je]=Kn[Je]=Kn[Ge]=Kn[nt]=Kn[Ze]=Kn[he]=Kn[Pe]=Kn[Se]=Kn[X]=!1;var Wn={};Wn[ie]=Wn[de]=Wn[Xe]=Wn[Be]=Wn[Ve]=Wn[Te]=Wn[it]=Wn[mt]=Wn[Ct]=Wn[ft]=Wn[It]=Wn[Ge]=Wn[nt]=Wn[Ze]=Wn[he]=Wn[Pe]=Wn[Se]=Wn[Le]=Wn[Tt]=Wn[_t]=Wn[gt]=Wn[ce]=!0,Wn[je]=Wn[Je]=Wn[X]=!1;var LD={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},MD={"&":"&","<":"<",">":">",'"':""","'":"'"},BD={"&":"&","<":"<",">":">",""":'"',"'":"'"},zD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jD=parseFloat,UD=parseInt,Zy=typeof xt=="object"&&xt&&xt.Object===Object&&xt,HD=typeof self=="object"&&self&&self.Object===Object&&self,Jr=Zy||HD||Function("return this")(),Hm=e&&!e.nodeType&&e,Ja=Hm&&!0&&t&&!t.nodeType&&t,Xy=Ja&&Ja.exports===Hm,Vm=Xy&&Zy.process,cs=function(){try{var ge=Ja&&Ja.require&&Ja.require("util").t
vendor: 9,583 bytes, line 897
897ypes;return ge||Vm&&Vm.binding&&Vm.binding("util")}catch{}}(),Ky=cs&&cs.isArrayBuffer,Jy=cs&&cs.isDate,e2=cs&&cs.isMap,t2=cs&&cs.isRegExp,n2=cs&&cs.isSet,r2=cs&&cs.isTypedArray;function Wi(ge,Re,De){switch(De.length){case 0:return ge.call(Re);case 1:return ge.call(Re,De[0]);case 2:return ge.call(Re,De[0],De[1]);case 3:return ge.call(Re,De[0],De[1],De[2])}return ge.apply(Re,De)}function VD(ge,Re,De,yt){for(var Qt=-1,Cn=ge==null?0:ge.length;++Qt<Cn;){var Pr=ge[Qt];Re(yt,Pr,De(Pr),ge)}return yt}function fs(ge,Re){for(var De=-1,yt=ge==null?0:ge.length;++De<yt&&Re(ge[De],De,ge)!==!1;);return ge}function WD(ge,Re){for(var De=ge==null?0:ge.length;De--&&Re(ge[De],De,ge)!==!1;);return ge}function i2(ge,Re){for(var De=-1,yt=ge==null?0:ge.length;++De<yt;)if(!Re(ge[De],De,ge))return!1;return!0}function ra(ge,Re){for(var De=-1,yt=ge==null?0:ge.length,Qt=0,Cn=[];++De<yt;){var Pr=ge[De];Re(Pr,De,ge)&&(Cn[Qt++]=Pr)}return Cn}function eh(ge,Re){var De=ge==null?0:ge.length;return!!De&&Gu(ge,Re,0)>-1}function Wm(ge,Re,De){for(var yt=-1,Qt=ge==null?0:ge.length;++yt<Qt;)if(De(Re,ge[yt]))return!0;return!1}function sr(ge,Re){for(var De=-1,yt=ge==null?0:ge.length,Qt=Array(yt);++De<yt;)Qt[De]=Re(ge[De],De,ge);return Qt}function ia(ge,Re){for(var De=-1,yt=Re.length,Qt=ge.length;++De<yt;)ge[Qt+De]=Re[De];return ge}function Gm(ge,Re,De,yt){var Qt=-1,Cn=ge==null?0:ge.length;for(yt&&Cn&&(De=ge[++Qt]);++Qt<Cn;)De=Re(De,ge[Qt],Qt,ge);return De}function GD(ge,Re,De,yt){var Qt=ge==null?0:ge.length;for(yt&&Qt&&(De=ge[--Qt]);Qt--;)De=Re(De,ge[Qt],Qt,ge);return De}function Ym(ge,Re){for(var De=-1,yt=ge==null?0:ge.length;++De<yt;)if(Re(ge[De],De,ge))return!0;return!1}var YD=Qm("length");function QD(ge){return ge.split("")}function ZD(ge){return ge.match(Vt)||[]}function s2(ge,Re,De){var yt;return De(ge,function(Qt,Cn,Pr){if(Re(Qt,Cn,Pr))return yt=Cn,!1}),yt}function th(ge,Re,De,yt){for(var Qt=ge.length,Cn=De+(yt?1:-1);yt?Cn--:++Cn<Qt;)if(Re(ge[Cn],Cn,ge))return Cn;return-1}function Gu(ge,Re,De){return Re===Re?u9(ge,Re,De):th(ge,o2,De)}function XD(ge,Re,De,yt){for(var Qt=De-1,Cn=ge.length;++Qt<Cn;)if(yt(ge[Qt],Re))return Qt;return-1}function o2(ge){return ge!==ge}function a2(ge,Re){var De=ge==null?0:ge.length;return De?Xm(ge,Re)/De:fe}function Qm(ge){return function(Re){return Re==null?n:Re[ge]}}function Zm(ge){return function(Re){return ge==null?n:ge[Re]}}function u2(ge,Re,De,yt,Qt){return Qt(ge,function(Cn,Pr,Bn){De=yt?(yt=!1,Cn):Re(De,Cn,Pr,Bn)}),De}function KD(ge,Re){var De=ge.length;for(ge.sort(Re);De--;)ge[De]=ge[De].value;return ge}function Xm(ge,Re){for(var De,yt=-1,Qt=ge.length;++yt<Qt;){var Cn=Re(ge[yt]);Cn!==n&&(De=De===n?Cn:De+Cn)}return De}function Km(ge,Re){for(var De=-1,yt=Array(ge);++De<ge;)yt[De]=Re(De);return yt}function JD(ge,Re){return sr(Re,function(De){return[De,ge[De]]})}function l2(ge){return ge&&ge.slice(0,h2(ge)+1).replace(an,"")}function Gi(ge){return function(Re){return ge(Re)}}function Jm(ge,Re){return sr(Re,function(De){return ge[De]})}function Pc(ge,Re){return ge.has(Re)}function c2(ge,Re){for(var De=-1,yt=ge.length;++De<yt&&Gu(Re,ge[De],0)>-1;);return De}function f2(ge,Re){for(var De=ge.length;De--&&Gu(Re,ge[De],0)>-1;);return De}function e9(ge,Re){for(var De=ge.length,yt=0;De--;)ge[De]===Re&&++yt;return yt}var t9=Zm(LD),n9=Zm(MD);function r9(ge){return"\\"+zD[ge]}function i9(ge,Re){return ge==null?n:ge[Re]}function Yu(ge){return Yy.test(ge)}function s9(ge){return Qy.test(ge)}function o9(ge){for(var Re,De=[];!(Re=ge.next()).done;)De.push(Re.value);return De}function eg(ge){var Re=-1,De=Array(ge.size);return ge.forEach(function(yt,Qt){De[++Re]=[Qt,yt]}),De}function d2(ge,Re){return function(De){return ge(Re(De))}}function sa(ge,Re){for(var De=-1,yt=ge.length,Qt=0,Cn=[];++De<yt;){var Pr=ge[De];(Pr===Re||Pr===c)&&(ge[De]=c,Cn[Qt++]=De)}return Cn}function nh(ge){var Re=-1,De=Array(ge.size);return ge.forEach(function(yt){De[++Re]=yt}),De}function a9(ge){var Re=-1,De=Array(ge.size);return ge.forEach(function(yt){De[++Re]=[yt,yt]}),De}function u9(ge,Re,De){for(var yt=De-1,Qt=ge.length;++yt<Qt;)if(ge[yt]===Re)return yt;return-1}function l9(ge,Re,De){for(var yt=De+1;yt--;)if(ge[yt]===Re)return yt;return yt}function Qu(ge){return Yu(ge)?f9(ge):YD(ge)}function $s(ge){return Yu(ge)?d9(ge):QD(ge)}function h2(ge){for(var Re=ge.length;Re--&&rn.test(ge.charAt(Re)););return Re}var c9=Zm(BD);function f9(ge){for(var Re=bi.lastIndex=0;bi.test(ge);)++Re;return Re}function d9(ge){return ge.match(bi)||[]}function h9(ge){return ge.match(Ka)||[]}var p9=function ge(Re){Re=Re==null?Jr:Zu.defaults(Jr.Object(),Re,Zu.pick(Jr,Vi));var De=Re.Array,yt=Re.Date,Qt=Re.Error,Cn=Re.Function,Pr=Re.Math,Bn=Re.Object,tg=Re.RegExp,m9=Re.String,ds=Re.TypeError,rh=De.prototype,g9=Cn.prototype,Xu=Bn.prototype,ih=Re["__core-js_shared__"],sh=g9.toString,Pn=Xu.hasOwnProperty,v9=0,p2=function(){var f=/[^.]+$/.exec(ih&&ih.keys&&ih.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),oh=Xu.toString,b9=sh.call(Bn),_9=Jr._,y9=tg("^"+sh.call(Pn).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ah=Xy?Re.Buffer:n,oa=Re.Symbol,uh=Re.Uint8Array,m2=ah?ah.allocUnsafe:n,lh=d2(Bn.getPrototypeOf,Bn),g2=Bn.create,v2=Xu.propertyIsEnumerable,ch=rh.splice,b2=oa?oa.isConcatSpreadable:n,xc=oa?oa.iterator:n,eu=oa?oa.toStringTag:n,fh=function(){try{var f=su(Bn,"defineProperty");return f({},"",{}),f}catch{}}(),w9=Re.clearTimeout!==Jr.clearTimeout&&Re.clearTimeout,E9=yt&&yt.now!==Jr.Date.now&&yt.now,k9=Re.setTimeout!==Jr.setTimeout&&Re.setTimeout,dh=Pr.ceil,hh=Pr.floor,ng=Bn.getOwnPropertySymbols,S9=ah?ah.isBuffer:n,_2=Re.isFinite,T9=rh.join,$9=d2(Bn.keys,Bn),xr=Pr.max,oi=Pr.min,C9=yt.now,A9=Re.parseInt,y2=Pr.random,D9=rh.reverse,rg=su(Re,"DataView"),qc=su(Re,"Map"),ig=su(Re,"Promise"),Ku=su(Re,"Set"),Fc=su(Re,"WeakMap"),Lc=su(Bn,"create"),ph=Fc&&new Fc,Ju={},I9=ou(rg),O9=ou(qc),N9=ou(ig),R9=ou(Ku),P9=ou(Fc),mh=oa?oa.prototype:n,Mc=mh?mh.valueOf:n,w2=mh?mh.toString:n;function W(f){if(mr(f)&&!Xt(f)&&!(f instanceof dn)){if(f instanceof hs)return f;if(Pn.call(f,"__wrapped__"))return Ew(f)}return new hs(f)}var el=function(){function f(){}return function(p){if(!cr(p))return{};if(g2)return g2(p);f.prototype=p;var _=new f;return f.prototype=n,_}}();function gh(){}function hs(f,p){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}W.templateSettings={escape:qt,evaluate:Rn,interpolate:Hn,variable:"",imports:{_:W}},W.prototype=gh.prototype,W.prototype.constructor=W,hs.prototype=el(gh.prototype),hs.prototype.constructor=hs;function dn(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=me,this.__views__=[]}function x9(){var f=new dn(this.__wrapped__);return f.__actions__=Oi(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Oi(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Oi(this.__views__),f}function q9(){if(this.__filtered__){var f=new dn(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function F9(){var f=this.__wrapped__.value(),p=this.__dir__,_=Xt(f),A=p<0,U=_?f.length:0,Y=QI(0,U,this.__views__),ne=Y.start,le=Y.end,_e=le-ne,xe=A?le:ne-1,qe=this.__iteratees__,Ue=qe.length,lt=0,At=oi(_e,this.__takeCount__);if(!_||!A&&U==_e&&At==_e)return V2(f,this.__actions__);var Bt=[];e:for(;_e--&<<At;){xe+=p;for(var on=-1,zt=f[xe];++on<Ue;){var ln=qe[on],gn=ln.iteratee,Zi=ln.type,wi=gn(zt);if(Zi==Z)zt=wi;else if(!wi){if(Zi==J)continue e;break e}}Bt[lt++]=zt}return Bt}dn.prototype=el(gh.prototype),dn.prototype.constructor=dn;function tu(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var A=f[p];this.set(A[0],A[1])}}function L9(){this.__data__=Lc?Lc(null):{},this.size=0}function M9(f){var p=this.has(f)&&delete this.__data__[f];return this.size-=p?1:0,p}function B9(f){var p=this.__data__;if(Lc){var _=p[f];return _===u?n:_}return Pn.call(p,f)?p[f]:n}function z9(f){var p=this.__data__;return Lc?p[f]!==n:Pn.call(p,f)}function j9(f,p){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=Lc&&p===n?u:p,this}tu.prototype.clear=L9,tu.prototype.delete=M9,tu.prototype.get=B9,tu.prototype.has=z9,tu.prototype.set=j9;function Eo(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var A=f[p];this.set(A[0],A[1])}}function U9(){this.__data__=[],this.size=0}function H9(f){var p=this.__data__,_=vh(p,f);if(_<0)return!1;var A=p.length-1;return _==A?p.pop():ch.call(p,_,1),--this.size,!0}function V9(f){var p=this.__data__,_=vh(p,f);return _<0?n:p[_][1]}function W9(f){return vh(this.__data__,f)>-1}function G9(f,p){var _=this.__data__,A=vh(_,f);return A<0?(++this.size,_.push([f,p])):_[A][1]=p,this}Eo.prototype.clear=U9,Eo.prototype.delete=H9,Eo.prototype.get=V9,Eo.prototype.has=W9,Eo.prototype.set=G9;function ko(f){var p=-1,_=f==null?0:f.length;for(this.clear();++p<_;){var A=f[p];this.set(A[0],A[1])}}function Y9(){this.size=0,this.__data__={hash:new tu,map:new(qc||Eo),string:new tu}}function Q9(f){var p=Dh(this,f).delete(f);return this.size-=p?1:0,p}function Z9(f){return Dh(this,f).get(f)}function X9(f){return Dh(this,f).has(f)}function K9(f,p){var _=Dh(this,f),A=_.size;return _.set(f,p),this.size+=_.size==A?0:1,this}ko.prototype.clear=Y9,ko.prototype.delete=Q9,ko.prototype.get=Z9,ko.prototype.has=X9,ko.prototype.set=K9;function nu(f){var p=-1,_=f==null?0:f.length;for(this.__data__=new ko;++p<_;)this.add(f[p])}function J9(f){return this.__data__.set(f,u),this}function eI(f){return this.__data__.has(f)}nu.prototype.add=nu.prototype.push=J9,nu.prototype.has=eI;
vendor: 8,059 bytes, line 897
897function Cs(f){var p=this.__data__=new Eo(f);this.size=p.size}function tI(){this.__data__=new Eo,this.size=0}function nI(f){var p=this.__data__,_=p.delete(f);return this.size=p.size,_}function rI(f){return this.__data__.get(f)}function iI(f){return this.__data__.has(f)}function sI(f,p){var _=this.__data__;if(_ instanceof Eo){var A=_.__data__;if(!qc||A.length<i-1)return A.push([f,p]),this.size=++_.size,this;_=this.__data__=new ko(A)}return _.set(f,p),this.size=_.size,this}Cs.prototype.clear=tI,Cs.prototype.delete=nI,Cs.prototype.get=rI,Cs.prototype.has=iI,Cs.prototype.set=sI;function E2(f,p){var _=Xt(f),A=!_&&au(f),U=!_&&!A&&fa(f),Y=!_&&!A&&!U&&il(f),ne=_||A||U||Y,le=ne?Km(f.length,m9):[],_e=le.length;for(var xe in f)(p||Pn.call(f,xe))&&!(ne&&(xe=="length"||U&&(xe=="offset"||xe=="parent")||Y&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||Co(xe,_e)))&&le.push(xe);return le}function k2(f){var p=f.length;return p?f[mg(0,p-1)]:n}function oI(f,p){return Ih(Oi(f),ru(p,0,f.length))}function aI(f){return Ih(Oi(f))}function sg(f,p,_){(_!==n&&!As(f[p],_)||_===n&&!(p in f))&&So(f,p,_)}function Bc(f,p,_){var A=f[p];(!(Pn.call(f,p)&&As(A,_))||_===n&&!(p in f))&&So(f,p,_)}function vh(f,p){for(var _=f.length;_--;)if(As(f[_][0],p))return _;return-1}function uI(f,p,_,A){return aa(f,function(U,Y,ne){p(A,U,_(U),ne)}),A}function S2(f,p){return f&&Qs(p,jr(p),f)}function lI(f,p){return f&&Qs(p,Ri(p),f)}function So(f,p,_){p=="__proto__"&&fh?fh(f,p,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[p]=_}function og(f,p){for(var _=-1,A=p.length,U=De(A),Y=f==null;++_<A;)U[_]=Y?n:Bg(f,p[_]);return U}function ru(f,p,_){return f===f&&(_!==n&&(f=f<=_?f:_),p!==n&&(f=f>=p?f:p)),f}function ps(f,p,_,A,U,Y){var ne,le=p&d,_e=p&h,xe=p&m;if(_&&(ne=U?_(f,A,U,Y):_(f)),ne!==n)return ne;if(!cr(f))return f;var qe=Xt(f);if(qe){if(ne=XI(f),!le)return Oi(f,ne)}else{var Ue=ai(f),lt=Ue==Je||Ue==Ne;if(fa(f))return Y2(f,le);if(Ue==Ze||Ue==ie||lt&&!U){if(ne=_e||lt?{}:hw(f),!le)return _e?BI(f,lI(ne,f)):MI(f,S2(ne,f))}else{if(!Wn[Ue])return U?f:{};ne=KI(f,Ue,le)}}Y||(Y=new Cs);var At=Y.get(f);if(At)return At;Y.set(f,ne),jw(f)?f.forEach(function(zt){ne.add(ps(zt,p,_,zt,f,Y))}):Bw(f)&&f.forEach(function(zt,ln){ne.set(ln,ps(zt,p,_,ln,f,Y))});var Bt=xe?_e?$g:Tg:_e?Ri:jr,on=qe?n:Bt(f);return fs(on||f,function(zt,ln){on&&(ln=zt,zt=f[ln]),Bc(ne,ln,ps(zt,p,_,ln,f,Y))}),ne}function cI(f){var p=jr(f);return function(_){return T2(_,f,p)}}function T2(f,p,_){var A=_.length;if(f==null)return!A;for(f=Bn(f);A--;){var U=_[A],Y=p[U],ne=f[U];if(ne===n&&!(U in f)||!Y(ne))return!1}return!0}function $2(f,p,_){if(typeof f!="function")throw new ds(o);return Gc(function(){f.apply(n,_)},p)}function zc(f,p,_,A){var U=-1,Y=eh,ne=!0,le=f.length,_e=[],xe=p.length;if(!le)return _e;_&&(p=sr(p,Gi(_))),A?(Y=Wm,ne=!1):p.length>=i&&(Y=Pc,ne=!1,p=new nu(p));e:for(;++U<le;){var qe=f[U],Ue=_==null?qe:_(qe);if(qe=A||qe!==0?qe:0,ne&&Ue===Ue){for(var lt=xe;lt--;)if(p[lt]===Ue)continue e;_e.push(qe)}else Y(p,Ue,A)||_e.push(qe)}return _e}var aa=J2(Ys),C2=J2(ug,!0);function fI(f,p){var _=!0;return aa(f,function(A,U,Y){return _=!!p(A,U,Y),_}),_}function bh(f,p,_){for(var A=-1,U=f.length;++A<U;){var Y=f[A],ne=p(Y);if(ne!=null&&(le===n?ne===ne&&!Qi(ne):_(ne,le)))var le=ne,_e=Y}return _e}function dI(f,p,_,A){var U=f.length;for(_=en(_),_<0&&(_=-_>U?0:U+_),A=A===n||A>U?U:en(A),A<0&&(A+=U),A=_>A?0:Hw(A);_<A;)f[_++]=p;return f}function A2(f,p){var _=[];return aa(f,function(A,U,Y){p(A,U,Y)&&_.push(A)}),_}function ei(f,p,_,A,U){var Y=-1,ne=f.length;for(_||(_=eO),U||(U=[]);++Y<ne;){var le=f[Y];p>0&&_(le)?p>1?ei(le,p-1,_,A,U):ia(U,le):A||(U[U.length]=le)}return U}var ag=ew(),D2=ew(!0);function Ys(f,p){return f&&ag(f,p,jr)}function ug(f,p){return f&&D2(f,p,jr)}function _h(f,p){return ra(p,function(_){return Ao(f[_])})}function iu(f,p){p=la(p,f);for(var _=0,A=p.length;f!=null&&_<A;)f=f[Zs(p[_++])];return _&&_==A?f:n}function I2(f,p,_){var A=p(f);return Xt(f)?A:ia(A,_(f))}function _i(f){return f==null?f===n?te:rt:eu&&eu in Bn(f)?YI(f):aO(f)}function lg(f,p){return f>p}function hI(f,p){return f!=null&&Pn.call(f,p)}function pI(f,p){return f!=null&&p in Bn(f)}function mI(f,p,_){return f>=oi(p,_)&&f<xr(p,_)}function cg(f,p,_){for(var A=_?Wm:eh,U=f[0].length,Y=f.length,ne=Y,le=De(Y),_e=1/0,xe=[];ne--;){var qe=f[ne];ne&&p&&(qe=sr(qe,Gi(p))),_e=oi(qe.length,_e),le[ne]=!_&&(p||U>=120&&qe.length>=120)?new nu(ne&&qe):n}qe=f[0];var Ue=-1,lt=le[0];e:for(;++Ue<U&&xe.length<_e;){var At=qe[Ue],Bt=p?p(At):At;if(At=_||At!==0?At:0,!(lt?Pc(lt,Bt):A(xe,Bt,_))){for(ne=Y;--ne;){var on=le[ne];if(!(on?Pc(on,Bt):A(f[ne],Bt,_)))continue e}lt&<.push(Bt),xe.push(At)}}return xe}function gI(f,p,_,A){return Ys(f,function(U,Y,ne){p(A,_(U),Y,ne)}),A}function jc(f,p,_){p=la(p,f),f=vw(f,p);var A=f==null?f:f[Zs(gs(p))];return A==null?n:Wi(A,f,_)}function O2(f){return mr(f)&&_i(f)==ie}function vI(f){return mr(f)&&_i(f)==Xe}function bI(f){return mr(f)&&_i(f)==Te}function Uc(f,p,_,A,U){return f===p?!0:f==null||p==null||!mr(f)&&!mr(p)?f!==f&&p!==p:_I(f,p,_,A,Uc,U)}function _I(f,p,_,A,U,Y){var ne=Xt(f),le=Xt(p),_e=ne?de:ai(f),xe=le?de:ai(p);_e=_e==ie?Ze:_e,xe=xe==ie?Ze:xe;var qe=_e==Ze,Ue=xe==Ze,lt=_e==xe;if(lt&&fa(f)){if(!fa(p))return!1;ne=!0,qe=!1}if(lt&&!qe)return Y||(Y=new Cs),ne||il(f)?cw(f,p,_,A,U,Y):WI(f,p,_e,_,A,U,Y);if(!(_&g)){var At=qe&&Pn.call(f,"__wrapped__"),Bt=Ue&&Pn.call(p,"__wrapped__");if(At||Bt){var on=At?f.value():f,zt=Bt?p.value():p;return Y||(Y=new Cs),U(on,zt,_,A,Y)}}return lt?(Y||(Y=new Cs),GI(f,p,_,A,U,Y)):!1}function yI(f){return mr(f)&&ai(f)==Ge}function fg(f,p,_,A){var U=_.length,Y=U,ne=!A;if(f==null)return!Y;for(f=Bn(f);U--;){var le=_[U];if(ne&&le[2]?le[1]!==f[le[0]]:!(le[0]in f))return!1}for(;++U<Y;){le=_[U];var _e=le[0],xe=f[_e],qe=le[1];if(ne&&le[2]){if(xe===n&&!(_e in f))return!1}else{var Ue=new Cs;if(A)var lt=A(xe,qe,_e,f,p,Ue);if(!(lt===n?Uc(qe,xe,g|k,A,Ue):lt))return!1}}return!0}function N2(f){if(!cr(f)||nO(f))return!1;var p=Ao(f)?y9:Jo;return p.test(ou(f))}function wI(f){return mr(f)&&_i(f)==he}function EI(f){return mr(f)&&ai(f)==Pe}function kI(f){return mr(f)&&qh(f.length)&&!!Kn[_i(f)]}function R2(f){return typeof f=="function"?f:f==null?Pi:typeof f=="object"?Xt(f)?q2(f[0],f[1]):x2(f):t3(f)}function dg(f){if(!Wc(f))return $9(f);var p=[];for(var _ in Bn(f))Pn.call(f,_)&&_!="constructor"&&p.push(_);return p}function SI(f){if(!cr(f))return oO(f);var p=Wc(f),_=[];for(var A in f)A=="constructor"&&(p||!Pn.call(f,A))||_.push(A);return _}function hg(f,p){return f<p}function P2(f,p){var _=-1,A=Ni(f)?De(f.length):[];return aa(f,function(U,Y,ne){A[++_]=p(U,Y,ne)}),A}function x2(f){var p=Ag(f);return p.length==1&&p[0][2]?mw(p[0][0],p[0][1]):function(_){return _===f||fg(_,f,p)}}function q2(f,p){return Ig(f)&&pw(p)?mw(Zs(f),p):function(_){var A=Bg(_,f);return A===n&&A===p?zg(_,f):Uc(p,A,g|k)}}function yh(f,p,_,A,U){f!==p&&ag(p,function(Y,ne){if(U||(U=new Cs),cr(Y))TI(f,p,ne,_,yh,A,U);else{var le=A?A(Ng(f,ne),Y,ne+"",f,p,U):n;le===n&&(le=Y),sg(f,ne,le)}},Ri)}function TI(f,p,_,A,U,Y,ne){var le=Ng(f,_),_e=Ng(p,_),xe=ne.get(_e);if(xe){sg(f,_,xe);return}var qe=Y?Y(le,_e,_+"",f,p,ne):n,Ue=qe===n;if(Ue){var lt=Xt(_e),At=!lt&&fa(_e),Bt=!lt&&!At&&il(_e);qe=_e,lt||At||Bt?Xt(le)?qe=le:wr(le)?qe=Oi(le):At?(Ue=!1,qe=Y2(_e,!0)):Bt?(Ue=!1,qe=Q2(_e,!0)):qe=[]:Yc(_e)||au(_e)?(qe=le,au(le)?qe=Vw(le):(!cr(le)||Ao(le))&&(qe=hw(_e))):Ue=!1}Ue&&(ne.set(_e,qe),U(qe,_e,A,Y,ne),ne.delete(_e)),sg(f,_,qe)}function F2(f,p){var _=f.length;if(_)return p+=p<0?_:0,Co(p,_)?f[p]:n}function L2(f,p,_){p.length?p=sr(p,function(Y){return Xt(Y)?function(ne){return iu(ne,Y.length===1?Y[0]:Y)}:Y}):p=[Pi];var A=-1;p=sr(p,Gi(Lt()));var U=P2(f,function(Y,ne,le){var _e=sr(p,function(xe){return xe(Y)});return{criteria:_e,index:++A,value:Y}});return KD(U,function(Y,ne){return LI(Y,ne,_)})}function $I(f,p){return M2(f,p,function(_,A){return zg(f,A)})}function M2(f,p,_){for(var A=-1,U=p.length,Y={};++A<U;){var ne=p[A],le=iu(f,ne);_(le,ne)&&Hc(Y,la(ne,f),le)}return Y}function CI(f){return function(p){return iu(p,f)}}function pg(f,p,_,A){var U=A?XD:Gu,Y=-1,ne=p.length,le=f;
vendor: 20,964 bytes, lines 897-899
897for(f===p&&(p=Oi(p)),_&&(le=sr(f,Gi(_)));++Y<ne;)for(var _e=0,xe=p[Y],qe=_?_(xe):xe;(_e=U(le,qe,_e,A))>-1;)le!==f&&ch.call(le,_e,1),ch.call(f,_e,1);return f}function B2(f,p){for(var _=f?p.length:0,A=_-1;_--;){var U=p[_];if(_==A||U!==Y){var Y=U;Co(U)?ch.call(f,U,1):bg(f,U)}}return f}function mg(f,p){return f+hh(y2()*(p-f+1))}function AI(f,p,_,A){for(var U=-1,Y=xr(dh((p-f)/(_||1)),0),ne=De(Y);Y--;)ne[A?Y:++U]=f,f+=_;return ne}function gg(f,p){var _="";if(!f||p<1||p>G)return _;do p%2&&(_+=f),p=hh(p/2),p&&(f+=f);while(p);return _}function un(f,p){return Rg(gw(f,p,Pi),f+"")}function DI(f){return k2(sl(f))}function II(f,p){var _=sl(f);return Ih(_,ru(p,0,_.length))}function Hc(f,p,_,A){if(!cr(f))return f;p=la(p,f);for(var U=-1,Y=p.length,ne=Y-1,le=f;le!=null&&++U<Y;){var _e=Zs(p[U]),xe=_;if(_e==="__proto__"||_e==="constructor"||_e==="prototype")return f;if(U!=ne){var qe=le[_e];xe=A?A(qe,_e,le):n,xe===n&&(xe=cr(qe)?qe:Co(p[U+1])?[]:{})}Bc(le,_e,xe),le=le[_e]}return f}var z2=ph?function(f,p){return ph.set(f,p),f}:Pi,OI=fh?function(f,p){return fh(f,"toString",{configurable:!0,enumerable:!1,value:Ug(p),writable:!0})}:Pi;function NI(f){return Ih(sl(f))}function ms(f,p,_){var A=-1,U=f.length;p<0&&(p=-p>U?0:U+p),_=_>U?U:_,_<0&&(_+=U),U=p>_?0:_-p>>>0,p>>>=0;for(var Y=De(U);++A<U;)Y[A]=f[A+p];return Y}function RI(f,p){var _;return aa(f,function(A,U,Y){return _=p(A,U,Y),!_}),!!_}function wh(f,p,_){var A=0,U=f==null?A:f.length;if(typeof p=="number"&&p===p&&U<=ee){for(;A<U;){var Y=A+U>>>1,ne=f[Y];ne!==null&&!Qi(ne)&&(_?ne<=p:ne<p)?A=Y+1:U=Y}return U}return vg(f,p,Pi,_)}function vg(f,p,_,A){var U=0,Y=f==null?0:f.length;if(Y===0)return 0;p=_(p);for(var ne=p!==p,le=p===null,_e=Qi(p),xe=p===n;U<Y;){var qe=hh((U+Y)/2),Ue=_(f[qe]),lt=Ue!==n,At=Ue===null,Bt=Ue===Ue,on=Qi(Ue);if(ne)var zt=A||Bt;else xe?zt=Bt&&(A||lt):le?zt=Bt&<&&(A||!At):_e?zt=Bt&<&&!At&&(A||!on):At||on?zt=!1:zt=A?Ue<=p:Ue<p;zt?U=qe+1:Y=qe}return oi(Y,Ae)}function j2(f,p){for(var _=-1,A=f.length,U=0,Y=[];++_<A;){var ne=f[_],le=p?p(ne):ne;if(!_||!As(le,_e)){var _e=le;Y[U++]=ne===0?0:ne}}return Y}function U2(f){return typeof f=="number"?f:Qi(f)?fe:+f}function Yi(f){if(typeof f=="string")return f;if(Xt(f))return sr(f,Yi)+"";if(Qi(f))return w2?w2.call(f):"";var p=f+"";return p=="0"&&1/f==-K?"-0":p}function ua(f,p,_){var A=-1,U=eh,Y=f.length,ne=!0,le=[],_e=le;if(_)ne=!1,U=Wm;else if(Y>=i){var xe=p?null:HI(f);if(xe)return nh(xe);ne=!1,U=Pc,_e=new nu}else _e=p?[]:le;e:for(;++A<Y;){var qe=f[A],Ue=p?p(qe):qe;if(qe=_||qe!==0?qe:0,ne&&Ue===Ue){for(var lt=_e.length;lt--;)if(_e[lt]===Ue)continue e;p&&_e.push(Ue),le.push(qe)}else U(_e,Ue,_)||(_e!==le&&_e.push(Ue),le.push(qe))}return le}function bg(f,p){return p=la(p,f),f=vw(f,p),f==null||delete f[Zs(gs(p))]}function H2(f,p,_,A){return Hc(f,p,_(iu(f,p)),A)}function Eh(f,p,_,A){for(var U=f.length,Y=A?U:-1;(A?Y--:++Y<U)&&p(f[Y],Y,f););return _?ms(f,A?0:Y,A?Y+1:U):ms(f,A?Y+1:0,A?U:Y)}function V2(f,p){var _=f;return _ instanceof dn&&(_=_.value()),Gm(p,function(A,U){return U.func.apply(U.thisArg,ia([A],U.args))},_)}function _g(f,p,_){var A=f.length;if(A<2)return A?ua(f[0]):[];for(var U=-1,Y=De(A);++U<A;)for(var ne=f[U],le=-1;++le<A;)le!=U&&(Y[U]=zc(Y[U]||ne,f[le],p,_));return ua(ei(Y,1),p,_)}function W2(f,p,_){for(var A=-1,U=f.length,Y=p.length,ne={};++A<U;){var le=A<Y?p[A]:n;_(ne,f[A],le)}return ne}function yg(f){return wr(f)?f:[]}function wg(f){return typeof f=="function"?f:Pi}function la(f,p){return Xt(f)?f:Ig(f,p)?[f]:ww(On(f))}var PI=un;function ca(f,p,_){var A=f.length;return _=_===n?A:_,!p&&_>=A?f:ms(f,p,_)}var G2=w9||function(f){return Jr.clearTimeout(f)};function Y2(f,p){if(p)return f.slice();var _=f.length,A=m2?m2(_):new f.constructor(_);return f.copy(A),A}function Eg(f){var p=new f.constructor(f.byteLength);return new uh(p).set(new uh(f)),p}function xI(f,p){var _=p?Eg(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.byteLength)}function qI(f){var p=new f.constructor(f.source,mn.exec(f));return p.lastIndex=f.lastIndex,p}function FI(f){return Mc?Bn(Mc.call(f)):{}}function Q2(f,p){var _=p?Eg(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function Z2(f,p){if(f!==p){var _=f!==n,A=f===null,U=f===f,Y=Qi(f),ne=p!==n,le=p===null,_e=p===p,xe=Qi(p);if(!le&&!xe&&!Y&&f>p||Y&&ne&&_e&&!le&&!xe||A&&ne&&_e||!_&&_e||!U)return 1;if(!A&&!Y&&!xe&&f<p||xe&&_&&U&&!A&&!Y||le&&_&&U||!ne&&U||!_e)return-1}return 0}function LI(f,p,_){for(var A=-1,U=f.criteria,Y=p.criteria,ne=U.length,le=_.length;++A<ne;){var _e=Z2(U[A],Y[A]);if(_e){if(A>=le)return _e;var xe=_[A];return _e*(xe=="desc"?-1:1)}}return f.index-p.index}function X2(f,p,_,A){for(var U=-1,Y=f.length,ne=_.length,le=-1,_e=p.length,xe=xr(Y-ne,0),qe=De(_e+xe),Ue=!A;++le<_e;)qe[le]=p[le];for(;++U<ne;)(Ue||U<Y)&&(qe[_[U]]=f[U]);for(;xe--;)qe[le++]=f[U++];return qe}function K2(f,p,_,A){for(var U=-1,Y=f.length,ne=-1,le=_.length,_e=-1,xe=p.length,qe=xr(Y-le,0),Ue=De(qe+xe),lt=!A;++U<qe;)Ue[U]=f[U];for(var At=U;++_e<xe;)Ue[At+_e]=p[_e];for(;++ne<le;)(lt||U<Y)&&(Ue[At+_[ne]]=f[U++]);return Ue}function Oi(f,p){var _=-1,A=f.length;for(p||(p=De(A));++_<A;)p[_]=f[_];return p}function Qs(f,p,_,A){var U=!_;_||(_={});for(var Y=-1,ne=p.length;++Y<ne;){var le=p[Y],_e=A?A(_[le],f[le],le,_,f):n;_e===n&&(_e=f[le]),U?So(_,le,_e):Bc(_,le,_e)}return _}function MI(f,p){return Qs(f,Dg(f),p)}function BI(f,p){return Qs(f,fw(f),p)}function kh(f,p){return function(_,A){var U=Xt(_)?VD:uI,Y=p?p():{};return U(_,f,Lt(A,2),Y)}}function tl(f){return un(function(p,_){var A=-1,U=_.length,Y=U>1?_[U-1]:n,ne=U>2?_[2]:n;for(Y=f.length>3&&typeof Y=="function"?(U--,Y):n,ne&&yi(_[0],_[1],ne)&&(Y=U<3?n:Y,U=1),p=Bn(p);++A<U;){var le=_[A];le&&f(p,le,A,Y)}return p})}function J2(f,p){return function(_,A){if(_==null)return _;if(!Ni(_))return f(_,A);for(var U=_.length,Y=p?U:-1,ne=Bn(_);(p?Y--:++Y<U)&&A(ne[Y],Y,ne)!==!1;);return _}}function ew(f){return function(p,_,A){for(var U=-1,Y=Bn(p),ne=A(p),le=ne.length;le--;){var _e=ne[f?le:++U];if(_(Y[_e],_e,Y)===!1)break}return p}}function zI(f,p,_){var A=p&y,U=Vc(f);function Y(){var ne=this&&this!==Jr&&this instanceof Y?U:f;return ne.apply(A?_:this,arguments)}return Y}function tw(f){return function(p){p=On(p);var _=Yu(p)?$s(p):n,A=_?_[0]:p.charAt(0),U=_?ca(_,1).join(""):p.slice(1);return A[f]()+U}}function nl(f){return function(p){return Gm(Jw(Kw(p).replace(si,"")),f,"")}}function Vc(f){return function(){var p=arguments;switch(p.length){case 0:return new f;case 1:return new f(p[0]);case 2:return new f(p[0],p[1]);case 3:return new f(p[0],p[1],p[2]);case 4:return new f(p[0],p[1],p[2],p[3]);case 5:return new f(p[0],p[1],p[2],p[3],p[4]);case 6:return new f(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new f(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var _=el(f.prototype),A=f.apply(_,p);return cr(A)?A:_}}function jI(f,p,_){var A=Vc(f);function U(){for(var Y=arguments.length,ne=De(Y),le=Y,_e=rl(U);le--;)ne[le]=arguments[le];var xe=Y<3&&ne[0]!==_e&&ne[Y-1]!==_e?[]:sa(ne,_e);if(Y-=xe.length,Y<_)return ow(f,p,Sh,U.placeholder,n,ne,xe,n,n,_-Y);var qe=this&&this!==Jr&&this instanceof U?A:f;return Wi(qe,this,ne)}return U}function nw(f){return function(p,_,A){var U=Bn(p);if(!Ni(p)){var Y=Lt(_,3);p=jr(p),_=function(le){return Y(U[le],le,U)}}var ne=f(p,_,A);return ne>-1?U[Y?p[ne]:ne]:n}}function rw(f){return $o(function(p){var _=p.length,A=_,U=hs.prototype.thru;for(f&&p.reverse();A--;){var Y=p[A];if(typeof Y!="function")throw new ds(o);if(U&&!ne&&Ah(Y)=="wrapper")var ne=new hs([],!0)}for(A=ne?A:_;++A<_;){Y=p[A];var le=Ah(Y),_e=le=="wrapper"?Cg(Y):n;_e&&Og(_e[0])&&_e[1]==(R|$|P|q)&&!_e[4].length&&_e[9]==1?ne=ne[Ah(_e[0])].apply(ne,_e[3]):ne=Y.length==1&&Og(Y)?ne[le]():ne.thru(Y)}return function(){var xe=arguments,qe=xe[0];if(ne&&xe.length==1&&Xt(qe))return ne.plant(qe).value();for(var Ue=0,lt=_?p[Ue].apply(this,xe):qe;++Ue<_;)lt=p[Ue].call(this,lt);return lt}})}function Sh(f,p,_,A,U,Y,ne,le,_e,xe){var qe=p&R,Ue=p&y,lt=p&b,At=p&($|D),Bt=p&F,on=lt?n:Vc(f);function zt(){for(var ln=arguments.length,gn=De(ln),Zi=ln;Zi--;)gn[Zi]=arguments[Zi];if(At)var wi=rl(zt),Xi=e9(gn,wi);if(A&&(gn=X2(gn,A,U,At)),Y&&(gn=K2(gn,Y,ne,At)),ln-=Xi,At&&ln<xe){var Er=sa(gn,wi);return ow(f,p,Sh,zt.placeholder,_,gn,Er,le,_e,xe-ln)}var Ds=Ue?_:this,Io=lt?Ds[f]:f;return ln=gn.length,le?gn=uO(gn,le):Bt&&ln>1&&gn.reverse(),qe&&_e<ln&&(gn.length=_e),this&&this!==Jr&&this instanceof zt&&(Io=on||Vc(Io)),Io.apply(Ds,gn)}return zt}function iw(f,p){return function(_,A){return gI(_,f,p(A),{})}}function Th(f,p){return function(_,A){var U;if(_===n&&A===n)return p;if(_!==n&&(U=_),A!==n){if(U===n)return A;typeof _=="string"||typeof A=="string"?(_=Yi(_),A=Yi(A)):(_=U2(_),A=U2(A)),U=f(_,A)}return U}}function kg(f){return $o(function(p){return p=sr(p,Gi(Lt())),un(function(_){var A=this;return f(p,function(U){return Wi(U,A,_)})})})}function $h(f,p){p=p===n?" ":Yi(p);var _=p.length;if(_<2)return _?gg(p,f):p;var A=gg(p,dh(f/Qu(p)));return Yu(p)?ca($s(A),0,f).join(""):A.slice(0,f)}function UI(f,p,_,A){var U=p&y,Y=Vc(f);function ne(){for(var le=-1,_e=arguments.length,xe=-1,qe=A.length,Ue=De(qe+_e),lt=this&&this!==Jr&&this instanceof ne?Y:f;++xe<qe;)Ue[xe]=A[xe];for(;_e--;)Ue[xe++]=arguments[++le];return Wi(lt,U?_:this,Ue)}return ne}function sw(f){return function(p,_,A){return A&&typeof A!="number"&&yi(p,_,A)&&(_=A=n),p=Do(p),_===n?(_=p,p=0):_=Do(_),A=A===n?p<_?1:-1:Do(A),AI(p,_,A,f)}}function Ch(f){return function(p,_){return typeof p=="string"&&typeof _=="string"||(p=vs(p),_=vs(_)),f(p,_)}}function ow(f,p,_,A,U,Y,ne,le,_e,xe){var qe=p&$,Ue=qe?ne:n,lt=qe?n:ne,At=qe?Y:n,Bt=qe?n:Y;p|=qe?P:x,p&=~(qe?x:P),p&S||(p&=~(y|b));var on=[f,p,U,At,Ue,Bt,lt,le,_e,xe],zt=_.apply(n,on);return Og(f)&&bw(zt,on),zt.placeholder=A,_w(zt,f,p)}function Sg(f){var p=Pr[f];return function(_,A){if(_=vs(_),A=A==null?0:oi(en(A),292),A&&_2(_)){var U=(On(_)+"e").split("e"),Y=p(U[0]+"e"+(+U[1]+A));return U=(On(Y)+"e").split("e"),+(U[0]+"e"+(+U[1]-A))}return p(_)}}var HI=Ku&&1/nh(new Ku([,-0]))[1]==K?function(f){return new Ku(f)}:Wg;function aw(f){return function(p){var _=ai(p);return _==Ge?eg(p):_==Pe?a9(p):JD(p,f(p))}}function To(f,p,_,A,U,Y,ne,le){var _e=p&b;if(!_e&&typeof f!="function")throw new ds(o);var xe=A?A.length:0;if(xe||(p&=~(P|x),A=U=n),ne=ne===n?ne:xr(en(ne),0),le=le===n?le:en(le),xe-=U?U.length:0,p&x){var qe=A,Ue=U;A=U=n}var lt=_e?n:Cg(f),At=[f,p,_,A,U,qe,Ue,Y,ne,le];if(lt&&sO(At,lt),f=At[0],p=At[1],_=At[2],A=At[3],U=At[4],le=At[9]=At[9]===n?_e?0:f.length:xr(At[9]-xe,0),!le&&p&($|D)&&(p&=~($|D)),!p||p==y)var Bt=zI(f,p,_);else p==$||p==D?Bt=jI(f,p,le):(p==P||p==(y|P))&&!U.length?Bt=UI(f,p,_,A):Bt=Sh.apply(n,At);var on=lt?z2:bw;return _w(on(Bt,At),f,p)}function uw(f,p,_,A){return f===n||As(f,Xu[_])&&!Pn.call(A,_)?p:f}function lw(f,p,_,A,U,Y){return cr(f)&&cr(p)&&(Y.set(p,f),yh(f,p,n,lw,Y),Y.delete(p)),f}function VI(f){return Yc(f)?n:f}function cw(f,p,_,A,U,Y){var ne=_&g,le=f.length,_e=p.length;if(le!=_e&&!(ne&&_e>le))return!1;var xe=Y.get(f),qe=Y.get(p);if(xe&&qe)return xe==p&&qe==f;var Ue=-1,lt=!0,At=_&k?new nu:n;for(Y.set(f,p),Y.set(p,f);++Ue<le;){var Bt=f[Ue],on=p[Ue];if(A)var zt=ne?A(on,Bt,Ue,p,f,Y):A(Bt,on,Ue,f,p,Y);if(zt!==n){if(zt)continue;lt=!1;break}if(At){if(!Ym(p,function(ln,gn){if(!Pc(At,gn)&&(Bt===ln||U(Bt,ln,_,A,Y)))return At.push(gn)})){lt=!1;break}}else if(!(Bt===on||U(Bt,on,_,A,Y))){lt=!1;break}}return Y.delete(f),Y.delete(p),lt}function WI(f,p,_,A,U,Y,ne){switch(_){case Be:if(f.byteLength!=p.byteLength||f.byteOffset!=p.byteOffset)return!1;f=f.buffer,p=p.buffer;case Xe:return!(f.byteLength!=p.byteLength||!Y(new uh(f),new uh(p)));case Ve:case Te:case nt:return As(+f,+p);case je:return f.name==p.name&&f.message==p.message;case he:case Se:return f==p+"";case Ge:var le=eg;case Pe:var _e=A&g;if(le||(le=nh),f.size!=p.size&&!_e)return!1;var xe=ne.get(f);if(xe)return xe==p;A|=k,ne.set(f,p);var qe=cw(le(f),le(p),A,U,Y,ne);return ne.delete(f),qe;case Le:if(Mc)return Mc.call(f)==Mc.call(p)}return!1}function GI(f,p,_,A,U,Y){var ne=_&g,le=Tg(f),_e=le.length,xe=Tg(p),qe=xe.length;if(_e!=qe&&!ne)return!1;for(var Ue=_e;Ue--;){var lt=le[Ue];if(!(ne?lt in p:Pn.call(p,lt)))return!1}var At=Y.get(f),Bt=Y.get(p);if(At&&Bt)return At==p&&Bt==f;var on=!0;Y.set(f,p),Y.set(p,f);for(var zt=ne;++Ue<_e;){lt=le[Ue];var ln=f[lt],gn=p[lt];if(A)var Zi=ne?A(gn,ln,lt,p,f,Y):A(ln,gn,lt,f,p,Y);if(!(Zi===n?ln===gn||U(ln,gn,_,A,Y):Zi)){on=!1;break}zt||(zt=lt=="constructor")}if(on&&!zt){var wi=f.constructor,Xi=p.constructor;wi!=Xi&&"constructor"in f&&"constructor"in p&&!(typeof wi=="function"&&wi instanceof wi&&typeof Xi=="function"&&Xi instanceof Xi)&&(on=!1)}return Y.delete(f),Y.delete(p),on}function $o(f){return Rg(gw(f,n,Tw),f+"")}function Tg(f){return I2(f,jr,Dg)}function $g(f){return I2(f,Ri,fw)}var Cg=ph?function(f){return ph.get(f)}:Wg;function Ah(f){for(var p=f.name+"",_=Ju[p],A=Pn.call(Ju,p)?_.length:0;A--;){var U=_[A],Y=U.func;if(Y==null||Y==f)return U.name}return p}function rl(f){var p=Pn.call(W,"placeholder")?W:f;return p.placeholder}function Lt(){var f=W.iteratee||Hg;return f=f===Hg?R2:f,arguments.length?f(arguments[0],arguments[1]):f}function Dh(f,p){var _=f.__data__;return tO(p)?_[typeof p=="string"?"string":"hash"]:_.map}function Ag(f){for(var p=jr(f),_=p.length;_--;){var A=p[_],U=f[A];p[_]=[A,U,pw(U)]}return p}function su(f,p){var _=i9(f,p);return N2(_)?_:n}function YI(f){var p=Pn.call(f,eu),_=f[eu];try{f[eu]=n;var A=!0}catch{}var U=oh.call(f);return A&&(p?f[eu]=_:delete f[eu]),U}var Dg=ng?function(f){return f==null?[]:(f=Bn(f),ra(ng(f),function(p){return v2.call(f,p)}))}:Gg,fw=ng?function(f){for(var p=[];f;)ia(p,Dg(f)),f=lh(f);return p}:Gg,ai=_i;(rg&&ai(new rg(new ArrayBuffer(1)))!=Be||qc&&ai(new qc)!=Ge||ig&&ai(ig.resolve())!=at||Ku&&ai(new Ku)!=Pe||Fc&&ai(new Fc)!=X)&&(ai=function(f){var p=_i(f),_=p==Ze?f.constructor:n,A=_?ou(_):"";if(A)switch(A){case I9:return Be;case O9:return Ge;case N9:return at;case R9:return Pe;case P9:return X}return p});function QI(f,p,_){for(var A=-1,U=_.length;++A<U;){var Y=_[A],ne=Y.size;switch(Y.type){case"drop":f+=ne;break;case"dropRight":p-=ne;break;case"take":p=oi(p,f+ne);break;case"takeRight":f=xr(f,p-ne);break}}return{start:f,end:p}}function ZI(f){var p=f.match(Gt);return p?p[1].split(ze):[]}function dw(f,p,_){p=la(p,f);for(var A=-1,U=p.length,Y=!1;++A<U;){var ne=Zs(p[A]);if(!(Y=f!=null&&_(f,ne)))break;f=f[ne]}return Y||++A!=U?Y:(U=f==null?0:f.length,!!U&&qh(U)&&Co(ne,U)&&(Xt(f)||au(f)))}function XI(f){var p=f.length,_=new f.constructor(p);return p&&typeof f[0]=="string"&&Pn.call(f,"index")&&(_.index=f.index,_.input=f.input),_}function hw(f){return typeof f.constructor=="function"&&!Wc(f)?el(lh(f)):{}}function KI(f,p,_){var A=f.constructor;switch(p){case Xe:return Eg(f);case Ve:case Te:return new A(+f);case Be:return xI(f,_);case it:case mt:case Ct:case ft:case It:case Tt:case _t:case gt:case ce:return Q2(f,_);case Ge:return new A;case nt:case Se:return new A(f);case he:return qI(f);case Pe:return new A;case Le:return FI(f)}}function JI(f,p){var _=p.length;if(!_)return f;var A=_-1;return p[A]=(_>1?"& ":"")+p[A],p=p.join(_>2?", ":" "),f.replace(Mt,`{ 898/* [wrapped with `+p+`] */ 899`)}function eO(f){return Xt(f)||au(f)||!!(b2&&f&&f[b2])}function Co(f,p){var _=typeof f;return p=p??G,!!p&&(_=="number"||_!="symbol"&&us.test(f))&&f>-1&&f%1==0&&f<p}function yi(f,p,_){if(!cr(_))return!1;var A=typeof p;return(A=="number"?Ni(_)&&Co(p,_.length):A=="string"&&p in _)?As(_[p],f):!1}function Ig(f,p){if(Xt(f))return!1;var _=typeof f;return _=="number"||_=="symbol"||_=="boolean"||f==null||Qi(f)?!0:Zt.test(f)||!Sn.test(f)||p!=null&&f in Bn(p)}function tO(f){var p=typeof f;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?f!=="__proto__":f===null}function Og(f){var p=Ah(f),_=W[p];if(typeof _!="function"||!(p in dn.prototype))return!1;if(f===_)return!0;var A=Cg(_);return!!A&&f===A[0]}function nO(f){return!!p2&&p2 in f}var rO=ih?Ao:Yg;function Wc(f){var p=f&&f.constructor,_=typeof p=="function"&&p.prototype||Xu;return f===_}function pw(f){return f===f&&!cr(f)}function mw(f,p){return function(_){return _==null?!1:_[f]===p&&(p!==n||f in Bn(_))}}function iO(f){var p=Ph(f,function(A){return _.size===l&&_.clear(),A}),_=p.cache;return p}function sO(f,p){var _=f[1],A=p[1],U=_|A,Y=U<(y|b|R),ne=A==R&&_==$||A==R&&_==q&&f[7].length<=p[8]||A==(R|q)&&p[7].length<=p[8]&&_==$;if(!(Y||ne))return f;A&y&&(f[2]=p[2],U|=_&y?0:S);var le=p[3];if(le){var _e=f[3];f[3]=_e?X2(_e,le,p[4]):le,f[4]=_e?sa(f[3],c):p[4]}return le=p[5],le&&(_e=f[5],f[5]=_e?K2(_e,le,p[6]):le,f[6]=_e?sa(f[5],c):p[6]),le=p[7],le&&(f[7]=le),A&R&&(f[8]=f[8]==null?p[8]:oi(f[8],p[8])),f[9]==null&&(f[9]=p[9]),f[0]=p[0],f[1]=U,f}function oO(f){var p=[];if(f!=null)for(var _ in Bn(f))p.push(_);return p}function aO(f){return oh.call(f)}function gw(f,p,_){return p=xr(p===n?f.length-1:p,0),function(){for(var A=arguments,U=-1,Y=xr(A.length-p,0),ne=De(Y);++U<Y;)ne[U]=A[p+U];U=-1;for(var le=De(p+1);++U<p;)le[U]=A[U];return le[p]=_(ne),Wi(f,this,le)}}function vw(f,p){return p.length<2?f:iu(f,ms(p,0,-1))}function uO(f,p){for(var _=f.length,A=oi(p.length,_),U=Oi(f);A--;){var Y=p[A];f[A]=Co(Y,_)?U[Y]:n}return f}function Ng(f,p){if(!(p==="constructor"&&typeof f[p]=="function")&&p!="__proto__")return f[p]}var bw=yw(z2),Gc=k9||function(f,p){return Jr.setTimeout(f,p)},Rg=yw(OI);function _w(f,p,_){var A=p+"";return Rg(f,JI(A,lO(ZI(A),_)))}function yw(f){var p=0,_=0;return function(){var A=C9(),U=H-(A-_);if(_=A,U>0){if(++p>=V)return arguments[0]}else p=0;return f.apply(n,arguments)}}function Ih(f,p){var _=-1,A=f.length,U=A-1;for(p=p===n?A:p;++_<p;){var Y=mg(_,U),ne=f[Y];f[Y]=f[_],f[_]=ne}return f.length=p,f}var ww=iO(function(f){var p=[];return f.charCodeAt(0)===46&&p.push(""),f.replace(be,function(_,A,U,Y){p.push(U?Y.replace(Vn,"$1"):A||_)}),p});function Zs(f){if(typeof f=="string"||Qi(f))return f;var p=f+"";return p=="0"&&1/f==-K?"-0":p}function ou(f){if(f!=null){try{return sh.call(f)}catch{}try{return f+""}catch{}}return""}function lO(f,p){return fs(ue,function(_){var A="_."+_[0];p&_[1]&&!eh(f,A)&&f.push(A)}),f.sort()}function Ew(f){if(f instanceof dn)return f.clone();var p=new hs(f.__wrapped__,f.__chain__);return p.__actions__=Oi(f.__actions__),p.__index__=f.__index__,p.__values__=f.__values__,p}function cO(f,p,_){(_?yi(f,p,_):p===n)?p=1:p=xr(en(p),0);var A=f==null?0:f.length;if(!A||p<1)return[];for(var U=0,Y=0,ne=De(dh(A/p));U<A;)ne[Y++]=ms(f,U,U+=p);return ne}function fO(f){for(var p=-1,_=f==null?0:f.length,A=0,U=[];++p<_;){var Y=f[p];Y&&(U[A++]=Y)}return U}function dO(){var f=arguments.length;if(!f)return[];for(var p=De(f-1),_=arguments[0],A=f;A--;)p[A-1]=arguments[A];return ia(Xt(_)?Oi(_):[_],ei(p,1))}var hO=un(function(f,p){return wr(f)?zc(f,ei(p,1,wr,!0)):[]}),pO=un(function(f,p){var _=gs(p);return wr(_)&&(_=n),wr(f)?zc(f,ei(p,1,wr,!0),Lt(_,2)):[]}),mO=un(function(f,p){var _=gs(p);return wr(_)&&(_=n),wr(f)?zc(f,ei(p,1,wr,!0),n,_):[]});function gO(f,p,_){var A=f==null?0:f.length;return A?(p=_||p===n?1:en(p),ms(f,p<0?0:p,A)):[]}function vO(f,p,_){var A=f==null?0:f.length;return A?(p=_||p===n?1:en(p),p=A-p,ms(f,0,p<0?0:p)):[]}function bO(f,p){return f&&f.length?Eh(f,Lt(p,3),!0,!0):[]}function _O(f,p){return f&&f.length?Eh(f,Lt(p,3),!0):[]}function yO(f,p,_,A){var U=f==null?0:f.length;return U?(_&&typeof _!="number"&&yi(f,p,_)&&(_=0,A=U),dI(f,p,_,A)):[]}function kw(f,p,_){var A=f==null?0:f.length;if(!A)return-1;var U=_==null?0:en(_);return U<0&&(U=xr(A+U,0)),th(f,Lt(p,3),U)}function Sw(f,p,_){var A=f==null?0:f.length;if(!A)return-1;var U=A-1;return _!==n&&(U=en(_),U=_<0?xr(A+U,0):oi(U,A-1)),th(f,Lt(p,3),U,!0)}function Tw(f){var p=f==null?0:f.length;return p?ei(f,1):[]}function wO(f){var p=f==null?0:f.length;return p?ei(f,K):[]}function EO(f,p){var _=f==null?0:f.length;return _?(p=p===n?1:en(p),ei(f,p)):[]}function kO(f){for(var p=-1,_=f==null?0:f.length,A={};++p<_;){var U=f[p];A[U[0]]=U[1]}return A}function $w(f){return f&&f.length?f[0]:n}function SO(f,p,_){var A=f==null?0:f.length;if(!A)return-1;var U=_==null?0:en(_);return U<0&&(U=xr(A+U,0)),Gu(f,p,U)}function TO(f){var p=f==null?0:f.length;return p?ms(f,0,-1):[]}var $O=un(function(f){var p=sr(f,yg);return p.length&&p[0]===f[0]?cg(p):[]}),CO=un(function(f){var p=gs(f),_=sr(f,yg);return p===gs(_)?p=n:_.pop(),_.length&&_[0]===f[0]?cg(_,Lt(p,2)):[]}),AO=un(function(f){var p=gs(f),_=sr(f,yg);return p=typeof p=="function"?p:n,p&&_.pop(),_.length&&_[0]===f[0]?cg(_,n,p):[]});function DO(f,p){return f==null?"":T9.call(f,p)}function gs(f){var p=f==null?0:f.length;return p?f[p-1]:n}function IO(f,p,_){var A=f==null?0:f.length;if(!A)return-1;var U=A;return _!==n&&(U=en(_),U=U<0?xr(A+U,0):oi(U,A-1)),p===p?l9(f,p,U):th(f,o2,U,!0)}function OO(f,p){return f&&f.length?F2(f,en(p)):n}var NO=un(Cw);function Cw(f,p){return f&&f.length&&p&&p.length?pg(f,p):f}function RO(f,p,_){return f&&f.length&&p&&p.length?pg(f,p,Lt(_,2)):f}function PO(f,p,_){return f&&f.length&&p&&p.length?pg(f,p,n,_):f}var xO=$o(function(f,p){var _=f==null?0:f.length,A=og(f,p);return B2(f,sr(p,function(U){return Co(U,_)?+U:U}).sort(Z2)),A});function qO(f,p){var _=[];
vendor: 9,267 bytes, line 899
899if(!(f&&f.length))return _;var A=-1,U=[],Y=f.length;for(p=Lt(p,3);++A<Y;){var ne=f[A];p(ne,A,f)&&(_.push(ne),U.push(A))}return B2(f,U),_}function Pg(f){return f==null?f:D9.call(f)}function FO(f,p,_){var A=f==null?0:f.length;return A?(_&&typeof _!="number"&&yi(f,p,_)?(p=0,_=A):(p=p==null?0:en(p),_=_===n?A:en(_)),ms(f,p,_)):[]}function LO(f,p){return wh(f,p)}function MO(f,p,_){return vg(f,p,Lt(_,2))}function BO(f,p){var _=f==null?0:f.length;if(_){var A=wh(f,p);if(A<_&&As(f[A],p))return A}return-1}function zO(f,p){return wh(f,p,!0)}function jO(f,p,_){return vg(f,p,Lt(_,2),!0)}function UO(f,p){var _=f==null?0:f.length;if(_){var A=wh(f,p,!0)-1;if(As(f[A],p))return A}return-1}function HO(f){return f&&f.length?j2(f):[]}function VO(f,p){return f&&f.length?j2(f,Lt(p,2)):[]}function WO(f){var p=f==null?0:f.length;return p?ms(f,1,p):[]}function GO(f,p,_){return f&&f.length?(p=_||p===n?1:en(p),ms(f,0,p<0?0:p)):[]}function YO(f,p,_){var A=f==null?0:f.length;return A?(p=_||p===n?1:en(p),p=A-p,ms(f,p<0?0:p,A)):[]}function QO(f,p){return f&&f.length?Eh(f,Lt(p,3),!1,!0):[]}function ZO(f,p){return f&&f.length?Eh(f,Lt(p,3)):[]}var XO=un(function(f){return ua(ei(f,1,wr,!0))}),KO=un(function(f){var p=gs(f);return wr(p)&&(p=n),ua(ei(f,1,wr,!0),Lt(p,2))}),JO=un(function(f){var p=gs(f);return p=typeof p=="function"?p:n,ua(ei(f,1,wr,!0),n,p)});function eN(f){return f&&f.length?ua(f):[]}function tN(f,p){return f&&f.length?ua(f,Lt(p,2)):[]}function nN(f,p){return p=typeof p=="function"?p:n,f&&f.length?ua(f,n,p):[]}function xg(f){if(!(f&&f.length))return[];var p=0;return f=ra(f,function(_){if(wr(_))return p=xr(_.length,p),!0}),Km(p,function(_){return sr(f,Qm(_))})}function Aw(f,p){if(!(f&&f.length))return[];var _=xg(f);return p==null?_:sr(_,function(A){return Wi(p,n,A)})}var rN=un(function(f,p){return wr(f)?zc(f,p):[]}),iN=un(function(f){return _g(ra(f,wr))}),sN=un(function(f){var p=gs(f);return wr(p)&&(p=n),_g(ra(f,wr),Lt(p,2))}),oN=un(function(f){var p=gs(f);return p=typeof p=="function"?p:n,_g(ra(f,wr),n,p)}),aN=un(xg);function uN(f,p){return W2(f||[],p||[],Bc)}function lN(f,p){return W2(f||[],p||[],Hc)}var cN=un(function(f){var p=f.length,_=p>1?f[p-1]:n;return _=typeof _=="function"?(f.pop(),_):n,Aw(f,_)});function Dw(f){var p=W(f);return p.__chain__=!0,p}function fN(f,p){return p(f),f}function Oh(f,p){return p(f)}var dN=$o(function(f){var p=f.length,_=p?f[0]:0,A=this.__wrapped__,U=function(Y){return og(Y,f)};return p>1||this.__actions__.length||!(A instanceof dn)||!Co(_)?this.thru(U):(A=A.slice(_,+_+(p?1:0)),A.__actions__.push({func:Oh,args:[U],thisArg:n}),new hs(A,this.__chain__).thru(function(Y){return p&&!Y.length&&Y.push(n),Y}))});function hN(){return Dw(this)}function pN(){return new hs(this.value(),this.__chain__)}function mN(){this.__values__===n&&(this.__values__=Uw(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function gN(){return this}function vN(f){for(var p,_=this;_ instanceof gh;){var A=Ew(_);A.__index__=0,A.__values__=n,p?U.__wrapped__=A:p=A;var U=A;_=_.__wrapped__}return U.__wrapped__=f,p}function bN(){var f=this.__wrapped__;if(f instanceof dn){var p=f;return this.__actions__.length&&(p=new dn(this)),p=p.reverse(),p.__actions__.push({func:Oh,args:[Pg],thisArg:n}),new hs(p,this.__chain__)}return this.thru(Pg)}function _N(){return V2(this.__wrapped__,this.__actions__)}var yN=kh(function(f,p,_){Pn.call(f,_)?++f[_]:So(f,_,1)});function wN(f,p,_){var A=Xt(f)?i2:fI;return _&&yi(f,p,_)&&(p=n),A(f,Lt(p,3))}function EN(f,p){var _=Xt(f)?ra:A2;return _(f,Lt(p,3))}var kN=nw(kw),SN=nw(Sw);function TN(f,p){return ei(Nh(f,p),1)}function $N(f,p){return ei(Nh(f,p),K)}function CN(f,p,_){return _=_===n?1:en(_),ei(Nh(f,p),_)}function Iw(f,p){var _=Xt(f)?fs:aa;return _(f,Lt(p,3))}function Ow(f,p){var _=Xt(f)?WD:C2;return _(f,Lt(p,3))}var AN=kh(function(f,p,_){Pn.call(f,_)?f[_].push(p):So(f,_,[p])});function DN(f,p,_,A){f=Ni(f)?f:sl(f),_=_&&!A?en(_):0;var U=f.length;return _<0&&(_=xr(U+_,0)),Fh(f)?_<=U&&f.indexOf(p,_)>-1:!!U&&Gu(f,p,_)>-1}var IN=un(function(f,p,_){var A=-1,U=typeof p=="function",Y=Ni(f)?De(f.length):[];return aa(f,function(ne){Y[++A]=U?Wi(p,ne,_):jc(ne,p,_)}),Y}),ON=kh(function(f,p,_){So(f,_,p)});function Nh(f,p){var _=Xt(f)?sr:P2;return _(f,Lt(p,3))}function NN(f,p,_,A){return f==null?[]:(Xt(p)||(p=p==null?[]:[p]),_=A?n:_,Xt(_)||(_=_==null?[]:[_]),L2(f,p,_))}var RN=kh(function(f,p,_){f[_?0:1].push(p)},function(){return[[],[]]});function PN(f,p,_){var A=Xt(f)?Gm:u2,U=arguments.length<3;return A(f,Lt(p,4),_,U,aa)}function xN(f,p,_){var A=Xt(f)?GD:u2,U=arguments.length<3;return A(f,Lt(p,4),_,U,C2)}function qN(f,p){var _=Xt(f)?ra:A2;return _(f,xh(Lt(p,3)))}function FN(f){var p=Xt(f)?k2:DI;return p(f)}function LN(f,p,_){(_?yi(f,p,_):p===n)?p=1:p=en(p);var A=Xt(f)?oI:II;return A(f,p)}function MN(f){var p=Xt(f)?aI:NI;return p(f)}function BN(f){if(f==null)return 0;if(Ni(f))return Fh(f)?Qu(f):f.length;var p=ai(f);return p==Ge||p==Pe?f.size:dg(f).length}function zN(f,p,_){var A=Xt(f)?Ym:RI;return _&&yi(f,p,_)&&(p=n),A(f,Lt(p,3))}var jN=un(function(f,p){if(f==null)return[];var _=p.length;return _>1&&yi(f,p[0],p[1])?p=[]:_>2&&yi(p[0],p[1],p[2])&&(p=[p[0]]),L2(f,ei(p,1),[])}),Rh=E9||function(){return Jr.Date.now()};function UN(f,p){if(typeof p!="function")throw new ds(o);return f=en(f),function(){if(--f<1)return p.apply(this,arguments)}}function Nw(f,p,_){return p=_?n:p,p=f&&p==null?f.length:p,To(f,R,n,n,n,n,p)}function Rw(f,p){var _;if(typeof p!="function")throw new ds(o);return f=en(f),function(){return--f>0&&(_=p.apply(this,arguments)),f<=1&&(p=n),_}}var qg=un(function(f,p,_){var A=y;if(_.length){var U=sa(_,rl(qg));A|=P}return To(f,A,p,_,U)}),Pw=un(function(f,p,_){var A=y|b;if(_.length){var U=sa(_,rl(Pw));A|=P}return To(p,A,f,_,U)});function xw(f,p,_){p=_?n:p;var A=To(f,$,n,n,n,n,n,p);return A.placeholder=xw.placeholder,A}function qw(f,p,_){p=_?n:p;var A=To(f,D,n,n,n,n,n,p);return A.placeholder=qw.placeholder,A}function Fw(f,p,_){var A,U,Y,ne,le,_e,xe=0,qe=!1,Ue=!1,lt=!0;if(typeof f!="function")throw new ds(o);p=vs(p)||0,cr(_)&&(qe=!!_.leading,Ue="maxWait"in _,Y=Ue?xr(vs(_.maxWait)||0,p):Y,lt="trailing"in _?!!_.trailing:lt);function At(Er){var Ds=A,Io=U;return A=U=n,xe=Er,ne=f.apply(Io,Ds),ne}function Bt(Er){return xe=Er,le=Gc(ln,p),qe?At(Er):ne}function on(Er){var Ds=Er-_e,Io=Er-xe,n3=p-Ds;return Ue?oi(n3,Y-Io):n3}function zt(Er){var Ds=Er-_e,Io=Er-xe;return _e===n||Ds>=p||Ds<0||Ue&&Io>=Y}function ln(){var Er=Rh();if(zt(Er))return gn(Er);le=Gc(ln,on(Er))}function gn(Er){return le=n,lt&&A?At(Er):(A=U=n,ne)}function Zi(){le!==n&&G2(le),xe=0,A=_e=U=le=n}function wi(){return le===n?ne:gn(Rh())}function Xi(){var Er=Rh(),Ds=zt(Er);if(A=arguments,U=this,_e=Er,Ds){if(le===n)return Bt(_e);if(Ue)return G2(le),le=Gc(ln,p),At(_e)}return le===n&&(le=Gc(ln,p)),ne}return Xi.cancel=Zi,Xi.flush=wi,Xi}var HN=un(function(f,p){return $2(f,1,p)}),VN=un(function(f,p,_){return $2(f,vs(p)||0,_)});function WN(f){return To(f,F)}function Ph(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new ds(o);var _=function(){var A=arguments,U=p?p.apply(this,A):A[0],Y=_.cache;if(Y.has(U))return Y.get(U);var ne=f.apply(this,A);return _.cache=Y.set(U,ne)||Y,ne};return _.cache=new(Ph.Cache||ko),_}Ph.Cache=ko;function xh(f){if(typeof f!="function")throw new ds(o);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function GN(f){return Rw(2,f)}var YN=PI(function(f,p){p=p.length==1&&Xt(p[0])?sr(p[0],Gi(Lt())):sr(ei(p,1),Gi(Lt()));var _=p.length;return un(function(A){for(var U=-1,Y=oi(A.length,_);++U<Y;)A[U]=p[U].call(this,A[U]);return Wi(f,this,A)})}),Fg=un(function(f,p){var _=sa(p,rl(Fg));return To(f,P,n,p,_)}),Lw=un(function(f,p){var _=sa(p,rl(Lw));return To(f,x,n,p,_)}),QN=$o(function(f,p){return To(f,q,n,n,n,p)});function ZN(f,p){if(typeof f!="function")throw new ds(o);return p=p===n?p:en(p),un(f,p)}function XN(f,p){if(typeof f!="function")throw new ds(o);return p=p==null?0:xr(en(p),0),un(function(_){var A=_[p],U=ca(_,0,p);return A&&ia(U,A),Wi(f,this,U)})}function KN(f,p,_){var A=!0,U=!0;if(typeof f!="function")throw new ds(o);return cr(_)&&(A="leading"in _?!!_.leading:A,U="trailing"in _?!!_.trailing:U),Fw(f,p,{leading:A,maxWait:p,trailing:U})}function JN(f){return Nw(f,1)}function eR(f,p){return Fg(wg(p),f)}function tR(){if(!arguments.length)return[];var f=arguments[0];return Xt(f)?f:[f]}function nR(f){return ps(f,m)}function rR(f,p){return p=typeof p=="function"?p:n,ps(f,m,p)}function iR(f){return ps(f,d|m)}function sR(f,p){return p=typeof p=="function"?p:n,ps(f,d|m,p)}function oR(f,p){return p==null||T2(f,p,jr(p))}function As(f,p){return f===p||f!==f&&p!==p}var aR=Ch(lg),uR=Ch(function(f,p){return f>=p}),au=O2(function(){return arguments}())?O2:function(f){return mr(f)&&Pn.call(f,"callee")&&!v2.call(f,"callee")},Xt=De.isArray,lR=Ky?Gi(Ky):vI;function Ni(f){return f!=null&&qh(f.length)&&!Ao(f)}function wr(f){return mr(f)&&Ni(f)}function cR(f){return f===!0||f===!1||mr(f)&&_i(f)==Ve}var fa=S9||Yg,fR=Jy?Gi(Jy):bI;function dR(f){return mr(f)&&f.nodeType===1&&!Yc(f)}function hR(f){if(f==null)return!0;
vendor: 6,654 bytes, line 899
899if(Ni(f)&&(Xt(f)||typeof f=="string"||typeof f.splice=="function"||fa(f)||il(f)||au(f)))return!f.length;var p=ai(f);if(p==Ge||p==Pe)return!f.size;if(Wc(f))return!dg(f).length;for(var _ in f)if(Pn.call(f,_))return!1;return!0}function pR(f,p){return Uc(f,p)}function mR(f,p,_){_=typeof _=="function"?_:n;var A=_?_(f,p):n;return A===n?Uc(f,p,n,_):!!A}function Lg(f){if(!mr(f))return!1;var p=_i(f);return p==je||p==we||typeof f.message=="string"&&typeof f.name=="string"&&!Yc(f)}function gR(f){return typeof f=="number"&&_2(f)}function Ao(f){if(!cr(f))return!1;var p=_i(f);return p==Je||p==Ne||p==Fe||p==bt}function Mw(f){return typeof f=="number"&&f==en(f)}function qh(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=G}function cr(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function mr(f){return f!=null&&typeof f=="object"}var Bw=e2?Gi(e2):yI;function vR(f,p){return f===p||fg(f,p,Ag(p))}function bR(f,p,_){return _=typeof _=="function"?_:n,fg(f,p,Ag(p),_)}function _R(f){return zw(f)&&f!=+f}function yR(f){if(rO(f))throw new Qt(s);return N2(f)}function wR(f){return f===null}function ER(f){return f==null}function zw(f){return typeof f=="number"||mr(f)&&_i(f)==nt}function Yc(f){if(!mr(f)||_i(f)!=Ze)return!1;var p=lh(f);if(p===null)return!0;var _=Pn.call(p,"constructor")&&p.constructor;return typeof _=="function"&&_ instanceof _&&sh.call(_)==b9}var Mg=t2?Gi(t2):wI;function kR(f){return Mw(f)&&f>=-G&&f<=G}var jw=n2?Gi(n2):EI;function Fh(f){return typeof f=="string"||!Xt(f)&&mr(f)&&_i(f)==Se}function Qi(f){return typeof f=="symbol"||mr(f)&&_i(f)==Le}var il=r2?Gi(r2):kI;function SR(f){return f===n}function TR(f){return mr(f)&&ai(f)==X}function $R(f){return mr(f)&&_i(f)==ye}var CR=Ch(hg),AR=Ch(function(f,p){return f<=p});function Uw(f){if(!f)return[];if(Ni(f))return Fh(f)?$s(f):Oi(f);if(xc&&f[xc])return o9(f[xc]());var p=ai(f),_=p==Ge?eg:p==Pe?nh:sl;return _(f)}function Do(f){if(!f)return f===0?f:0;if(f=vs(f),f===K||f===-K){var p=f<0?-1:1;return p*se}return f===f?f:0}function en(f){var p=Do(f),_=p%1;return p===p?_?p-_:p:0}function Hw(f){return f?ru(en(f),0,me):0}function vs(f){if(typeof f=="number")return f;if(Qi(f))return fe;if(cr(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=cr(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=l2(f);var _=vo.test(f);return _||Cc.test(f)?UD(f.slice(2),_?2:8):Gs.test(f)?fe:+f}function Vw(f){return Qs(f,Ri(f))}function DR(f){return f?ru(en(f),-G,G):f===0?f:0}function On(f){return f==null?"":Yi(f)}var IR=tl(function(f,p){if(Wc(p)||Ni(p)){Qs(p,jr(p),f);return}for(var _ in p)Pn.call(p,_)&&Bc(f,_,p[_])}),Ww=tl(function(f,p){Qs(p,Ri(p),f)}),Lh=tl(function(f,p,_,A){Qs(p,Ri(p),f,A)}),OR=tl(function(f,p,_,A){Qs(p,jr(p),f,A)}),NR=$o(og);function RR(f,p){var _=el(f);return p==null?_:S2(_,p)}var PR=un(function(f,p){f=Bn(f);var _=-1,A=p.length,U=A>2?p[2]:n;for(U&&yi(p[0],p[1],U)&&(A=1);++_<A;)for(var Y=p[_],ne=Ri(Y),le=-1,_e=ne.length;++le<_e;){var xe=ne[le],qe=f[xe];(qe===n||As(qe,Xu[xe])&&!Pn.call(f,xe))&&(f[xe]=Y[xe])}return f}),xR=un(function(f){return f.push(n,lw),Wi(Gw,n,f)});function qR(f,p){return s2(f,Lt(p,3),Ys)}function FR(f,p){return s2(f,Lt(p,3),ug)}function LR(f,p){return f==null?f:ag(f,Lt(p,3),Ri)}function MR(f,p){return f==null?f:D2(f,Lt(p,3),Ri)}function BR(f,p){return f&&Ys(f,Lt(p,3))}function zR(f,p){return f&&ug(f,Lt(p,3))}function jR(f){return f==null?[]:_h(f,jr(f))}function UR(f){return f==null?[]:_h(f,Ri(f))}function Bg(f,p,_){var A=f==null?n:iu(f,p);return A===n?_:A}function HR(f,p){return f!=null&&dw(f,p,hI)}function zg(f,p){return f!=null&&dw(f,p,pI)}var VR=iw(function(f,p,_){p!=null&&typeof p.toString!="function"&&(p=oh.call(p)),f[p]=_},Ug(Pi)),WR=iw(function(f,p,_){p!=null&&typeof p.toString!="function"&&(p=oh.call(p)),Pn.call(f,p)?f[p].push(_):f[p]=[_]},Lt),GR=un(jc);function jr(f){return Ni(f)?E2(f):dg(f)}function Ri(f){return Ni(f)?E2(f,!0):SI(f)}function YR(f,p){var _={};return p=Lt(p,3),Ys(f,function(A,U,Y){So(_,p(A,U,Y),A)}),_}function QR(f,p){var _={};return p=Lt(p,3),Ys(f,function(A,U,Y){So(_,U,p(A,U,Y))}),_}var ZR=tl(function(f,p,_){yh(f,p,_)}),Gw=tl(function(f,p,_,A){yh(f,p,_,A)}),XR=$o(function(f,p){var _={};if(f==null)return _;var A=!1;p=sr(p,function(Y){return Y=la(Y,f),A||(A=Y.length>1),Y}),Qs(f,$g(f),_),A&&(_=ps(_,d|h|m,VI));for(var U=p.length;U--;)bg(_,p[U]);return _});function KR(f,p){return Yw(f,xh(Lt(p)))}var JR=$o(function(f,p){return f==null?{}:$I(f,p)});function Yw(f,p){if(f==null)return{};var _=sr($g(f),function(A){return[A]});return p=Lt(p),M2(f,_,function(A,U){return p(A,U[0])})}function eP(f,p,_){p=la(p,f);var A=-1,U=p.length;for(U||(U=1,f=n);++A<U;){var Y=f==null?n:f[Zs(p[A])];Y===n&&(A=U,Y=_),f=Ao(Y)?Y.call(f):Y}return f}function tP(f,p,_){return f==null?f:Hc(f,p,_)}function nP(f,p,_,A){return A=typeof A=="function"?A:n,f==null?f:Hc(f,p,_,A)}var Qw=aw(jr),Zw=aw(Ri);function rP(f,p,_){var A=Xt(f),U=A||fa(f)||il(f);if(p=Lt(p,4),_==null){var Y=f&&f.constructor;U?_=A?new Y:[]:cr(f)?_=Ao(Y)?el(lh(f)):{}:_={}}return(U?fs:Ys)(f,function(ne,le,_e){return p(_,ne,le,_e)}),_}function iP(f,p){return f==null?!0:bg(f,p)}function sP(f,p,_){return f==null?f:H2(f,p,wg(_))}function oP(f,p,_,A){return A=typeof A=="function"?A:n,f==null?f:H2(f,p,wg(_),A)}function sl(f){return f==null?[]:Jm(f,jr(f))}function aP(f){return f==null?[]:Jm(f,Ri(f))}function uP(f,p,_){return _===n&&(_=p,p=n),_!==n&&(_=vs(_),_=_===_?_:0),p!==n&&(p=vs(p),p=p===p?p:0),ru(vs(f),p,_)}function lP(f,p,_){return p=Do(p),_===n?(_=p,p=0):_=Do(_),f=vs(f),mI(f,p,_)}function cP(f,p,_){if(_&&typeof _!="boolean"&&yi(f,p,_)&&(p=_=n),_===n&&(typeof p=="boolean"?(_=p,p=n):typeof f=="boolean"&&(_=f,f=n)),f===n&&p===n?(f=0,p=1):(f=Do(f),p===n?(p=f,f=0):p=Do(p)),f>p){var A=f;f=p,p=A}if(_||f%1||p%1){var U=y2();return oi(f+U*(p-f+jD("1e-"+((U+"").length-1))),p)}return mg(f,p)}var fP=nl(function(f,p,_){return p=p.toLowerCase(),f+(_?Xw(p):p)});function Xw(f){return jg(On(f).toLowerCase())}function Kw(f){return f=On(f),f&&f.replace(Ya,t9).replace(Kr,"")}function dP(f,p,_){f=On(f),p=Yi(p);var A=f.length;_=_===n?A:ru(en(_),0,A);var U=_;return _-=p.length,_>=0&&f.slice(_,U)==p}function hP(f){return f=On(f),f&&$n.test(f)?f.replace(bn,n9):f}function pP(f){return f=On(f),f&&St.test(f)?f.replace(tt,"\\$&"):f}var mP=nl(function(f,p,_){return f+(_?"-":"")+p.toLowerCase()}),gP=nl(function(f,p,_){return f+(_?" ":"")+p.toLowerCase()}),vP=tw("toLowerCase");function bP(f,p,_){f=On(f),p=en(p);var A=p?Qu(f):0;if(!p||A>=p)return f;var U=(p-A)/2;return $h(hh(U),_)+f+$h(dh(U),_)}function _P(f,p,_){f=On(f),p=en(p);var A=p?Qu(f):0;return p&&A<p?f+$h(p-A,_):f}function yP(f,p,_){f=On(f),p=en(p);var A=p?Qu(f):0;return p&&A<p?$h(p-A,_)+f:f}
vendor: 10,619 bytes, lines 899-916
899function wP(f,p,_){return _||p==null?p=0:p&&(p=+p),A9(On(f).replace(an,""),p||0)}function EP(f,p,_){return(_?yi(f,p,_):p===n)?p=1:p=en(p),gg(On(f),p)}function kP(){var f=arguments,p=On(f[0]);return f.length<3?p:p.replace(f[1],f[2])}var SP=nl(function(f,p,_){return f+(_?"_":"")+p.toLowerCase()});function TP(f,p,_){return _&&typeof _!="number"&&yi(f,p,_)&&(p=_=n),_=_===n?me:_>>>0,_?(f=On(f),f&&(typeof p=="string"||p!=null&&!Mg(p))&&(p=Yi(p),!p&&Yu(f))?ca($s(f),0,_):f.split(p,_)):[]}var $P=nl(function(f,p,_){return f+(_?" ":"")+jg(p)});function CP(f,p,_){return f=On(f),_=_==null?0:ru(en(_),0,f.length),p=Yi(p),f.slice(_,_+p.length)==p}function AP(f,p,_){var A=W.templateSettings;_&&yi(f,p,_)&&(p=n),f=On(f),p=Lh({},p,A,uw);var U=Lh({},p.imports,A.imports,uw),Y=jr(U),ne=Jm(U,Y),le,_e,xe=0,qe=p.interpolate||ea,Ue="__p += '",lt=tg((p.escape||ea).source+"|"+qe.source+"|"+(qe===Hn?vt:ea).source+"|"+(p.evaluate||ea).source+"|$","g"),At="//# sourceURL="+(Pn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++FD+"]")+` 900`;f.replace(lt,function(zt,ln,gn,Zi,wi,Xi){return gn||(gn=Zi),Ue+=f.slice(xe,Xi).replace(ta,r9),ln&&(le=!0,Ue+=`' + 901__e(`+ln+`) + 902'`),wi&&(_e=!0,Ue+=`'; 903`+wi+`; 904__p += '`),gn&&(Ue+=`' + 905((__t = (`+gn+`)) == null ? '' : __t) + 906'`),xe=Xi+zt.length,zt}),Ue+=`'; 907`;var Bt=Pn.call(p,"variable")&&p.variable;if(!Bt)Ue=`with (obj) { 908`+Ue+` 909} 910`;else if(pn.test(Bt))throw new Qt(a);Ue=(_e?Ue.replace(pe,""):Ue).replace(st,"$1").replace(vn,"$1;"),Ue="function("+(Bt||"obj")+`) { 911`+(Bt?"":`obj || (obj = {}); 912`)+"var __t, __p = ''"+(le?", __e = _.escape":"")+(_e?`, __j = Array.prototype.join; 913function print() { __p += __j.call(arguments, '') } 914`:`; 915`)+Ue+`return __p 916}`;var on=e3(function(){return Cn(Y,At+"return "+Ue).apply(n,ne)});if(on.source=Ue,Lg(on))throw on;return on}function DP(f){return On(f).toLowerCase()}function IP(f){return On(f).toUpperCase()}function OP(f,p,_){if(f=On(f),f&&(_||p===n))return l2(f);if(!f||!(p=Yi(p)))return f;var A=$s(f),U=$s(p),Y=c2(A,U),ne=f2(A,U)+1;return ca(A,Y,ne).join("")}function NP(f,p,_){if(f=On(f),f&&(_||p===n))return f.slice(0,h2(f)+1);if(!f||!(p=Yi(p)))return f;var A=$s(f),U=f2(A,$s(p))+1;return ca(A,0,U).join("")}function RP(f,p,_){if(f=On(f),f&&(_||p===n))return f.replace(an,"");if(!f||!(p=Yi(p)))return f;var A=$s(f),U=c2(A,$s(p));return ca(A,U).join("")}function PP(f,p){var _=L,A=M;if(cr(p)){var U="separator"in p?p.separator:U;_="length"in p?en(p.length):_,A="omission"in p?Yi(p.omission):A}f=On(f);var Y=f.length;if(Yu(f)){var ne=$s(f);Y=ne.length}if(_>=Y)return f;var le=_-Qu(A);if(le<1)return A;var _e=ne?ca(ne,0,le).join(""):f.slice(0,le);if(U===n)return _e+A;if(ne&&(le+=_e.length-le),Mg(U)){if(f.slice(le).search(U)){var xe,qe=_e;for(U.global||(U=tg(U.source,On(mn.exec(U))+"g")),U.lastIndex=0;xe=U.exec(qe);)var Ue=xe.index;_e=_e.slice(0,Ue===n?le:Ue)}}else if(f.indexOf(Yi(U),le)!=le){var lt=_e.lastIndexOf(U);lt>-1&&(_e=_e.slice(0,lt))}return _e+A}function xP(f){return f=On(f),f&&kn.test(f)?f.replace(Tn,c9):f}var qP=nl(function(f,p,_){return f+(_?" ":"")+p.toUpperCase()}),jg=tw("toUpperCase");function Jw(f,p,_){return f=On(f),p=_?n:p,p===n?s9(f)?h9(f):ZD(f):f.match(p)||[]}var e3=un(function(f,p){try{return Wi(f,n,p)}catch(_){return Lg(_)?_:new Qt(_)}}),FP=$o(function(f,p){return fs(p,function(_){_=Zs(_),So(f,_,qg(f[_],f))}),f});function LP(f){var p=f==null?0:f.length,_=Lt();return f=p?sr(f,function(A){if(typeof A[1]!="function")throw new ds(o);return[_(A[0]),A[1]]}):[],un(function(A){for(var U=-1;++U<p;){var Y=f[U];if(Wi(Y[0],this,A))return Wi(Y[1],this,A)}})}function MP(f){return cI(ps(f,d))}function Ug(f){return function(){return f}}function BP(f,p){return f==null||f!==f?p:f}var zP=rw(),jP=rw(!0);function Pi(f){return f}function Hg(f){return R2(typeof f=="function"?f:ps(f,d))}function UP(f){return x2(ps(f,d))}function HP(f,p){return q2(f,ps(p,d))}var VP=un(function(f,p){return function(_){return jc(_,f,p)}}),WP=un(function(f,p){return function(_){return jc(f,_,p)}});function Vg(f,p,_){var A=jr(p),U=_h(p,A);_==null&&!(cr(p)&&(U.length||!A.length))&&(_=p,p=f,f=this,U=_h(p,jr(p)));var Y=!(cr(_)&&"chain"in _)||!!_.chain,ne=Ao(f);return fs(U,function(le){var _e=p[le];f[le]=_e,ne&&(f.prototype[le]=function(){var xe=this.__chain__;if(Y||xe){var qe=f(this.__wrapped__),Ue=qe.__actions__=Oi(this.__actions__);return Ue.push({func:_e,args:arguments,thisArg:f}),qe.__chain__=xe,qe}return _e.apply(f,ia([this.value()],arguments))})}),f}function GP(){return Jr._===this&&(Jr._=_9),this}function Wg(){}function YP(f){return f=en(f),un(function(p){return F2(p,f)})}var QP=kg(sr),ZP=kg(i2),XP=kg(Ym);function t3(f){return Ig(f)?Qm(Zs(f)):CI(f)}function KP(f){return function(p){return f==null?n:iu(f,p)}}var JP=sw(),ex=sw(!0);function Gg(){return[]}function Yg(){return!1}function tx(){return{}}function nx(){return""}function rx(){return!0}function ix(f,p){if(f=en(f),f<1||f>G)return[];var _=me,A=oi(f,me);p=Lt(p),f-=me;for(var U=Km(A,p);++_<f;)p(_);return U}function sx(f){return Xt(f)?sr(f,Zs):Qi(f)?[f]:Oi(ww(On(f)))}function ox(f){var p=++v9;return On(f)+p}var ax=Th(function(f,p){return f+p},0),ux=Sg("ceil"),lx=Th(function(f,p){return f/p},1),cx=Sg("floor");function fx(f){return f&&f.length?bh(f,Pi,lg):n}function dx(f,p){return f&&f.length?bh(f,Lt(p,2),lg):n}function hx(f){return a2(f,Pi)}function px(f,p){return a2(f,Lt(p,2))}function mx(f){return f&&f.length?bh(f,Pi,hg):n}function gx(f,p){return f&&f.length?bh(f,Lt(p,2),hg):n}var vx=Th(function(f,p){return f*p},1),bx=Sg("round"),_x=Th(function(f,p){return f-p},0);function yx(f){return f&&f.length?Xm(f,Pi):0}function wx(f,p){return f&&f.length?Xm(f,Lt(p,2)):0}return W.after=UN,W.ary=Nw,W.assign=IR,W.assignIn=Ww,W.assignInWith=Lh,W.assignWith=OR,W.at=NR,W.before=Rw,W.bind=qg,W.bindAll=FP,W.bindKey=Pw,W.castArray=tR,W.chain=Dw,W.chunk=cO,W.compact=fO,W.concat=dO,W.cond=LP,W.conforms=MP,W.constant=Ug,W.countBy=yN,W.create=RR,W.curry=xw,W.curryRight=qw,W.debounce=Fw,W.defaults=PR,W.defaultsDeep=xR,W.defer=HN,W.delay=VN,W.difference=hO,W.differenceBy=pO,W.differenceWith=mO,W.drop=gO,W.dropRight=vO,W.dropRightWhile=bO,W.dropWhile=_O,W.fill=yO,W.filter=EN,W.flatMap=TN,W.flatMapDeep=$N,W.flatMapDepth=CN,W.flatten=Tw,W.flattenDeep=wO,W.flattenDepth=EO,W.flip=WN,W.flow=zP,W.flowRight=jP,W.fromPairs=kO,W.functions=jR,W.functionsIn=UR,W.groupBy=AN,W.initial=TO,W.intersection=$O,W.intersectionBy=CO,W.intersectionWith=AO,W.invert=VR,W.invertBy=WR,W.invokeMap=IN,W.iteratee=Hg,W.keyBy=ON,W.keys=jr,W.keysIn=Ri,W.map=Nh,W.mapKeys=YR,W.mapValues=QR,W.matches=UP,W.matchesProperty=HP,W.memoize=Ph,W.merge=ZR,W.mergeWith=Gw,W.method=VP,W.methodOf=WP,W.mixin=Vg,W.negate=xh,W.nthArg=YP,W.omit=XR,W.omitBy=KR,W.once=GN,W.orderBy=NN,W.over=QP,W.overArgs=YN,W.overEvery=ZP,W.overSome=XP,W.partial=Fg,W.partialRight=Lw,W.partition=RN,W.pick=JR,W.pickBy=Yw,W.property=t3,W.propertyOf=KP,W.pull=NO,W.pullAll=Cw,W.pullAllBy=RO,W.pullAllWith=PO,W.pullAt=xO,W.range=JP,W.rangeRight=ex,W.rearg=QN,W.reject=qN,W.remove=qO,W.rest=ZN,W.reverse=Pg,W.sampleSize=LN,W.set=tP,W.setWith=nP,W.shuffle=MN,W.slice=FO,W.sortBy=jN,W.sortedUniq=HO,W.sortedUniqBy=VO,W.split=TP,W.spread=XN,W.tail=WO,W.take=GO,W.takeRight=YO,W.takeRightWhile=QO,W.takeWhile=ZO,W.tap=fN,W.throttle=KN,W.thru=Oh,W.toArray=Uw,W.toPairs=Qw,W.toPairsIn=Zw,W.toPath=sx,W.toPlainObject=Vw,W.transform=rP,W.unary=JN,W.union=XO,W.unionBy=KO,W.unionWith=JO,W.uniq=eN,W.uniqBy=tN,W.uniqWith=nN,W.unset=iP,W.unzip=xg,W.unzipWith=Aw,W.update=sP,W.updateWith=oP,W.values=sl,W.valuesIn=aP,W.without=rN,W.words=Jw,W.wrap=eR,W.xor=iN,W.xorBy=sN,W.xorWith=oN,W.zip=aN,W.zipObject=uN,W.zipObjectDeep=lN,W.zipWith=cN,W.entries=Qw,W.entriesIn=Zw,W.extend=Ww,W.extendWith=Lh,Vg(W,W),W.add=ax,W.attempt=e3,W.camelCase=fP,W.capitalize=Xw,W.ceil=ux,W.clamp=uP,W.clone=nR,W.cloneDeep=iR,W.cloneDeepWith=sR,W.cloneWith=rR,W.conformsTo=oR,W.deburr=Kw,W.defaultTo=BP,W.divide=lx,W.endsWith=dP,W.eq=As,W.escape=hP,W.escapeRegExp=pP,W.every=wN,W.find=kN,W.findIndex=kw,W.findKey=qR,W.findLast=SN,W.findLastIndex=Sw,W.findLastKey=FR,W.floor=cx,W.forEach=Iw,W.forEachRight=Ow,W.forIn=LR,W.forInRight=MR,W.forOwn=BR,W.forOwnRight=zR,W.get=Bg,W.gt=aR,W.gte=uR,W.has=HR,W.hasIn=zg,W.head=$w,W.identity=Pi,W.includes=DN,W.indexOf=SO,W.inRange=lP,W.invoke=GR,W.isArguments=au,W.isArray=Xt,W.isArrayBuffer=lR,W.isArrayLike=Ni,W.isArrayLikeObject=wr,W.isBoolean=cR,W.isBuffer=fa,W.isDate=fR,W.isElement=dR,W.isEmpty=hR,W.isEqual=pR,W.isEqualWith=mR,W.isError=Lg,W.isFinite=gR,W.isFunction=Ao,W.isInteger=Mw,W.isLength=qh,W.isMap=Bw,W.isMatch=vR,W.isMatchWith=bR,W.isNaN=_R,W.isNative=yR,W.isNil=ER,W.isNull=wR,W.isNumber=zw,W.isObject=cr,W.isObjectLike=mr,W.isPlainObject=Yc,W.isRegExp=Mg,W.isSafeInteger=kR,W.isSet=jw,W.isString=Fh,W.isSymbol=Qi,W.isTypedArray=il,W.isUndefined=SR,W.isWeakMap=TR,W.isWeakSet=$R,W.join=DO,W.kebabCase=mP,W.last=gs,W.lastIndexOf=IO,W.lowerCase=gP,W.lowerFirst=vP,W.lt=CR,W.lte=AR,W.max=fx,W.maxBy=dx,W.mean=hx,W.meanBy=px,W.min=mx,W.minBy=gx,W.stubArray=Gg,W.stubFalse=Yg,W.stubObject=tx,W.stubString=nx,W.stubTrue=rx,W.multiply=vx,W.nth=OO,W.noConflict=GP,W.noop=Wg,W.now=Rh,W.pad=bP,W.padEnd=_P,W.padStart=yP,W.parseInt=wP,W.random=cP,W.reduce=PN,W.reduceRight=xN,W.repeat=EP,W.replace=kP,W.result=eP,W.round=bx,W.runInContext=ge,W.sample=FN,W.size=BN,W.snakeCase=SP,W.some=zN,W.sortedIndex=LO,W.sortedIndexBy=MO,W.sortedIndexOf=BO,W.sortedLastIndex=zO,W.sortedLastIndexBy=jO,W.sortedLastIndexOf=UO,W.startCase=$P,W.startsWith=CP,W.subtract=_x,W.sum=yx,W.sumBy=wx,W.template=AP,W.times=ix,W.toFinite=Do,W.toInteger=en,W.toLength=Hw,W.toLower=DP,W.toNumber=vs,W.toSafeInteger=DR,W.toString=On,W.toUpper=IP,W.trim=OP,W.trimEnd=NP,W.trimStart=RP,W.truncate=PP,W.unescape=xP,W.uniqueId=ox,W.upperCase=qP,W.upperFirst=jg,W.each=Iw,W.eachRight=Ow,W.first=$w,Vg(W,function(){var f={};return Ys(W,function(p,_){Pn.call(W.prototype,_)||(f[_]=p)}),f}(),{chain:!1}),W.VERSION=r,fs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){W[f].placeholder=W}),fs(["drop","take"],function(f,p){dn.prototype[f]=function(_){_=_===n?1:xr(en(_),0);var A=this.__filtered__&&!p?new dn(this):this.clone();return A.__filtered__?A.__takeCount__=oi(_,A.__takeCount__):A.__views__.push({size:oi(_,me),type:f+(A.__dir__<0?"Right":"")}),A},dn.prototype[f+"Right"]=function(_){return this.reverse()[f](_).reverse()}}),fs(["filter","map","takeWhile"],function(f,p){var _=p+1,A=_==J||_==Q;dn.prototype[f]=function(U){var Y=this.clone();return Y.__iteratees__.push({iteratee:Lt(U,3),type:_}),Y.__filtered__=Y.__filtered__||A,Y}}),fs(["head","last"],function(f,p){var _="take"+(p?"Right":"");
916dn.prototype[f]=function(){return this[_](1).value()[0]}}),fs(["initial","tail"],function(f,p){var _="drop"+(p?"":"Right");dn.prototype[f]=function(){return this.__filtered__?new dn(this):this[_](1)}}),dn.prototype.compact=function(){return this.filter(Pi)},dn.prototype.find=function(f){return this.filter(f).head()},dn.prototype.findLast=function(f){return this.reverse().find(f)},dn.prototype.invokeMap=un(function(f,p){return typeof f=="function"?new dn(this):this.map(function(_){return jc(_,f,p)})}),dn.prototype.reject=function(f){return this.filter(xh(Lt(f)))},dn.prototype.slice=function(f,p){f=en(f);var _=this;return _.__filtered__&&(f>0||p<0)?new dn(_):(f<0?_=_.takeRight(-f):f&&(_=_.drop(f)),p!==n&&(p=en(p),_=p<0?_.dropRight(-p):_.take(p-f)),_)},dn.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},dn.prototype.toArray=function(){return this.take(me)},Ys(dn.prototype,function(f,p){var _=/^(?:filter|find|map|reject)|While$/.test(p),A=/^(?:head|last)$/.test(p),U=W[A?"take"+(p=="last"?"Right":""):p],Y=A||/^find/.test(p);U&&(W.prototype[p]=function(){var ne=this.__wrapped__,le=A?[1]:arguments,_e=ne instanceof dn,xe=le[0],qe=_e||Xt(ne),Ue=function(ln){var gn=U.apply(W,ia([ln],le));return A&<?gn[0]:gn};qe&&_&&typeof xe=="function"&&xe.length!=1&&(_e=qe=!1);var lt=this.__chain__,At=!!this.__actions__.length,Bt=Y&&!lt,on=_e&&!At;if(!Y&&qe){ne=on?ne:new dn(this);var zt=f.apply(ne,le);return zt.__actions__.push({func:Oh,args:[Ue],thisArg:n}),new hs(zt,lt)}return Bt&&on?f.apply(this,le):(zt=this.thru(Ue),Bt?A?zt.value()[0]:zt.value():zt)})}),fs(["pop","push","shift","sort","splice","unshift"],function(f){var p=rh[f],_=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",A=/^(?:pop|shift)$/.test(f);W.prototype[f]=function(){var U=arguments;if(A&&!this.__chain__){var Y=this.value();return p.apply(Xt(Y)?Y:[],U)}return this[_](function(ne){return p.apply(Xt(ne)?ne:[],U)})}}),Ys(dn.prototype,function(f,p){var _=W[p];if(_){var A=_.name+"";Pn.call(Ju,A)||(Ju[A]=[]),Ju[A].push({name:p,func:_})}}),Ju[Sh(n,b).name]=[{name:"wrapper",func:n}],dn.prototype.clone=x9,dn.prototype.reverse=q9,dn.prototype.value=F9,W.prototype.at=dN,W.prototype.chain=hN,W.prototype.commit=pN,W.prototype.next=mN,W.prototype.plant=vN,W.prototype.reverse=bN,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=_N,W.prototype.first=W.prototype.head,xc&&(W.prototype[xc]=gN),W},Zu=p9();Ja?((Ja.exports=Zu)._=Zu,Hm._=Zu):Jr._=Zu}).call(xt)})(_0,_0.exports);var mY=_0.exports;function gY(t){Et(t,"svelte-18ywlyo",`.HorizonLines.svelte-18ywlyo{--color:var(--c-border-dark);position:fixed;z-index:0;top:0;width:100vw;height:100vh;background-image:linear-gradient( 917 to bottom, 918 transparent calc(var(--horizon) + var(--fibonacci-1)), 919 var(--color) calc(var(--horizon) + var(--fibonacci-1) + 1px), 920 transparent calc(var(--horizon) + var(--fibonacci-1) + 2px), 921 transparent calc(var(--horizon) + var(--fibonacci-2)), 922 var(--color) calc(var(--horizon) + var(--fibonacci-2) + 1px), 923 transparent calc(var(--horizon) + var(--fibonacci-2) + 2px), 924 transparent calc(var(--horizon) + var(--fibonacci-3)), 925 var(--color) calc(var(--horizon) + var(--fibonacci-3) + 1px), 926 transparent calc(var(--horizon) + var(--fibonacci-3) + 2px), 927 transparent calc(var(--horizon) + var(--fibonacci-4)), 928 var(--color) calc(var(--horizon) + var(--fibonacci-4) + 1px), 929 transparent calc(var(--horizon) + var(--fibonacci-4) + 2px), 930 transparent calc(var(--horizon) + var(--fibonacci-5)), 931 var(--color) calc(var(--horizon) + var(--fibonacci-5) + 1px), 932 transparent calc(var(--horizon) + var(--fibonacci-5) + 2px), 933 transparent calc(var(--horizon) + var(--fibonacci-6)), 934 var(--color) calc(var(--horizon) + var(--fibonacci-6) + 1px), 935 transparent calc(var(--horizon) + var(--fibonacci-6) + 2px), 936 transparent calc(var(--horizon) + var(--fibonacci-7)), 937 var(--color) calc(var(--horizon) + var(--fibonacci-7) + 1px), 938 transparent calc(var(--horizon) + var(--fibonacci-7) + 2px), 939 transparent calc(var(--horizon) + var(--fibonacci-8)), 940 var(--color) calc(var(--horizon) + var(--fibonacci-8) + 1px), 941 transparent calc(var(--horizon) + var(--fibonacci-8) + 2px), 942 transparent calc(var(--horizon) + var(--fibonacci-9)), 943 var(--color) calc(var(--horizon) + var(--fibonacci-9) + 1px), 944 transparent calc(var(--horizon) + var(--fibonacci-9) + 2px), 945 transparent calc(var(--horizon) + var(--fibonacci-10)), 946 var(--color) calc(var(--horizon) + var(--fibonacci-10) + 1px), 947 transparent calc(var(--horizon) + var(--fibonacci-10) + 2px), 948 transparent calc(var(--horizon) + var(--fibonacci-11)), 949 var(--color) calc(var(--horizon) + var(--fibonacci-11) + 1px), 950 transparent calc(var(--horizon) + var(--fibonacci-11) + 2px), 951 transparent calc(var(--horizon) + var(--fibonacci-12)), 952 var(--color) calc(var(--horizon) + var(--fibonacci-12) + 1px), 953 transparent calc(var(--horizon) + var(--fibonacci-12) + 2px), 954 transparent calc(var(--horizon) + var(--fibonacci-13)), 955 var(--color) calc(var(--horizon) + var(--fibonacci-13) + 1px), 956 transparent calc(var(--horizon) + var(--fibonacci-13) + 2px) 957 )}`)}function s6(t){let e,n,r;return{c(){e=C("div"),w(e,"class","HorizonLines svelte-18ywlyo"),He(e,"filter","opacity("+t[2]+")")},m(i,s){O(i,e,s),t[6](e),r=!0},p(i,s){(!r||s&4)&&He(e,"filter","opacity("+i[2]+")")},i(i){r||(i&&Xn(()=>{r&&(n||(n=Zn(e,Sr,{},!0)),n.run(1))}),r=!0)},o(i){i&&(n||(n=Zn(e,Sr,{},!1)),n.run(0)),r=!1},d(i){i&&I(e),t[6](null),i&&n&&n.end()}}}function vY(t){let e,n=t[0]&&s6(t);return{c(){n&&n.c(),e=Pt()},m(r,i){n&&n.m(r,i),O(r,e,i)},p(r,[i]){r[0]?n?(n.p(r,i),i&1&&E(n,1)):(n=s6(r),n.c(),E(n,1),n.m(e.parentNode,e)):n&&($e(),T(n,1,1,()=>{n=null}),Ce())},i(r){E(n)},o(r){T(n)},d(r){r&&I(e),n&&n.d(r)}}}let bY=13;function _Y(t,e,n){let{visible:r=!1}=e,{animate:i=!1}=e,{horizon:s="12rem"}=e,{forwards:o=!1}=e,a,u=1,l=1,c=[3,5,8,13,21,34,55,89,144,233,377,610,947,1557];const d=()=>{a==null||a.style.setProperty("--horizon",s);for(var m=1;m<bY+1;m++)a==null||a.style.setProperty("--fibonacci-"+m,mY.round(Number(c[m]*u),1)+"px");o?(u+=5e-4,u>=1.618&&(u=1)):(u-=5e-4,u<=.618&&(u=1)),i&&window.requestAnimationFrame(d)};$r(()=>{window.requestAnimationFrame(d)});function h(m){Qe[m?"unshift":"push"](()=>{a=m,n(1,a)})}return t.$$set=m=>{"visible"in m&&n(0,r=m.visible),"animate"in m&&n(3,i=m.animate),"horizon"in m&&n(4,s=m.horizon),"forwards"in m&&n(5,o=m.forwards)},n(2,l=1-scrollY/window.innerHeight),[r,a,l,i,s,o,h]}class go extends pt{constructor(e){super(),ht(this,e,_Y,vY,dt,{visible:0,animate:3,horizon:4,forwards:5},gY)}}
957function yY(t){Et(t,"svelte-1xjehbw",".RandomBackgroundColor.svelte-1xjehbw{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;background-color:var(--bgColor);transition:background-color var(--transition-props)}")}function wY(t){let e;return{c(){e=C("div"),w(e,"class","RandomBackgroundColor svelte-1xjehbw")},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function EY(t,e,n){let r;Ke(t,ji,a=>n(1,r=a));const i=[{dayBgColor:"#F6E9E9",nightBgColor:"#170807",dayUnderlineColor:"#F08888",nightUnderlineColor:"#9C4540"},{dayBgColor:"#EAE8F7",nightBgColor:"#09081C",dayUnderlineColor:"#718EEA",nightUnderlineColor:"#403AA6"},{dayBgColor:"#F8F1E8",nightBgColor:"#1D1407",dayUnderlineColor:"#E4A95C",nightUnderlineColor:"#A67936"},{dayBgColor:"#EDF5F8",nightBgColor:"#04161A",dayUnderlineColor:"#7FC1D3",nightUnderlineColor:"#107695"},{dayBgColor:"#F5EBF4",nightBgColor:"#160D16",dayUnderlineColor:"#C279BC",nightUnderlineColor:"#765174"},{dayBgColor:"#EDEEF8",nightBgColor:"#0C0E1D",dayUnderlineColor:"#8C97D5",nightUnderlineColor:"#3843A5"},{dayBgColor:"#F8F1E7",nightBgColor:"#1B1204",dayUnderlineColor:"#E9A550",nightUnderlineColor:"#764C10"},{dayBgColor:"#EFF8E8",nightBgColor:"#0C180E",dayUnderlineColor:"#69C950",nightUnderlineColor:"#316E21"},{dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0}];let s;const o=()=>{console.log("setBgColors");const a=document.documentElement;r.darkMode?(a.style.setProperty("--bgColor",s.nightBgColor),a.style.setProperty("--underlineColor",s.nightUnderlineColor)):(a.style.setProperty("--bgColor",s.dayBgColor),a.style.setProperty("--underlineColor",s.dayUnderlineColor))};return $r(()=>{s=i[Math.floor(Math.random()*i.length)],o()}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{o()}),[]}class Ii extends pt{constructor(e){super(),ht(this,e,EY,wY,dt,{},yY)}}function kY(t){Et(t,"svelte-bfbekv","p.svelte-bfbekv.svelte-bfbekv{margin:2rem 0}p.svelte-bfbekv a{margin-left:1rem}.centered.svelte-bfbekv.svelte-bfbekv{text-align:center}.centered.svelte-bfbekv hr.svelte-bfbekv{width:4rem;margin:0 auto 1.5rem;border:0;border-top:2px solid var(--c-border)}p.svelte-bfbekv a,.centered.svelte-bfbekv a{color:var(--c-text)}p.svelte-bfbekv a:hover,.centered.svelte-bfbekv a:hover{color:var(--c-text-hover)}.confirmInfo.svelte-bfbekv a{text-decoration:underline;color:var(--c-text-strong)}.flash.svelte-bfbekv.svelte-bfbekv{color:var(--c-accent)}")}function SY(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Log into your account</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function o6(t){var i,s;let e,n=((s=(i=t[5])==null?void 0:i.state)==null?void 0:s.flash)+"",r;return{c(){e=C("p"),r=oe(n),w(e,"class","flash svelte-bfbekv")},m(o,a){O(o,e,a),v(e,r)},p(o,a){var u,l;a&32&&n!==(n=((l=(u=o[5])==null?void 0:u.state)==null?void 0:l.flash)+"")&&Wt(r,n)},d(o){o&&I(e)}}}function a6(t){let e,n,r,i;return r=new Ui({props:{to:"/resend-confirmation-email",$$slots:{default:[TY]},$$scope:{ctx:t}}}),{c(){e=C("p"),n=oe("If you have not received the confirmation email,"),j(r.$$.fragment),w(e,"class","confirmInfo svelte-bfbekv")},m(s,o){O(s,e,o),v(e,n),B(r,e,null),i=!0},i(s){i||(E(r.$$.fragment,s),i=!0)},o(s){T(r.$$.fragment,s),i=!1},d(s){s&&I(e),z(r)}}}function TY(t){let e;return{c(){e=oe("click here to request a new one.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function $Y(t){let e;return{c(){e=oe("Email")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function CY(t){let e;return{c(){e=oe("Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function AY(t){let e;return{c(){e=oe("Log in")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function DY(t){let e;return{c(){e=oe("Forgot your password?")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function IY(t){var ue,ie;let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G=((ie=(ue=t[5])==null?void 0:ue.state)==null?void 0:ie.flash)&&o6(t);i=new ir({props:{errors:t[0],field:"base"}});let se=t[4]&&a6(t);u=new Tr({props:{$$slots:{default:[$Y]},$$scope:{ctx:t}}});function fe(de){t[9](de)}let me={focused:!0,required:!0,type:"email",name:"email",autocomplete:"email",placeholder:"Email"};t[1]!==void 0&&(me.value=t[1]),c=new Zr({props:me}),Qe.push(()=>En(c,"value",fe)),m=new ir({props:{errors:t[0],field:"email"}}),y=new Tr({props:{$$slots:{default:[CY]}
957,$$scope:{ctx:t}}});function Ae(de){t[10](de)}let ee={required:!0,type:"password",name:"password",placeholder:"Password",autocomplete:"current-password"};return t[2]!==void 0&&(ee.value=t[2]),S=new Zr({props:ee}),Qe.push(()=>En(S,"value",Ae)),P=new ir({props:{errors:t[0],field:"password"}}),R=new ir({props:{errors:t[0],field:"email or password"}}),V=new We({props:{type:"submit",$$slots:{default:[AY]},$$scope:{ctx:t}}}),J=new Ui({props:{to:"/forgot-password",$$slots:{default:[DY]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("form"),G&&G.c(),r=N(),j(i.$$.fragment),s=N(),se&&se.c(),o=N(),a=C("div"),j(u.$$.fragment),l=N(),j(c.$$.fragment),h=N(),j(m.$$.fragment),g=N(),k=C("div"),j(y.$$.fragment),b=N(),j(S.$$.fragment),D=N(),j(P.$$.fragment),x=N(),j(R.$$.fragment),q=N(),F=C("input"),L=N(),M=C("p"),j(V.$$.fragment),H=N(),j(J.$$.fragment),w(F,"type","submit"),w(F,"class","hide"),w(M,"class","svelte-bfbekv"),w(e,"slot","content")},m(de,Fe){O(de,e,Fe),v(e,n),G&&G.m(n,null),v(n,r),B(i,n,null),v(n,s),se&&se.m(n,null),v(n,o),v(n,a),B(u,a,null),v(a,l),B(c,a,null),v(a,h),B(m,a,null),v(n,g),v(n,k),B(y,k,null),v(k,b),B(S,k,null),v(k,D),B(P,k,null),v(n,x),B(R,n,null),v(n,q),v(n,F),v(n,L),v(n,M),B(V,M,null),v(M,H),B(J,M,null),t[11](n),Z=!0,Q||(K=Ie(n,"submit",Lr(t[8])),Q=!0)},p(de,Fe){var at,bt;(bt=(at=de[5])==null?void 0:at.state)!=null&&bt.flash?G?G.p(de,Fe):(G=o6(de),G.c(),G.m(n,r)):G&&(G.d(1),G=null);const Ve={};Fe&1&&(Ve.errors=de[0]),i.$set(Ve),de[4]?se?Fe&16&&E(se,1):(se=a6(de),se.c(),E(se,1),se.m(n,o)):se&&($e(),T(se,1,1,()=>{se=null}),Ce());const Te={};Fe&4096&&(Te.$$scope={dirty:Fe,ctx:de}),u.$set(Te);const we={};!d&&Fe&2&&(d=!0,we.value=de[1],wn(()=>d=!1)),c.$set(we);const je={};Fe&1&&(je.errors=de[0]),m.$set(je);const Je={};Fe&4096&&(Je.$$scope={dirty:Fe,ctx:de}),y.$set(Je);const Ne={};!$&&Fe&4&&($=!0,Ne.value=de[2],wn(()=>$=!1)),S.$set(Ne);const Ge={};Fe&1&&(Ge.errors=de[0]),P.$set(Ge);const nt={};Fe&1&&(nt.errors=de[0]),R.$set(nt);const rt={};Fe&4096&&(rt.$$scope={dirty:Fe,ctx:de}),V.$set(rt);const Ze={};Fe&4096&&(Ze.$$scope={dirty:Fe,ctx:de}),J.$set(Ze)},i(de){Z||(E(i.$$.fragment,de),E(se),E(u.$$.fragment,de),E(c.$$.fragment,de),E(m.$$.fragment,de),E(y.$$.fragment,de),E(S.$$.fragment,de),E(P.$$.fragment,de),E(R.$$.fragment,de),E(V.$$.fragment,de),E(J.$$.fragment,de),Z=!0)},o(de){T(i.$$.fragment,de),T(se),T(u.$$.fragment,de),T(c.$$.fragment,de),T(m.$$.fragment,de),T(y.$$.fragment,de),T(S.$$.fragment,de),T(P.$$.fragment,de),T(R.$$.fragment,de),T(V.$$.fragment,de),T(J.$$.fragment,de),Z=!1},d(de){de&&I(e),G&&G.d(),z(i),se&&se.d(),z(u),z(c),z(m),z(y),z(S),z(P),z(R),z(V),z(J),t[11](null),Q=!1,K()}}}function OY(t){let e;return{c(){e=oe("Create new account")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function NY(t){let e,n,r,i,s,o,a;return o=new Ui({props:{to:"/sign-up",$$slots:{default:[OY]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("div"),r=C("hr"),i=N(),s=C("small"),j(o.$$.fragment),w(r,"class","svelte-bfbekv"),w(n,"class","centered svelte-bfbekv"),w(e,"slot","primaryButton")},m(u,l){O(u,e,l),v(e,n),v(n,r),v(n,i),v(n,s),B(o,s,null),a=!0},p(u,l){const c={};l&4096&&(c.$$scope={dirty:l,ctx:u}),o.$set(c)},i(u){a||(E(o.$$.fragment,u),a=!0)},o(u){T(o.$$.fragment,u),a=!1},d(u){u&&I(e),z(o)}}}function RY(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{primaryButton:[NY],content:[IY],title:[SY]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&4159&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function PY(t,e,n){let r,i;const s=H0();Ke(t,s,k=>n(5,i=k));let o,a,u,l=!1;const c=nn([]);Ke(t,c,k=>n(0,r=k));const d=async()=>{const k=await RG(o,a);k.data.createSession.errors.length===0?(u==null||u.reset(),await E$(),Mi("/",{state:{flash:"Login successful"}})):c.set(k.data.createSession.errors)};function h(k){o=k,n(1,o)}function m(k){a=k,n(2,a)}function g(k){Qe[k?"unshift":"push"](()=>{u=k,n(3,u)})}return t.$$.update=()=>{t.$$.dirty&1&&n(4,l=!!r.find(k=>k.type==="unconfirmed"))},[r,o,a,u,l,i,s,c,d,h,m,g]}class xY extends pt{constructor(e){super(),ht(this,e,PY,RY,dt,{},kY)}}function qY(t){Et(t,"svelte-1ihtp9b","p.svelte-1ihtp9b{margin:2rem 0}p.svelte-1ihtp9b a{margin-left:1rem;color:var(--c-text)}small.svelte-1ihtp9b{display:inline-block;color:var(--c-text-faded);margin-top:1rem}")}function FY(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Sign up for an account</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function LY(t){let e;return{c(){e=oe("Email")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function MY(t){let e;return{c(){e=oe("Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function BY(t){let e;return{c(){e=oe("Confirm Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function zY(t){let e;return{c(){e=oe("Name")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function jY(t){let e;return{c(){e=oe("Sign up")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function UY(t){let e;return{c(){e=oe("Log in instead?")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function HY(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je;i=new Tr({props:{$$slots:{default:[LY]},$$scope:{ctx:t}}});function Je(he){t[8](he)}let Ne={focused:!0,required:!0,type:"email",name:"email",autocomplete:"email",placeholder:"Email"};t[0]!==void 0&&(Ne.value=t[0]),o=new Zr({props:Ne}),Qe.push(()=>En(o,"value",Je)),l=new ir({props:{errors:t[5],field:"email"}}),h=new Tr({props:{$$slots:{default:[MY]},$$scope:{ctx:t}}});function Ge(he){t[9](he)}let nt={required:!0,type:"password",name:"password",autocomplete:"new-password",placeholder:"Password"};t[2]!==void 0&&(nt.value=t[2]),g=new Zr({props:nt}),Qe.push(()=>En(g,"value",Ge)),b=new ir({props:{errors:t[5],field:"password"}}),D=new Tr({props:{$$slots:{default:[BY]},$$scope:{ctx:t}}});function rt(he){t[10](he)}let Ze={required:!0,type:"password",name:"confirm-password",autocomplete:"new-password",placeholder:"Confirm password"};t[3]!==void 0&&(Ze.value=t[3]),x=new Zr({props:Ze}),Qe.push(()=>En(x,"value",rt)),F=new ir({props:{errors:t[5],field:"password_confirmation"}}),V=new Tr({props:{$$slots:{default:[zY]},$$scope:{ctx:t}}});function at(he){t[11](he)}let bt={required:!0,type:"text",name:"username",autocomplete:"username",placeholder:"Name"};return t[1]!==void 0&&(bt.value=t[1]),J=new Zr({props:bt}),Qe.push(()=>En(J,"value",at)),K=new ir({props:{errors:t[5],field:"username"}}),me=new ir({props:{errors:t[5],field:"base"}}),de=new We({props:{type:"submit",$$slots:{default:[jY]},$$scope:{ctx:t}}}),Ve=new Ui({props:{to:"/login",$$slots:{default:[UY]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("form"),r=C("div"),j(i.$$.fragment),s=N(),j(o.$$.fragment),u=N(),j(l.$$.fragment),c=N(),d=C("div"),j(h.$$.fragment),m=N(),j(g.$$.fragment),y=N(),j(b.$$.fragment),S=N(),$=C("div"),j(D.$$.fragment),P=N(),j(x.$$.fragment),q=N(),j(F.$$.fragment),L=N(),M=C("div"),j(V.$$.fragment),H=N(),j(J.$$.fragment),Q=N(),j(K.$$.fragment),G=N(),se=C("small"),se.textContent="* All fields are required",fe=N(),j(me.$$.fragment),Ae=N(),ee=C("input"),ue=N(),ie=C("p"),j(de.$$.fragment),Fe=N(),j(Ve.$$.fragment),w(se,"class","svelte-1ihtp9b"),w(ee,"type","submit"),w(ee,"class","hide"),w(ie,"class","svelte-1ihtp9b"),w(e,"slot","content")},m(he,Pe){O(he,e,Pe),v(e,n),v(n,r),B(i,r,null),v(r,s),B(o,r,null),v(r,u),B(l,r,null),v(n,c),v(n,d),B(h,d,null),v(d,m),B(g,d,null),v(d,y),B(b,d,null),v(n,S),v(n,$),B(D,$,null),v($,P),B(x,$,null),v($,q),B(F,$,null),v(n,L),v(n,M),B(V,M,null),v(M,H),B(J,M,null),v(M,Q),B(K,M,null),v(n,G),v(n,se),v(n,fe),B(me,n,null),v(n,Ae),v(n,ee),v(n,ue),v(n,ie),B(de,ie,null),v(ie,Fe),B(Ve,ie,null),t[12](n),Te=!0,we||(je=Ie(n,"submit",Lr(t[7])),we=!0)},p(he,Pe){const Se={};Pe&8192&&(Se.$$scope={dirty:Pe,ctx:he}),i.$set(Se);const Le={};!a&&Pe&1&&(a=!0,Le.value=he[0],wn(()=>a=!1)),o.$set(Le);const te={};Pe&32&&(te.errors=he[5]),l.$set(te);const X={};
957Pe&8192&&(X.$$scope={dirty:Pe,ctx:he}),h.$set(X);const ye={};!k&&Pe&4&&(k=!0,ye.value=he[2],wn(()=>k=!1)),g.$set(ye);const Xe={};Pe&32&&(Xe.errors=he[5]),b.$set(Xe);const Be={};Pe&8192&&(Be.$$scope={dirty:Pe,ctx:he}),D.$set(Be);const it={};!R&&Pe&8&&(R=!0,it.value=he[3],wn(()=>R=!1)),x.$set(it);const mt={};Pe&32&&(mt.errors=he[5]),F.$set(mt);const Ct={};Pe&8192&&(Ct.$$scope={dirty:Pe,ctx:he}),V.$set(Ct);const ft={};!Z&&Pe&2&&(Z=!0,ft.value=he[1],wn(()=>Z=!1)),J.$set(ft);const It={};Pe&32&&(It.errors=he[5]),K.$set(It);const Tt={};Pe&32&&(Tt.errors=he[5]),me.$set(Tt);const _t={};Pe&8192&&(_t.$$scope={dirty:Pe,ctx:he}),de.$set(_t);const gt={};Pe&8192&&(gt.$$scope={dirty:Pe,ctx:he}),Ve.$set(gt)},i(he){Te||(E(i.$$.fragment,he),E(o.$$.fragment,he),E(l.$$.fragment,he),E(h.$$.fragment,he),E(g.$$.fragment,he),E(b.$$.fragment,he),E(D.$$.fragment,he),E(x.$$.fragment,he),E(F.$$.fragment,he),E(V.$$.fragment,he),E(J.$$.fragment,he),E(K.$$.fragment,he),E(me.$$.fragment,he),E(de.$$.fragment,he),E(Ve.$$.fragment,he),Te=!0)},o(he){T(i.$$.fragment,he),T(o.$$.fragment,he),T(l.$$.fragment,he),T(h.$$.fragment,he),T(g.$$.fragment,he),T(b.$$.fragment,he),T(D.$$.fragment,he),T(x.$$.fragment,he),T(F.$$.fragment,he),T(V.$$.fragment,he),T(J.$$.fragment,he),T(K.$$.fragment,he),T(me.$$.fragment,he),T(de.$$.fragment,he),T(Ve.$$.fragment,he),Te=!1},d(he){he&&I(e),z(i),z(o),z(l),z(h),z(g),z(b),z(D),z(x),z(F),z(V),z(J),z(K),z(me),z(de),z(Ve),t[12](null),we=!1,je()}}}function VY(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[HY],title:[FY]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&8255&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function WY(t,e,n){let r,i,s,o,a,u;const l=nn([]);Ke(t,l,y=>n(5,r=y));const c=async()=>{var y,b,S;const $=await MW({variables:{username:s,email:i,password:o,passwordConfirmation:a}});l.set($.data.createUser.errors),((S=(b=(y=$.data)===null||y===void 0?void 0:y.createUser)===null||b===void 0?void 0:b.errors)===null||S===void 0?void 0:S.length)===0&&(u.reset(),Mi("/activation-instructions",{state:{email:i}}))};function d(y){i=y,n(0,i)}function h(y){o=y,n(2,o)}function m(y){a=y,n(3,a)}function g(y){s=y,n(1,s)}function k(y){Qe[y?"unshift":"push"](()=>{u=y,n(4,u)})}return[i,s,o,a,u,r,l,c,d,h,m,g,k]}class GY extends pt{constructor(e){super(),ht(this,e,WY,VY,dt,{},qY)}}function YY(t){Et(t,"svelte-oye2j6",".accent.svelte-oye2j6{color:var(--c-accent)}p.svelte-oye2j6{margin-bottom:2rem}")}function QY(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Activate your account</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function u6(t){var s,o;let e,n,r=((o=(s=t[0])==null?void 0:s.state)==null?void 0:o.email)+"",i;return{c(){e=oe("at "),n=C("b"),i=oe(r)},m(a,u){O(a,e,u),O(a,n,u),v(n,i)},p(a,u){var l,c;u&1&&r!==(r=((c=(l=a[0])==null?void 0:l.state)==null?void 0:c.email)+"")&&Wt(i,r)},d(a){a&&(I(e),I(n))}}}function ZY(t){var u,l;let e,n,r,i,s,o,a=((l=(u=t[0])==null?void 0:u.state)==null?void 0:l.email)&&u6(t);return{c(){e=C("span"),n=C("p"),r=oe("We have sent you an email "),a&&a.c(),i=oe(" to confirm your email address."),s=N(),o=C("p"),o.textContent="Please follow the instructions in that email to activate your account.",w(n,"class","accent svelte-oye2j6"),w(o,"class","svelte-oye2j6"),w(e,"slot","content")},m(c,d){O(c,e,d),v(e,n),v(n,r),a&&a.m(n,null),v(n,i),v(e,s),v(e,o)},p(c,d){var h,m;(m=(h=c[0])==null?void 0:h.state)!=null&&m.email?a?a.p(c,d):(a=u6(c),a.c(),a.m(n,i)):a&&(a.d(1),a=null)},d(c){c&&I(e),a&&a.d()}}}function XY(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[ZY],title:[QY]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&5&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function KY(t,e,n){let r;const i=H0();return Ke(t,i,s=>n(0,r=s)),[r,i]}class JY extends pt{constructor(e){super(),ht(this,e,KY,XY,dt,{},YY)}}function eQ(t){Et(t,"svelte-ij46qz","footer.svelte-ij46qz.svelte-ij46qz{position:relative;display:flex;z-index:2;flex-direction:row;padding:0 2.6rem 3rem}footer.svelte-ij46qz nav ul.svelte-ij46qz{display:flex;flex-direction:row;gap:1rem;line-height:4rem;font-size:1.6rem;font-weight:500;letter-spacing:0.1px}footer.svelte-ij46qz nav ul li.svelte-ij46qz{list-style:none;transition:opacity var(--transition-props)}footer.svelte-ij46qz nav ul li.svelte-ij46qz a{color:var(--c-text)}footer.svelte-ij46qz nav ul li.svelte-ij46qz a:hover,footer.svelte-ij46qz nav ul li.svelte-ij46qz button:hover{color:var(--un
957derlineColor) !important}@media(max-width: 768px){footer.svelte-ij46qz.svelte-ij46qz{padding:0 0.6rem 3rem}footer.svelte-ij46qz nav ul.svelte-ij46qz{flex-direction:column;line-height:3rem;font-size:2.4rem;gap:0.5rem}}")}function tQ(t){let e;return{c(){e=oe("Philosophy")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function nQ(t){let e;return{c(){e=oe("Extension")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function rQ(t){let e;return{c(){e=oe("Pricing")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function iQ(t){let e;return{c(){e=oe("Privacy")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function sQ(t){let e;return{c(){e=oe("Terms")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function oQ(t){let e;return{c(){e=oe("DMCA Notice")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function aQ(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P;return s=new We({props:{href:"/philosophy",transparent:!0,$$slots:{default:[tQ]},$$scope:{ctx:t}}}),u=new We({props:{href:"https://chromewebstore.google.com/detail/hyperplace/kbanfkffoldngciemjinoaealhjaniol",transparent:!0,target:"_blank",$$slots:{default:[nQ]},$$scope:{ctx:t}}}),d=new We({props:{href:"/pricing",transparent:!0,$$slots:{default:[rQ]},$$scope:{ctx:t}}}),g=new We({props:{href:"/privacy",transparent:!0,$$slots:{default:[iQ]},$$scope:{ctx:t}}}),b=new We({props:{href:"/terms",transparent:!0,$$slots:{default:[sQ]},$$scope:{ctx:t}}}),D=new We({props:{href:"/dmca",transparent:!0,$$slots:{default:[oQ]},$$scope:{ctx:t}}}),{c(){e=C("footer"),n=C("nav"),r=C("ul"),i=C("li"),j(s.$$.fragment),o=N(),a=C("li"),j(u.$$.fragment),l=N(),c=C("li"),j(d.$$.fragment),h=N(),m=C("li"),j(g.$$.fragment),k=N(),y=C("li"),j(b.$$.fragment),S=N(),$=C("li"),j(D.$$.fragment),w(i,"class","svelte-ij46qz"),w(a,"class","svelte-ij46qz"),w(c,"class","svelte-ij46qz"),w(m,"class","svelte-ij46qz"),w(y,"class","svelte-ij46qz"),w($,"class","svelte-ij46qz"),w(r,"class","svelte-ij46qz"),w(e,"class","svelte-ij46qz")},m(x,R){O(x,e,R),v(e,n),v(n,r),v(r,i),B(s,i,null),v(r,o),v(r,a),B(u,a,null),v(r,l),v(r,c),B(d,c,null),v(r,h),v(r,m),B(g,m,null),v(r,k),v(r,y),B(b,y,null),v(r,S),v(r,$),B(D,$,null),P=!0},p(x,[R]){const q={};R&1&&(q.$$scope={dirty:R,ctx:x}),s.$set(q);const F={};R&1&&(F.$$scope={dirty:R,ctx:x}),u.$set(F);const L={};R&1&&(L.$$scope={dirty:R,ctx:x}),d.$set(L);const M={};R&1&&(M.$$scope={dirty:R,ctx:x}),g.$set(M);const V={};R&1&&(V.$$scope={dirty:R,ctx:x}),b.$set(V);const H={};R&1&&(H.$$scope={dirty:R,ctx:x}),D.$set(H)},i(x){P||(E(s.$$.fragment,x),E(u.$$.fragment,x),E(d.$$.fragment,x),E(g.$$.fragment,x),E(b.$$.fragment,x),E(D.$$.fragment,x),P=!0)},o(x){T(s.$$.fragment,x),T(u.$$.fragment,x),T(d.$$.fragment,x),T(g.$$.fragment,x),T(b.$$.fragment,x),T(D.$$.fragment,x),P=!1},d(x){x&&I(e),z(s),z(u),z(d),z(g),z(b),z(D)}}}class bc extends pt{constructor(e){super(),ht(this,e,null,aQ,dt,{},eQ)}}const{document:l6,window:Bv}=U0;function uQ(t){Et(t,"svelte-qaixxv",'main.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:absolute;background-color:var(--bgColor, var(--c-marketing-bg));transition:background-color var(--transition-props)}section.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:relative;display:flex;flex-direction:column;z-index:2;width:100vw;min-height:100vh;padding:0 4rem}section.svelte-qaixxv aside.svelte-qaixxv.svelte-qaixxv{display:flex;flex-direction:column;justify-content:flex-end}section.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{font-size:clamp(4.8rem, 4.2vw, 9.8rem);margin-bottom:0.35em;margin-left:-0.025em;line-height:0.95em;letter-spacing:-0.01em;font-family:"Athelas", "Times New Roman", Times, serif;font-weight:normal}section.svelte-qaixxv h3.svelte-qaixxv.svelte-qaixxv{font-size:clamp(2.4rem, 1.9vw, 9.8rem);font-weight:600;margin-bottom:0.66em;letter-spacing:-0.015em;line-height:1.25em;font-family:system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif}section.svelte-qaixxv p.svelte-qaixxv.svelte-qaixxv{font-size:max(1.8rem, 1.5vw);margin-bottom:0.66em;line-height:1.25em;font-family:system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:400}section.svelte-qaixxv p.small.svelte-qaixxv.svelte-qaixxv{font-size:1.7rem}section.svelte-qaixxv a.svelte-qaixxv.svelte-qaixxv{text-decoration:underline;text-decoration-color:var(--c-border-dark);color:var(--c-text)}section.svelte-qaixxv a.svelte-qaixxv.svelte-qaixxv:not(.underlined):hover{text-decoration-color:var(--c-text)}section.hero.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:sticky;top:0.5rem;justify-content:center;align-items:center;text-align:center;min-height:auto;margin:clamp(10rem, 20vh, 20rem) 0;transition-property:opacity, margin;transition:var(--transition-props)}section.hero.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{font-size:clamp(5.2rem, 7.2vw, 12.4rem);letter-spacing:-0.025em;line-height:1em;transform:scale(1);transition:transform var(--transition-props)}section.hero.svelte-qaixxv p.svelte-qaixxv.svelte-qaixxv{font-size:clamp(1.8rem, 2.35vw, 4.2rem);max-width:68vw;margin-bottom:0;transition:opacity var(--transition-props)}section.hero.isPinned.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{margin-bottom:0}section.hero.isPinned.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{transform:scale(0.6);line-height:8.5rem}section.hero.isPinned.svelte-qaixxv p.svelte-qaixxv.svelte-qaixxv{opacity:0}
957section.feature.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{display:flex;width:40vw;height:100vh}section.outro.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{justify-content:center}section.outro.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{font-size:clamp(4.2rem, 5.6vw, 9.8rem);line-height:1em;max-width:60%;margin-bottom:0.8em}section.outro.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv:last-of-type{min-height:80vh;padding-bottom:8vh}section.outro.svelte-qaixxv:last-of-type p.svelte-qaixxv.svelte-qaixxv{max-width:50vw}section.slideshow.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:sticky;top:10rem;z-index:0;display:flex;align-items:center;justify-content:center;width:100vw;height:calc(100vh - 10rem);min-height:auto}.slideshow.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv:hover{cursor:zoom-in}section.slideshow.svelte-qaixxv img.spacer.svelte-qaixxv.svelte-qaixxv{width:calc(100vw - 8rem);visibility:hidden}section.slideshow.svelte-qaixxv figure.svelte-qaixxv.svelte-qaixxv{display:flex;position:absolute;top:0;right:4rem;width:calc(100vw - 8rem);max-height:calc(100vh - 13rem);border-radius:1rem;overflow:hidden;transition-property:right;transition:var(--transition-props)}section.slideshow.svelte-qaixxv figure img.svelte-qaixxv.svelte-qaixxv{width:100%;object-fit:contain;object-position:50% 50%;transition:object-position var(--transition-props)}.slideshow.svelte-qaixxv:not(.slideshowZoomed) figure.faded.svelte-qaixxv.svelte-qaixxv{mask-image:linear-gradient(to right, transparent, black 66%);-webkit-mask-image:linear-gradient(to right, transparent, black 66%)}.slideshow.svelte-qaixxv:not(.slideshowZoomed) figure.slightlyFaded.svelte-qaixxv.svelte-qaixxv{mask-image:linear-gradient(to right, hsl(0, 0%, 0%, 0.6), black 66%);-webkit-mask-image:linear-gradient(to right, hsl(0, 0%, 0%, 0.6), black 66%)}.slideshow.isAside.svelte-qaixxv:not(.slideshowZoomed) figure.svelte-qaixxv.svelte-qaixxv{width:calc(75vw - 8rem)}.slideshow.isAside.svelte-qaixxv:not(.slideshowZoomed) figure.svelte-qaixxv img.svelte-qaixxv{object-position:100% 50%}section.slideshow.slideshowZoomed.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{z-index:100}section.slideshow.slideshowZoomed.svelte-qaixxv div.svelte-qaixxv.svelte-qaixxv{display:flex;position:fixed;top:0rem;left:0rem;right:0rem;bottom:0rem;padding:1rem;align-items:center;transition-property:background-color;transition:var(--transition-props);background-color:var(--bgColor, var(--c-marketing-bg))}section.slideshow.slideshowZoomed.svelte-qaixxv figure.svelte-qaixxv.svelte-qaixxv{max-height:calc(100vh - 2rem);top:auto}.closeSlideshowButton.svelte-qaixxv button.svelte-qaixxv.svelte-qaixxv{background-color:transparent;border:none;font-size:5rem;line-height:3rem;font-weight:200;color:var(--c-text);cursor:pointer}.closeSlideshowButton.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:fixed;z-index:110;top:1rem;right:1rem}.nextSlideOverlay.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv,.prevSlideOverlay.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:fixed;top:0;bottom:0;width:50vw;z-index:109;background-color:transparent;border:transparent}.nextSlideOverlay.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{right:0;cursor:e-resize}.prevSlideOverlay.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{left:0;cursor:w-resize}.hidden.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{opacity:0;transition:opacity var(--transition-props)}.underlined.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{text-decoration:underline;text-decoration-skip-ink:none;text-decoration-thickness:0.1em;text-underline-offset:0.1em;text-decoration-color:var(--underlineColor, var(--c-text))}.horizontalList.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{display:flex;text-align:left;gap:6rem}.horizontalList.svelte-qaixxv li.svelte-qaixxv.svelte-qaixxv{list-style:none;flex-basis:33%;max-width:27rem}@media screen and (max-height: 640px){section.hero.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{top:1rem}section.slideshow.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{top:8rem}section.slideshow.svelte-qaixxv figure.svelte-qaixxv.svelte-qaixxv{max-height:calc(100vh - 10rem)}}@media screen and (max-width: 768px){main.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{overflow-x:hidden;overflow-y:scroll}section.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{height:auto !important;padding:0 2rem}section.hero.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:relative;justify-content:center;align-items:start;text-align:left;padding:0 2rem;margin-bottom:12vh}section.hero2.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{margin-top:0rem}section.hero.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{font-size:22vw;letter-spacing:-0.05em}section.hero.svelte-qaixxv p.svelte-qaixxv.svelte-qaixxv{max-width:fit-content;font-size:8.2vw}section.slideshow.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{position:relative;top:auto;margin:2rem 0}section.slideshow.svelte-qaixxv figure.svelte-qaixxv.svelte-qaixxv,section.slideshow.svelte-qaixxv img.spacer.svelte-qaixxv.svelte-qaixxv{width:calc(100vw - 4rem);left:2rem}section.slideshow.svelte-qaixxv figure.faded.svelte-qaixxv.svelte-qaixxv{mask-image:none !important;-webkit-mask-image:none !important}section.feature.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{width:100vw;justify-content:center}section.feature.svelte-qaixxv aside.svelte-qaixxv.svelte-qaixxv{max-width:100%}section.feature.svelte-qaixxv .slideshow.svelte-qaixxv figure.svelte-qaixxv{left:0rem !important}section.feature.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{font-size:15vw;margin-bottom:0.5rem}section.feature.svelte-qaixxv p.svelte-qaixxv.svelte-qaixxv{font-size:min(6vw, 2.8vh)}section.outro.svelte-qaixxv h2.svelte-qaixxv.svelte-qaixxv{max-width:100vw}section.outro.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv{padding:0 2rem}section.outro.svelte-qaixxv.svelte-qaixxv.svelte-qaixxv:last-of-type{padding-bottom:2rem}section.outro.svelte-qaixxv:last-of-type p.svelte-qaixxv.svelte-qaixxv{max-width:100vw}section.outro.svelte-qaixxv .horizontalList.svelte-qaixxv.svelte-qaixxv{flex-direction:column;gap:4rem}section.outro.svelte-qaixxv .horizontalList li.svelte-qaixxv.svelte-qaixxv{flex-basis:100%;max-width:100%}}')}function c6(t,e,n){const r=t.slice();return r[37]=e[n],r}function f6(t,e,n){const r=t.slice();return r[37]=e[n],r}function d6(t,e,n){const r=t.slice();return r[37]=e[n],r}function h6(t,e,n){const r=t.slice();return r[37]=e[n],r}function p6(t,e,n){const r=t.slice();return r[46]=e[n],r}function m6(t,e,n){const r=t.slice();return r[37]=e[n],r}function g6(t){let e,n,r;return{c(){e=C("link"),n=N(),r=C("link"),w(e,"rel","preload"),w(e,"as","image"),w(e,"href",t[37].daySrc),w(r,"rel","preload"),w(r,"as","image"),w(r,"href",t[37].nightSrc)},m(i,s){O(i,e,s),O(i,n,s),O(i,r,s)},p:Ee,d(i){i&&(I(e),I(n),I(r))}}}function v6(t){let e,n=Ut(t[46]),r=[];for(let i=0;i<n.length;i+=1)r[i]=g6(m6(t,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=Pt()},m(i,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(i,s);O(i,e,s)},p(i,s){if(s[0]&2048){n=Ut(i[46]);let o;for(o=0;o<n.length;o+=1){const a=m6(i,n,o);r[o]?r[o].p(a,s):(r[o]=g6(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(i){i&&I(e),Ci(r,i)}}}function b6(t){let e,n,r,i,s,o,a,u;return{c(){e=C("div"),n=C("button"),n.textContent="Ã",r=N(),i=C("button"),s=N(),o=C("button"),w(n,"class","svelte-qaixxv"),w(e,"class","closeSlideshowButton svelte-qaixxv"),w(i,"class","nextSlideOverlay svelte-qaixxv"),w(o,"class","prevSlideOverlay svelte-qaixxv")},m(l,c){O(l,e,c),v(e,n),O(l,r,c),O(l,i,c),O(l,s,c),O(l,o,c),a||(u=[Ie(n,"click",t[13]),Ie(i,"click",t[14]),Ie(o,"click",t[15])],a=!0)},p:Ee,d(l){l&&(I(e),I(r),I(i),I(s),I(o)),a=!1,fn(u)}}}function lQ(t){let e;return{c(){e=C("p"),e.textContent=`Create dedicated places for your interests, collect relevant ideas and discover how they 958 come together in meaningful new ways.`,w(e,"class","svelte-qaixxv")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function _6(t){let e,n=[],r=new Map,i,s,o,a,u=Ut([t[11][t[2]][t[1]]]);const l=c=>c[1];for(let c=0;c<1;c+=1){let d=h6(t,u,c),h=l(d);r.set(h,n[c]=y6(h,d))}return{c(){e=C("div");for(let c=0;c<1;c+=1)n[c].c();w(e,"class","svelte-qaixxv")},m(c,d){O(c,e,d);for(let h=0;h<1;h+=1)n[h]&&n[h].m(e,null);s=!0,o||(a=Ie(e,"click",t[17]),o=!0)},p(c,d){d[0]&2566&&(u=Ut([c[11][c[2]][c[1]]]),$e(),n=fo(n,d,l,1,c,u,r,e,co,y6,null,h6),Ce())},i(c){if(!s){for(let d=0;d<1;d+=1)E(n[d]);c&&Xn(()=>{s&&(i||(i=Zn(e,Sr,{},!0)),i.run(1))}),s=!0}},o(c){for(let d=0;d<1;d+=1)T(n[d]);c&&(i||(i=Zn(e,Sr,{},!1)),i.run(0)),s=!1},d(c){c&&I(e);for(let d=0;d<1;d+=1)n[d].d();c&&i&&i.end(),o=!1,a()}}}function y6(t,e){let n,r,i,s,o,a,u;return{key:t,first:null,c(){n=C("figure"),r=C("img"),a=N(),Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc)||w(r,"src",i),w(r,"alt",s=e[37].imgAlt),w(r,"class","svelte-qaixxv"),w(n,"class","svelte-qaixxv"),ve(n,"faded",e[37].faded),ve(n,"slightlyFaded",e[37].slightlyFaded),this.first=n},m(l,c){O(l,n,c),v(n,r),v(n,a),u=!0},p(l,c){e=l,(!u||c[0]&518&&!Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc))&&w(r,"src",i),(!u||c[0]&6&&s!==(s=e[37].imgAlt))&&w(r,"alt",s),(!u||c[0]&2054)&&ve(n,"faded",e[37].faded),(!u||c[0]&2054)&&ve(n,"slightlyFaded",e[37].slightlyFaded)},i(l){u||(l&&Xn(()=>{u&&(o||(o=Zn(r,Sr,{},!0)),o.run(1))}),u=!0)},o(l){l&&(o||(o=Zn(r,Sr,{},!1)),o.run(0)),u=!1},d(l){l&&I(n),l&&o&&o.end()}}}function cQ(t){let e;return{c(){e=C("section"),e.innerHTML=`<p class="svelte-qaixxv">Create dedicated places for your interests, collect relevant ideas and discover how they
959 come together in meaningful new ways.</p>`,w(e,"class","hero hero2 svelte-qaixxv")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function fQ(t){let e,n,r,i,s,o=t[2]<4&&w6(t);return{c(){e=C("section"),o&&o.c(),n=N(),r=C("img"),w(r,"class","spacer svelte-qaixxv"),w(r,"alt","Spacer element"),Mn(r.src,i=t[11][t[2]]&&t[11][t[2]][t[1]]?t[11][t[2]][t[1]].nightSrc:t[12].daySrc)||w(r,"src",i),w(e,"class","slideshow svelte-qaixxv")},m(a,u){O(a,e,u),o&&o.m(e,null),v(e,n),v(e,r),s=!0},p(a,u){a[2]<4?o?(o.p(a,u),u[0]&4&&E(o,1)):(o=w6(a),o.c(),E(o,1),o.m(e,n)):o&&($e(),T(o,1,1,()=>{o=null}),Ce()),(!s||u[0]&6&&!Mn(r.src,i=a[11][a[2]]&&a[11][a[2]][a[1]]?a[11][a[2]][a[1]].nightSrc:a[12].daySrc))&&w(r,"src",i)},i(a){s||(E(o),s=!0)},o(a){T(o),s=!1},d(a){a&&I(e),o&&o.d()}}}function w6(t){let e,n=[],r=new Map,i,s=Ut([t[11][t[2]][t[1]]]);const o=a=>a[1];for(let a=0;a<1;a+=1){let u=d6(t,s,a),l=o(u);r.set(l,n[a]=E6(l,u))}return{c(){e=C("div");for(let a=0;a<1;a+=1)n[a].c()},m(a,u){O(a,e,u);for(let l=0;l<1;l+=1)n[l]&&n[l].m(e,null);i=!0},p(a,u){u[0]&2566&&(s=Ut([a[11][a[2]][a[1]]]),$e(),n=fo(n,u,o,1,a,s,r,e,co,E6,null,d6),Ce())},i(a){if(!i){for(let u=0;u<1;u+=1)E(n[u]);i=!0}},o(a){for(let u=0;u<1;u+=1)T(n[u]);i=!1},d(a){a&&I(e);for(let u=0;u<1;u+=1)n[u].d()}}}function E6(t,e){let n,r,i,s,o,a,u;return{key:t,first:null,c(){n=C("figure"),r=C("img"),a=N(),Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc)||w(r,"src",i),w(r,"alt",s=e[37].imgAlt),w(r,"class","svelte-qaixxv"),w(n,"class","svelte-qaixxv"),this.first=n},m(l,c){O(l,n,c),v(n,r),v(n,a),u=!0},p(l,c){e=l,(!u||c[0]&518&&!Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc))&&w(r,"src",i),(!u||c[0]&6&&s!==(s=e[37].imgAlt))&&w(r,"alt",s)},i(l){u||(l&&Xn(()=>{u&&(o||(o=Zn(r,Sr,{},!0)),o.run(1))}),u=!0)},o(l){l&&(o||(o=Zn(r,Sr,{},!1)),o.run(0)),u=!1},d(l){l&&I(n),l&&o&&o.end()}}}function dQ(t){let e,n,r,i,s,o=t[2]<4&&k6(t);return{c(){e=C("section"),o&&o.c(),n=N(),r=C("img"),w(r,"class","spacer svelte-qaixxv"),w(r,"alt","Spacer element"),Mn(r.src,i=t[11][t[2]]&&t[11][t[2]][t[1]]?t[11][t[2]][t[1]].nightSrc:t[12].daySrc)||w(r,"src",i),w(e,"class","slideshow svelte-qaixxv")},m(a,u){O(a,e,u),o&&o.m(e,null),v(e,n),v(e,r),s=!0},p(a,u){a[2]<4?o?(o.p(a,u),u[0]&4&&E(o,1)):(o=k6(a),o.c(),E(o,1),o.m(e,n)):o&&($e(),T(o,1,1,()=>{o=null}),Ce()),(!s||u[0]&6&&!Mn(r.src,i=a[11][a[2]]&&a[11][a[2]][a[1]]?a[11][a[2]][a[1]].nightSrc:a[12].daySrc))&&w(r,"src",i)},i(a){s||(E(o),s=!0)},o(a){T(o),s=!1},d(a){a&&I(e),o&&o.d()}}}function k6(t){let e,n=[],r=new Map,i,s=Ut([t[11][t[2]][t[1]]]);const o=a=>a[1];for(let a=0;a<1;a+=1){let u=f6(t,s,a),l=o(u);r.set(l,n[a]=S6(l,u))}return{c(){e=C("div");for(let a=0;a<1;a+=1)n[a].c()},m(a,u){O(a,e,u);for(let l=0;l<1;l+=1)n[l]&&n[l].m(e,null);i=!0},p(a,u){u[0]&2566&&(s=Ut([a[11][a[2]][a[1]]]),$e(),n=fo(n,u,o,1,a,s,r,e,co,S6,null,f6),Ce())},i(a){if(!i){for(let u=0;u<1;u+=1)E(n[u]);i=!0}},o(a){for(let u=0;u<1;u+=1)T(n[u]);i=!1},d(a){a&&I(e);for(let u=0;u<1;u+=1)n[u].d()}}}function S6(t,e){let n,r,i,s,o,a,u;return{key:t,first:null,c(){n=C("figure"),r=C("img"),a=N(),Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc)||w(r,"src",i),w(r,"alt",s=e[37].imgAlt),w(r,"class","svelte-qaixxv"),w(n,"class","svelte-qaixxv"),this.first=n},m(l,c){O(l,n,c),v(n,r),v(n,a),u=!0},p(l,c){e=l,(!u||c[0]&518&&!Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc))&&w(r,"src",i),(!u||c[0]&6&&s!==(s=e[37].imgAlt))&&w(r,"alt",s)},i(l){u||(l&&Xn(()=>{u&&(o||(o=Zn(r,Sr,{},!0)),o.run(1))}),u=!0)},o(l){l&&(o||(o=Zn(r,Sr,{},!1)),o.run(0)),u=!1},d(l){l&&I(n),l&&o&&o.end()}}}function hQ(t){let e,n,r,i,s,o=t[2]<4&&T6(t);return{c(){e=C("section"),o&&o.c(),n=N(),r=C("img"),w(r,"class","spacer svelte-qaixxv"),w(r,"alt","Spacer element"),Mn(r.src,i=t[11][t[2]]&&t[11][t[2]][t[1]]?t[11][t[2]][t[1]].nightSrc:t[12].daySrc)||w(r,"src",i),w(e,"class","slideshow svelte-qaixxv")},m(a,u){O(a,e,u),o&&o.m(e,null),v(e,n),v(e,r),s=!0},p(a,u){a[2]<4?o?(o.p(a,u),u[0]&4&&E(o,1)):(o=T6(a),o.c(),E(o,1),o.m(e,n)):o&&($e(),T(o,1,1,()=>{o=null}),Ce()),(!s||u[0]&6&&!Mn(r.src,i=a[11][a[2]]&&a[11][a[2]][a[1]]?a[11][a[2]][a[1]].nightSrc:a[12].daySrc))&&w(r,"src",i)},i(a){s||(E(o),s=!0)},o(a){T(o),s=!1},d(a){a&&I(e),o&&o.d()}}}function T6(t){let e,n=[],r=new Map,i,s=Ut([t[11][t[2]][t[1]]]);const o=a=>a[1];for(let a=0;a<1;a+=1){let u=c6(t,s,a),l=o(u);r.set(l,n[a]=$6(l,u))}return{c(){e=C("div");for(let a=0;a<1;a+=1)n[a].c()},m(a,u){O(a,e,u);for(let l=0;l<1;l+=1)n[l]&&n[l].m(e,null);i=!0},p(a,u){u[0]&2566&&(s=Ut([a[11][a[2]][a[1]]]),$e(),n=fo(n,u,o,1,a,s,r,e,co,$6,null,c6),Ce())},i(a){if(!i){for(let u=0;u<1;u+=1)E(n[u]);i=!0}},o(a){for(let u=0;u<1;u+=1)T(n[u]);i=!1},d(a){a&&I(e);for(let u=0;u<1;u+=1)n[u].d()}}}function $6(t,e){let n,r,i,s,o,a,u;return{key:t,first:null,c(){n=C("figure"),r=C("img"),a=N(),Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc)||w(r,"src",i),w(r,"alt",s=e[37].imgAlt),w(r,"class","svelte-qaixxv"),w(n,"class","svelte-qaixxv"),this.first=n},m(l,c){O(l,n,c),v(n,r),v(n,a),u=!0},p(l,c){e=l,(!u||c[0]&518&&!Mn(r.src,i=e[9].darkMode?e[37].nightSrc:e[37].daySrc))&&w(r,"src",i),(!u||c[0]&6&&s!==(s=e[37].imgAlt))&&w(r,"alt",s)},i(l){u||(l&&Xn(()=>{u&&(o||(o=Zn(r,Sr,{},!0)),o.run(1))}),u=!0)},o(l){l&&(o||(o=Zn(r,Sr,{},!1)),o.run(0)),u=!1},d(l){l&&I(n),l&&o&&o.end()}}}function pQ(t){let e;return{c(){e=oe("Create your account now")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function mQ(t){let e=!1,n=()=>{e=!1},r,i,s,o,a,u,l,c,d,h,m,g=(t[8]||"curiosity")+"",k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe,Be,it,mt,Ct,ft,It,Tt,_t,gt,ce,pe,st,vn,Tn,bn,kn,$n,qt,Rn,Hn;Xn(t[19]);let Sn=Ut(t[11]),Zt=[];for(let ze=0;ze<Sn.length;ze+=1)Zt[ze]=v6(p6(t,Sn,ze));a=new Di({props:{navFaded:t[6],opaque:t[10]}});let be=t[7]&&b6(t),tt=!t[10]&&lQ(),St=t[2]<4&&_6(t),an=t[10]&&cQ(),rn=t[10]&&fQ(t),Mt=t[10]&&dQ(t),Gt=t[10]&&hQ(t);return pe=new We({props:{href:"/sign-up",$$slots:{default:[pQ]},$$scope:{ctx:t}}}),vn=new bc({}),bn=new go({props:{animate:!0,horizon:"82.5%",visible:t[2]>=5}}),$n=new Ii({}),{c(){for(let ze=0;ze<Zt.length;ze+=1)Zt[ze].c();i=Pt(),s=N(),o=C("main"),j(a.$$.fragment),u=N(),be&&be.c(),l=N(),c=C("section"),d=C("h2"),h=oe("Make place for "),m=C("span"),k=oe(g),y=N(),tt&&tt.c(),b=N(),S=C("section"),St&&St.c(),$=N(),D=C("img"),x=N(),an&&an.
959c(),R=N(),q=C("section"),F=C("aside"),L=C("h2"),L.textContent="Save ideas in dedicated places",M=N(),rn&&rn.c(),V=N(),H=C("p"),J=C("a"),J.textContent="Send URLs, images, and text",Z=oe(` 960 to your places using a simple browser extension.`),Q=N(),K=C("p"),G=C("a"),G.textContent="Store relevant finds in the drawer",se=oe(` 961 until you decide where to place them. 962 `),fe=C("a"),fe.textContent="Transfer them onto the wall or into documents,",me=oe(` 963 reframing them as you go.`),Ae=N(),ee=C("section"),ue=C("aside"),ie=C("h2"),ie.textContent="Explore with context-aware AI",de=N(),Mt&&Mt.c(),Fe=N(),Ve=C("p"),Te=C("a"),Te.textContent="Chat with AI assistant as a thought partner.",we=N(),je=C("a"),je.textContent="Manage simultaneous conversations,",Je=N(),Ne=C("a"),Ne.textContent="pin valuable insights, and compare them side-by-side.",Ge=oe(` 964 All of which will inform the assistant about what's important to you.`),nt=N(),rt=C("section"),Ze=C("aside"),at=C("h2"),at.textContent="Bring ideas together in new ways",bt=N(),Gt&&Gt.c(),he=N(),Pe=C("p"),Se=oe(`Compile and 965 `),Le=C("a"),Le.textContent="organize information into comprehensive documents",te=oe(` 966 within your spaces, creating cohesive narratives that express your unique perspective. 967 `),X=C("a"),X.textContent="Work on multiple documents simultaneously.",ye=oe(` 968 Build your own library.`),Xe=N(),Be=C("section"),Be.innerHTML='<h2 class="svelte-qaixxv">Together with friends, shared with the world, or just for yourself.</h2> <ul class="horizontalList svelte-qaixxv"><li class="svelte-qaixxv"><h3 class="svelte-qaixxv">Invite friends,<br/>create together</h3> <p class="small svelte-qaixxv">Work on group projects, explore shared interests, develop your hobbies...</p> <p class="small svelte-qaixxv">Share a place for holding onto things you enjoy together.</p></li> <li class="svelte-qaixxv"><h3 class="svelte-qaixxv">Connect your<br/>Telegram groups*</h3> <p class="small svelte-qaixxv">Feed messages into your places. Pin, organize and reflect on them together.</p> <p class="small svelte-qaixxv">Don't let your conversations fade into endless timelines.</p> <p class="small svelte-qaixxv">* Experimental feature</p></li> <li class="svelte-qaixxv"><h3 class="svelte-qaixxv">Private first,<br/>public last</h3> <p class="small svelte-qaixxv">Keep your places private to you and your collaborators.</p> <p class="small svelte-qaixxv">Share a read-only version with anyone through a secret url.</p></li></ul>',it=N(),mt=C("section"),Ct=C("h2"),Ct.textContent="Try now for free",ft=N(),It=C("p"),It.textContent=`No time limits, no credit card required. Just sign up and start collecting and organizing your 969 thoughts, inspiration, and projects in one convenient place.`,Tt=N(),_t=C("div"),gt=C("br"),ce=N(),j(pe.$$.fragment),st=N(),j(vn.$$.fragment),Tn=N(),j(bn.$$.fragment),kn=N(),j($n.$$.fragment),w(m,"class","underlined svelte-qaixxv"),w(d,"class","svelte-qaixxv"),w(c,"class","hero svelte-qaixxv"),ve(c,"isPinned",t[5]&&!t[10]),ve(c,"isMobile",t[10]),ve(c,"hidden",t[2]!=0&&!t[10]),w(D,"class","spacer svelte-qaixxv"),w(D,"alt","Spacer element"),Mn(D.src,P=t[11][t[2]]&&t[11][t[2]][t[1]]?t[11][t[2]][t[1]].nightSrc:t[12].daySrc)||w(D,"src",P),w(S,"class","slideshow svelte-qaixxv"),ve(S,"isAside",t[2]>0&&!t[10]),ve(S,"slideshowZoomed",t[7]),w(L,"class","svelte-qaixxv"),w(J,"href","#1-0"),w(J,"class","svelte-qaixxv"),ve(J,"underlined",t[2]===1&&t[1]<3),w(H,"class","svelte-qaixxv"),w(G,"href","#1-3"),w(G,"class","svelte-qaixxv"),ve(G,"underlined",t[2]===1&&(t[1]===3||t[1]===4)),w(fe,"href","#1-5"),w(fe,"class","svelte-qaixxv"),ve(fe,"underlined",t[2]===1&&t[1]>4),w(K,"class","svelte-qaixxv"),w(F,"class","svelte-qaixxv"),w(q,"class","feature svelte-qaixxv"),w(ie,"class","svelte-qaixxv"),w(Te,"href","#1-0"),w(Te,"class","svelte-qaixxv"),ve(Te,"underlined",t[2]===2&&t[1]<2),w(je,"href","#1-0"),w(je,"class","svelte-qaixxv"),ve(je,"underlined",t[2]===2&&(t[1]===2||t[1]===3)),w(Ne,"href","#1-0"),w(Ne,"class","svelte-qaixxv"),ve(Ne,"underlined",t[2]===2&&t[1]>3),w(Ve,"class","svelte-qaixxv"),w(ue,"class","svelte-qaixxv"),w(ee,"class","feature svelte-qaixxv"),w(at,"class","svelte-qaixxv"),w(Le,"href","#1-0"),w(Le,"class","svelte-qaixxv"),ve(Le,"underlined",t[2]===3&&t[1]<2),w(X,"href","#1-0"),w(X,"class","svelte-qaixxv"),ve(X,"underlined",t[2]===3&&t[1]===2),w(Pe,"class","svelte-qaixxv"),w(Ze,"class","svelte-qaixxv"),w(rt,"class","feature svelte-qaixxv"),w(Be,"class","outro svelte-qaixxv"),w(Ct,"class","svelte-qaixxv"),w(It,"class","svelte-qaixxv"),w(mt,"class","outro svelte-qaixxv"),w(o,"class","svelte-qaixxv")},m(ze,Vt){for(let pn=0;pn<Zt.length;pn+=1)Zt[pn]&&Zt[pn].m(l6.head,null);v(l6.head,i),O(ze,s,Vt),O(ze,o,Vt),B(a,o,null),v(o,u),be&&be.m(o,null),v(o,l),v(o,c),v(c,d),v(d,h),v(d,m),v(m,k),v(c,y),tt&&tt.m(c,null),t[20](c),v(o,b),v(o,S),St&&St.m(S,null),v(S,$),v(S,D),v(o,x),an&&an.m(o,null),v(o,R),v(o,q),v(q,F),v(F,L),v(F,M),rn&&rn.m(F,null),v(F,V),v(F,H),v(H,J),v(H,Z),v(F,Q),v(F,K),v(K,G),v(K,se),v(K,fe),v(K,me),v(o,Ae),v(o,ee),v(ee,ue),v(ue,ie),v(ue,de),Mt&&Mt.m(ue,null),v(ue,Fe),v(ue,Ve),v(Ve,Te),v(Ve,we),v(Ve,je),v(Ve,Je),v(Ve,Ne),v(Ve,Ge),v(o,nt),v(o,rt),v(rt,Ze),v(Ze,at),v(Ze,bt),Gt&&Gt.m(Ze,null),v(Ze,he),v(Ze,Pe),v(Pe,Se),v(Pe,Le),v(Pe,te),v(Pe,X),v(Pe,ye),v(o,Xe),v(o,Be),v(o,it),v(o,mt),v(mt,Ct),v(mt,ft),v(mt,It),v(mt,Tt),v(mt,_t),v(_t,gt),v(_t,ce),B(pe,_t,null),v(o,st),B(vn,o,null),v(o,Tn),B(bn,o,null),v(o,kn),B($n,o,null),t[21](o),qt=!0,Rn||(Hn=[Ie(Bv,"scroll",()=>{e=!0,clearTimeout(r),r=setTimeout(n,100),t[19]()}),Ie(J,"click",Lr(t[16](1,0))),Ie(G,"click",Lr(t[16](1,3))),Ie(fe,"click",Lr(t[16](1,5))),Ie(Te,"click",Lr(t[16](2,0))),Ie(je,"click",Lr(t[16](2,2))),Ie(Ne,"click",Lr(t[16](2,4))),Ie(Le,"click",Lr(t[16](3,0))),Ie(X,"click",Lr(t[16](3,2)))],Rn=!0)},p(ze,Vt){if(Vt[0]&1&&!e&&(e=!0,clearTimeout(r),scrollTo(Bv.pageXOffset,ze[0]),r=setTimeout(n,100)),Vt[0]&2048){Sn=Ut(ze[11]);let mn;for(mn=0;mn<Sn.length;mn+=1){const Gs=p6(ze,Sn,mn);Zt[mn]?Zt[mn].p(Gs,Vt):(Zt[mn]=v6(Gs),Zt[mn].c(),Zt[mn].m(i.parentNode,i))}for(;mn<Zt.length;mn+=1)Zt[mn].d(1);Zt.length=Sn.length}const pn={};Vt[0]&64&&(pn.navFaded=ze[6]),a.$set(pn),ze[7]?be?be.p(ze,Vt):(be=b6(ze),be.c(),be.m(o,l)):be&&(be.d(1),be=null),(!qt||Vt[0]&256)&&g!==(g=(ze[8]||"curiosity")+"")&&Wt(k,g),(!qt||Vt[0]&1056)&&ve(c,"isPinned",ze[5]&&!ze[10]),(!qt||Vt[0]&1028)&&ve(c,"hidden",ze[2]!=0&&!ze[10]),ze[2]<4?St?(St.p(ze,Vt),Vt[0]&4&&E(St,1)):(St=_6(ze),St.c(),E(St,1),St.m(S,$)):St&&($e(),T(St,1,1,()=>{St=null}),Ce()),(!qt||Vt[0]&6&&!Mn(D.src,P=ze[11][ze[2]]&&ze[11][ze[2]][ze[1]]?ze[11][ze[2]][ze[1]].nightSrc:ze[12].daySrc))&&w(D,"src",P),(!qt||Vt[0]&1028)&&ve(S,"isAside",ze[2]>0&&!ze[10]),(!qt||Vt[0]&128)&&ve(S,"slideshowZoomed",ze[7]),ze[10]&&rn.p(ze,Vt),(!qt||Vt[0]&6)&&ve(J,"underlined",ze[2]===1&&ze[1]<3),(!qt||Vt[0]&6)&&ve(G,"underlined",ze[2]===1&&(ze[1]===3||ze[1]===4)),(!qt||Vt[0]&6)&&ve(fe,"underlined",ze[2]===1&&ze[1]>4),ze[10]&&Mt.p(ze,Vt),(!qt||Vt[0]&6)&&ve(Te,"underlined",ze[2]===2&&ze[1]<2),(!qt||Vt[0]&6)&&ve(je,"underlined",ze[2]===2&&(ze[1]===2||ze[1]===3)),(!qt||Vt[0]&6)&&ve(Ne,"underlined",ze[2]===2&&ze[1]>3),ze[10]&&Gt.p(ze,Vt),(!qt||Vt[0]&6)&&ve(Le,"underlined",ze[2]===3&&ze[1]<2),(!qt||Vt[0]&6)&&ve(X,"underlined",ze[2]===3&&ze[1]===2);const Vn={};
969Vt[1]&1048576&&(Vn.$$scope={dirty:Vt,ctx:ze}),pe.$set(Vn);const vt={};Vt[0]&4&&(vt.visible=ze[2]>=5),bn.$set(vt)},i(ze){qt||(E(a.$$.fragment,ze),E(St),E(rn),E(Mt),E(Gt),E(pe.$$.fragment,ze),E(vn.$$.fragment,ze),E(bn.$$.fragment,ze),E($n.$$.fragment,ze),qt=!0)},o(ze){T(a.$$.fragment,ze),T(St),T(rn),T(Mt),T(Gt),T(pe.$$.fragment,ze),T(vn.$$.fragment,ze),T(bn.$$.fragment,ze),T($n.$$.fragment,ze),qt=!1},d(ze){ze&&(I(s),I(o)),Ci(Zt,ze),I(i),z(a),be&&be.d(),tt&&tt.d(),t[20](null),St&&St.d(),an&&an.d(),rn&&rn.d(),Mt&&Mt.d(),Gt&&Gt.d(),z(pe),z(vn),z(bn),z($n),t[21](null),Rn=!1,fn(Hn)}}}function gQ(t,e,n){let r,i,s;Ke(t,ji,ue=>n(9,s=ue));let o=!0,a=0,u=window.innerHeight/3.5,l,c=3e3,d=0,h=!1,m,g,k,y,b=!1;const S=window.innerWidth<768;S&&(u=window.innerHeight/6);const $=[[{title:"hobbies",daySrc:"/places/hero/hyperplace-cycling-day.jpg",nightSrc:"/places/hero/hyperplace-cycling-night.jpg",imgAlt:"Screenshot of a Hyperplace showing pieces of a summer cycling kit along with resources",dayBgColor:"#F6E9E9",nightBgColor:"#170807",dayUnderlineColor:"#F08888",nightUnderlineColor:"#9C4540",speed:3e3,faded:!1},{title:"projects",daySrc:"/places/hero/hyperplace-project-day.jpg",nightSrc:"/places/hero/hyperplace-project-night.jpg",imgAlt:"Screenshot of a Hyperplace showing customer journey map and several project documentation plans",dayBgColor:"#EAE8F7",nightBgColor:"#09081C",dayUnderlineColor:"#718EEA",nightUnderlineColor:"#403AA6"},{title:"creativity",daySrc:"/places/hero/hyperplace-art-day.jpg",nightSrc:"/places/hero/hyperplace-art-night.jpg",imgAlt:"Screenshot of a Hyperplace with artist Caspar David Friedrich's paintings and concepts around his work",dayBgColor:"#F8F1E8",nightBgColor:"#1D1407",dayUnderlineColor:"#E4A95C",nightUnderlineColor:"#A67936"},{title:"learning",daySrc:"/places/hero/hyperplace-study-day.jpg",nightSrc:"/places/hero/hyperplace-study-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#EDF5F8",nightBgColor:"#04161A",dayUnderlineColor:"#7FC1D3",nightUnderlineColor:"#107695"},{title:"insight",daySrc:"/places/hero/hyperplace-annotate-day.jpg",nightSrc:"/places/hero/hyperplace-annotate-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#F5EBF4",nightBgColor:"#160D16",dayUnderlineColor:"#C279BC",nightUnderlineColor:"#765174"},{title:"curiosity",daySrc:"/places/hero/hyperplace-concept-day.jpg",nightSrc:"/places/hero/hyperplace-concept-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#EDEEF8",nightBgColor:"#0C0E1D",dayUnderlineColor:"#8C97D5",nightUnderlineColor:"#3843A5"},{title:"discovery",daySrc:"/places/hero/hyperplace-journey-day.jpg",nightSrc:"/places/hero/hyperplace-journey-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#F8F1E7",nightBgColor:"#1B1204",dayUnderlineColor:"#E9A550",nightUnderlineColor:"#764C10"}],[{title:"",daySrc:"/places/feature-1/scene-1-1-tokyo-national-museum-day.jpg",nightSrc:"/places/feature-1/scene-1-1-tokyo-national-museum-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#EFF8E8",nightBgColor:"#0C180E",dayUnderlineColor:"#69C950",nightUnderlineColor:"#316E21",faded:!0,speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-2-tokyo-national-museum-day.jpg",nightSrc:"/places/feature-1/scene-1-2-tokyo-national-museum-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#EFF8E8",nightBgColor:"#0C180E",dayUnderlineColor:"#69C950",nightUnderlineColor:"#316E21",faded:!0,speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-3-tokyo-national-museum-day.jpg",nightSrc:"/places/feature-1/scene-1-3-tokyo-national-museum-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#EFF8E8",nightBgColor:"#0C180E",dayUnderlineColor:"#69C950",nightUnderlineColor:"#316E21",faded:!0,speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-4-japan-day.jpg",nightSrc:"/places/feature-1/scene-1-4-japan-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#FCEBE8",nightBgColor:"#1F0600",dayUnderlineColor:"#FB674E",nightUnderlineColor:"#B22E0C",speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-5-japan-day.jpg",nightSrc:"/places/feature-1/scene-1-5-japan-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#FCEBE8",nightBgColor:"#1F0600",dayUnderlineColor:"#FB674E",nightUnderlineColor:"#B22E0C",speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-6-japan-day.jpg",nightSrc:"/places/feature-1/scene-1-6-japan-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#FCEBE8",nightBgColor:"#1F0600",dayUnderlineColor:"#FB674E",nightUnderlineColor:"#B22E0C",speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-7-japan-day.jpg",nightSrc:"/places/feature-1/scene-1-7-japan-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#FCEBE8",nightBgColor:"#1F0600",dayUnderlineColor:"#FB674E",nightUnderlineColor:"#B22E0C",speed:1e3},{title:"",daySrc:"/places/feature-1/scene-1-8-japan-day.jpg",nightSrc:"/places/feature-1/scene-1-8-japan-night.jpg",imgAlt:"Screenshot of a Hyperplace",dayBgColor:"#FCEBE8",nightBgColor:"#1F0600",dayUnderlineColor:"#FB674E",nightUnderlineColor:"#B22E0C"}],[{title:"",daySrc:"/places/feature-2/guin-1-day.jpg",nightSrc:"/places/feature-2/guin-1-night.jpg",imgAlt:"Screenshot of a Hyperplace exploring Ursula K. Le Guin's work",dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0},{title:"",daySrc:"/places/feature-2/guin-2-day.jpg",nightSrc:"/places/feature-2/guin-2-night.jpg",imgAlt:"Screenshot of a Hyperplace exploring Ursula K. Le Guin's work",dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0},{title:"",daySrc:"/places/feature-2/guin-3-day.jpg",nightSrc:"/places/feature-2/guin-3-night.jpg",imgAlt:"Screenshot of a Hyperplace exploring Ursula K. Le Guin's work",dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0},{title:"",daySrc:"/places/feature-2/guin-4-day.jpg",nightSrc:"/places/feature-2/guin-4-night.jpg",imgAlt:"Screenshot of a Hyperplace exploring Ursula K. Le Guin's work",dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0},{title:"",daySrc:"/places/feature-2/guin-5-day.jpg",nightSrc:"/places/feature-2/guin-5-night.jpg",imgAlt:"Screenshot of a Hyperplace exploring Ursula K. Le Guin's work",dayBgColor:"#FAF0E6",nightBgColor:"#1C0E03",dayUnderlineColor:"#EE9236",nightUnderlineColor:"#D86912",slightlyFaded:!0}],[{title:"",daySrc:"/places/feature-3/hyperplace-documents-1-day.jpg",nightSrc:"/places/feature-3/hyperplace-documents-1-night.jpg",imgAlt:"Screenshot of a Hyperplace for a personal hobby",dayBgColor:"#EAE8F7",nightBgColor:"#09081C",dayUnderlineColor:"#718EEA",nightUnderlineColor:"#403AA6"},{title:"",daySrc:"/places/feature-3/hyperplace-documents-2-day.jpg",nightSrc:"/places/feature-3/hyperplace-documents-2-night.jpg",imgAlt:"An image of a hyperplace for a personal project",dayBgColor:"#F6E9E9",nightBgColor:"#170807",dayUnderlineColor:"#F08888",nightUnderlineColor:"#9
969C4540"},{title:"",daySrc:"/places/feature-3/hyperplace-documents-3-day.jpg",nightSrc:"/places/feature-3/hyperplace-documents-3-night.jpg",imgAlt:"An image of a hyperplace",dayBgColor:"#F8F1E8",nightBgColor:"#1D1407",dayUnderlineColor:"#E4A95C",nightUnderlineColor:"#A67936"}]],D=$[$.length-1][$[$.length-1].length-1];let P=!1;const x=()=>{n(6,P=!0)},R=()=>{n(6,P=!1)};let q=!1;const F=()=>{n(7,q=!1)},L=()=>{n(7,q=!0)},M=(ue=!1)=>{h&&!ue||(m&&window.clearInterval(m),m=window.setInterval(H,c),h=!0)},V=()=>{h&&(window.clearInterval(m),h=!1,o=!1)},H=()=>{r!==$.length&&(n(1,d=(d+1)%$[r].length),se(),fe())},J=()=>{V(),H()},Z=()=>{V(),n(1,d=(d-1+$[r].length)%$[r].length),se(),fe()},Q=(ue,ie)=>()=>{n(2,r=ue),n(1,d=ie),se(),fe()},K=()=>{n(1,d=0),se(),fe()},G=()=>{q||L()},se=()=>{if(!l||!$[r])return;let ue=$[r][d];const ie=document.querySelector("meta[name='theme-color']")||document.createElement("meta");ie.name="theme-color",document.getElementsByTagName("head")[0].appendChild(ie),s.darkMode?(l.style.setProperty("--bgColor",ue.nightBgColor),l.style.setProperty("--underlineColor",ue.nightUnderlineColor),ie.content=ue.nightBgColor):(l.style.setProperty("--bgColor",ue.dayBgColor),l.style.setProperty("--underlineColor",ue.dayUnderlineColor),ie.content=ue.dayBgColor)},fe=()=>{if(!$[r])return;let ue=$[r][d];ue.speed?c=ue.speed:c=3e3,o&&M(!0)};$r(()=>{se(),fe(),o&&M(),k=g.offsetTop,y=parseFloat(window.getComputedStyle(g).getPropertyValue("top")),n(5,b=k-a-y<=0||r>0)}),Va(()=>{g&&n(5,b=k-a-y<=0||r>0)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ue=>{se()});function me(){n(0,a=Bv.pageYOffset)}function Ae(ue){Qe[ue?"unshift":"push"](()=>{g=ue,n(4,g)})}function ee(ue){Qe[ue?"unshift":"push"](()=>{l=ue,n(3,l)})}return t.$$.update=()=>{t.$$.dirty[0]&262145&&n(2,r=Math.floor((window.innerHeight+a+u)/window.innerHeight)-1||0),t.$$.dirty[0]&4&&(r>=$.length?(V(),F()):M()),t.$$.dirty[0]&4&&K(),t.$$.dirty[0]&6&&n(8,i=$[r]&&$[r][d]?$[r][d].title:"curiosity"),t.$$.dirty[0]&6&&console.log("Scene:",r,"Slide:",d),t.$$.dirty[0]&1&&(a!=0?x():R())},[a,d,r,l,g,b,P,q,i,s,S,$,D,F,J,Z,Q,G,u,me,Ae,ee]}class vQ extends pt{constructor(e){super(),ht(this,e,gQ,mQ,dt,{},uQ,[-1,-1])}}const bQ=5*1e3;var Ho=(t=>(t.Error="ERROR",t.Info="INFO",t))(Ho||{});let _Q=0;const U_=nn([]),xu=t=>{const e=_Q+=1,n={...t,id:e,timestamp:new Date};U_.update(r=>[n,...r]),n.persistent||setTimeout(()=>{$$(n.id)},bQ)},$$=t=>{U_.update(e=>e.filter(n=>n.id===t?(n.onDismiss&&n.onDismiss(n),!1):!0))};window.addPrompt=xu;var C$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="puzzle-piece",r=512,i=512,s=[129513],o="f12e",a="M192 104.8c0-9.2-5.8-17.3-13.2-22.8C167.2 73.3 160 61.3 160 48c0-26.5 28.7-48 64-48s64 21.5 64 48c0 13.3-7.2 25.3-18.8 34c-7.4 5.5-13.2 13.6-13.2 22.8v0c0 12.8 10.4 23.2 23.2 23.2H336c26.5 0 48 21.5 48 48v56.8c0 12.8 10.4 23.2 23.2 23.2v0c9.2 0 17.3-5.8 22.8-13.2c8.7-11.6 20.7-18.8 34-18.8c26.5 0 48 28.7 48 64s-21.5 64-48 64c-13.3 0-25.3-7.2-34-18.8c-5.5-7.4-13.6-13.2-22.8-13.2v0c-12.8 0-23.2 10.4-23.2 23.2V464c0 26.5-21.5 48-48 48H279.2c-12.8 0-23.2-10.4-23.2-23.2v0c0-9.2 5.8-17.3 13.2-22.8c11.6-8.7 18.8-20.7 18.8-34c0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34c7.4 5.5 13.2 13.6 13.2 22.8v0c0 12.8-10.4 23.2-23.2 23.2H48c-26.5 0-48-21.5-48-48V343.2C0 330.4 10.4 320 23.2 320v0c9.2 0 17.3 5.8 22.8 13.2C54.7 344.8 66.7 352 80 352c26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8C40.5 250.2 32.4 256 23.2 256v0C10.4 256 0 245.6 0 232.8V176c0-26.5 21.5-48 48-48H168.8c12.8 0 23.2-10.4 23.2-23.2v0z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faPuzzlePiece=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(C$);const Yh=parseFloat;function zv(t,e=";"){let n;if(Array.isArray(t))n=t.filter(r=>r);else{n=[];for(const r in t)t[r]&&n.push(`${r}:${t[r]}`)}return n.join(e)}function yQ(t,e,n,r){let i,s;const o="1em";let a,u,l,c="-.125em";const d="visible";return r&&(l="center",s="1.25em"),n&&(i=n),e&&(e=="lg"?(u="1.33333em",a=".75em",c="-.225em"):e=="xs"?u=".75em":e=="sm"?u=".875em":u=e.replace("x","em")),zv([zv({float:i,width:s,height:o,"line-height":a,"font-size":u,"text-align":l,"vertical-align":c,"transform-origin":"center",overflow:d}),t])}function wQ(t,e,n,r,i,s=1,o="",a=""){let u=1,l=1;return i&&(i=="horizontal"?u=-1:i=="vertical"?l=-1:u=l=-1),zv([`translate(${Yh(e)*s}${o},${Yh(n)*s}${o})`,`scale(${u*Yh(t)},${l*Yh(t)})`,r&&`rotate(${r}${a})`]," ")}function EQ(t){Et(t,"svelte-xj8byo",".spin.svelte-xj8byo{animation:svelte-xj8byo-spin 2s 0s infinite linear}.pulse.svelte-xj8byo{animation:svelte-xj8byo-spin 1s infinite steps(8)}@keyframes svelte-xj8byo-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function C6(t){let e,n,r,i,s,o,a,u;
969function l(h,m){return typeof h[10][4]=="string"?SQ:kQ}let c=l(t),d=c(t);return{c(){e=wu("svg"),n=wu("g"),r=wu("g"),d.c(),w(r,"transform",t[12]),w(n,"transform",i="translate("+t[10][0]/2+" "+t[10][1]/2+")"),w(n,"transform-origin",s=t[10][0]/4+" 0"),w(e,"id",o=t[1]||void 0),w(e,"class",a="svelte-fa "+t[0]+" svelte-xj8byo"),w(e,"style",t[11]),w(e,"viewBox",u="0 0 "+t[10][0]+" "+t[10][1]),w(e,"aria-hidden","true"),w(e,"role","img"),w(e,"xmlns","http://www.w3.org/2000/svg"),ve(e,"pulse",t[4]),ve(e,"spin",t[3])},m(h,m){O(h,e,m),v(e,n),v(n,r),d.m(r,null)},p(h,m){c===(c=l(h))&&d?d.p(h,m):(d.d(1),d=c(h),d&&(d.c(),d.m(r,null))),m&4096&&w(r,"transform",h[12]),m&1024&&i!==(i="translate("+h[10][0]/2+" "+h[10][1]/2+")")&&w(n,"transform",i),m&1024&&s!==(s=h[10][0]/4+" 0")&&w(n,"transform-origin",s),m&2&&o!==(o=h[1]||void 0)&&w(e,"id",o),m&1&&a!==(a="svelte-fa "+h[0]+" svelte-xj8byo")&&w(e,"class",a),m&2048&&w(e,"style",h[11]),m&1024&&u!==(u="0 0 "+h[10][0]+" "+h[10][1])&&w(e,"viewBox",u),m&17&&ve(e,"pulse",h[4]),m&9&&ve(e,"spin",h[3])},d(h){h&&I(e),d.d()}}}function kQ(t){let e,n,r,i,s,o,a,u,l,c;return{c(){e=wu("path"),o=wu("path"),w(e,"d",n=t[10][4][0]),w(e,"fill",r=t[6]||t[2]||"currentColor"),w(e,"fill-opacity",i=t[9]!=!1?t[7]:t[8]),w(e,"transform",s="translate("+t[10][0]/-2+" "+t[10][1]/-2+")"),w(o,"d",a=t[10][4][1]),w(o,"fill",u=t[5]||t[2]||"currentColor"),w(o,"fill-opacity",l=t[9]!=!1?t[8]:t[7]),w(o,"transform",c="translate("+t[10][0]/-2+" "+t[10][1]/-2+")")},m(d,h){O(d,e,h),O(d,o,h)},p(d,h){h&1024&&n!==(n=d[10][4][0])&&w(e,"d",n),h&68&&r!==(r=d[6]||d[2]||"currentColor")&&w(e,"fill",r),h&896&&i!==(i=d[9]!=!1?d[7]:d[8])&&w(e,"fill-opacity",i),h&1024&&s!==(s="translate("+d[10][0]/-2+" "+d[10][1]/-2+")")&&w(e,"transform",s),h&1024&&a!==(a=d[10][4][1])&&w(o,"d",a),h&36&&u!==(u=d[5]||d[2]||"currentColor")&&w(o,"fill",u),h&896&&l!==(l=d[9]!=!1?d[8]:d[7])&&w(o,"fill-opacity",l),h&1024&&c!==(c="translate("+d[10][0]/-2+" "+d[10][1]/-2+")")&&w(o,"transform",c)},d(d){d&&(I(e),I(o))}}}function SQ(t){let e,n,r,i;return{c(){e=wu("path"),w(e,"d",n=t[10][4]),w(e,"fill",r=t[2]||t[5]||"currentColor"),w(e,"transform",i="translate("+t[10][0]/-2+" "+t[10][1]/-2+")")},m(s,o){O(s,e,o)},p(s,o){o&1024&&n!==(n=s[10][4])&&w(e,"d",n),o&36&&r!==(r=s[2]||s[5]||"currentColor")&&w(e,"fill",r),o&1024&&i!==(i="translate("+s[10][0]/-2+" "+s[10][1]/-2+")")&&w(e,"transform",i)},d(s){s&&I(e)}}}function TQ(t){let e,n=t[10][4]&&C6(t);return{c(){n&&n.c(),e=Pt()},m(r,i){n&&n.m(r,i),O(r,e,i)},p(r,[i]){r[10][4]?n?n.p(r,i):(n=C6(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Ee,o:Ee,d(r){r&&I(e),n&&n.d(r)}}}function $Q(t,e,n){let{class:r=""}=e,{id:i=""}=e,{style:s=""}=e,{icon:o}=e,{size:a=""}=e,{color:u=""}=e,{fw:l=!1}=e,{pull:c=""}=e,{scale:d=1}=e,{translateX:h=0}=e,{translateY:m=0}=e,{rotate:g=""}=e,{flip:k=!1}=e,{spin:y=!1}=e,{pulse:b=!1}=e,{primaryColor:S=""}=e,{secondaryColor:$=""}=e,{primaryOpacity:D=1}=e,{secondaryOpacity:P=.4}=e,{swapOpacity:x=!1}=e,R,q,F;return t.$$set=L=>{"class"in L&&n(0,r=L.class),"id"in L&&n(1,i=L.id),"style"in L&&n(13,s=L.style),"icon"in L&&n(14,o=L.icon),"size"in L&&n(15,a=L.size),"color"in L&&n(2,u=L.color),"fw"in L&&n(16,l=L.fw),"pull"in L&&n(17,c=L.pull),"scale"in L&&n(18,d=L.scale),"translateX"in L&&n(19,h=L.translateX),"translateY"in L&&n(20,m=L.translateY),"rotate"in L&&n(21,g=L.rotate),"flip"in L&&n(22,k=L.flip),"spin"in L&&n(3,y=L.spin),"pulse"in L&&n(4,b=L.pulse),"primaryColor"in L&&n(5,S=L.primaryColor),"secondaryColor"in L&&n(6,$=L.secondaryColor),"primaryOpacity"in L&&n(7,D=L.primaryOpacity),"secondaryOpacity"in L&&n(8,P=L.secondaryOpacity),"swapOpacity"in L&&n(9,x=L.swapOpacity)},t.$$.update=()=>{t.$$.dirty&16384&&n(10,R=o&&o.icon||[0,0,"",[],""]),t.$$.dirty&237568&&n(11,q=yQ(s,a,c,l)),t.$$.dirty&8126464&&n(12,F=wQ(d,h,m,g,k,512))},[r,i,u,y,b,S,$,D,P,x,R,q,F,s,o,a,l,c,d,h,m,g,k]}class et extends pt{constructor(e){super(),ht(this,e,$Q,TQ,dt,{class:0,id:1,style:13,icon:14,size:15,color:2,fw:16,pull:17,scale:18,translateX:19,translateY:20,rotate:21,flip:22,spin:3,pulse:4,primaryColor:5,secondaryColor:6,primaryOpacity:7,secondaryOpacity:8,swapOpacity:9},EQ)}}function CQ(t){Et(t,"svelte-1b0k4sq","p.svelte-1b0k4sq{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:var(--c-text-faded)}")}function AQ(t){let e;return{c(){e=oe("Loading...")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function DQ(t){let e,n;const r=t[1].default,i=hi(r,t,t[0],null),s=i||AQ();return{c(){e=C("p"),s&&s.c(),w(e,"class","svelte-1b0k4sq")},m(o,a){O(o,e,a),s&&s.m(e,null),n=!0},p(o,[a]){i&&i.p&&(!n||a&1)&&mi(i,r,o,o[0],n?pi(r,o[0],a,null):gi(o[0]),null)},i(o){n||(E(s,o),n=!0)},o(o){T(s,o),n=!1},d(o){o&&I(e),s&&s.d(o)}}}function IQ(t,e,n){let{$$slots:r={},$$scope:i}=e;return t.$$set=s=>{"$$scope"in s&&n(0,i=s.$$scope)},[i,r]}class pm extends pt{constructor(e){super(),ht(this,e,IQ,DQ,dt,{},CQ)}}var Ed={};
969(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="arrow-down",r=384,i=512,s=[8595],o="f063",a="M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faArrowDown=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(Ed);var kd={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="trash",r=448,i=512,s=[],o="f1f8",a="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faTrash=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(kd);const rf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,A$=new Set,OQ=(t,e,n,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},NQ=t=>!A$.has(t),ma=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),D$=t=>ma(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?qp:null:null;class qp extends Array{constructor(e){super(e),this.fill(0)}}var Ml;const mu=class mu{constructor(e,n){Jn(this,"heap");Jn(this,"length");if(!re(mu,Ml))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=D$(e);if(!n)return[];jt(mu,Ml,!0);const r=new mu(e,n);return jt(mu,Ml,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Ml=new WeakMap,tn(mu,Ml,!1);let jv=mu;var Rs,Ki,to,Ps,Bl,qr,xs,Fr,tr,Kt,Ei,Ji,li,Hr,qs,ni,xo,qo,Fs,no,Ca,xi,ud,Hv,bu,Fo,ld,es,z0,I$,_u,zl,cd,ro,ga,io,va,fd,Vv,jl,Fp,Ul,Lp,Yn,or,dd,Wv,yu,gf;const Gy=class Gy{constructor(e){tn(this,ud);tn(this,z0);tn(this,ro);tn(this,io);tn(this,fd);tn(this,jl);tn(this,Ul);tn(this,Yn);tn(this,dd);tn(this,yu);tn(this,Rs,void 0);tn(this,Ki,void 0);tn(this,to,void 0);tn(this,Ps,void 0);tn(this,Bl,void 0);Jn(this,"ttl");Jn(this,"ttlResolution");Jn(this,"ttlAutopurge");Jn(this,"updateAgeOnGet");Jn(this,"updateAgeOnHas");Jn(this,"allowStale");Jn(this,"noDisposeOnSet");Jn(this,"noUpdateTTL");Jn(this,"maxEntrySize");Jn(this,"sizeCalculation");Jn(this,"noDeleteOnFetchRejection");Jn(this,"noDeleteOnStaleGet");Jn(this,"allowStaleOnFetchAbort");Jn(this,"allowStaleOnFetchRejection");Jn(this,"ignoreFetchAbort");tn(this,qr,void 0);tn(this,xs,void 0);tn(this,Fr,void 0);tn(this,tr,void 0);tn(this,Kt,void 0);tn(this,Ei,void 0);tn(this,Ji,void 0);tn(this,li,void 0);tn(this,Hr,void 0);tn(this,qs,void 0);tn(this,ni,void 0);tn(this,xo,void 0);tn(this,qo,void 0);tn(this,Fs,void 0);tn(this,no,void 0);tn(this,Ca,void 0);tn(this,xi,void 0);tn(this,bu,()=>{});tn(this,Fo,()=>{});tn(this,ld,()=>{});tn(this,es,()=>!1);tn(this,_u,e=>{});tn(this,zl,(e,n,r)=>{});tn(this,cd,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:h,maxSize:m=0,maxEntrySize:g=0,sizeCalculation:k,fetchMethod:y,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:D,ignoreFetchAbort:P}=e;if(n!==0&&!ma(n))throw new TypeError("max option must be a nonnegative integer");const x=n?D$(n):Array;if(!x)throw new Error("invalid max value: "+n);if(jt(this,Rs,n),jt(this,Ki,m),this.maxEntrySize=g||re(this,Ki),this.sizeCalculation=k,this.sizeCalculation){if(!re(this,Ki)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(jt(this,Bl,y),jt(this,Ca,!!y),jt(this,Fr,new Map),jt(this,tr,new Array(n).fill(void 0)),jt(this,Kt,new Array(n).fill(void 0)),jt(this,Ei,new x(n)),jt(this,Ji,new x(n)),jt(this,li,0),jt(this,Hr,0),jt(this,qs,jv.create(n)),jt(this,qr,0),jt(this,xs,0),typeof l=="function"&&jt(this,to,l),typeof c=="function"?(jt(this,Ps,c),jt(this,ni,[])):(jt(this,Ps,void 0),jt(this,ni,void 0)),jt(this,no,!!re(this,to)),jt(this,xi,!!re(this,Ps)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(re(this,Ki)!==0&&!ma(re(this,Ki)))throw new TypeError("maxSize must be a positive integer if specified");if(!ma(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Rt(this,z0,I$).call(this)}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ma(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!ma(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Rt(this,ud,Hv).call(this)}if(re(this,Rs)===0&&this.ttl===0&&re(this,Ki)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!re(this,Rs)&&!re(this,Ki)){const R="LRU_CACHE_UNBOUNDED";NQ(R)&&(A$.add(R),OQ("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,Gy))}}static unsafeExposeInternals(e){return{starts:re(e,qo),ttls:re(e,Fs),sizes:re(e,xo),keyMap:re(e,Fr),keyList:re(e,tr),valList:re(e,Kt),next:re(e,Ei),prev:re(e,Ji),get head(){return re(e,li)},get tail(){return re(e,Hr)}
969,free:re(e,qs),isBackgroundFetch:n=>{var r;return Rt(r=e,Yn,or).call(r,n)},backgroundFetch:(n,r,i,s)=>{var o;return Rt(o=e,Ul,Lp).call(o,n,r,i,s)},moveToTail:n=>{var r;return Rt(r=e,yu,gf).call(r,n)},indexes:n=>{var r;return Rt(r=e,ro,ga).call(r,n)},rindexes:n=>{var r;return Rt(r=e,io,va).call(r,n)},isStale:n=>{var r;return re(r=e,es).call(r,n)}}}get max(){return re(this,Rs)}get maxSize(){return re(this,Ki)}get calculatedSize(){return re(this,xs)}get size(){return re(this,qr)}get fetchMethod(){return re(this,Bl)}get dispose(){return re(this,to)}get disposeAfter(){return re(this,Ps)}getRemainingTTL(e){return re(this,Fr).has(e)?1/0:0}*entries(){for(const e of Rt(this,ro,ga).call(this))re(this,Kt)[e]!==void 0&&re(this,tr)[e]!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield[re(this,tr)[e],re(this,Kt)[e]])}*rentries(){for(const e of Rt(this,io,va).call(this))re(this,Kt)[e]!==void 0&&re(this,tr)[e]!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield[re(this,tr)[e],re(this,Kt)[e]])}*keys(){for(const e of Rt(this,ro,ga).call(this)){const n=re(this,tr)[e];n!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield n)}}*rkeys(){for(const e of Rt(this,io,va).call(this)){const n=re(this,tr)[e];n!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield n)}}*values(){for(const e of Rt(this,ro,ga).call(this))re(this,Kt)[e]!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield re(this,Kt)[e])}*rvalues(){for(const e of Rt(this,io,va).call(this))re(this,Kt)[e]!==void 0&&!Rt(this,Yn,or).call(this,re(this,Kt)[e])&&(yield re(this,Kt)[e])}[Symbol.iterator](){return this.entries()}find(e,n={}){for(const r of Rt(this,ro,ga).call(this)){const i=re(this,Kt)[r],s=Rt(this,Yn,or).call(this,i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,re(this,tr)[r],this))return this.get(re(this,tr)[r],n)}}forEach(e,n=this){for(const r of Rt(this,ro,ga).call(this)){const i=re(this,Kt)[r],s=Rt(this,Yn,or).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,re(this,tr)[r],this)}}rforEach(e,n=this){for(const r of Rt(this,io,va).call(this)){const i=re(this,Kt)[r],s=Rt(this,Yn,or).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,re(this,tr)[r],this)}}purgeStale(){let e=!1;for(const n of Rt(this,io,va).call(this,{allowStale:!0}))re(this,es).call(this,n)&&(this.delete(re(this,tr)[n]),e=!0);return e}dump(){const e=[];for(const n of Rt(this,ro,ga).call(this,{allowStale:!0})){const r=re(this,tr)[n],i=re(this,Kt)[n],s=Rt(this,Yn,or).call(this,i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;const o={value:s};if(re(this,Fs)&&re(this,qo)){o.ttl=re(this,Fs)[n];const a=rf.now()-re(this,qo)[n];o.start=Math.floor(Date.now()-a)}re(this,xo)&&(o.size=re(this,xo)[n]),e.unshift([r,o])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=rf.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var h,m,g;const{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=r;let{noUpdateTTL:l=this.noUpdateTTL}=r;const c=re(this,cd).call(this,e,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(e),this;let d=re(this,qr)===0?void 0:re(this,Fr).get(e);if(d===void 0)d=re(this,qr)===0?re(this,Hr):re(this,qs).length!==0?re(this,qs).pop():re(this,qr)===re(this,Rs)?Rt(this,jl,Fp).call(this,!1):re(this,qr),re(this,tr)[d]=e,re(this,Kt)[d]=n,re(this,Fr).set(e,d),re(this,Ei)[re(this,Hr)]=d,re(this,Ji)[d]=re(this,Hr),jt(this,Hr,d),Mh(this,qr)._++,re(this,zl).call(this,d,c,u),u&&(u.set="add"),l=!1;else{Rt(this,yu,gf).call(this,d);const k=re(this,Kt)[d];if(n!==k){if(re(this,Ca)&&Rt(this,Yn,or).call(this,k)?k.__abortController.abort(new Error("replaced")):o||(re(this,no)&&((h=re(this,to))==null||h.call(this,k,e,"set")),re(this,xi)&&((m=re(this,ni))==null||m.push([k,e,"set"]))),re(this,_u).call(this,d),re(this,zl).call(this,d,c,u),re(this,Kt)[d]=n,u){u.set="replace";const y=k&&Rt(this,Yn,or).call(this,k)?k.__staleWhileFetching:k;y!==void 0&&(u.oldValue=y)}}else u&&(u.set="update")}if(i!==0&&!re(this,Fs)&&Rt(this,ud,Hv).call(this),re(this,Fs)&&(l||re(this,ld).call(this,d,i,s),u&&re(this,Fo).call(this,u,d)),!o&&re(this,xi)&&re(this,ni)){const k=re(this,ni);let y;for(;y=k==null?void 0:k.shift();)(g=re(this,Ps))==null||g.call(this,...y)}return this}pop(){var e;try{for(;re(this,qr);){const n=re(this,Kt)[re(this,li)];if(Rt(this,jl,Fp).call(this,!0),Rt(this,Yn,or).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(re(this,xi)&&re(this,ni)){const n=re(this,ni);let r;for(;r=n==null?void 0:n.shift();)(e=re(this,Ps))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,s=re(this,Fr).get(e);if(s!==void 0){const o=re(this,Kt)[s];if(Rt(this,Yn,or).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(re(this,es).call(this,s))i&&(i.has="stale",re(this,Fo).call(this,i,s));else return r&&re(this,bu).call(this,s),i&&(i.has="hit",re(this,Fo).call(this,i,s)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=re(this,Fr).get(e);if(i!==void 0&&(r||!re(this,es).call(this,i))){const s=re(this,Kt)[i];return Rt(this,Yn,or).call(this,s)?s.__staleWhileFetching:s}}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:k,forceRefresh:y=!1,status:b,signal:S}=n;if(!re(this,Ca))return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});const $={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:g,ignoreFetchAbort:m,status:b,signal:S};let D=re(this,Fr).get(e);if(D===void 0){b&&(b.fetch="miss");const P=Rt(this,Ul,Lp).call(this,e,D,$,k);return P.__returned=P}else{const P=re(this,Kt)[D];if(Rt(this,Yn,or).call(this,P)){const L=r&&P.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",L&&(b.returnedStale=!0)),L?P.__staleWhileFetching:P.__returned=P}const x=re(this,es).call(this,D);if(!y&&!x)return b&&(b.fetch="hit"),Rt(this,yu,gf).call(this,D),i&&re(this,bu).call(this,D),b&&re(this,Fo).call(this,b,D),P;const R=Rt(this,Ul,Lp).call(this,e,D,$,k),F=R.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=x?"stale":"refresh",F&&x&&(b.returnedStale=!0)),F?R.__staleWhileFetching:R.__returned=R}}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=n,a=re(this,Fr).get(e);if(a!==void 0){const u=re(this,Kt)[a],l=Rt(this,Yn,or).call(this,u);return o&&re(this,Fo).call(this,o,a),re(this,es).call(this,a)?(o&&(o.get="stale"),l?(o&&r&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?u.__staleWhileFetching:void 0):(s||this.delete(e),o&&r&&(o.returnedStale=!0),r?u:void 0)):(o&&(o.get="hit"),l?u.__staleWhileFetching:(Rt(this,yu,gf).call(this,a),i&&re(this,bu).call(this,a),u))}else o&&(o.get="miss")}
969delete(e){var r,i,s,o;let n=!1;if(re(this,qr)!==0){const a=re(this,Fr).get(e);if(a!==void 0)if(n=!0,re(this,qr)===1)this.clear();else{re(this,_u).call(this,a);const u=re(this,Kt)[a];Rt(this,Yn,or).call(this,u)?u.__abortController.abort(new Error("deleted")):(re(this,no)||re(this,xi))&&(re(this,no)&&((r=re(this,to))==null||r.call(this,u,e,"delete")),re(this,xi)&&((i=re(this,ni))==null||i.push([u,e,"delete"]))),re(this,Fr).delete(e),re(this,tr)[a]=void 0,re(this,Kt)[a]=void 0,a===re(this,Hr)?jt(this,Hr,re(this,Ji)[a]):a===re(this,li)?jt(this,li,re(this,Ei)[a]):(re(this,Ei)[re(this,Ji)[a]]=re(this,Ei)[a],re(this,Ji)[re(this,Ei)[a]]=re(this,Ji)[a]),Mh(this,qr)._--,re(this,qs).push(a)}}if(re(this,xi)&&((s=re(this,ni))!=null&&s.length)){const a=re(this,ni);let u;for(;u=a==null?void 0:a.shift();)(o=re(this,Ps))==null||o.call(this,...u)}return n}clear(){var e,n,r;for(const i of Rt(this,io,va).call(this,{allowStale:!0})){const s=re(this,Kt)[i];if(Rt(this,Yn,or).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=re(this,tr)[i];
969re(this,no)&&((e=re(this,to))==null||e.call(this,s,o,"delete")),re(this,xi)&&((n=re(this,ni))==null||n.push([s,o,"delete"]))}}if(re(this,Fr).clear(),re(this,Kt).fill(void 0),re(this,tr).fill(void 0),re(this,Fs)&&re(this,qo)&&(re(this,Fs).fill(0),re(this,qo).fill(0)),re(this,xo)&&re(this,xo).fill(0),jt(this,li,0),jt(this,Hr,0),re(this,qs).length=0,jt(this,xs,0),jt(this,qr,0),re(this,xi)&&re(this,ni)){const i=re(this,ni);let s;for(;s=i==null?void 0:i.shift();)(r=re(this,Ps))==null||r.call(this,...s)}}};Rs=new WeakMap,Ki=new WeakMap,to=new WeakMap,Ps=new WeakMap,Bl=new WeakMap,qr=new WeakMap,xs=new WeakMap,Fr=new WeakMap,tr=new WeakMap,Kt=new WeakMap,Ei=new WeakMap,Ji=new WeakMap,li=new WeakMap,Hr=new WeakMap,qs=new WeakMap,ni=new WeakMap,xo=new WeakMap,qo=new WeakMap,Fs=new WeakMap,no=new WeakMap,Ca=new WeakMap,xi=new WeakMap,ud=new WeakSet,Hv=function(){const e=new qp(re(this,Rs)),n=new qp(re(this,Rs));jt(this,Fs,e),jt(this,qo,n),jt(this,ld,(s,o,a=rf.now())=>{if(n[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){const u=setTimeout(()=>{re(this,es).call(this,s)&&this.delete(re(this,tr)[s])},o+1);u.unref&&u.unref()}}),jt(this,bu,s=>{n[s]=e[s]!==0?rf.now():0}),jt(this,Fo,(s,o)=>{if(e[o]){const a=e[o],u=n[o];s.ttl=a,s.start=u,s.now=r||i(),s.remainingTTL=s.now+a-u}});let r=0;const i=()=>{const s=rf.now();if(this.ttlResolution>0){r=s;const o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=re(this,Fr).get(s);return o===void 0?0:e[o]===0||n[o]===0?1/0:n[o]+e[o]-(r||i())},jt(this,es,s=>e[s]!==0&&n[s]!==0&&(r||i())-n[s]>e[s])},bu=new WeakMap,Fo=new WeakMap,ld=new WeakMap,es=new WeakMap,z0=new WeakSet,I$=function(){const e=new qp(re(this,Rs));jt(this,xs,0),jt(this,xo,e),jt(this,_u,n=>{jt(this,xs,re(this,xs)-e[n]),e[n]=0}),jt(this,cd,(n,r,i,s)=>{if(Rt(this,Yn,or).call(this,r))return 0;if(!ma(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,n),!ma(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),jt(this,zl,(n,r,i)=>{if(e[n]=r,re(this,Ki)){const s=re(this,Ki)-e[n];for(;re(this,xs)>s;)Rt(this,jl,Fp).call(this,!0)}jt(this,xs,re(this,xs)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=re(this,xs))})},_u=new WeakMap,zl=new WeakMap,cd=new WeakMap,ro=new WeakSet,ga=function*({allowStale:e=this.allowStale}={}){if(re(this,qr))for(let n=re(this,Hr);!(!Rt(this,fd,Vv).call(this,n)||((e||!re(this,es).call(this,n))&&(yield n),n===re(this,li)));)n=re(this,Ji)[n]},io=new WeakSet,va=function*({allowStale:e=this.allowStale}={}){if(re(this,qr))for(let n=re(this,li);!(!Rt(this,fd,Vv).call(this,n)||((e||!re(this,es).call(this,n))&&(yield n),n===re(this,Hr)));)n=re(this,Ei)[n]},fd=new WeakSet,Vv=function(e){return e!==void 0&&re(this,Fr).get(re(this,tr)[e])===e},jl=new WeakSet,Fp=function(e){var s,o;const n=re(this,li),r=re(this,tr)[n],i=re(this,Kt)[n];return re(this,Ca)&&Rt(this,Yn,or).call(this,i)?i.__abortController.abort(new Error("evicted")):(re(this,no)||re(this,xi))&&(re(this,no)&&((s=re(this,to))==null||s.call(this,i,r,"evict")),re(this,xi)&&((o=re(this,ni))==null||o.push([i,r,"evict"]))),re(this,_u).call(this,n),e&&(re(this,tr)[n]=void 0,re(this,Kt)[n]=void 0,re(this,qs).push(n)),re(this,qr)===1?(jt(this,li,jt(this,Hr,0)),re(this,qs).length=0):jt(this,li,re(this,Ei)[n]),re(this,Fr).delete(r),Mh(this,qr)._--,n},Ul=new WeakSet,Lp=function(e,n,r,i){const s=n===void 0?void 0:re(this,Kt)[n];if(Rt(this,Yn,or).call(this,s))return s;const o=new AbortController,{signal:a}=r;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});const u={signal:o.signal,options:r,context:i},l=(k,y=!1)=>{const{aborted:b}=o.signal,S=r.ignoreFetchAbort&&k!==void 0;if(r.status&&(b&&!y?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,S&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!S&&!y)return d(o.signal.reason);const $=m;return re(this,Kt)[n]===m&&(k===void 0?$.__staleWhileFetching?re(this,Kt)[n]=$.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,k,u.options))),k},c=k=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=k),d(k)),d=k=>{const{aborted:y}=o.signal,b=y&&r.allowStaleOnFetchAbort,S=b||r.allowStaleOnFetchRejection,$=S||r.noDeleteOnFetchRejection,D=m;if(re(this,Kt)[n]===m&&(!$||D.__staleWhileFetching===void 0?this.delete(e):b||(re(this,Kt)[n]=D.__staleWhileFetching)),S)return r.status&&D.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw k},h=(k,y)=>{var S;const b=(S=re(this,Bl))==null?void 0:S.call(this,e,s,u);b&&b instanceof Promise&&b.then($=>k($),y),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(k(),r.allowStaleOnFetchAbort&&(k=$=>l($,!0)))})};
969r.status&&(r.status.fetchDispatched=!0);const m=new Promise(h).then(l,c),g=Object.assign(m,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return n===void 0?(this.set(e,g,{...u.options,status:void 0}),n=re(this,Fr).get(e)):re(this,Kt)[n]=g,g},Yn=new WeakSet,or=function(e){if(!re(this,Ca))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof AbortController},dd=new WeakSet,Wv=function(e,n){re(this,Ji)[n]=e,re(this,Ei)[e]=n},yu=new WeakSet,gf=function(e){e!==re(this,Hr)&&(e===re(this,li)?jt(this,li,re(this,Ei)[e]):Rt(this,dd,Wv).call(this,re(this,Ji)[e],re(this,Ei)[e]),Rt(this,dd,Wv).call(this,re(this,Hr),e),jt(this,Hr,e))};let Uv=Gy;const RQ=t=>{let e=0;for(let n=0;n<t.length;n++)e=Math.imul(31,e)+t.charCodeAt(n)|0;return new Uint8Array(new Int32Array([e]).buffer)},O$=t=>{const e=RQ(t),[n=0,r=0,i=0,s=0]=e;return[n/255,r/255,i/255,s/255]},PQ=t=>{const e=O$(t);return{h:20*Math.round(e[0]*20),s:20+Math.round(e[1]*60),l:50+Math.round(e[2]*35)}},xQ=t=>{const e=O$(t);return{min:25+Math.round(e[3]*10),max:45+Math.round(e[3]*e[1]*10)}},qQ=t=>({color:PQ(t),height:xQ(t)}),A6=new Uv({max:1e3}),qu=(t,e=!1)=>{const n=t.publicId;let r=A6.get(n);r||(r=qQ(n),A6.set(n,r));let{color:i,height:s}=r;return e&&(i={h:i.h,s:Math.max(i.s-12,0),l:Math.max(i.l-32,0)}),{color:i,colorString:`hsl(${i.h},${i.s}%,${i.l}%)`,height:s}},y0=new Set,FQ=t=>{y0.forEach(e=>{!(t.target===e||e.contains(t.target))&&!t.defaultPrevented&&e.dispatchEvent(new CustomEvent("clickOutside",{bubbles:!0,composed:!0,detail:e}))})};document.addEventListener("click",FQ,!0);window.dt=()=>y0;function LQ(t){return y0.add(t),{destroy(){y0.delete(t)}}}function MQ(t){Et(t,"svelte-uzpamj",".EditInPlace.svelte-uzpamj{outline-offset:4px;outline-width:0.2rem;outline-style:solid;outline-color:transparent;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.EditInPlace.svelte-uzpamj:not(.isEnabled){pointer-events:none}.EditInPlace.svelte-uzpamj:hover,.EditInPlace.svelte-uzpamj:focus{outline-color:var(--c-border);cursor:text}.EditInPlace.isSelected.svelte-uzpamj{outline-color:var(--c-button-bg)}.EditInPlace.isEditing.svelte-uzpamj{outline-color:var(--c-border-dark);outline-style:dashed;text-overflow:initial}")}function BQ(t){let e,n,r,i;return{c(){e=C("div"),n=oe(t[0]),w(e,"class","EditInPlace svelte-uzpamj"),w(e,"contenteditable",t[2]),w(e,"spellcheck","false"),ve(e,"isEnabled",t[3]),ve(e,"isSelected",t[1]),ve(e,"isEditing",t[2])},m(s,o){O(s,e,o),v(e,n),t[10](e),r||(i=[zr(LQ.call(null,e)),Ie(e,"click",t[5]),Ie(e,"blur",t[6]),Ie(e,"keydown",t[7]),Ie(e,"clickOutside",t[8])],r=!0)},p(s,[o]){o&1&&Rx(n,s[0],s[2]),o&4&&w(e,"contenteditable",s[2]),o&8&&ve(e,"isEnabled",s[3]),o&2&&ve(e,"isSelected",s[1]),o&4&&ve(e,"isEditing",s[2])},i:Ee,o:Ee,d(s){s&&I(e),t[10](null),r=!1,fn(i)}}}function zQ(t,e,n){let{isEnabled:r=!1}=e,{isSelected:i=!1}=e,{isEditing:s=!1}=e,{value:o=""}=e,{changeHandler:a=()=>{}}=e,u,l,c=!1;const d=()=>{c||(n(2,s=!0),l=o,g())},h=async()=>{u.innerText.trim()===""&&n(4,u.innerText=l,u),n(2,s=!1),n(1,i=!1);const b=u.innerText.trim();c=!0;try{await a(b,l)}catch{n(0,o=l)}finally{c=!1}},m=b=>{b.key==="Enter"&&(b.preventDefault(),h()),b.key==="Escape"&&(b.preventDefault(),n(4,u.innerText=l,u),h())},g=()=>{const b=document.createRange(),S=window.getSelection();b.selectNodeContents(u),S.removeAllRanges(),S.addRange(b)};Va(()=>{s&&u.focus(),s||n(4,u.scrollLeft=0,u)});const k=()=>{i&&h()};function y(b){Qe[b?"unshift":"push"](()=>{u=b,n(4,u),n(0,o)})}return t.$$set=b=>{"isEnabled"in b&&n(3,r=b.isEnabled),"isSelected"in b&&n(1,i=b.isSelected),"isEditing"in b&&n(2,s=b.isEditing),"value"in b&&n(0,o=b.value),"changeHandler"in b&&n(9,a=b.changeHandler)},t.$$.update=()=>{t.$$.dirty&17&&u&&n(4,u.innerText=o,u)},[o,i,s,r,u,d,h,m,k,a,y]}class H_ extends pt{constructor(e){super(),ht(this,e,zQ,BQ,dt,{isEnabled:3,isSelected:1,isEditing:2,value:0,changeHandler:9},MQ)}}var _c={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="paperclip",r=448,i=512,s=[128206],o="f0c6",a="M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faPaperclip=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(_c);var mm={};
969(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="spinner",r=512,i=512,s=[],o="f110",a="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faSpinner=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(mm);function jQ(t){Et(t,"svelte-j50tgo",".attachmentFilePicker.svelte-j50tgo.svelte-j50tgo{cursor:pointer;position:absolute;opacity:0;left:0;top:0;width:100%;height:100%}.attachmentFilePicker.svelte-j50tgo input.svelte-j50tgo{visibility:hidden}")}function UQ(t){let e,n,r,i;return{c(){e=C("label"),n=C("input"),w(n,"type","file"),n.disabled=t[0],w(n,"class","svelte-j50tgo"),w(e,"class","attachmentFilePicker svelte-j50tgo")},m(s,o){O(s,e,o),v(e,n),r||(i=Ie(n,"change",t[1]),r=!0)},p(s,[o]){o&1&&(n.disabled=s[0])},i:Ee,o:Ee,d(s){s&&I(e),r=!1,i()}}}function HQ(t,e,n){let r,i;Ke(t,wd,u=>n(2,r=u)),Ke(t,gc,u=>n(3,i=u));const s=Cr();let{isDisabled:o=!1}=e;const a=async u=>{const l=u.target,[c]=l.files;if(!c)return;if(r.attachmentSizeLimit!==null&&Number(i.attachmentSize)+c.size>Number(r.attachmentSizeLimit)){s("limitExceeded");return}s("change",{file:c})};return t.$$set=u=>{"isDisabled"in u&&n(0,o=u.isDisabled)},[o,a]}class V_ extends pt{constructor(e){super(),ht(this,e,HQ,UQ,dt,{isDisabled:0},jQ)}}var Sd={},N$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="xmark",r=384,i=512,s=[128473,10005,10006,10060,215,"close","multiply","remove","times"],o="f00d",a="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faXmark=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(N$);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=N$;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faTimes=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(Sd);var R$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="expand",r=448,i=512,s=[],o="f065",a="M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faExpand=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(R$);function VQ(t){Et(t,"svelte-ff88sb",".enlargeButtonWrapper.svelte-ff88sb.svelte-ff88sb{position:absolute;right:0;bottom:0}.closeButtonWrapper.svelte-ff88sb.svelte-ff88sb{position:fixed;top:2rem;right:2rem;z-index:3}.lightbox.svelte-ff88sb.svelte-ff88sb{position:fixed;z-index:2;display:flex;align-items:center;justify-content:center;top:1rem;right:1rem;bottom:1rem;left:1rem;overflow:hidden;border-radius:2rem;backdrop-filter:blur(2rem);-webkit-backdrop-filter:blur(2rem);background:var(--c-window-gradient)}.lightbox.svelte-ff88sb img.svelte-ff88sb{max-width:calc(100vw - 6rem);max-height:calc(100vh - 6rem)}.lightbox.svelte-ff88sb img.isZoomable.svelte-ff88sb{cursor:zoom-in}.lightbox.isZoomed.svelte-ff88sb.svelte-ff88sb{display:block;overflow:scroll}.lightbox.isZoomed.svelte-ff88sb img.svelte-ff88sb{max-width:initial;max-height:initial;display:block;margin:auto}.lightbox.isZoomed.svelte-ff88sb img.isZoomable.svelte-ff88sb{cursor:zoom-out}")}function D6(t){let e,n,r;return n=new We({props:{small:!0,block:!0,circle:!0,transparent:!0,title:"Enlarge image",$$slots:{default:[WQ]},$$scope:{ctx:t}}}),n.$on("mousedown",t[10]),n.$on("mouseup",t[10]),n.$on("click",t[8]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","enlargeButtonWrapper svelte-ff88sb")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&16384&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function WQ(t){let e,n;return e=new et({props:{icon:R$.faExpand}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function I6(t){let e,n,r,i,s,o,a,u,l,c,d;return n=new We({props:{block:!0,circle:!0,title:"Close",$$slots:{default:[GQ]},$$scope:{ctx:t}}}),n.$on("click",t[8]),{c(){e=C("div"),j(n.$$.fragment),i=N(),s=C("div"),o=C("img"),w(e,"class","closeButtonWrapper svelte-ff88sb"),Mn(o.src,a=t[1])||w(o,"src",a),w(o,"alt",t[2]),w(o,"class","svelte-ff88sb"),ve(o,"isZoomable",t[6]),w(s,"class","lightbox svelte-ff88sb"),ve(s,"isZoomed",t[7])},m(h,m){O(h,e,m),B(n,e,null),O(h,i,m),O(h,s,m),v(s,o),t[13](o),l=!0,c||(d=[zr(Qf.call(null,e,document.body)),Ie(o,"click",t[9]),zr(Qf.call(null,s,document.body))],c=!0)},p(h,m){const g={};m&16384&&(g.$$scope={dirty:m,ctx:h}),n.$set(g),(!l||m&2&&!Mn(o.src,a=h[1]))&&w(o,"src",a),(!l||m&4)&&w(o,"alt",h[2]),(!l||m&64)&&ve(o,"isZoomable",h[6]),(!l||m&128)&&ve(s,"isZoomed",h[7])},i(h){l||(E(n.$$.fragment,h),h&&Xn(()=>{l&&(r||(r=Zn(e,Bo,{amount:20,duration:600,easing:Mo},!0)),r.run(1))}),h&&Xn(()=>{l&&(u||(u=Zn(s,Bo,{amount:20,duration:600,easing:Mo},!0)),u.run(1))}),l=!0)},o(h){T(n.$$.fragment,h),h&&(r||(r=Zn(e,Bo,{amount:20,duration:600,easing:Mo},!1)),r.run(0)),h&&(u||(u=Zn(s,Bo,{amount:20,duration:600,easing:Mo},!1)),u.run(0)),l=!1},d(h){h&&(I(e),I(i),I(s)),z(n),h&&r&&r.end(),t[13](null),h&&u&&u.end(),c=!1,fn(d)}}}function GQ(t){let e,n;return e=new et({props:{icon:Sd.faTimes}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function YQ(t){let e,n,r,i,s,o,a,u,l,c=t[3]&&D6(t),d=t[5]&&I6(t);return{c(){e=C("div"),n=C("img"),i=N(),c&&c.c(),s=N(),d&&d.c(),o=Pt(),Mn(n.src,r=t[1])||w(n,"src",r),w(n,"alt",t[2]),w(e,"class","imageWrapper")},m(h,m){O(h,e,m),v(e,n),t[12](n),v(e,i),c&&c.m(e,null),O(h,s,m),d&&d.m(h,m),O(h,o,m),a=!0,u||(l=Ie(n,"load",t[11]),u=!0)},p(h,[m]){(!a||m&2&&!Mn(n.src,r=h[1]))&&w(n,"src",r),(!a||m&4)&&w(n,"alt",h[2]),h[3]?c?(c.p(h,m),m&8&&E(c,1)):(c=D6(h),c.c(),E(c,1),c.m(e,null)):c&&($e(),T(c,1,1,()=>{c=null}),Ce()),h[5]?d?(d.p(h,m),m&32&&E(d,1)):(d=I6(h),d.c(),E(d,1),d.m(o.parentNode,o)):d&&($e(),T(d,1,1,()=>{d=null}),Ce())},i(h){a||(E(c),E(d),a=!0)},o(h){T(c),T(d),a=!1},d(h){h&&(I(e),I(s),I(o)),t[12](null),c&&c.d(),d&&d.d(h),u=!1,l()}}}function QQ(t,e,n){let{src:r}=e,{alt:i}=e,{showEnlargeButton:s=!1}=e,o,{imageElement:a=void 0}=e,u=!1,l=!1,c=!1;const d=b=>{m(b),b.preventDefault(),n(5,u=!u)},h=()=>{l&&n(7,c=!c)},m=b=>{b.stopPropagation()};function g(b){Ht.call(this,t,b)}function k(b){Qe[b?"unshift":"push"](()=>{a=b,n(0,a)})}function y(b){Qe[b?"unshift":"push"](()=>{o=b,n(4,o)})}return t.$$set=b=>{"src"in b&&n(1,r=b.src),"alt"in b&&n(2,i=b.alt),"showEnlargeButton"in b&&n(3,s=b.showEnlargeButton),"imageElement"in b&&n(0,a=b.imageElement)},t.$$.update=()=>
969{t.$$.dirty&16&&n(6,l=(o==null?void 0:o.naturalWidth)>(o==null?void 0:o.width)||(o==null?void 0:o.naturalHeight)>(o==null?void 0:o.height))},[a,r,i,s,o,u,l,c,d,h,m,g,k,y]}class P$ extends pt{constructor(e){super(),ht(this,e,QQ,YQ,dt,{src:1,alt:2,showEnlargeButton:3,imageElement:0},VQ)}}function ZQ(t){Et(t,"svelte-f58nqc",".AttachmentWrapper.svelte-f58nqc.svelte-f58nqc{position:relative;border-radius:1rem;overflow:hidden}.removeButtonWrapper.svelte-f58nqc.svelte-f58nqc{position:absolute;right:0;top:0}.Attachment.svelte-f58nqc.svelte-f58nqc{width:100%;height:auto}.Attachment.svelte-f58nqc a.svelte-f58nqc{display:block}.Attachment.svelte-f58nqc .file.svelte-f58nqc{padding:1rem;border-radius:1rem;background:#e2e2e2;color:var(--cf-link)}.Attachment img, .Attachment video{border-radius:1rem;width:100%;display:block}.Attachment.isNotClickable.svelte-f58nqc.svelte-f58nqc{pointer-events:none}.EntryOnCanvas .Entry .Attachment img, .EntryOnCanvas .Entry .Attachment video{max-height:100%}.EntryOnCanvas .Entry .AttachmentWrapper{display:flex;align-items:center;overflow:hidden}")}function O6(t){let e,n,r;return n=new We({props:{small:!0,block:!0,circle:!0,danger:!0,transparent:!0,title:"Remove attachment",$$slots:{default:[XQ]},$$scope:{ctx:t}}}),n.$on("mousedown",t[9]),n.$on("mouseup",t[9]),n.$on("click",t[8]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","removeButtonWrapper svelte-f58nqc")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&4096&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function XQ(t){let e,n;return e=new et({props:{icon:kd.faTrash}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function KQ(t){let e,n,r,i=t[0].fileName+"",s,o,a,u,l;return n=new et({props:{icon:_c.faPaperclip}}),{c(){e=C("a"),j(n.$$.fragment),r=N(),s=oe(i),w(e,"href",o=t[0].url),w(e,"class","file svelte-f58nqc"),w(e,"target","_blank"),w(e,"rel","noreferrer")},m(c,d){O(c,e,d),B(n,e,null),v(e,r),v(e,s),a=!0,u||(l=Ie(e,"pointerup",t[7]),u=!0)},p(c,d){(!a||d&1)&&i!==(i=c[0].fileName+"")&&Wt(s,i),(!a||d&1&&o!==(o=c[0].url))&&w(e,"href",o)},i(c){a||(E(n.$$.fragment,c),a=!0)},o(c){T(n.$$.fragment,c),a=!1},d(c){c&&I(e),z(n),u=!1,l()}}}function JQ(t){let e,n,r,i,s,o,a,u=t[0].fileName+"",l,c,d,h,m;return o=new et({props:{icon:_c.faPaperclip}}),{c(){e=C("video"),n=C("source"),s=C("a"),j(o.$$.fragment),a=N(),l=oe(u),Mn(n.src,r=t[0].url)||w(n,"src",r),w(n,"type",i=t[0].mimeType),w(s,"href",c=t[0].url),w(s,"class","file svelte-f58nqc"),w(s,"target","_blank"),w(s,"rel","noreferrer"),e.controls=!0},m(g,k){O(g,e,k),v(e,n),v(e,s),B(o,s,null),v(s,a),v(s,l),t[10](e),d=!0,h||(m=[Ie(s,"pointerup",t[7]),Ie(e,"load",t[6])],h=!0)},p(g,k){(!d||k&1&&!Mn(n.src,r=g[0].url))&&w(n,"src",r),(!d||k&1&&i!==(i=g[0].mimeType))&&w(n,"type",i),(!d||k&1)&&u!==(u=g[0].fileName+"")&&Wt(l,u),(!d||k&1&&c!==(c=g[0].url))&&w(s,"href",c)},i(g){d||(E(o.$$.fragment,g),d=!0)},o(g){T(o.$$.fragment,g),d=!1},d(g){g&&I(e),z(o),t[10](null),h=!1,fn(m)}}}function eZ(t){let e,n;return e=new P$({props:{src:t[0].url,alt:t[0].fileName,showEnlargeButton:t[3]}}),e.$on("load",t[6]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&1&&(s.src=r[0].url),i&1&&(s.alt=r[0].fileName),i&8&&(s.showEnlargeButton=r[3]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function tZ(t){let e,n,r,i,s,o,a=t[2]&&O6(t);const u=[eZ,JQ,KQ],l=[];function c(d,h){return d[0].fileType==="image"?0:d[5]?1:2}return i=c(t),s=l[i]=u[i](t),{c(){e=C("div"),a&&a.c(),n=N(),r=C("div"),s.c(),w(r,"class","Attachment svelte-f58nqc"),ve(r,"isNotClickable",t[1]),w(e,"class","AttachmentWrapper svelte-f58nqc")},m(d,h){O(d,e,h),a&&a.m(e,null),v(e,n),v(e,r),l[i].m(r,null),o=!0},p(d,[h]){d[2]?a?(a.p(d,h),h&4&&E(a,1)):(a=O6(d),a.c(),E(a,1),a.m(e,n)):a&&($e(),T(a,1,1,()=>{a=null}),Ce());let m=i;i=c(d),i===m?l[i].p(d,h):($e(),T(l[m],1,1,()=>{l[m]=null}),Ce(),s=l[i],s?s.p(d,h):(s=l[i]=u[i](d),s.c()),E(s,1),s.m(r,null)),(!o||h&2)&&ve(r,"isNotClickable",d[1])},i(d){o||(E(a),E(s),o=!0)},o(d){T(a),T(s),o=!1},d(d){d&&I(e),a&&a.d(),l[i].d()}}}function nZ(t,e,n){let{attachment:r}=e,{isNotClickable:i=!1}=e,{canRemove:s=!1}=e,{showEnlargeButton:o=!1}=e,a;const u=Cr(),l=()=>{u("loaded",{attachment:r,element:a})},c=k=>{i&&k.preventDefault()};let d=!1;const h=k=>{m(k),u("remove",{attachment:r})},m=k=>{k.stopPropagation()};function g(k){Qe[k?"unshift":"push"](()=>{a=k,n(4,a)})}return t.$$set=k=>{"attachment"in k&&n(0,r=k.attachment),"isNotClickable"in k&&n(1,i=k.isNotClickable),"canRemove"in k&&n(2,s=k.canRemove),"showEnlargeButton"in k&&n(3,o=k.showEnlargeButton)},t.$$.update=()=>{t.$$.dirty&1&&n(5,d=r.fileType=="video")},[r,i,s,o,a,d,l,c,h,m,g]}class rZ extends pt{constructor(e){super(),ht(this,e,nZ,tZ,dt,{attachment:0,isNotClickable:1,canRemove:2,showEnlargeButton:3},ZQ)}}function iZ(t){Et(t,"svelte-btk3vv",".Entity.svelte-btk3vv.svelte-btk3vv{position:relative;overflow:hidden;border-radius:1rem}.Entity img{border-radius:1rem;max-width:100%;display:block}.Entity iframe{display:block;width:100%;border:none;border-radius:1rem}.Entity.canPlayAudio.svelte-btk3vv.svelte-btk3vv{min-height:5rem}.Entity.canEmbed.svelte-btk3vv.svelte-btk3vv{background:rgba(255, 255, 255, 0.2)}.Entity.canEmbed .twitter-tweet{padding:1em;font-size:85%;line-height:1.3}.Entity.canEmbed .twitter-tweet p{margin-bottom:var(--e-spacing)}.Entity.svelte-btk3vv .audioPlayer.svelte-btk3vv{display:inline-block;
969min-width:200px;position:relative}.Entity.embedShowOnlyIframe > *:not(iframe){display:none}.Entity.canPlayAudio.svelte-btk3vv audio.svelte-btk3vv{position:absolute;bottom:0.5rem;left:0.5rem;width:calc(100% - 1rem);height:4rem}.Entry .Entity{display:flex;align-items:center;flex-direction:column}.EntryOnCanvas .Entry .Entity img{max-height:100%;width:100%}.Entity.isNotClickable.svelte-btk3vv.svelte-btk3vv{pointer-events:none}")}function N6(t){let e,n,r,i,s,o;const a=[uZ,aZ,oZ,sZ],u=[];function l(c,d){return c[3]?0:c[6]?1:c[7]?2:c[8]?3:-1}return~(n=l(t))&&(r=u[n]=a[n](t)),{c(){e=C("div"),r&&r.c(),w(e,"class","Entity svelte-btk3vv"),ve(e,"canEmbed",t[3]),ve(e,"canPlayAudio",t[7]),ve(e,"isNotClickable",t[1]),ve(e,"embedShowOnlyIframe",t[5])},m(c,d){O(c,e,d),~n&&u[n].m(e,null),i=!0,s||(o=Ie(e,"pointerup",t[10]),s=!0)},p(c,d){let h=n;n=l(c),n===h?~n&&u[n].p(c,d):(r&&($e(),T(u[h],1,1,()=>{u[h]=null}),Ce()),~n?(r=u[n],r?r.p(c,d):(r=u[n]=a[n](c),r.c()),E(r,1),r.m(e,null)):r=null),(!i||d&8)&&ve(e,"canEmbed",c[3]),(!i||d&128)&&ve(e,"canPlayAudio",c[7]),(!i||d&2)&&ve(e,"isNotClickable",c[1]),(!i||d&32)&&ve(e,"embedShowOnlyIframe",c[5])},i(c){i||(E(r),i=!0)},o(c){T(r),i=!1},d(c){c&&I(e),~n&&u[n].d(),s=!1,o()}}}function sZ(t){let e,n,r;function i(o){t[17](o)}let s={showEnlargeButton:t[2],src:t[0].image,alt:t[0].title};return t[4]!==void 0&&(s.imageElement=t[4]),e=new P$({props:s}),Qe.push(()=>En(e,"imageElement",i)),{c(){j(e.$$.fragment)},m(o,a){B(e,o,a),r=!0},p(o,a){const u={};a&4&&(u.showEnlargeButton=o[2]),a&1&&(u.src=o[0].image),a&1&&(u.alt=o[0].title),!n&&a&16&&(n=!0,u.imageElement=o[4],wn(()=>n=!1)),e.$set(u)},i(o){r||(E(e.$$.fragment,o),r=!0)},o(o){T(e.$$.fragment,o),r=!1},d(o){z(e,o)}}}function oZ(t){let e,n,r,i,s,o,a,u,l,c;return{c(){e=C("div"),n=C("img"),s=N(),o=C("audio"),a=C("source"),Mn(n.src,r=t[0].image)||w(n,"src",r),w(n,"alt",i=t[0].title),Mn(a.src,u=t[0].audio.url)||w(a,"src",u),o.controls=!0,w(o,"class","svelte-btk3vv"),w(e,"class","audioPlayer svelte-btk3vv")},m(d,h){O(d,e,h),v(e,n),t[16](n),v(e,s),v(e,o),v(o,a),l||(c=Ie(n,"load",t[9]),l=!0)},p(d,h){h&1&&!Mn(n.src,r=d[0].image)&&w(n,"src",r),h&1&&i!==(i=d[0].title)&&w(n,"alt",i),h&1&&!Mn(a.src,u=d[0].audio.url)&&w(a,"src",u)},i:Ee,o:Ee,d(d){d&&I(e),t[16](null),l=!1,c()}}}function aZ(t){let e,n,r,i=`${t[0].video.width} / ${t[0].video.height}`,s,o;return{c(){e=C("iframe"),w(e,"title",n=t[0].title),Mn(e.src,r=t[12](t[0].video.url))||w(e,"src",r),He(e,"aspect-ratio",i)},m(a,u){O(a,e,u),t[15](e),s||(o=Ie(e,"load",t[9]),s=!0)},p(a,u){u&1&&n!==(n=a[0].title)&&w(e,"title",n),u&1&&!Mn(e.src,r=a[12](a[0].video.url))&&w(e,"src",r),u&1&&i!==(i=`${a[0].video.width} / ${a[0].video.height}`)&&He(e,"aspect-ratio",i)},i:Ee,o:Ee,d(a){a&&I(e),t[15](null),s=!1,o()}}}function uZ(t){let e,n=t[0].embed+"",r;return{c(){e=new m5(!1),r=Pt(),e.a=r},m(i,s){e.m(n,i,s),O(i,r,s)},p(i,s){s&1&&n!==(n=i[0].embed+"")&&e.p(n)},i:Ee,o:Ee,d(i){i&&(I(r),e.d())}}}function lZ(t){let e,n,r=(t[7]||t[6]||t[8]||t[3])&&N6(t);return{c(){r&&r.c(),e=Pt()},m(i,s){r&&r.m(i,s),O(i,e,s),n=!0},p(i,[s]){i[7]||i[6]||i[8]||i[3]?r?(r.p(i,s),s&456&&E(r,1)):(r=N6(i),r.c(),E(r,1),r.m(e.parentNode,e)):r&&($e(),T(r,1,1,()=>{r=null}),Ce())},i(i){n||(E(r),n=!0)},o(i){T(r),n=!1},d(i){i&&I(e),r&&r.d(i)}}}function cZ(t,e,n){var r,i;let{entity:s}=e,{isNotClickable:o=!1}=e,{showEnlargeButton:a=!1}=e,u;const l=Cr(),c=()=>{l("loaded",{entity:s,element:u})},d=R=>{o&&R.preventDefault()};let h,m=pG({variables:{id:s.id},fetchPolicy:"cache-only",nextFetchPolicy:"network-only"});Ke(t,m,R=>n(19,R));let g=!1,k=!1,y=!1,b=!1,S=!1;const $=R=>R.includes("parent=meta.tag")?R.replace("parent=meta.tag",`parent=${window.location.hostname}`):R;lo(()=>{clearInterval(h)});function D(R){Qe[R?"unshift":"push"](()=>{u=R,n(4,u)})}function P(R){Qe[R?"unshift":"push"](()=>{u=R,n(4,u)})}function x(R){u=R,n(4,u)}return t.$$set=R=>{"entity"in R&&n(0,s=R.entity),"isNotClickable"in R&&n(1,o=R.isNotClickable),"showEnlargeButton"in R&&n(2,a=R.showEnlargeButton)},t.$$.update=()=>{t.$$.dirty&1&&n(3,g=!!s.embed),t.$$.dirty&9&&n(5,k=g&&s.embed.toLowerCase().includes("<iframe")),t.$$.dirty&8193&&n(6,y=(n(13,r=s.video)===null||r===void 0?void 0:r.type)==="text/html"),t.$$.dirty&16385&&n(7,b=!!(!(n(14,i=s.audio)===null||i===void 0)&&i.url)),t.$$.dirty&1&&n(8,S=!!s.image),t.$$.dirty&1&&s.state},[s,o,a,g,u,k,y,b,S,c,d,m,$,r,i,D,P,x]}class fZ extends pt{constructor(e){super(),ht(this,e,cZ,lZ,dt,{entity:0,isNotClickable:1,showEnlargeButton:2},iZ)}}var x$={},Zf={},W_={},Xf={},G_={};
969Object.defineProperty(G_,"__esModule",{value:!0});G_.default=new Uint16Array('
vendor: 16,129 bytes, line 969
969áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 969
969ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 969
969astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
969'.split("").map(function(t){return t.charCodeAt(0)}));var Y_={};Object.defineProperty(Y_,"__esModule",{value:!0});Y_.default=new Uint16Array("Èaglq ��\x1BÉ�\0\0�p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(function(t){return t.charCodeAt(0)}));var Gv={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function r(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=n.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=r;function i(s){return(0,t.fromCodePoint)(r(s))}t.default=i})(Gv);(function(t){var e=xt&&xt.__createBinding||(Object.create?function(M,V,H,J){J===void 0&&(J=H);var Z=Object.getOwnPropertyDescriptor(V,H);(!Z||("get"in Z?!V.__esModule:Z.writable||Z.configurable))&&(Z={enumerable:!0,get:function(){return V[H]}}),Object.defineProperty(M,J,Z)}:function(M,V,H,J){J===void 0&&(J=H),M[J]=V[H]}),n=xt&&xt.__setModuleDefault||(Object.create?function(M,V){Object.defineProperty(M,"default",{enumerable:!0,value:V})}:function(M,V){M.default=V}),r=xt&&xt.__importStar||function(M){if(M&&M.__esModule)return M;var V={};if(M!=null)for(var H in M)H!=="default"&&Object.prototype.hasOwnProperty.call(M,H)&&e(V,M,H);return n(V,M),V},i=xt&&xt.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=i(G_);t.htmlDecodeTree=s.default;var o=i(Y_);t.xmlDecodeTree=o.default;var a=r(Gv);t.decodeCodePoint=a.default;var u=Gv;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(M){M[M.NUM=35]="NUM",M[M.SEMI=59]="SEMI",M[M.EQUALS=61]="EQUALS",M[M.ZERO=48]="ZERO",M[M.NINE=57]="NINE",M[M.LOWER_A=97]="LOWER_A",M[M.LOWER_F=102]="LOWER_F",M[M.LOWER_X=120]="LOWER_X",M[M.LOWER_Z=122]="LOWER_Z",M[M.UPPER_A=65]="UPPER_A",M[M.UPPER_F=70]="UPPER_F",M[M.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,d;(function(M){M[M.VALUE_LENGTH=49152]="VALUE_LENGTH",M[M.BRANCH_LENGTH=16256]="BRANCH_LENGTH",M[M.JUMP_TABLE=127]="JUMP_TABLE"})(d=t.BinTrieFlags||(t.BinTrieFlags={}));function h(M){return M>=l.ZERO&&M<=l.NINE}function m(M){return M>=l.UPPER_A&&M<=l.UPPER_F||M>=l.LOWER_A&&M<=l.LOWER_F}function g(M){return M>=l.UPPER_A&&M<=l.UPPER_Z||M>=l.LOWER_A&&M<=l.LOWER_Z||h(M)}function k(M){return M===l.EQUALS||g(M)}var y;(function(M){M[M.EntityStart=0]="EntityStart",M[M.NumericStart=1]="NumericStart",M[M.NumericDecimal=2]="NumericDecimal",M[M.NumericHex=3]="NumericHex",M[M.NamedEntity=4]="NamedEntity"})(y||(y={}));var b;(function(M){M[M.Legacy=0]="Legacy",M[M.Strict=1]="Strict",M[M.Attribute=2]="Attribute"})(b=t.DecodingMode||(t.DecodingMode={}));var S=function(){function M(V,H,J){this.decodeTree=V,this.emitCodePoint=H,this.errors=J,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b.Strict}return M.prototype.startEntity=function(V){this.decodeMode=V,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},M.prototype.write=function(V,H){switch(this.state){case y.EntityStart:return V.charCo
969deAt(H)===l.NUM?(this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(V,H+1)):(this.state=y.NamedEntity,this.stateNamedEntity(V,H));case y.NumericStart:return this.stateNumericStart(V,H);case y.NumericDecimal:return this.stateNumericDecimal(V,H);case y.NumericHex:return this.stateNumericHex(V,H);case y.NamedEntity:return this.stateNamedEntity(V,H)}},M.prototype.stateNumericStart=function(V,H){return H>=V.length?-1:(V.charCodeAt(H)|c)===l.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(V,H+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(V,H))},M.prototype.addToNumericResult=function(V,H,J,Z){if(H!==J){var Q=J-H;this.result=this.result*Math.pow(Z,Q)+parseInt(V.substr(H,Q),Z),this.consumed+=Q}},M.prototype.stateNumericHex=function(V,H){for(var J=H;H<V.length;){var Z=V.charCodeAt(H);if(h(Z)||m(Z))H+=1;else return this.addToNumericResult(V,J,H,16),this.emitNumericEntity(Z,3)}return this.addToNumericResult(V,J,H,16),-1},M.prototype.stateNumericDecimal=function(V,H){for(var J=H;H<V.length;){var Z=V.charCodeAt(H);if(h(Z))H+=1;else return this.addToNumericResult(V,J,H,10),this.emitNumericEntity(Z,2)}return this.addToNumericResult(V,J,H,10),-1},M.prototype.emitNumericEntity=function(V,H){var J;if(this.consumed<=H)return(J=this.errors)===null||J===void 0||J.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(V===l.SEMI)this.consumed+=1;else if(this.decodeMode===b.Strict)return 0;return this.emitCodePoint((0,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(V!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},M.prototype.stateNamedEntity=function(V,H){for(var J=this.decodeTree,Z=J[this.treeIndex],Q=(Z&d.VALUE_LENGTH)>>14;H<V.length;H++,this.excess++){var K=V.charCodeAt(H);if(this.treeIndex=D(J,Z,this.treeIndex+Math.max(1,Q),K),this.treeIndex<0)return this.result===0||this.decodeMode===b.Attribute&&(Q===0||k(K))?0:this.emitNotTerminatedNamedEntity();if(Z=J[this.treeIndex],Q=(Z&d.VALUE_LENGTH)>>14,Q!==0){if(K===l.SEMI)return this.emitNamedEntityData(this.treeIndex,Q,this.consumed+this.excess);this.decodeMode!==b.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},M.prototype.emitNotTerminatedNamedEntity=function(){var V,H=this,J=H.result,Z=H.decodeTree,Q=(Z[J]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(J,Q,this.consumed),(V=this.errors)===null||V===void 0||V.missingSemicolonAfterCharacterReference(),this.consumed},M.prototype.emitNamedEntityData=function(V,H,J){var Z=this.decodeTree;return this.emitCodePoint(H===1?Z[V]&~d.VALUE_LENGTH:Z[V+1],J),H===3&&this.emitCodePoint(Z[V+2],J),J},M.prototype.end=function(){var V;switch(this.state){case y.NamedEntity:return this.result!==0&&(this.decodeMode!==b.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}},M}();t.EntityDecoder=S;function $(M){var V="",H=new S(M,function(J){return V+=(0,a.fromCodePoint)(J)});return function(Z,Q){for(var K=0,G=0;(G=Z.indexOf("&",G))>=0;){V+=Z.slice(K,G),H.startEntity(Q);var se=H.write(Z,G+1);if(se<0){K=G+H.end();break}K=G+se,G=se===0?K+1:K}var fe=V+Z.slice(K);return V="",fe}}function D(M,V,H,J){var Z=(V&d.BRANCH_LENGTH)>>7,Q=V&d.JUMP_TABLE;if(Z===0)return Q!==0&&J===Q?H:-1;if(Q){var K=J-Q;return K<0||K>=Z?-1:M[H+K]-1}for(var G=H,se=G+Z-1;G<=se;){var fe=G+se>>>1,me=M[fe];if(me<J)G=fe+1;else if(me>J)se=fe-1;else return M[fe+Z]}return-1}t.determineBranch=D;var P=$(s.default),x=$(o.default);function R(M,V){return V===void 0&&(V=b.Legacy),P(M,V)}t.decodeHTML=R;function q(M){return P(M,b.Attribute)}t.decodeHTMLAttribute=q;function F(M){return P(M,b.Strict)}t.decodeHTMLStrict=F;function L(M){return x(M,b.Strict)}t.decodeXML=L})(Xf);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Xf,n;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Number=35]="Number",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(r||(r={}));function i(h){return h===n.Space||h===n.NewLine||h===n.Tab||h===n.FormFeed||h===n.CarriageReturn}function s(h){return h===n.Slash||h===n.Gt||i(h)}function o(h){return h>=n.Zero&&h<=n.Nine}function a(h){return h>=n.LowerA&&h<=n.LowerZ||h>=n.UpperA&&h<=n.UpperZ}function u(h){return h>=n.UpperA&&h<=n.UpperF||h>=n.LowerA&&h<=n.LowerF}var l;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function h(m,g){var k=m.xmlMode,y=k===void 0?!1:k,b=m.decodeEntities,S=b===void 0?!0:b;this.cbs=g,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=S,this.entityTrie=y?e.xmlDecodeTree:e.htmlDecodeTree}return h.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},h.prototype.getIndex=function(){return this.index},h.prototype.getSectionStart=function(){return this.sectionStart},h.prototype.stateText=function(m){m===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(m){var g=this.sequenceIndex===this.currentSequence.length,k=g?s(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!k)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(m)},h.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||i(m)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var k=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=k}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},h.prototype.stateCDATASequence=function(m){m===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(m))},h.prototype.fastForwardTo=function(m){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===m)return!0;return this.index=this.buffer.length+this.offset-1,!1},h.prototype.stateInCommentLike=function(m){m===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):m!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},h.prototype.isTagStartChar=function(m){return this.xmlMode?!s(m):a(m)},h.prototype.startSpecial=function(m,g){this.isSpecial=!0,this.currentSequence=m,this.sequenceIndex=g,this.state=r.SpecialStartSequence},h.prototype.stateBeforeTagName=function(m){if(m===n.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(m===n.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(m)){var g=m|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else m===n.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(m))},h.prototype.stateInTagName=function(m){s(m)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m))},h.prototype.stateBeforeClosingTagName=function(m){i(m)||(m===n.Gt?this.state=r.Text:(this.state=this.isTagStartChar(m)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},h.prototype.stateInClosingTagName=function(m){(m===n.Gt||i(m))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(m))},h.prototype.stateAfterClosingTagName=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeAttributeName=function(m){m===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):m===n.Slash?this.state=r.InSelfClosingTag:i(m)||(this.state=r.InAttributeName,this.sectionStart=this.index)},h.prototype.stateInSelfClosingTag=function(m){m===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(m)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m))},h.prototype.stateInAttributeName=function(m){(m===n.Eq||s(m))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(m))},h.prototype.stateAfterAttributeName=function(m){m===n.Eq?this.state=r.BeforeAttributeValue:m===n.Slash||m===n.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m)):i(m)||(this.cbs.onattribend(l.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},h.prototype.stateBeforeAttributeValue=function(m){m===n.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):m===n.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):i(m)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(m))},h.prototype.handleInAttributeValue=function(m,g){m===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===n.DoubleQuote?l.Double:l.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&m===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},h.prototype.stateInAttributeValueDoubleQuotes=function(m){this.handleInAttributeValue(m,n.DoubleQuote)},h.prototype.stateInAttributeValueSingleQuotes=function(m){this.handleInAttributeValue(m,n.SingleQuote)},h.prototype.stateInAttributeValueNoQuotes=function(m){i(m)||m===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m)):this.decodeEntities&&m===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},h.prototype.stateBeforeDeclaration=function(m){m===n.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=m===n.Dash?r.BeforeComment:r.InDeclaration},h.prototype.stateInDeclaration=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateInProcessingInstruction=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeComment=function(m){m===n.Dash?(this.state=r.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},h.prototype.stateInSpecialComment=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeSpecialS=function(m){var g=m|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(m))},h.prototype.stateBeforeEntity=function(m){this.entityExcess=1,this.entityResult=0,m===n.Number?this.state=r.BeforeNumericEntity:m===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(m))},h.prototype.stateInNamedEntity=function(m){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,m),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var k=(g>>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=k;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=k,this.entityExcess=0,this.sectionStart=this.index+1,k===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entit
969yTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(m))},h.prototype.emitNumericEntity=function(m){var g=this.index-this.entityExcess-1,k=g+2+ +(this.state===r.InHexEntity);k!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*16+(m-n.Zero),this.entityExcess++):u(m)?(this.entityResult=this.entityResult*16+((m|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},h.prototype.parse=function(){for(;this.shouldContinue();){var m=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(m);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(m);break}case r.InSpecialTag:{this.stateInSpecialTag(m);break}case r.CDATASequence:{this.stateCDATASequence(m);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(m);break}case r.InAttributeName:{this.stateInAttributeName(m);break}case r.InCommentLike:{this.stateInCommentLike(m);break}case r.InSpecialComment:{this.stateInSpecialComment(m);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(m);break}case r.InTagName:{this.stateInTagName(m);break}case r.InClosingTagName:{this.stateInClosingTagName(m);break}case r.BeforeTagName:{this.stateBeforeTagName(m);break}case r.AfterAttributeName:{this.stateAfterAttributeName(m);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(m);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(m);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(m);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(m);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(m);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(m);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(m);break}case r.InDeclaration:{this.stateInDeclaration(m);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(m);break}case r.BeforeComment:{this.stateBeforeComment(m);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(m);break}case r.InNamedEntity:{this.stateInNamedEntity(m);break}case r.BeforeEntity:{this.stateBeforeEntity(m);break}case r.InHexEntity:{this.stateInHexEntity(m);break}case r.InNumericEntity:{this.stateInNumericEntity(m);break}default:this.stateBeforeNumericEntity(m)}this.index++}this.cleanup()},h.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},h.prototype.handleTrailingData=function(){var m=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,m,0):this.cbs.oncomment(this.sectionStart,m,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,m)},h.prototype.emitPartial=function(m,g){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(m,g):this.cbs.ontext(m,g)},h.prototype.emitCodePoint=function(m){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(m):this.cbs.ontextentity(m)},h}();t.default=d})(W_);var dZ=xt&&xt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),hZ=xt&&xt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pZ=xt&&xt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&dZ(e,t,n);return hZ(e,t),e};
969Object.defineProperty(Zf,"__esModule",{value:!0});Zf.Parser=void 0;var Qh=pZ(W_),R6=Xf,ul=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Ln=new Set(["p"]),P6=new Set(["thead","tbody"]),x6=new Set(["dd","dt"]),q6=new Set(["rt","rp"]),mZ=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Ln],["h1",Ln],["h2",Ln],["h3",Ln],["h4",Ln],["h5",Ln],["h6",Ln],["select",ul],["input",ul],["output",ul],["button",ul],["datalist",ul],["textarea",ul],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",x6],["dt",x6],["address",Ln],["article",Ln],["aside",Ln],["blockquote",Ln],["details",Ln],["div",Ln],["dl",Ln],["fieldset",Ln],["figcaption",Ln],["figure",Ln],["footer",Ln],["form",Ln],["header",Ln],["hr",Ln],["main",Ln],["nav",Ln],["ol",Ln],["pre",Ln],["section",Ln],["table",Ln],["ul",Ln],["rt",q6],["rp",q6],["tbody",P6],["tfoot",P6]]),gZ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),F6=new Set(["math","svg"]),L6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),vZ=/\s|\//,bZ=function(){function t(e,n){n===void 0&&(n={});var r,i,s,o,a;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:!n.xmlMode,this.lowerCaseAttributeNames=(i=n.lowerCaseAttributeNames)!==null&&i!==void 0?i:!n.xmlMode,this.tokenizer=new((s=n.Tokenizer)!==null&&s!==void 0?s:Qh.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,this)}return t.prototype.ontext=function(e,n){var r,i,s=this.getSlice(e,n);this.endIndex=n-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,s),this.startIndex=n},t.prototype.ontextentity=function(e){var n,r,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(r=(n=this.cbs).ontext)===null||r===void 0||r.call(n,(0,R6.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&gZ.has(e)},t.prototype.onopentagname=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},t.prototype.emitOpenTag=function(e){var n,r,i,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&mZ.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,a,!0)}this.isVoidElement(e)||(this.stack.push(e),F6.has(e)?this.foreignContext.push(!0):L6.has(e)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,n){var r,i,s,o,a,u;this.endIndex=n;var l=this.getSlice(e,n);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(F6.has(l)||L6.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(r=this.cbs).onopentagname)===null||i===void 0||i.call(r,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(u=(a=this.cbs).onclosetag)===null||u===void 0||u.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var d=this.stack.length-c;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var n,r,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!e),this.stack.pop())},t.prototype.onattribname=function(e,n){this.startIndex=e;var r=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},t.prototype.onattribdata=function(e,n){this.attribvalue+=this.getSlice(e,n)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,R6.fromCodePoint)(e)},t.prototype.onattribend=function(e,n){var r,i;this.endIndex=n,(i=(r=this.cbs).onattribute)===null||i===void 0||i.call(r,this.attribname,this.attribvalue,e===Qh.QuoteType.Double?'"':e===Qh.QuoteType.Single?"'":e===Qh.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var n=e.search(vZ),r=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},t.prototype.ondeclaration=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(r))}this.startIndex=n+1},t.prototype.onprocessinginstruction=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(r))}this.startIndex=n+1},t.prototype.oncomment=function(e,n,r){var i,s,o,a;this.endIndex=n,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.get
969Slice(e,n-r)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=n+1},t.prototype.oncdata=function(e,n,r){var i,s,o,a,u,l,c,d,h,m;this.endIndex=n;var g=this.getSlice(e,n-r);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,g),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((d=(c=this.cbs).oncomment)===null||d===void 0||d.call(c,"[CDATA[".concat(g,"]]")),(m=(h=this.cbs).oncommentend)===null||m===void 0||m.call(h)),this.startIndex=n+1},t.prototype.onend=function(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)},t.prototype.reset=function(){var e,n,r,i;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(r=this.cbs).onparserinit)===null||i===void 0||i.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();Zf.Parser=bZ;var Vo={},yc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(yc);var cn={},Ga=xt&&xt.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),If=xt&&xt.__assign||function(){return If=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},If.apply(this,arguments)};Object.defineProperty(cn,"__esModule",{value:!0});cn.cloneNode=cn.hasChildren=cn.isDocument=cn.isDirective=cn.isComment=cn.isText=cn.isCDATA=cn.isTag=cn.Element=cn.Document=cn.CDATA=cn.NodeWithChildren=cn.ProcessingInstruction=cn.Comment=cn.Text=cn.DataNode=cn.Node=void 0;var Bi=yc,Q_=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e}
vendor: 5,447 bytes, line 969
969,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Z_(this,e)},t}();cn.Node=Q_;var gm=function(t){Ga(e,t);function e(n){var r=t.call(this)||this;return r.data=n,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e}(Q_);cn.DataNode=gm;var q$=function(t){Ga(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Bi.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(gm);cn.Text=q$;var F$=function(t){Ga(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Bi.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(gm);cn.Comment=F$;var L$=function(t){Ga(e,t);function e(n,r){var i=t.call(this,r)||this;return i.name=n,i.type=Bi.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(gm);cn.ProcessingInstruction=L$;var vm=function(t){Ga(e,t);function e(n){var r=t.call(this)||this;return r.children=n,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e}(Q_);cn.NodeWithChildren=vm;var M$=function(t){Ga(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Bi.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(vm);cn.CDATA=M$;var B$=function(t){Ga(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Bi.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(vm);cn.Document=B$;var z$=function(t){Ga(e,t);function e(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Bi.ElementType.Script:n==="style"?Bi.ElementType.Style:Bi.ElementType.Tag);var o=t.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),e}(vm);cn.Element=z$;function j$(t){return(0,Bi.isTag)(t)}cn.isTag=j$;function U$(t){return t.type===Bi.ElementType.CDATA}cn.isCDATA=U$;function H$(t){return t.type===Bi.ElementType.Text}cn.isText=H$;function V$(t){return t.type===Bi.ElementType.Comment}cn.isComment=V$;function W$(t){return t.type===Bi.ElementType.Directive}cn.isDirective=W$;function G$(t){return t.type===Bi.ElementType.Root}cn.isDocument=G$;function _Z(t){return Object.prototype.hasOwnProperty.call(t,"children")}cn.hasChildren=_Z;function Z_(t,e){e===void 0&&(e=!1);var n;if(H$(t))n=new q$(t.data);else if(V$(t))n=new F$(t.data);else if(j$(t)){var r=e?k1(t.children):[],i=new z$(t.name,If({},t.attribs),r);r.forEach(function(u){return u.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=If({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=If({},t["x-attribsPrefix"])),n=i}else if(U$(t)){var r=e?k1(t.children):[],s=new M$(r);r.forEach(function(l){return l.parent=s}),n=s}else if(G$(t)){var r=e?k1(t.children):[],o=new B$(r);r.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),n=o}else if(W$(t)){var a=new L$(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}cn.cloneNode=Z_;function k1(t){for(var e=t.map(function(r){return Z_(r,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=xt&&xt.__createBinding||(Object.create?function(a,u,l,c){c===void 0&&(c=l);var d=Object.getOwnPropertyDescriptor(u,l);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(a,c,d)}:function(a,u,l,c){c===void 0&&(c=l),a[c]=u[l]}),n=xt&&xt.__exportStar||function(a,u){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,a,l)};
969Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=yc,i=cn;n(cn,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(u,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=s),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??s,this.elementCB=c??null}return a.prototype.onparserinit=function(u){this.parser=u},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(u){this.handleCallback(u)},a.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},a.prototype.onopentag=function(u,l){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(u,l,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(u);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=u;return}var l=new i.Comment(u);this.addNode(l),this.lastNode=l},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var u=new i.Text(""),l=new i.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(u,l){var c=new i.ProcessingInstruction(u,l);this.addNode(c)},a.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},a.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},a}();t.DomHandler=o,t.default=o})(Vo);var Mp={},ts={},Td={},Y$={},Fu={},X_={};Object.defineProperty(X_,"__esModule",{value:!0});function Zh(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}X_.default=new Map(Zh
vendor: 10,610 bytes, line 969
969([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(
969Zh([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Zh([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨
969"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Zh([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var w0={};
969(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,s){return i.codePointAt(s)}:function(i,s){return(i.charCodeAt(s)&64512)===55296?(i.charCodeAt(s)-55296)*1024+i.charCodeAt(s+1)-56320+65536:i.charCodeAt(s)};function n(i){for(var s="",o=0,a;(a=t.xmlReplacer.exec(i))!==null;){var u=a.index,l=i.charCodeAt(u),c=e.get(l);c!==void 0?(s+=i.substring(o,u)+c,o=u+1):(s+="".concat(i.substring(o,u),"&#x").concat((0,t.getCodePoint)(i,u).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return s+i.substr(o)}t.encodeXML=n,t.escape=n;function r(i,s){return function(a){for(var u,l=0,c="";u=i.exec(a);)l!==u.index&&(c+=a.substring(l,u.index)),c+=s.get(u[0].charCodeAt(0)),l=u.index+1;return c+a.substring(l)}}t.escapeUTF8=r(/[&<>'"]/g,e),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(w0);var yZ=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.encodeNonAsciiHTML=Fu.encodeHTML=void 0;var wZ=yZ(X_),Q$=w0,EZ=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function kZ(t){return Z$(EZ,t)}Fu.encodeHTML=kZ;function SZ(t){return Z$(Q$.xmlReplacer,t)}Fu.encodeNonAsciiHTML=SZ;function Z$(t,e){for(var n="",r=0,i;(i=t.exec(e))!==null;){var s=i.index;n+=e.substring(r,s);var o=e.charCodeAt(s),a=wZ.default.get(o);if(typeof a=="object"){if(s+1<e.length){var u=e.charCodeAt(s+1),l=typeof a.n=="number"?a.n===u?a.o:void 0:a.n.get(u);if(l!==void 0){n+=l,r=t.lastIndex+=1;continue}}a=a.v}if(a!==void 0)n+=a,r=s+1;else{var c=(0,Q$.getCodePoint)(e,s);n+="&#x".concat(c.toString(16),";"),r=t.lastIndex+=+(c!==o)}}return n+e.substr(r)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Xf,n=Fu,r=w0,i;(function(h){h[h.XML=0]="XML",h[h.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var s;(function(h){h[h.UTF8=0]="UTF8",h[h.ASCII=1]="ASCII",h[h.Extensive=2]="Extensive",h[h.Attribute=3]="Attribute",h[h.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function o(h,m){m===void 0&&(m=i.XML);var g=typeof m=="number"?m:m.level;if(g===i.HTML){var k=typeof m=="object"?m.mode:void 0;return(0,e.decodeHTML)(h,k)}return(0,e.decodeXML)(h)}t.decode=o;function a(h,m){var g;m===void 0&&(m=i.XML);var k=typeof m=="number"?{level:m}:m;return(g=k.mode)!==null&&g!==void 0||(k.mode=e.DecodingMode.Strict),o(h,k)}t.decodeStrict=a;function u(h,m){m===void 0&&(m=i.XML);var g=typeof m=="number"?{level:m}:m;return g.mode===s.UTF8?(0,r.escapeUTF8)(h):g.mode===s.Attribute?(0,r.escapeAttribute)(h):g.mode===s.Text?(0,r.escapeText)(h):g.level===i.HTML?g.mode===s.ASCII?(0,n.encodeNonAsciiHTML)(h):(0,n.encodeHTML)(h):(0,r.encodeXML)(h)}t.encode=u;var l=w0;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}
969}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=Fu;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var d=Xf;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Y$);var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.attributeNames=Jl.elementNames=void 0;Jl.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Jl.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var wl=xt&&xt.__assign||function(){return wl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wl.apply(this,arguments)},TZ=xt&&xt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),$Z=xt&&xt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),CZ=xt&&xt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&TZ(e,t,n);return $Z(e,t),e};Object.defineProperty(Td,"__esModule",{value:!0});Td.render=void 0;var Oo=CZ(yc),E0=Y$,X$=Jl,AZ=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function DZ(t){return t.replace(/"/g,""")}function IZ(t,e){var n;if(t){var r=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?DZ:e.xmlMode||e.encodeEntities!=="utf8"?E0.encodeXML:E0.escapeAttribute;return Object.keys(t).map(function(i){var s,o,a=(s=t[i])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(i=(o=X$.attributeNames.get(i))!==null&&o!==void 0?o:i),!e.emptyAttrs&&!e.xmlMode&&a===""?i:"".concat(i,'="').concat(r(a),'"')}).join(" ")}}var M6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
969img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function bm(t,e){e===void 0&&(e={});for(var n=("length"in t)?t:[t],r="",i=0;i<n.length;i++)r+=OZ(n[i],e);return r}Td.render=bm;Td.default=bm;function OZ(t,e){switch(t.type){case Oo.Root:return bm(t.children,e);case Oo.Doctype:case Oo.Directive:return xZ(t);case Oo.Comment:return LZ(t);case Oo.CDATA:return FZ(t);case Oo.Script:case Oo.Style:case Oo.Tag:return PZ(t,e);case Oo.Text:return qZ(t,e)}}var NZ=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),RZ=new Set(["svg","math"]);function PZ(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=X$.elementNames.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&NZ.has(t.parent.name)&&(e=wl(wl({},e),{xmlMode:!1}))),!e.xmlMode&&RZ.has(t.name)&&(e=wl(wl({},e),{xmlMode:"foreign"}));var r="<".concat(t.name),i=IZ(t.attribs,e);return i&&(r+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&M6.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=bm(t.children,e)),(e.xmlMode||!M6.has(t.name))&&(r+="</".concat(t.name,">"))),r}function xZ(t){return"<".concat(t.data,">")}function qZ(t,e){var n,r=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&AZ.has(t.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,E0.encodeXML)(r):(0,E0.escapeText)(r)),r}function FZ(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function LZ(t){return"<!--".concat(t.data,"-->")}var MZ=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ts,"__esModule",{value:!0});ts.innerText=ts.textContent=ts.getText=ts.getInnerHTML=ts.getOuterHTML=void 0;var uo=Vo,BZ=MZ(Td),zZ=yc;function K$(t,e){return(0,BZ.default)(t,e)}ts.getOuterHTML=K$;function jZ(t,e){return(0,uo.hasChildren)(t)?t.children.map(function(n){return K$(n,e)}).join(""):""}ts.getInnerHTML=jZ;function Bp(t){return Array.isArray(t)?t.map(Bp).join(""):(0,uo.isTag)(t)?t.name==="br"?` 970`:Bp(t.children):(0,uo.isCDATA)(t)?Bp(t.children):(0,uo.isText)(t)?t.data:""}ts.getText=Bp;function Yv(t){return Array.isArray(t)?t.map(Yv).join(""):(0,uo.hasChildren)(t)&&!(0,uo.isComment)(t)?Yv(t.children):(0,uo.isText)(t)?t.data:""}ts.textContent=Yv;function Qv(t){return Array.isArray(t)?t.map(Qv).join(""):(0,uo.hasChildren)(t)&&(t.type===zZ.ElementType.Tag||(0,uo.isCDATA)(t))?Qv(t.children):(0,uo.isText)(t)?t.data:""}ts.innerText=Qv;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.prevElementSibling=Wr.nextElementSibling=Wr.getName=Wr.hasAttrib=Wr.getAttributeValue=Wr.getSiblings=Wr.getParent=Wr.getChildren=void 0;var K_=Vo;function J$(t){return(0,K_.hasChildren)(t)?t.children:[]}Wr.getChildren=J$;function eC(t){return t.parent||null}Wr.getParent=eC;function UZ(t){var e,n,r=eC(t);if(r!=null)return J$(r);for(var i=[t],s=t.prev,o=t.next;s!=null;)i.unshift(s),e=s,s=e.prev;for(;o!=null;)i.push(o),n=o,o=n.next;return i}Wr.getSiblings=UZ;function HZ(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}Wr.getAttributeValue=HZ;function VZ(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}Wr.hasAttrib=VZ;function WZ(t){return t.name}Wr.getName=WZ;function GZ(t){for(var e,n=t.next;n!==null&&!(0,K_.isTag)(n);)e=n,n=e.next;return n}Wr.nextElementSibling=GZ;function YZ(t){for(var e,n=t.prev;n!==null&&!(0,K_.isTag)(n);)e=n,n=e.prev;return n}Wr.prevElementSibling=YZ;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.prepend=Li.prependChild=Li.append=Li.appendChild=Li.replaceElement=Li.removeElement=void 0;function $d(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,n=e.lastIndexOf(t);n>=0&&e.splice(n,1)}t.next=null,t.prev=null,t.parent=null}Li.removeElement=$d;function QZ(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var s=i.children;s[s.lastIndexOf(t)]=e,t.parent=null}}Li.replaceElement=QZ;function ZZ(t,e){if($d(e),e.next=null,e.parent=t,t.children.push(e)>1){var n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}Li.appendChild=ZZ;function XZ(t,e){$d(e);var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)}Li.append=XZ;function KZ(t,e){if($d(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var n=t.children[1];n.prev=e,e.next=n}else e.next=null}Li.prependChild=KZ;function JZ(t,e){$d(e);var n=t.parent;if(n){var r=n.children;r.splice(r.indexOf(t),0,e)}
970t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}Li.prepend=JZ;var Si={};Object.defineProperty(Si,"__esModule",{value:!0});Si.findAll=Si.existsOne=Si.findOne=Si.findOneChild=Si.find=Si.filter=void 0;var _m=Vo;function eX(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),tC(t,Array.isArray(e)?e:[e],n,r)}Si.filter=eX;function tC(t,e,n,r){for(var i=[],s=[e],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return i;s.shift(),o.shift();continue}var a=s[0][o[0]++];if(t(a)&&(i.push(a),--r<=0))return i;n&&(0,_m.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),s.unshift(a.children))}}Si.find=tC;function tX(t,e){return e.find(t)}Si.findOneChild=tX;function nC(t,e,n){n===void 0&&(n=!0);for(var r=null,i=0;i<e.length&&!r;i++){var s=e[i];if((0,_m.isTag)(s))t(s)?r=s:n&&s.children.length>0&&(r=nC(t,s.children,!0));else continue}return r}Si.findOne=nC;function rC(t,e){return e.some(function(n){return(0,_m.isTag)(n)&&(t(n)||rC(t,n.children))})}Si.existsOne=rC;function nX(t,e){for(var n=[],r=[e],i=[0];;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}var s=r[0][i[0]++];(0,_m.isTag)(s)&&(t(s)&&n.push(s),s.children.length>0&&(i.unshift(0),r.unshift(s.children)))}}Si.findAll=nX;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});ns.getElementsByTagType=ns.getElementsByTagName=ns.getElementById=ns.getElements=ns.testElement=void 0;var hu=Vo,ym=Si,k0={tag_name:function(t){return typeof t=="function"?function(e){return(0,hu.isTag)(e)&&t(e.name)}:t==="*"?hu.isTag:function(e){return(0,hu.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,hu.isText)(e)&&t(e.data)}:function(e){return(0,hu.isText)(e)&&e.data===t}}};function iC(t,e){return typeof e=="function"?function(n){return(0,hu.isTag)(n)&&e(n.attribs[t])}:function(n){return(0,hu.isTag)(n)&&n.attribs[t]===e}}function rX(t,e){return function(n){return t(n)||e(n)}}function sC(t){var e=Object.keys(t).map(function(n){var r=t[n];return Object.prototype.hasOwnProperty.call(k0,n)?k0[n](r):iC(n,r)});return e.length===0?null:e.reduce(rX)}function iX(t,e){var n=sC(t);return n?n(e):!0}ns.testElement=iX;function sX(t,e,n,r){r===void 0&&(r=1/0);var i=sC(t);return i?(0,ym.filter)(i,e,n,r):[]}ns.getElements=sX;function oX(t,e,n){return n===void 0&&(n=!0),Array.isArray(e)||(e=[e]),(0,ym.findOne)(iC("id",t),e,n)}ns.getElementById=oX;function aX(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,ym.filter)(k0.tag_name(t),e,n,r)}ns.getElementsByTagName=aX;function uX(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,ym.filter)(k0.tag_type(t),e,n,r)}ns.getElementsByTagType=uX;var oC={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=Vo;function n(o){for(var a=o.length;--a>=0;){var u=o[a];if(a>0&&o.lastIndexOf(u,a-1)>=0){o.splice(a,1);continue}for(var l=u.parent;l;l=l.parent)if(o.includes(l)){o.splice(a,1);break}}return o}t.removeSubsets=n;var r;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(r=t.DocumentPosition||(t.DocumentPosition={}));function i(o,a){var u=[],l=[];if(o===a)return 0;for(var c=(0,e.hasChildren)(o)?o:o.parent;c;)u.unshift(c),c=c.parent;for(c=(0,e.hasChildren)(a)?a:a.parent;c;)l.unshift(c),c=c.parent;for(var d=Math.min(u.length,l.length),h=0;h<d&&u[h]===l[h];)h++;if(h===0)return r.DISCONNECTED;var m=u[h-1],g=m.children,k=u[h],y=l[h];return g.indexOf(k)>g.indexOf(y)?m===a?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:m===o?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.compareDocumentPosition=i;function s(o){return o=o.filter(function(a,u,l){return!l.includes(a,u+1)}),o.sort(function(a,u){var l=i(a,u);return l&r.PRECEDING?-1:l&r.FOLLOWING?1:0}),o}t.uniqueSort=s})(oC);var wm={};Object.defineProperty(wm,"__esModule",{value:!0});wm.getFeed=void 0;var lX=ts,Cd=ns;function cX(t){var e=S0(mX,t);return e?e.name==="feed"?fX(e):dX(e):null}wm.getFeed=cX;function fX(t){var e,n=t.children,r={type:"atom",items:(0,Cd.getElementsByTagName)("entry",n).map(function(o){var a,u=o.children,l={media:aC(u)};Fi(l,"id","id",u),Fi(l,"title","title",u);var c=(a=S0("link",u))===null||a===void 0?void 0:a.attribs.href;c&&(l.link=c);var d=Aa("summary",u)||Aa("content",u);d&&(l.description=d);var h=Aa("updated",u);return h&&(l.pubDate=new Date(h)),l})};Fi(r,"id","id",n),Fi(r,"title","title",n);var i=(e=S0("link",n))===null||e===void 0?void 0:e.attribs.href;i&&(r.link=i),Fi(r,"description","subtitle",n);var s=Aa("updated",n);return s&&(r.updated=new Date(s)),Fi(r,"author","email",n,!0),r}function dX(t){var e,n,r=(n=(e=S0("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],i={type:t.name.substr(0,3),id:"",items:(0,Cd.getElementsByTagName)("item",t.children).map(function(o){var a=o.children,u={media:aC(a)};Fi(u,"id","guid",a),Fi(u,"title","title",a),Fi(u,"link","link",a),Fi(u,"description","description",a);var l=Aa("pubDate",a)||Aa("dc:date",a);return l&&(u.pubDate=new Date(l)),u})};Fi(i,"title","title",r),Fi(i,"link","link",r),Fi(i,"description","description",r);var s=Aa("lastBuildDate",r);return s&&(i.updated=new Date(s)),Fi(i,"author","managingEditor",r,!0),i}var hX=["url","type","lang"],pX=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function aC(t){return(0,Cd.getElementsByTagName)("media:content",t).map(function(e){for(var n=e.attribs,r={medium:n.medium,isDefault:!!n.isDefault},i=0,s=hX;i<s.length;i++){var o=s[i];n[o]&&(r[o]=n[o])}for(var a=0,u=pX;a<u.length;a++){var o=u[a];n[o]&&(r[o]=parseInt(n[o],10))}return n.expression&&(r.expression=n.expression),r})}function S0(t,e){return(0,Cd.getElementsByTagName)(t,e,!0,1)[0]}function Aa(t,e,n){return n===void 0&&(n=!1),(0,lX.textContent)((0,Cd.getElementsByTagName)(t,e,n,1)).trim()}function Fi(t,e,n,r,i){i===void 0&&(i=!1);var s=Aa(n,r,i);s&&(t[e]=s)}function mX(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=xt&&xt.__createBinding||(Object.create?function(i,s,o,a){a===void 0&&(a=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(i,a,u)}:function(i,s,o,a){a===void 0&&(a=o),i[a]=s[o]}),n=xt&&xt.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};
970Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(ts,t),n(Wr,t),n(Li,t),n(Si,t),n(ns,t),n(oC,t),n(wm,t);var r=Vo;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(Mp);(function(t){var e=xt&&xt.__createBinding||(Object.create?function(b,S,$,D){D===void 0&&(D=$);var P=Object.getOwnPropertyDescriptor(S,$);(!P||("get"in P?!S.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return S[$]}}),Object.defineProperty(b,D,P)}:function(b,S,$,D){D===void 0&&(D=$),b[D]=S[$]}),n=xt&&xt.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:!0,value:S})}:function(b,S){b.default=S}),r=xt&&xt.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var $ in b)$!=="default"&&Object.prototype.hasOwnProperty.call(b,$)&&e(S,b,$);return n(S,b),S},i=xt&&xt.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=Zf,o=Zf;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=Vo,u=Vo;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(b,S){var $=new a.DomHandler(void 0,S);return new s.Parser($,S).end(b),$.root}t.parseDocument=l;function c(b,S){return l(b,S).children}t.parseDOM=c;function d(b,S,$){var D=new a.DomHandler(b,S,$);return new s.Parser(D,S)}t.createDomStream=d;var h=W_;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(h).default}}),t.ElementType=r(yc);var m=Mp,g=Mp;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var k={xmlMode:!0};function y(b,S){return S===void 0&&(S=k),(0,m.getFeed)(c(b,S))}t.parseFeed=y,t.DomUtils=r(Mp)})(x$);var gX=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},J_={};Object.defineProperty(J_,"__esModule",{value:!0});/*! 971 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> 972 * 973 * Copyright (c) 2014-2017, Jon Schlinkert. 974 * Released under the MIT License. 975 */function B6(t){return Object.prototype.toString.call(t)==="[object Object]"}function vX(t){var e,n;return B6(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(B6(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}J_.isPlainObject=vX;var bX=function(e){return _X(e)&&!yX(e)};function _X(t){return!!t&&typeof t=="object"}function yX(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||kX(t)}var wX=typeof Symbol=="function"&&Symbol.for,EX=wX?Symbol.for("react.element"):60103;function kX(t){return t.$$typeof===EX}function SX(t){return Array.isArray(t)?[]:{}}function Kf(t,e){return e.clone!==!1&&e.isMergeableObject(t)?ec(SX(t),t,e):t}function TX(t,e,n){return t.concat(e).map(function(r){return Kf(r,n)})}function $X(t,e){if(!e.customMerge)return ec;var n=e.customMerge(t);return typeof n=="function"?n:ec}function CX(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function z6(t){return Object.keys(t).concat(CX(t))}function uC(t,e){try{return e in t}catch{return!1}}function AX(t,e){return uC(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function DX(t,e,n){var r={};return n.isMergeableObject(t)&&z6(t).forEach(function(i){r[i]=Kf(t[i],n)}),z6(e).forEach(function(i){AX(t,i)||(uC(t,i)&&n.isMergeableObject(e[i])?r[i]=$X(i,n)(t[i],e[i],n):r[i]=Kf(e[i],n))}),r}function ec(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||TX,n.isMergeableObject=n.isMergeableObject||bX,n.cloneUnlessOtherwiseSpecified=Kf;var r=Array.isArray(e),i=Array.isArray(t),s=r===i;return s?r?n.arrayMerge(t,e,n):DX(t,e,n):Kf(e,n)}ec.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return ec(r,i,n)},{})};var IX=ec,OX=IX,lC={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(xt,function(){return function(e){function n(D){return D===" "||D===" "||D===` 976`||D==="\f"||D==="\r"}function r(D){var P,x=D.exec(e.substring(y));if(x)return P=x[0],y+=P.length,P}for(var i=e.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,d,h,m,g,k,y=0,b=[];;){if(r(o),y>=i)return b;d=r(a),h=[],d.slice(-1)===","?(d=d.replace(u,""),$()):S()}function S(){for(r(s),m="",g="in descriptor";;){if(k=e.charAt(y),g==="in descriptor")if(n(k))m&&(h.push(m),m="",g="after descriptor");
vendor: 8,320 bytes, lines 976-992
976else if(k===","){y+=1,m&&h.push(m),$();return}else if(k==="(")m=m+k,g="in parens";else if(k===""){m&&h.push(m),$();return}else m=m+k;else if(g==="in parens")if(k===")")m=m+k,g="in descriptor";else if(k===""){h.push(m),$();return}else m=m+k;else if(g==="after descriptor"&&!n(k))if(k===""){$();return}else g="in descriptor",y-=1;y+=1}}function $(){var D=!1,P,x,R,q,F={},L,M,V,H,J;for(q=0;q<h.length;q++)L=h[q],M=L[L.length-1],V=L.substring(0,L.length-1),H=parseInt(V,10),J=parseFloat(V),l.test(V)&&M==="w"?((P||x)&&(D=!0),H===0?D=!0:P=H):c.test(V)&&M==="x"?((P||x||R)&&(D=!0),J<0?D=!0:x=J):l.test(V)&&M==="h"?((R||x)&&(D=!0),H===0?D=!0:R=H):D=!0;D?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):(F.url=d,P&&(F.w=P),x&&(F.d=x),R&&(F.h=R),b.push(F))}}})})(lC);var NX=lC.exports,ey={exports:{}},er=String,cC=function(){return{isColorSupported:!1,reset:er,bold:er,dim:er,italic:er,underline:er,inverse:er,hidden:er,strikethrough:er,black:er,red:er,green:er,yellow:er,blue:er,magenta:er,cyan:er,white:er,gray:er,bgBlack:er,bgRed:er,bgGreen:er,bgYellow:er,bgBlue:er,bgMagenta:er,bgCyan:er,bgWhite:er}};ey.exports=cC();ey.exports.createColors=cC;var RX=ey.exports;const PX={},xX=Object.freeze(Object.defineProperty({__proto__:null,default:PX},Symbol.toStringTag,{value:"Module"})),Vs=w_(xX);let j6=RX,U6=Vs,Zv=class fC extends Error{constructor(e,n,r,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fC)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=j6.isColorSupported),U6&&e&&(n=U6(n));let r=n.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),o=String(s).length,a,u;if(e){let{bold:l,gray:c,red:d}=j6.createColors(!0);a=h=>l(d(h)),u=h=>c(h)}else a=u=l=>l;return r.slice(i,s).map((l,c)=>{let d=i+1+c,h=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let m=u(h.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(h)+l+` 977 `+m+a("^")}return" "+u(h)+l}).join(` 978`)}toString(){let e=this.showSourceCode();return e&&(e=` 979 980`+e+` 981`),this.name+": "+this.message+e}};var ty=Zv;Zv.default=Zv;var Ad={};Ad.isClean=Symbol("isClean");Ad.my=Symbol("my");const H6={after:` 982`,beforeClose:` 983`,beforeComment:` 984`,beforeDecl:` 985`,beforeOpen:" ",beforeRule:` 986`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function qX(t){return t[0].toUpperCase()+t.slice(1)}let Xv=class{constructor(e){this.builder=e}atrule(e,n){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let s=(e.raws.between||"")+(n?";":"");this.builder(r+i+s,e)}}beforeAfter(e,n){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):n==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(r.includes(` 987`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)r+=o}return r}block(e,n){let r=this.raw(e,"between","beforeOpen");this.builder(n+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,n!==i||r)}}comment(e){let n=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+r+"*/",e)}decl(e,n){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),n&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],typeof i<"u"))return i;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return H6[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+qX(r);this[a]?i=this[a](o,e):o.walk(u=>{if(i=u.raws[n],typeof i<"u")return!1})}return typeof i>"u"&&(i=H6[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(` 988`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(` 989`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,n){let r;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(` 990`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let n;return e.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(` 991`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(` 992`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let r=e[n],i=e.raws[n];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var dC=Xv;Xv.default=Xv;let FX=dC;function Kv(t,e){new FX(e).stringify(t)}var Em=Kv;Kv.default=Kv;let{isClean:Xh,my:LX}=Ad,MX=ty,BX=dC,zX=Em;function Jv(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let i=t[r],s=typeof i;r==="parent"&&s==="object"?e&&(n[r]=e):r==="source"?n[r]=i:Array.isArray(i)?n[r]=i.map(o=>Jv(o,n)):(s==="object"&&i!==null&&(i=Jv(i)),n[r]=i)}return n}let eb=class{constructor(e={}){this.raws={},this[Xh]=!1,this[LX]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let r of e[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=Jv(this);for(let r in e)n[r]=e[r];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:r,start:i}=this.rangeBy(n);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},n)}return new MX(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>
vendor: 4,429 bytes, lines 992-993
992e.root().toProxy():e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Xh]){this[Xh]=!1;let e=this;for(;e=e.parent;)e[Xh]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let r=this.source.start;if(e.index)r=this.positionInside(e.index,n);else if(e.word){n=this.toString();let i=n.indexOf(e.word);i!==-1&&(r=this.positionInside(i,n))}return r}positionInside(e,n){let r=n||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)r[o]===` 993`?(i=1,s+=1):i+=1;return{column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);s!==-1&&(n=this.positionInside(s,i),r=this.positionInside(s+e.word.length,i))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(e,n){return new BX().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(n,i),n=i):this.parent.insertBefore(n,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,n){let r={},i=n==null;n=n||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,n);else if(o==="source"){let u=n.get(a.input);u==null&&(u=s,n.set(a.input,s),s++),r[o]={end:a.end,inputId:u,start:a.start}}else r[o]=a}return i&&(r.inputs=[...n.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=zX){e.stringify&&(e=e.stringify);let n="";return e(this,r=>{n+=r}),n}warn(e,n,r){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(n,i)}get proxyOf(){return this}};var km=eb;eb.default=eb;let jX=km,tb=class extends jX{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Sm=tb;tb.default=tb;let UX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",HX=(t,e=21)=>(n=e)=>{let r="",i=n;for(;i--;)r+=t[Math.random()*t.length|0];return r},VX=(t=21)=>{let e="",n=t;for(;n--;)e+=UX[Math.random()*64|0];return e};var WX={nanoid:VX,customAlphabet:HX};let{SourceMapConsumer:V6,SourceMapGenerator:W6}=Vs,{existsSync:GX,readFileSync:YX}=Vs,{dirname:S1,join:QX}=Vs;function ZX(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let nb=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,i=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=S1(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new V6(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||r.test(e))return ZX(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/gm);
vendor: 18,974 bytes, lines 993-998
993if(!n)return;let r=e.lastIndexOf(n.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=S1(e),GX(e))return this.mapFile=e,YX(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(n instanceof V6)return W6.fromSourceMap(n).toString();if(n instanceof W6)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=QX(S1(e),r)),this.loadFile(r)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var hC=nb;nb.default=nb;let{SourceMapConsumer:XX,SourceMapGenerator:KX}=Vs,{fileURLToPath:G6,pathToFileURL:Kh}=Vs,{isAbsolute:rb,resolve:ib}=Vs,{nanoid:JX}=WX,T1=Vs,Y6=ty,eK=hC,$1=Symbol("fromOffsetCache"),tK=!!(XX&&KX),Q6=!!(ib&&rb),T0=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Q6||/^\w+:\/\//.test(n.from)||rb(n.from)?this.file=n.from:this.file=ib(n.from)),Q6&&tK){let r=new eK(this.css,n);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+JX(6)+">"),this.map&&(this.map.file=this.from)}error(e,n,r,i={}){let s,o,a;if(n&&typeof n=="object"){let l=n,c=r;if(typeof l.offset=="number"){let d=this.fromOffset(l.offset);n=d.line,r=d.col}else n=l.line,r=l.column;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);o=d.line,a=d.col}else o=c.line,a=c.column}else if(!r){let l=this.fromOffset(n);n=l.line,r=l.col}let u=this.origin(n,r,o,a);return u?s=new Y6(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):s=new Y6(e,o===void 0?n:{column:r,line:n},o===void 0?r:{column:a,line:o},this.css,this.file,i.plugin),s.input={column:r,endColumn:a,endLine:o,line:n,source:this.css},this.file&&(Kh&&(s.input.url=Kh(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let n,r;if(this[$1])r=this[$1];else{let s=this.css.split(` 994`);r=new Array(s.length);let o=0;for(let a=0,u=s.length;a<u;a++)r[a]=o,o+=s[a].length+1;this[$1]=r}n=r[r.length-1];let i=0;if(e>=n)i=r.length-1;else{let s=r.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<r[o])s=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ib(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:n,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:i,line:r}));let u;rb(o.source)?u=Kh(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||Kh(this.map.mapFile));let l={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(G6)l.file=G6(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=s.sourceContentFor(o.source);return c&&(l.source=c),l}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Tm=T0;T0.default=T0;T1&&T1.registerInput&&T1.registerInput(T0);let{SourceMapConsumer:pC,SourceMapGenerator:zp}=Vs,{dirname:jp,relative:mC,resolve:gC,sep:vC}=Vs,{pathToFileURL:Z6}=Vs,nK=Tm,rK=!!(pC&&zp),iK=!!(jp&&gC&&mC&&vC),sK=class{constructor(e,n,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=` 995`;this.css.includes(`\r 996`)&&(n=`\r 997`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),r=e.root||jp(e.file),i;this.mapOpts.sourcesContent===!1?(i=new pC(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),iK&&rK&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zp.fromSourceMap(e)}else this.map=new zp({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new zp({file:this.outputFile()});let e=1,n=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(a,u,l)=>{if(this.css+=a,u&&l!=="end"&&(i.generated.line=e,i.generated.column=n-1,u.source&&u.source.start?(i.source=this.sourcePath(u),i.original.line=u.source.start.line,i.original.column=u.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=a.match(/\n/g),s?(e+=s.length,o=a.lastIndexOf(` 998`),n=a.length-o):n+=a.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(i.source=this.sourcePath(u),i.original.line=u.source.end.line,i.original.column=u.source.end.column-1,i.generated.line=e,i.generated.column=n-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let r=this.opts.to?jp(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=jp(gC(r,this.mapOpts.annotation)));let i=mC(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new nK(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(Z6){let r=Z6(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;vC==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var bC=sK;let oK=km,sb=class extends oK{constructor(e){super(e),this.type="comment"}};var $m=sb;sb.default=sb;let{isClean:_C,my:yC}=Ad,wC=Sm,EC=$m,aK=km,kC,ny,ry,SC;function TC(t){return t.map(e=>(e.nodes&&(e.nodes=TC(e.nodes)),delete e.source,e))}function $C(t){if(t[_C]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)$C(e)}let Wo=class CC extends aK{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,i;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[n]+=1;return delete this.indexes[n],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):n==="every"||n==="some"?r=>e[n]((i,...s)=>r(i.toProxy(),...s)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),i=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,n){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,n){if(typeof e=="string")e=TC(kC(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new wC(e)]}else if(e.selector)e=[new ny(e)];else if(e.name)e=[new ry(e)];else if(e.text)e=[new EC(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[yC]||CC.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[_C]&&$C(i),typeof i.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(i.raws.before=n.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(i=>{n.props&&!n.props.includes(i.prop)||n.fast&&!i.value.includes(n.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let i;try{i=e(n,r)}catch(s){throw n.addToError(s)}return i!==!1&&n.walk&&(i=n.walk(e)),i})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return n(r,i)}):(n=e,this.walk((r,i)=>{if(r.type==="atrule")return n(r,i)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return n(r,i)}):(n=e,this.walk((r,i)=>{if(r.type==="decl")return n(r,i)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return n(r,i)}):(n=e,this.walk((r,i)=>{if(r.type==="rule")return n(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Wo.registerParse=t=>{kC=t};Wo.registerRule=t=>{ny=t};Wo.registerAtRule=t=>{ry=t};Wo.registerRoot=t=>{SC=t};var Uu=Wo;Wo.default=Wo;Wo.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,ry.prototype):t.type==="rule"?Object.setPrototypeOf(t,ny.prototype):t.type==="decl"?Object.setPrototypeOf(t,wC.prototype):t.type==="comment"?Object.setPrototypeOf(t,EC.prototype):t.type==="root"&&Object.setPrototypeOf(t,SC.prototype),t[yC]=!0,t.nodes&&t.nodes.forEach(e=>{Wo.rebuild(e)})};let uK=Uu,AC,DC,Jf=class extends uK{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new AC(new DC,this,e).stringify()}};Jf.registerLazyResult=t=>{AC=t};Jf.registerProcessor=t=>{DC=t};var iy=Jf;Jf.default=Jf;let ob=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var IC=ob;ob.default=ob;let lK=IC,ab=class{constructor(e,n,r){this.processor=e,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new lK(e,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var sy=ab;ab.default=ab;const C1=39,X6=34,Jh=92,K6=47,ep=10,sf=32,tp=12,np=9,rp=13,cK=91,fK=93,dK=40,hK=41,pK=123,mK=125,gK=59,vK=42,bK=58,_K=64,ip=/[\t\n\f\r "#'()/;[\\\]{}]/g,sp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yK=/.[\r\n"'(/\\]/,J6=/[\da-f]/i;var wK=function(e,n={}){let r=e.css.valueOf(),i=n.ignoreErrors,s,o,a,u,l,c,d,h,m,g,k=r.length,y=0,b=[],S=[];function $(){return y}function D(q){throw e.error("Unclosed "+q,y)}function P(){return S.length===0&&y>=k}function x(q){if(S.length)return S.pop();if(y>=k)return;let F=q?q.ignoreUnclosed:!1;switch(s=r.charCodeAt(y),s){case ep:case sf:case np:case rp:case tp:{o=y;do o+=1,s=r.charCodeAt(o);while(s===sf||s===ep||s===np||s===rp||s===tp);g=["space",r.slice(y,o)],y=o-1;break}case cK:case fK:case pK:case mK:case bK:case gK:case hK:{let L=String.fromCharCode(s);g=[L,L,y];break}case dK:{if(h=b.length?b.pop()[1]:"",m=r.charCodeAt(y+1),h==="url"&&m!==C1&&m!==X6&&m!==sf&&m!==ep&&m!==np&&m!==tp&&m!==rp){o=y;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||F){o=y;break}else D("bracket");for(d=o;r.charCodeAt(d-1)===Jh;)d-=1,c=!c}while(c);g=["brackets",r.slice(y,o+1),y,o],y=o}else o=r.indexOf(")",y+1),u=r.slice(y,o+1),o===-1||yK.test(u)?g=["(","(",y]:(g=["brackets",u,y,o],y=o);break}case C1:case X6:{a=s===C1?"'":'"',o=y;do{if(c=!1,o=r.indexOf(a,o+1),o===-1)if(i||F){o=y+1;break}else D("string");for(d=o;r.charCodeAt(d-1)===Jh;)d-=1,c=!c}while(c);g=["string",r.slice(y,o+1),y,o],y=o;break}case _K:{ip.lastIndex=y+1,ip.test(r),ip.lastIndex===0?o=r.length-1:o=ip.lastIndex-2,g=["at-word",r.slice(y,o+1),y,o],y=o;break}case Jh:{for(o=y,l=!0;r.charCodeAt(o+1)===Jh;)o+=1,l=!l;if(s=r.charCodeAt(o+1),l&&s!==K6&&s!==sf&&s!==ep&&s!==np&&s!==rp&&s!==tp&&(o+=1,J6.test(r.charAt(o)))){for(;J6.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===sf&&(o+=1)}g=["word",r.slice(y,o+1),y,o],y=o;break}default:{s===K6&&r.charCodeAt(y+1)===vK?(o=r.indexOf("*/",y+2)+1,o===0&&(i||F?o=r.length:D("comment")),g=["comment",r.slice(y,o+1),y,o],y=o):(sp.lastIndex=y+1,sp.test(r),sp.lastIndex===0?o=r.length-1:o=sp.lastIndex-2,g=["word",r.slice(y,o+1),y,o],b.push(g),y=o);break}}return y++,g}function R(q){S.push(q)}return{back:R,endOfFile:P,nextToken:x,position:$}};let OC=Uu,$0=class extends OC{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var oy=$0;$0.default=$0;OC.registerAtRule($0);let NC=Uu,RC,PC,tc=class extends NC{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,r){let i=super.normalize(e);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of i)s.raws.before=n.raws.before}return i}removeChild(e,n){let r=this.index(e);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new RC(new PC,this,e).stringify()}};tc.registerLazyResult=t=>{RC=t};tc.registerProcessor=t=>{PC=t};var Dd=tc;tc.default=tc;NC.registerRoot(tc);let ed={comma(t){return ed.split(t,[","],!0)},space(t){let e=[" ",`
999`," "];return ed.split(t,e)},split(t,e,n){let r=[],i="",s=!1,o=0,a=!1,u="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:a?c===u&&(a=!1):c==='"'||c==="'"?(a=!0,u=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=c;return(n||i!=="")&&r.push(i.trim()),r}};var xC=ed;ed.default=ed;let qC=Uu,EK=xC,C0=class extends qC{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return EK.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var ay=C0;C0.default=C0;qC.registerRule(C0);let kK=Sm,SK=wK,TK=$m,$K=oy,CK=Dd,eE=ay;const tE={empty:!0,space:!0};function AK(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}let DK=class{constructor(e){this.input=e,this.root=new CK,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new $K;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let r,i,s,o=!1,a=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(s=u.length-1,i=u[s];i&&i[0]==="space";)i=u[--s];i&&(n.source.end=this.getPosition(i[3]||i[2]),n.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),o&&(e=u[u.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let r=0,i;for(let s=n-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let n=0,r,i,s;for(let[o,a]of e.entries()){if(r=a,i=r[0],i==="("&&(n+=1),i===")"&&(n-=1),n===0&&i===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=r}return!1}comment(e){let n=new TK;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=i[2],n.raws.left=i[1],n.raws.right=i[3]}}createTokenizer(){this.tokenizer=SK(this.input)}decl(e,n){let r=new kK;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||AK(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(s=e[l],s[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(s[1].toLowerCase()==="important"){let c=e.slice(0),d="";for(let h=l;h>0;h--){let m=c[h][0];if(d.trim().indexOf("!")===0&&m!=="space")break;d=c.pop()[1]+d}d.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=d,e=c)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(l=>
vendor: 13,862 bytes, lines 999-1001
999l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new eE;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,r=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),u=[],l=e;for(;l;){if(r=l[0],u.push(l),r==="("||r==="[")s||(s=l),o.push(r==="("?")":"]");else if(a&&i&&r==="{")s||(s=l),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),o.length>0&&this.unclosedBracket(s),n&&i){if(!a)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,r,i){let s,o,a=r.length,u="",l=!0,c,d;for(let h=0;h<a;h+=1)s=r[h],o=s[0],o==="space"&&h===a-1&&!i?l=!1:o==="comment"?(d=r[h-1]?r[h-1][0]:"empty",c=r[h+1]?r[h+1][0]:"empty",!tE[d]&&!tE[c]?u.slice(-1)===","?l=!1:u+=s[1]:l=!1):u+=s[1];if(!l){let h=r.reduce((m,g)=>m+g[1],"");e.raws[n]={raw:h,value:u}}e[n]=u}rule(e){e.pop();let n=new eE;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let n,r="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let n,r="";for(;e.length&&(n=e[e.length-1][0],n==="space");)r=e.pop()[1]+r;return r}stringFrom(e,n){let r="";for(let i=n;i<e.length;i++)r+=e[i][1];return e.splice(n,e.length-n),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var IK=DK;let OK=Uu,NK=IK,RK=Tm;function A0(t,e){let n=new RK(t,e),r=new NK(n);try{r.parse()}catch(i){throw i}return r.root}var uy=A0;A0.default=A0;OK.registerParse(A0);let{isClean:Js,my:PK}=Ad,xK=bC,qK=Em,FK=Uu,LK=iy,nE=sy,MK=uy,BK=Dd;const zK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},jK={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},UK={Once:!0,postcssPlugin:!0,prepare:!0},nc=0;function of(t){return typeof t=="object"&&typeof t.then=="function"}function FC(t){let e=!1,n=zK[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,nc,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,nc,n+"Exit"]:[n,n+"Exit"]}function rE(t){let e;return t.type==="document"?e=["Document",nc,"DocumentExit"]:t.type==="root"?e=["Root",nc,"RootExit"]:e=FC(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ub(t){return t[Js]=!1,t.nodes&&t.nodes.forEach(e=>ub(e)),t}let lb={},rc=class LC{constructor(e,n,r){this.stringified=!1,this.processed=!1;let i;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))i=ub(n);else if(n instanceof LC||n instanceof nE)i=ub(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=MK;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{i=s(n,r)}catch(o){this.processed=!0,this.error=o}i&&!i[PK]&&FK.rebuild(i)}this.result=new nE(e,i,r),this.helpers={...lb,postcss:lb,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(n,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,i])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!jK[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!UK[r])if(typeof n[r]=="object")for(let i in n[r])i==="*"?e(n,r,n[r][i]):e(n,r+"-"+i.toLowerCase(),n[r][i]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],r=this.runOnRoot(n);if(of(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Js];){e[Js]=!0;let n=[rE(e)];for(;n.length>0;){let r=this.visitTick(n);if(of(r))try{await r}catch(i){let s=n[n.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let i=e.nodes.map(s=>r(s,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return of(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=qK;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let i=new xK(n,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(of(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Js];)e[Js]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,i]of e){this.result.lastPlugin=r;let s;try{s=i(n,this.helpers)}catch(o){throw this.handleError(o,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(of(s))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:i}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&n.visitorIndex<i.length){let[o,a]=i[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===i.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(n.iterator!==0){let o=n.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[Js]){a[Js]=!0,e.push(rE(a));return}n.iterator=0,delete r.indexes[o]}let s=n.events;for(;n.eventIndex<s.length;){let o=s[n.eventIndex];if(n.eventIndex+=1,o===nc){r.nodes&&r.nodes.length&&(r[Js]=!0,n.iterator=r.getIterator());return}else if(this.listeners[o]){n.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Js]=!0;let n=FC(e);for(let r of n)if(r===nc)e.nodes&&e.each(i=>{i[Js]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};rc.registerPostcss=t=>{lb=t};var MC=rc;rc.default=rc;BK.registerLazyResult(rc);LK.registerLazyResult(rc);let HK=bC,VK=Em,WK=uy;const GK=sy;let cb=class{constructor(e,n,r){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=r,this._map=void 0;let i,s=VK;this.result=new GK(this._processor,i,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new HK(s,i,this._opts,n);if(a.isMap()){let[u,l]=a.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=WK;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var YK=cb;cb.default=cb;let QK=YK,ZK=MC,XK=iy,KK=Dd,td=class{constructor(e=[]){this.version="8.4.33",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(e,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new QK(this,e,n):new ZK(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var JK=td;td.default=td;KK.registerProcessor(td);XK.registerProcessor(td);let eJ=Sm,tJ=hC,nJ=$m,rJ=oy,iJ=Tm,sJ=Dd,oJ=ay;function nd(t,e){if(Array.isArray(t))return t.map(i=>nd(i));let{inputs:n,...r}=t;if(n){e=[];for(let i of n){let s={...i,__proto__:iJ.prototype};s.map&&(s.map={...s.map,__proto__:tJ.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=t.nodes.map(i=>nd(i,e))),r.source){let{inputId:i,...s}=r.source;r.source=s,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new sJ(r);if(r.type==="decl")return new eJ(r);if(r.type==="rule")return new oJ(r);if(r.type==="comment")return new nJ(r);if(r.type==="atrule")return new rJ(r);throw new Error("Unknown node type: "+t.type)}var aJ=nd;nd.default=nd;var iE={};let uJ=ty,BC=Sm,lJ=MC,cJ=Uu,ly=JK,fJ=Em,dJ=aJ,zC=iy,hJ=IC,jC=$m,UC=oy,pJ=sy,mJ=Tm,gJ=uy,vJ=xC,HC=ay,VC=Dd,bJ=km;function qn(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ly(t)}qn.plugin=function(e,n){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: 1000https://evilmartians.com/chronicles/postcss-8-plugin-migration`),iE.LANG&&iE.LANG.startsWith("cn")&&console.warn(e+`: éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå: 1001https://www.w3ctech.com/topic/2226`));let a=n(...o);return a.postcssPlugin=e,a.postcssVersion=new ly().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,u){return qn([i(u)]).process(o,a)},i};qn.stringify=fJ;qn.parse=gJ;qn.fromJSON=dJ;qn.list=vJ;
1001qn.comment=t=>new jC(t);qn.atRule=t=>new UC(t);qn.decl=t=>new BC(t);qn.rule=t=>new HC(t);qn.root=t=>new VC(t);qn.document=t=>new zC(t);qn.CssSyntaxError=uJ;qn.Declaration=BC;qn.Container=cJ;qn.Processor=ly;qn.Document=zC;qn.Comment=jC;qn.Warning=hJ;qn.AtRule=UC;qn.Result=pJ;qn.Input=mJ;qn.Rule=HC;qn.Root=VC;qn.Node=bJ;lJ.registerPostcss(qn);var _J=qn;qn.default=qn;const yJ=x$,sE=gX,{isPlainObject:wJ}=J_,oE=OX,EJ=NX,{parse:kJ}=_J,SJ=["img","audio","video","picture","svg","object","map","iframe","embed"],TJ=["script","style"];function vf(t,e){t&&Object.keys(t).forEach(function(n){e(t[n],n)})}function No(t,e){return{}.hasOwnProperty.call(t,e)}function aE(t,e){const n=[];return vf(t,function(r){e(r)&&n.push(r)}),n}function $J(t){for(const e in t)if(No(t,e))return!1;return!0}function CJ(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var AJ=rd;const DJ=/^[^\0\t\n\f\r /<=>]+$/;function rd(t,e,n){if(t==null)return"";typeof t=="number"&&(t=t.toString());let r="",i="";function s(Z,Q){const K=this;this.tag=Z,this.attribs=Q||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(y.length){const G=y[y.length-1];G.text+=K.text}},this.updateParentNodeMediaChildren=function(){y.length&&SJ.includes(this.tag)&&y[y.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},rd.defaults,e),e.parser=Object.assign({},IJ,e.parser);const o=function(Z){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(Z)>-1};TJ.forEach(function(Z){o(Z)&&!e.allowVulnerableTags&&console.warn(` 1002 1003â ï¸ Your \`allowedTags\` option includes, \`${Z}\`, which is inherently 1004vulnerable to XSS attacks. Please remove it from \`allowedTags\`. 1005Or, to disable this warning, add the \`allowVulnerableTags\` option 1006and ensure you are accounting for this risk. 1007 1008`)});const a=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},vf(e.allowedAttributes,function(Z,Q){u[Q]=[];const K=[];Z.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?K.push(sE(G).replace(/\\\*/g,".*")):u[Q].push(G)}),K.length&&(l[Q]=new RegExp("^("+K.join("|")+")$"))}));const c={},d={},h={};vf(e.allowedClasses,function(Z,Q){if(u&&(No(u,Q)||(u[Q]=[]),u[Q].push("class")),c[Q]=Z,Array.isArray(Z)){const K=[];c[Q]=[],h[Q]=[],Z.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?K.push(sE(G).replace(/\\\*/g,".*")):G instanceof RegExp?h[Q].push(G):c[Q].push(G)}),K.length&&(d[Q]=new RegExp("^("+K.join("|")+")$"))}});const m={};let g;vf(e.transformTags,function(Z,Q){let K;typeof Z=="function"?K=Z:typeof Z=="string"&&(K=rd.simpleTransform(Z)),Q==="*"?g=K:m[Q]=K});let k,y,b,S,$,D,P=!1;R();const x=new yJ.Parser({onopentag:function(Z,Q){if(e.enforceHtmlBoundary&&Z==="html"&&R(),$){D++;return}const K=new s(Z,Q);y.push(K);let G=!1;const se=!!K.text;let fe;if(No(m,Z)&&(fe=m[Z](Z,Q),K.attribs=Q=fe.attribs,fe.text!==void 0&&(K.innerText=fe.text),Z!==fe.tagName&&(K.name=Z=fe.tagName,S[k]=fe.tagName)),g&&(fe=g(Z,Q),K.attribs=Q=fe.attribs,Z!==fe.tagName&&(K.name=Z=fe.tagName,S[k]=fe.tagName)),(!o(Z)||e.disallowedTagsMode==="recursiveEscape"&&!$J(b)||e.nestingLimit!=null&&k>=e.nestingLimit)&&(G=!0,b[k]=!0,e.disallowedTagsMode==="discard"&&a.indexOf(Z)!==-1&&($=!0,D=1),b[k]=!0),k++,G){if(e.disallowedTagsMode==="discard")return;i=r,r=""}r+="<"+Z,Z==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(K.innerText=""),(!u||No(u,Z)||u["*"])&&vf(Q,function(me,Ae){if(!DJ.test(Ae)){delete K.attribs[Ae];return}if(me===""&&(e.nonBooleanAttributes.includes(Ae)||e.nonBooleanAttributes.includes("*"))){delete K.attribs[Ae];return}let ee=!1;if(!u||No(u,Z)&&u[Z].indexOf(Ae)!==-1||u["*"]&&u["*"].indexOf(Ae)!==-1||No(l,Z)&&l[Z].test(Ae)||l["*"]&&l["*"].test(Ae))ee=!0;else if(u&&u[Z]){for(const ue of u[Z])if(wJ(ue)&&ue.name&&ue.name===Ae){ee=!0;let ie="";if(ue.multiple===!0){const de=me.split(" ");for(const Fe of de)ue.values.indexOf(Fe)!==-1&&(ie===""?ie=Fe:ie+=" "+Fe)}else ue.values.indexOf(me)>=0&&(ie=me);me=ie}}if(ee){if(e.allowedSchemesAppliedToAttributes.indexOf(Ae)!==-1&&F(Z,me)){delete K.attribs[Ae];return}if(Z==="script"&&Ae==="src"){let ue=!0;try{const ie=L(me);if(e.allowedScriptHostnames||e.allowedScriptDomains){const de=(e.allowedScriptHostnames||[]).find(function(Ve){return Ve===ie.url.hostname}),Fe=(e.allowedScriptDomains||[]).find(function(Ve){return ie.url.hostname===Ve||ie.url.hostname.endsWith(`.${Ve}`)});ue=de||Fe}}catch{ue=!1}if(!ue){delete K.attribs[Ae];return}}if(Z==="iframe"&&Ae==="src"){let ue=!0;try{const ie=L(me);if(ie.isRelativeUrl)ue=No(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const de=(e.allowedIframeHostnames||[]).find(function(Ve){return Ve===ie.url.hostname}),Fe=(e.allowedIframeDomains||[]).find(function(Ve){return ie.url.hostname===Ve||ie.url.hostname.endsWith(`.${Ve}`)});ue=de||Fe}}catch{ue=!1}if(!ue){delete K.attribs[Ae];return}}if(Ae==="srcset")try{let ue=EJ(me);if(ue.forEach(function(ie){F("srcset",ie.url)&&(ie.evil=!0)}),ue=aE(ue,function(ie){return!ie.evil}),ue.length)me=CJ(aE(ue,function(ie){return!ie.evil})),K.attribs[Ae]=me;else{delete K.attribs[Ae];return}}catch{delete K.attribs[Ae];return}if(Ae==="class"){const ue=c[Z],ie=c["*"],de=d[Z],Fe=h[Z],Ve=d["*"],Te=[de,Ve].concat(Fe).filter(function(we){return we});if(ue&&ie?me=J(me,oE(ue,ie),Te):me=J(me,ue||ie,Te),!me.length){delete K.attribs[Ae];return}}if(Ae==="style"){if(e.parseStyleAttributes)try{const ue=kJ(Z+" {"+me+"}"),ie=M(ue,e.allowedStyles);if(me=V(ie),me.length===0){delete K.attribs[Ae];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+Z+" {"+me+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete K.attribs[Ae];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+Ae,me&&me.length&&(r+='="'+q(me,!0)+'"')}else delete K.attribs[Ae]}),e.selfClosing.indexOf(Z)!==-1?r+=" />":(r+=">",K.innerText&&!se&&!e.textFilter&&(r+=q(K.innerText),P=!0)),G&&(r=i+q(r),i="")},ontext:function(Z){if($)return;const Q=y[y.length-1];let K;if(Q&&(K=Q.tag,Z=Q.innerText!==void 0?Q.innerText:Z),e.disallowedTagsMode==="discard"&&(K==="script"||K==="style"))r+=Z;else{const G=q(Z,!1);e.textFilter&&!P?r+=e.textFilter(G,K):P||(r+=G)}if(y.length){const G=y[y.length-1];G.text+=Z}},onclosetag:function(Z,Q){if($)if(D--,!D)$=!1;else return;const K=y.pop();if(!K)return;if(K.tag!==Z){y.push(K);return}$=e.enforceHtmlBoundary?Z==="html":!1,k--;const G=b[k];if(G){if(delete b[k],e.disallowedTagsMode==="discard"){K.updateParentNodeText();return}i=r,r=""}if(S[k]&&(Z=S[k],delete S[k]),e.exclusiveFilter&&e.exclusiveFilter(K)){r=r.substr(0,K.tagPosition);return}if(K.updateParentNodeMediaChildren(),K.updateParentNodeText(),e.selfClosing.indexOf(Z)!==-1||Q&&!o(Z)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){G&&(r=i,i="");return}r+="</"+Z+">",G&&(r=i+q(r),i=""),P=!1}},e.parser);return x.write(t),x.end(),r;function R(){r="",k=0,y=[],b={},S={},$=!1,D=0}function q(Z,Q){return typeof Z!="string"&&(Z=Z+""),e.parser.decodeEntities&&(Z=Z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),Q&&(Z=Z.replace(/"/g,"""))),Z=Z.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),Q&&(Z=Z.replace(/"/g,""")),Z}function F(Z,Q){for(Q=Q.replace(/[\x00-\x20]+/g,"");;){const se=Q.indexOf("<!--");if(se===-1)break;const fe=Q.indexOf("-->",se+4);if(fe===-1)break;Q=Q.substring(0,se)+Q.substring(fe+3)}const K=Q.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!K)return Q.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const G=K[1].toLowerCase();return No(e.allowedSchemesByTag,Z)?e.allowedSchemesByTag[Z].indexOf(G)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(G)===-1}function L(Z){if(Z=Z.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),Z.startsWith("relative:"))throw new Error("relative: exploit attempt");let Q="relative://relative-site";for(let se=0;se<100;se++)Q+=`/${se}`;const K=new URL(Z,Q);return{isRelativeUrl:K&&K.hostname==="relative-site"&&K.protocol==="relative:",url:K}}function M(Z,Q){if(!Q)return Z;const K=Z.nodes[0];let G;return Q[K.selector]&&Q["*"]?G=oE(Q[K.selector],Q["*"]):G=Q[K.selector]||Q["*"],G&&(Z.nodes[0].nodes=K.nodes.reduce(H(G),[])),Z}function V(Z){return Z.nodes[0].nodes.reduce(function(Q,K){return Q.push(`${K.prop}:${K.value}${K.important?" !important":""}`),Q},[]).join(";")}function H(Z){return function(Q,K){return No(Z,K.prop)&&Z[K.prop].some(function(se){return se.test(K.value)})&&Q.push(K),Q}}function J(Z,Q,K){return Q?(Z=Z.split(/\s+/),Z.filter(function(G){return Q.indexOf(G)!==-1||K.some(function(se){return se.test(G)})}).join(" ")):Z}}const IJ={decodeEntities:!0};rd.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","
1008sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};rd.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(r,i){let s;if(n)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};const OJ=AT(AJ);var NJ="4.0.0";function RJ(t){return t===void 0}function ws(t){return typeof t=="boolean"}function PJ(t,e){for(var n in e)e.hasOwnProperty(n)&&RJ(t[n])&&(t[n]=e[n]);return t}function xJ(t,e,n){var r;return t.length>e&&(n==null?(n="…",r=3):r=n.length,t=t.substring(0,e-r)+n),t}function Gn(t,e){for(var n=t.length-1;n>=0;n--)t[n]===e&&t.splice(n,1)}function uu(t,e){for(var n=t.length-1;n>=0;n--)e(t[n])===!0&&t.splice(n,1)}function Of(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var Ol=/[A-Za-z]/,ui=/[\d]/,Ls=/\s/,A1=/['"]/,qJ=/[\x00-\x1F\x7F]/,FJ=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
10080EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,LJ=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,MJ=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D
10087F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,BJ=FJ+LJ+MJ,zJ=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,WC=BJ+zJ,Tu=new RegExp("[".concat(WC,"]")),GC=function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,n){var r=this.getAttrs();return r[e]=n,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var n=this.getClass(),r=n?n.split(Ls):[],i=e.split(Ls),s;s=i.shift();)r.indexOf(s)===-1&&r.push(s);return this.getAttrs().class=r.join(" "),this},t.prototype.removeClass=function(e){for(var n=this.getClass(),r=n?n.split(Ls):[],i=e.split(Ls),s;r.length&&(s=i.shift());){var o=r.indexOf(s);o!==-1&&r.splice(o,1)}return this.getAttrs().class=r.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),n=this.buildAttrsStr();return n=n?" "+n:"",["<",e,n,">",this.getInnerHtml(),"</",e,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r+'="'+e[r]+'"');return n.join(" ")},t}();function jJ(t,e,n){var r,i;n==null?(n="…",i=3,r=8):(i=n.length,r=n.length);var s=function(S){var $={},D=S,P=D.match(/^([a-z]+):\/\//i);return P&&($.scheme=P[1],D=D.substr(P[0].length)),P=D.match(/^(.*?)(?=(\?|#|\/|$))/i),P&&($.host=P[1],D=D.substr(P[0].length)),P=D.match(/^\/(.*?)(?=(\?|#|$))/i),P&&($.path=P[1],D=D.substr(P[0].length)),P=D.match(/^\?(.*?)(?=(#|$))/i),P&&($.query=P[1],D=D.substr(P[0].length)),P=D.match(/^#(.*?)$/i),P&&($.fragment=P[1]),$},o=function(S){var $="";return S.scheme&&S.host&&($+=S.scheme+"://"),S.host&&($+=S.host),S.path&&($+="/"+S.path),S.query&&($+="?"+S.query),S.fragment&&($+="#"+S.fragment),$},a=function(S,$){var D=$/2,P=Math.ceil(D),x=-1*Math.floor(D),R="";return x<0&&(R=S.substr(x)),S.substr(0,P)+n+R};if(t.length<=e)return t;var u=e-i,l=s(t);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),t=o(l))}if(t.length<=e||(l.host&&(l.host=l.host.replace(/^www\./,""),t=o(l)),t.length<=e))return t;var d="";if(l.host&&(d+=l.host),d.length>=u)return l.host.length==e?(l.host.substr(0,e-i)+n).substr(0,u+r):a(d,u).substr(0,u+r);var h="";if(l.path&&(h+="/"+l.path),l.query&&(h+="?"+l.query),h)if((d+h).length>=u){if((d+h).length==e)return(d+h).substr(0,e);var m=u-d.length;return(d+a(h,m)).substr(0,u+r)}else d+=h;if(l.fragment){var g="#"+l.fragment;if((d+g).length>=u){if((d+g).length==e)return(d+g).substr(0,e);var k=u-d.length;return(d+a(g,k)).substr(0,u+r)}else d+=g}if(l.scheme&&l.host){var y=l.scheme+"://";if((d+y).length<u)return(y+d).substr(0,e)}if(d.length<=e)return d;var b="";return u>0&&(b=d.substr(-1*Math.floor(u/2))),(d.substr(0,Math.ceil(u/2))+n+b).substr(0,u+r)}function UJ(t,e,n){if(t.length<=e)return t;var r,i;n==null?(n="…",r=8,i=3):(r=n.length,i=n.length);var s=e-i,o="";return s>0&&(o=t.substr(-1*Math.floor(s/2))),(t.substr(0,Math.ceil(s/2))+n+o).substr(0,s+r)}function HJ(t,e,n){return xJ(t,e,n)}var VJ=function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new GC({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var n={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(n.class=r),this.newWindow&&(n.target="_blank",n.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(n.title=e.getAnchorHref()),n},t.prototype.createCssClass=function(e){var n=this.className;if(n){for(var r=[n],i=e.getCssClassSuffixes(),s=0,o=i.length;s<o;s++)r.push(n+"-"+i[s]);return r.join(" ")}else return""},t.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},t.prototype.doTruncate=function(e){var n=this.truncate;if(!n||!n.length)return e;var r=n.length,i=n.location;return i==="smart"?jJ(e,r):i==="middle"?UJ(e,r):HJ(e,r)},t}(),Id=function(){function t(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),WJ="
vendor: 11,449 bytes, line 1008
1008(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|Ù
ÙØ±ÙتاÙÙØ§|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|Ø§ÙØ³Ø¹ÙØ¯ÙØ©|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|каÑолик|Ø§ØªØµØ§ÙØ§Øª|Ø§ÙØ¨ØØ±ÙÙ|Ø§ÙØ¬Ø²Ø§Ø¦Ø±|Ø§ÙØ¹ÙÙØ§Ù|پاکستاÙ|ÙØ§Ø«ÙÙÙÙ|à®à®¨à¯à®¤à®¿à®¯à®¾|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|моÑква|онлайн|Ø§Ø¨ÙØ¸Ø¨Ù|اراÙ
ÙÙ|Ø§ÙØ§Ø±Ø¯Ù|اÙÙ
غرب|اÙ
ارات|ÙÙØ³Ø·ÙÙ|Ù
ÙÙØ³Ùا|à¤à¤¾à¤°à¤¤à¤®à¥|à®à®²à®à¯à®à¯|ãã¡ãã·ã§ã³|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|×שר××|Ø§ÛØ±Ø§Ù|بازار|بھارت|Ø³ÙØ¯Ø§Ù|Ø³ÙØ±ÙØ©|ÙÙ
راÙ|à¤à¤¾à¤°à¥à¤¤|सà¤à¤à¤ न|বাà¦à¦²à¦¾|à°à°¾à°°à°¤à±|à´à´¾à´°à´¤à´|åé大é
åº|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|деÑи|ÑайÑ|بارت|Ø¨ÙØªÙ|ÚØ§Ø±Øª|تÙÙØ³|Ø´Ø¨ÙØ©|عراÙ|عÙ
اÙ|Ù
ÙÙØ¹|à¤à¤¾à¤°à¤¤|à¦à¦¾à¦°à¦¤|à¦à¦¾à§°à¦¤|à¨à¨¾à¨°à¨¤|àªàª¾àª°àª¤|à¬à¬¾à¬°à¬¤|à²à²¾à²°à²¤|à¶½à¶à¶à·|ã¢ãã¾ã³|ã°ã¼ã°ã«|ã¯ã©ã¦ã|ãã¤ã³ã|ç»ç»æºæ|é»è¨çç§|馿 ¼éæ|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|Òаз|мкд|мон|оÑг|ÑÑÑ|ÑÑб|ÑкÑ|Õ°Õ¡Õµ|×§××|عرب|ÙØ·Ø±|ÙÙÙ
|Ù
صر|à¤à¥à¤®|नà¥à¤|à¸à¸à¸¡|à¹à¸à¸¢|ລາວ|ã¹ãã¢|ã»ã¼ã«|ã¿ããª|䏿ç½|äºé©¬é|天主æ|æç±ä½ |æ°å å¡|淡马é¡|诺åºäº|é£å©æµ¦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|εÏ
|бг|еÑ|ÑÑ|áá|ë·ë·|ë·ì»´|ì¼ì±|íêµ|ã³ã |ä¸ç|ä¸ä¿¡|ä¸å½|ä¸å|ä¼ä¸|ä½å±±|ä¿¡æ¯|å¥åº·|å
«å¦|å
¬å¸|å
¬ç|å°æ¹¾|å°ç£|åå|ååº|åæ |åé|å¨çº¿|大æ¿|娱ä¹|å®¶é»|广ä¸|å¾®å|æ
å|ææº|æè|æ¿å¡|æ¿åº|æ°é»|æ¶å°|æ¸ç±|æºæ|游æ|æ¾³é|ç¹ç|ç§»å¨|ç½å|ç½åº|ç½ç«|ç½ç»|èé|è°·æ|è´ç©|é販|éå¢|é£å|é¤å
|馿¸¯)
1008",GJ=new RegExp("^"+WJ+"$"),YJ=/[\/?#]/,QJ=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,YC=/[?!:,.;^]/,QC=/https?:\/\//i,ZJ=new RegExp("^"+QC.source,"i"),XJ=new RegExp(YC.source+"$"),KJ=/^(javascript|vbscript):/i,JJ=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,eee=/^(?:\/\/)?([^/#?:]+)/;function D1(t){return Ol.test(t)}function uE(t){return Ol.test(t)||ui.test(t)||t==="+"||t==="-"||t==="."}function ba(t){return Tu.test(t)}function I1(t){return t==="_"||ba(t)}function lE(t){return Tu.test(t)||QJ.test(t)||YC.test(t)}function O1(t){return YJ.test(t)}function ZC(t){return GJ.test(t.toLowerCase())}function tee(t){if(KJ.test(t))return!1;var e=t.match(JJ);if(!e)return!1;var n=!!e[1],r=e[2];return n?!0:!(r.indexOf(".")===-1||!Ol.test(r))}function nee(t){var e=t.match(eee);if(!e)return!1;var n=e[0],r=n.split(".");if(r.length<2)return!1;var i=r[r.length-1];return!!ZC(i)}var ree=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,iee=/[:/?#]/;function see(t){var e=t.split(iee,1)[0];return ree.test(e)}var oee=/^(https?:\/\/)?(www\.)?/i,aee=/^\/\//,uee=function(t){Xr(e,t);function e(n){var r=t.call(this,n)||this;return r.type="url",r.url="",r.urlMatchType="scheme",r.protocolRelativeMatch=!1,r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.protocolPrepended=!1,r.urlMatchType=n.urlMatchType,r.url=n.url,r.protocolRelativeMatch=n.protocolRelativeMatch,r.stripPrefix=n.stripPrefix,r.stripTrailingSlash=n.stripTrailingSlash,r.decodePercentEncoding=n.decodePercentEncoding,r}return e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var n=this.url;return!this.protocolRelativeMatch&&this.urlMatchType!=="scheme"&&!this.protocolPrepended&&(n=this.url="http://"+n,this.protocolPrepended=!0),n},e.prototype.getAnchorHref=function(){var n=this.getUrl();return n.replace(/&/g,"&")},e.prototype.getAnchorText=function(){var n=this.getMatchedText();return this.protocolRelativeMatch&&(n=fee(n)),this.stripPrefix.scheme&&(n=lee(n)),this.stripPrefix.www&&(n=cee(n)),this.stripTrailingSlash&&(n=dee(n)),this.decodePercentEncoding&&(n=hee(n)),n},e}(Id);function lee(t){return t.replace(ZJ,"")}function cee(t){return t.replace(oee,"$1")}function fee(t){return t.replace(aee,"")}function dee(t){return t.charAt(t.length-1)==="/"&&(t=t.slice(0,-1)),t}function hee(t){var e=t.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(e)}catch{return e}}var pee=/^mailto:/i,mee=new RegExp("[".concat(WC,"!#$%&'*+/=?^_`{|}~-]"));function gee(t){return Tu.test(t)}function N1(t){return mee.test(t)}function vee(t){var e=t.split(".").pop()||"";return ZC(e)}var bee=function(t){Xr(e,t);function e(n){var r=t.call(this,n)||this;return r.type="email",r.email="",r.email=n.email,r}return e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e}(Id);function cE(t){return t==="_"||Tu.test(t)}function _ee(t){return t.length<=140}var yee=["twitter","facebook","instagram","tiktok"],wee=function(t){Xr(e,t);function e(n){var r=t.call(this,n)||this;return r.type="hashtag",r.serviceName="twitter",r.hashtag="",r.serviceName=n.serviceName,r.hashtag=n.hashtag,r}return e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var n=this.serviceName,r=this.hashtag;switch(n){case"twitter":return"https://twitter.com/hashtag/"+r;case"facebook":return"https://www.facebook.com/hashtag/"+r;case"instagram":return"https://instagram.com/explore/tags/"+r;case"tiktok":return"https://www.tiktok.com/tag/"+r;default:throw Of(n),new Error("Invalid hashtag service: ".concat(n))}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),r=this.getServiceName();return r&&n.push(r),n},e}(Id),Eee={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},kee=/[-\w.]/;function fE(t){return kee.test(t)}function See(t,e){var n=Eee[e];return n.test(t)}var Tee=["twitter","instagram","soundcloud","tiktok"],$ee=function(t){Xr(e,t);function e(n){var r=t.call(this,n)||this;return r.type="mention",r.serviceName="twitter",r.mention="",r.mention=n.mention,r.serviceName=n.serviceName,r}return e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),r=this.getServiceName();return r&&n.push(r),n},e}(Id),Cee=/[-. ]/,Aee=/[-. ()]/,Dee=/[,;
1008]/,Iee=/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/,Oee=/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,Nee=new RegExp("^".concat(Iee.source,"|").concat(Oee.source,"$"));function dE(t){return Cee.test(t)}function R1(t){return Dee.test(t)}function Ree(t){var e=t.charAt(0)==="+"||Aee.test(t);return e&&Nee.test(t)}var Pee=function(t){Xr(e,t);function e(n){var r=t.call(this,n)||this;return r.type="phone",r.number="",r.plusSign=!1,r.number=n.number,r.plusSign=n.plusSign,r}return e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e}(Id);function xee(t,e){for(var n=e.tagBuilder,r=e.stripPrefix,i=e.stripTrailingSlash,s=e.decodePercentEncoding,o=e.hashtagServiceName,a=e.mentionServiceName,u=[],l=t.length,c=[],d=0;d<l;d++){var h=t.charAt(d);if(c.length===0)y(h);else for(var m=c.length-1;m>=0;m--){var g=c[m];switch(g.state){case 11:x(g,h);break;case 12:R(g,h);break;case 0:b(g,h);break;case 1:S(g,h);break;case 2:$(g,h);break;case 3:D(g,h);break;case 4:P(g,h);break;case 5:q(g,h);break;case 6:F(g,h);break;case 7:L(g,h);break;case 13:M(g,h);break;case 14:V(g,h);break;case 8:H(g,h);break;case 9:J(g,h);break;case 10:Z(g,h);break;case 15:Q(g,h);break;case 16:K(g,h);break;case 17:G(g,h);break;case 18:se(g,h);break;case 19:fe(g,h);break;case 20:me(g,h);break;case 21:Ae(g,h);break;case 22:ee(g,h);break;case 23:ue(g,h);break;case 24:ie(g,h);break;case 25:de(g,h);break;case 26:Fe(g,h);break;case 27:Ve(g,h);break;case 28:Te(g,h);break;case 29:we(g,h);break;case 30:je(g,h);break;case 31:Je(g,h);break;case 32:Ge(g,h);break;case 33:nt(g,h);break;case 34:rt(g,h);break;case 35:Ze(g,h);break;case 36:at(g,h);break;case 37:Ne(g,h);break;case 38:bt(g,h);break;case 39:he(g,h);break;case 40:Pe(g,h);break;case 41:Se(g,h);break;default:Of(g.state)}}}for(var k=c.length-1;k>=0;k--)c.forEach(function(te){return Le(te)});return u;function y(te){if(te==="#")c.push(Bee(d,28));else if(te==="@")c.push(zee(d,30));else if(te==="/")c.push(x1(d,11));else if(te==="+")c.push(q1(d,37));else if(te==="(")c.push(q1(d,32));else{if(ui.test(te)&&(c.push(q1(d,38)),c.push(Lee(d,13))),gee(te)){var X=te.toLowerCase()==="m"?15:22;c.push(Mee(d,X))}D1(te)&&c.push(P1(d,0)),Tu.test(te)&&c.push(x1(d,5))}}function b(te,X){X===":"?te.state=2:X==="-"?te.state=1:uE(X)||Gn(c,te)}function S(te,X){X==="-"||(X==="/"?(Gn(c,te),c.push(x1(d,11))):uE(X)?te.state=0:Gn(c,te))}function $(te,X){X==="/"?te.state=3:X==="."?Gn(c,te):ba(X)?(te.state=5,D1(X)&&c.push(P1(d,0))):Gn(c,te)}function D(te,X){X==="/"?te.state=4:lE(X)?(te.state=10,te.acceptStateReached=!0):Le(te)}function P(te,X){X==="/"?te.state=10:ba(X)?(te.state=5,te.acceptStateReached=!0):Gn(c,te)}function x(te,X){X==="/"?te.state=12:Gn(c,te)}function R(te,X){ba(X)?te.state=5:Gn(c,te)}function q(te,X){X==="."?te.state=7:X==="-"?te.state=6:X===":"?te.state=8:O1(X)?te.state=10:I1(X)||Le(te)}function F(te,X){X==="-"||(X==="."?Le(te):ba(X)?te.state=5:Le(te))}function L(te,X){X==="."?Le(te):ba(X)?(te.state=5,te.acceptStateReached=!0):Le(te)}function M(te,X){X==="."?te.state=14:X===":"?te.state=8:ui.test(X)||(O1(X)?te.state=10:Tu.test(X)?Gn(c,te):Le(te))}function V(te,X){ui.test(X)?(te.octetsEncountered++,te.octetsEncountered===4&&(te.acceptStateReached=!0),te.state=13):Le(te)}function H(te,X){ui.test(X)?te.state=9:Le(te)}function J(te,X){ui.test(X)||(O1(X)?te.state=10:Le(te))}function Z(te,X){lE(X)||Le(te)}function Q(te,X){X.toLowerCase()==="a"?te.state=16:ee(te,X)}function K(te,X){X.toLowerCase()==="i"?te.state=17:ee(te,X)}function G(te,X){X.toLowerCase()==="l"?te.state=18:ee(te,X)}function se(te,X){X.toLowerCase()==="t"?te.state=19:ee(te,X)}function fe(te,X){X.toLowerCase()==="o"?te.state=20:ee(te,X)}function me(te,X){X.toLowerCase()===":"?te.state=21:ee(te,X)}function Ae(te,X){N1(X)?te.state=22:Gn(c,te)}function ee(te,X){X==="."?te.state=23:X==="@"?te.state=24:N1(X)?te.state=22:Gn(c,te)}function ue(te,X){X==="."||X==="@"?Gn(c,te):N1(X)?te.state=22:Gn(c,te)}function ie(te,X){ba(X)?te.state=25:Gn(c,te)}function de(te,X){X==="."?te.state=27:X==="-"?te.state=26:I1(X)||Le(te)}function Fe(te,X){X==="-"||X==="."?Le(te):I1(X)?te.state=25:Le(te)}function Ve(te,X){X==="."||X==="-"?Le(te):ba(X)?(te.state=25,te.acceptStateReached=!0):Le(te)}function Te(te,X){cE(X)?(te.state=29,te.acceptStateReached=!0):Gn(c,te)}function we(te,X){cE(X)||Le(te)}function je(te,X){fE(X)?(te.state=31,te.acceptStateReached=!0):Gn(c,te)}function Je(te,X){fE(X)||(Tu.test(X)?Gn(c,te):Le(te))}function Ne(te,X){ui.test(X)?te.state=38:(Gn(c,te),y(X))}function Ge(te,X){ui.test(X)?te.state=33:Gn(c,te),y(X)}function nt(te,X){ui.test(X)?te.state=34:Gn(c,te)}function rt(te,X){ui.test(X)?te.state=35:Gn(c,te)}function Ze(te,X){X===")"?te.state=36:Gn(c,te)}function at(te,X){ui.test(X)?te.state=38:dE(X)?te.state=39:Gn(c,te)}function bt(te,X){te.acceptStateReached=!0,R1(X)?te.state=40:X==="#"?te.state=41:ui.test(X)||(X==="("?te.state=32:dE(X)?te.state=39:(Le(te),D1(X)&&c.push(P1(d,0))))}function he(te,X){ui.test(X)?te.state=38:X==="("?te.state=32:(Le(te),y(X))}function Pe(te,X){R1(X)||(X==="#"?te.state=41:ui.test(X)?te.state=38:Le(te))}function Se(te,X){R1(X)?te.state=40:ui.test(X)?Gn(c,te):Le(te)}function Le(te){if(Gn(c,te),!!te.acceptStateReached){var X=te.startIdx,ye=t.slice(te.startIdx,d);if(ye=Fee(ye),te.type==="url"){var Xe=t.charAt(te.startIdx-1);if(Xe==="@")return;var Be=te.matchType;if(Be==="scheme"){var it=QC.exec(ye);if(it&&(X=X+it.index,ye=ye.slice(it.index)),!tee(ye))return}else if(Be==="tld"){if(!nee(ye))return}else if(Be==="ipV4"){if(!see(ye))return}else Of(Be);u.push(new uee({tagBuilder:n,matchedText:ye,offset:X,urlMatchType:Be,url:ye,protocolRelativeMatch:ye.slice(0,2)==="//",stripPrefix:r,stripTrailingSlash:i,decodePercentEncoding:s}))}else if(te.type==="email")vee(ye)&&u.push(new bee({tagBuilder:n,matchedText:ye,offset:X,email:ye.replace(pee,"")}));else if(te.type==="hashtag")_ee(ye)&&u.push(new wee({tagBuilder:n,matchedText:ye,offset:X,serviceName:o,hashtag:ye.slice(1)}));else if(te.type==="mention")See(ye,a)&&u.push(new $ee({tagBuilder:n,matchedText:ye,offset:X,serviceName:a,mention:ye.slice(1)}));else if(te.type==="phone"){if(ye=ye.replace(/ +$/g,""),Ree(ye)){var mt=ye.replace(/[^0-9,;#]/g,"");u.push(new Pee({tagBuilder:n,matchedText:ye,offset:X,number:mt,plusSign:ye.charAt(0)==="
1008+"}))}}else Of(te)}}}var qee=/[\(\{\[]/,hE=/[\)\}\]]/,pE={")":"(","}":"{","]":"["};function Fee(t){for(var e={"(":0,"{":0,"[":0},n=0;n<t.length;n++){var r=t.charAt(n);qee.test(r)?e[r]++:hE.test(r)&&e[pE[r]]--}for(var i=t.length-1,s;i>=0;)if(s=t.charAt(i),hE.test(s)){var o=pE[s];if(e[o]<0)e[o]++,i--;else break}else if(XJ.test(s))i--;else break;return t.slice(0,i+1)}function P1(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"scheme"}}function x1(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"tld"}}function Lee(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}function Mee(t,e){return{type:"email",startIdx:t,state:e,acceptStateReached:!1}}function Bee(t,e){return{type:"hashtag",startIdx:t,state:e,acceptStateReached:!1}}function zee(t,e){return{type:"mention",startIdx:t,state:e,acceptStateReached:!1}}function q1(t,e){return{type:"phone",startIdx:t,state:e,acceptStateReached:!1}}function jee(t,e){for(var n=e.onOpenTag,r=e.onCloseTag,i=e.onText,s=e.onComment,o=e.onDoctype,a=new Xs,u=0,l=t.length,c=0,d=0,h=a;u<l;){var m=t.charAt(u);switch(c){case 0:g(m);break;case 1:k(m);break;case 2:b(m);break;case 3:y(m);break;case 4:S(m);break;case 5:$(m);break;case 6:D(m);break;case 7:P(m);break;case 8:x(m);break;case 9:R(m);break;case 10:q(m);break;case 11:F(m);break;case 12:L(m);break;case 13:M();break;case 14:V(m);break;case 15:H(m);break;case 16:J(m);break;case 17:Z(m);break;case 18:Q(m);break;case 19:K(m);break;case 20:G(m);break;default:Of(c)}u++}d<u&&Ae();function g(ie){ie==="<"&&fe()}function k(ie){ie==="!"?c=13:ie==="/"?(c=2,h=new Xs(ke(ke({},h),{isClosing:!0}))):ie==="<"?fe():Ol.test(ie)?(c=3,h=new Xs(ke(ke({},h),{isOpening:!0}))):(c=0,h=a)}function y(ie){Ls.test(ie)?(h=new Xs(ke(ke({},h),{name:ee()})),c=4):ie==="<"?fe():ie==="/"?(h=new Xs(ke(ke({},h),{name:ee()})),c=12):ie===">"?(h=new Xs(ke(ke({},h),{name:ee()})),me()):!Ol.test(ie)&&!ui.test(ie)&&ie!==":"&&se()}function b(ie){ie===">"?se():Ol.test(ie)?c=3:se()}function S(ie){Ls.test(ie)||(ie==="/"?c=12:ie===">"?me():ie==="<"?fe():ie==="="||A1.test(ie)||qJ.test(ie)?se():c=5)}function $(ie){Ls.test(ie)?c=6:ie==="/"?c=12:ie==="="?c=7:ie===">"?me():ie==="<"?fe():A1.test(ie)&&se()}function D(ie){Ls.test(ie)||(ie==="/"?c=12:ie==="="?c=7:ie===">"?me():ie==="<"?fe():A1.test(ie)?se():c=5)}function P(ie){Ls.test(ie)||(ie==='"'?c=8:ie==="'"?c=9:/[>=`]/.test(ie)?se():ie==="<"?fe():c=10)}function x(ie){ie==='"'&&(c=11)}function R(ie){ie==="'"&&(c=11)}function q(ie){Ls.test(ie)?c=4:ie===">"?me():ie==="<"&&fe()}function F(ie){Ls.test(ie)?c=4:ie==="/"?c=12:ie===">"?me():ie==="<"?fe():(c=4,ue())}function L(ie){ie===">"?(h=new Xs(ke(ke({},h),{isClosing:!0})),me()):c=4}function M(ie){t.substr(u,2)==="--"?(u+=2,h=new Xs(ke(ke({},h),{type:"comment"})),c=14):t.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new Xs(ke(ke({},h),{type:"doctype"})),c=20):se()}function V(ie){ie==="-"?c=15:ie===">"?se():c=16}function H(ie){ie==="-"?c=18:ie===">"?se():c=16}function J(ie){ie==="-"&&(c=17)}function Z(ie){ie==="-"?c=18:c=16}function Q(ie){ie===">"?me():ie==="!"?c=19:ie==="-"||(c=16)}function K(ie){ie==="-"?c=17:ie===">"?me():c=16}function G(ie){ie===">"?me():ie==="<"&&fe()}function se(){c=0,h=a}function fe(){c=1,h=new Xs({idx:u})}function me(){var ie=t.slice(d,h.idx);ie&&i(ie,d),h.type==="comment"?s(h.idx):h.type==="doctype"?o(h.idx):(h.isOpening&&n(h.name,h.idx),h.isClosing&&r(h.name,h.idx)),se(),d=u+1}function Ae(){var ie=t.slice(d,u);i(ie,d),d=u+1}function ee(){var ie=h.idx+(h.isClosing?2:1);return t.slice(ie,u).toLowerCase()}function ue(){u--}}var Xs=function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return t}(),Uee=function(){function t(e){e===void 0&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=Hee(e.urls),this.email=ws(e.email)?e.email:this.email,this.phone=ws(e.phone)?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=ws(e.newWindow)?e.newWindow:this.newWindow,this.stripPrefix=Vee(e.stripPrefix),this.stripTrailingSlash=ws(e.stripTrailingSlash)?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=ws(e.decodePercentEncoding)?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.s
1008anitizeHtml||!1;var n=this.mention;if(n!==!1&&Tee.indexOf(n)===-1)throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var r=this.hashtag;if(r!==!1&&yee.indexOf(r)===-1)throw new Error("invalid `hashtag` cfg '".concat(r,"' - see docs"));this.truncate=Wee(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,n){var r=new t(n);return r.link(e)},t.parse=function(e,n){var r=new t(n);return r.parse(e)},t.prototype.parse=function(e){var n=this,r=["a","style","script"],i=0,s=[];return jee(e,{onOpenTag:function(o){r.indexOf(o)>=0&&i++},onText:function(o,a){if(i===0){var u=/( | |<|<|>|>|"|"|')/gi,l=o.split(u),c=a;l.forEach(function(d,h){if(h%2===0){var m=n.parseText(d,c);s.push.apply(s,m)}c+=d.length})}},onCloseTag:function(o){r.indexOf(o)>=0&&(i=Math.max(i-1,0))},onComment:function(o){},onDoctype:function(o){}}),s=this.compactMatches(s),s=this.removeUnwantedMatches(s),s},t.prototype.compactMatches=function(e){e.sort(function(u,l){return u.getOffset()-l.getOffset()});for(var n=0;n<e.length-1;){var r=e[n],i=r.getOffset(),s=r.getMatchedText().length,o=i+s;if(n+1<e.length){if(e[n+1].getOffset()===i){var a=e[n+1].getMatchedText().length>s?n:n+1;e.splice(a,1);continue}if(e[n+1].getOffset()<o){e.splice(n+1,1);continue}}n++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||uu(e,function(n){return n.getType()==="hashtag"}),this.email||uu(e,function(n){return n.getType()==="email"}),this.phone||uu(e,function(n){return n.getType()==="phone"}),this.mention||uu(e,function(n){return n.getType()==="mention"}),this.urls.schemeMatches||uu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="scheme"}),this.urls.tldMatches||uu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="tld"}),this.urls.ipV4Matches||uu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="ipV4"}),e}
1008,t.prototype.parseText=function(e,n){n===void 0&&(n=0),n=n||0;for(var r=xee(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),i=0,s=r.length;i<s;i++)r[i].setOffset(n+r[i].getOffset());return r},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var n=this.parse(e),r=[],i=0,s=0,o=n.length;s<o;s++){var a=n[s];r.push(e.substring(i,a.getOffset())),r.push(this.createMatchReturnVal(a)),i=a.getOffset()+a.getMatchedText().length}return r.push(e.substring(i)),r.join("")},t.prototype.createMatchReturnVal=function(e){var n;if(this.replaceFn&&(n=this.replaceFn.call(this.context,e)),typeof n=="string")return n;if(n===!1)return e.getMatchedText();if(n instanceof GC)return n.toAnchorString();var r=e.buildTag();return r.toAnchorString()},t.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new VJ({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=NJ,t}();function Hee(t){return t==null&&(t=!0),ws(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:ws(t.schemeMatches)?t.schemeMatches:!0,tldMatches:ws(t.tldMatches)?t.tldMatches:!0,ipV4Matches:ws(t.ipV4Matches)?t.ipV4Matches:!0}}function Vee(t){return t==null&&(t=!0),ws(t)?{scheme:t,www:t}:{scheme:ws(t.scheme)?t.scheme:!0,www:ws(t.www)?t.www:!0}}function Wee(t){return typeof t=="number"?{length:t,location:"end"}:PJ(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}const Gee=t=>{const e=OJ(t,{allowedTags:["i","b","br"]});return Uee.link(e,{newWindow:!0,urls:!0,email:!1,mention:!1,hashtag:!1,stripPrefix:!1,stripTrailingSlash:!1,sanitizeHtml:!1})};function Yee(t){Et(t,"svelte-1lvtsvt",".body.svelte-1lvtsvt.svelte-1lvtsvt{overflow-wrap:break-word;white-space:pre-line;display:flex;flex-direction:column;letter-spacing:0.25px;outline:none}.Entry > .Entity,.Entry > .AttachmentWrapper{margin-bottom:var(--e-spacing)}.Entry > .Entity:last-child,.Entry > .AttachmentWrapper:last-child{margin-bottom:0}.content.svelte-1lvtsvt.svelte-1lvtsvt{outline:none}.content.isEditing.svelte-1lvtsvt.svelte-1lvtsvt{flex-grow:1}.replyToWrapper.svelte-1lvtsvt.svelte-1lvtsvt{margin-bottom:var(--e-spacing)}.Entry.isReply.svelte-1lvtsvt.svelte-1lvtsvt{padding:1rem;border:2px solid var(--c-border)}.Entry.isReply.svelte-1lvtsvt .body.svelte-1lvtsvt{margin-bottom:0}.EntryOnCanvas .body{flex-grow:1;font-size:100%;line-height:120%}.EntryOnCanvas .Entry{padding:var(--e-spacing);height:100%;width:100%;display:flex;flex-direction:column}")}function mE(t,e,n){const r=t.slice();return r[53]=e[n],r}function gE(t,e,n){const r=t.slice();return r[56]=e[n],r}function vE(t,e){let n,r,i;return r=new rZ({props:{canRemove:e[8],showEnlargeButton:e[10]||e[9]||e[8],isNotClickable:e[7],attachment:e[56]}}),r.$on("remove",e[21]),r.$on("loaded",e[19]),{key:t,first:null,c(){n=Pt(),j(r.$$.fragment),this.first=n},m(s,o){O(s,n,o),B(r,s,o),i=!0},p(s,o){e=s;const a={};o[0]&256&&(a.canRemove=e[8]),o[0]&1792&&(a.showEnlargeButton=e[10]||e[9]||e[8]),o[0]&128&&(a.isNotClickable=e[7]),o[0]&4&&(a.attachment=e[56]),r.$set(a)},i(s){i||(E(r.$$.fragment,s),i=!0)},o(s){T(r.$$.fragment,s),i=!1},d(s){s&&I(n),z(r,s)}}}function bE(t,e){let n,r,i;return r=new fZ({props:{showEnlargeButton:e[10]||e[9]||e[8],isNotClickable:e[7],entity:e[53]}}),r.$on("loaded",e[20]),{key:t,first:null,c(){n=Pt(),j(r.$$.fragment),this.first=n},m(s,o){O(s,n,o),B(r,s,o),i=!0},p(s,o){e=s;const a={};o[0]&1792&&(a.showEnlargeButton=e[10]||e[9]||e[8]),o[0]&128&&(a.isNotClickable=e[7]),o[0]&8&&(a.entity=e[53]),r.$set(a)},i(s){i||(E(r.$$.fragment,s),i=!0)},o(s){T(r.$$.fragment,s),i=!1},d(s){s&&I(n),z(r,s)}}}function _E(t){var u,l;let e,n,r,i,s,o,a=!t[4]&&t[15]&&((l=(u=t[11])==null?void 0:u.data)==null?void 0:l.entry)&&yE(t);return{c(){e=C("div"),a&&a.c(),n=N(),r=C("div"),w(r,"role","textbox"),w(r,"tabindex","0"),w(r,"class","content dontDrag svelte-1lvtsvt"),w(r,"contenteditable",t[8]),w(r,"data-
1008placeholder",t[1]),ve(r,"isEditing",t[8]),w(e,"class","body svelte-1lvtsvt"),ve(e,"isMine",t[16])},m(c,d){O(c,e,d),a&&a.m(e,null),v(e,n),v(e,r),r.innerHTML=t[12],t[39](r),i=!0,s||(o=[Ie(r,"paste",t[23]),Ie(r,"keydown",J1(t[17])),Ie(r,"keyup",J1(t[18]))],s=!0)},p(c,d){var h,m;!c[4]&&c[15]&&((m=(h=c[11])==null?void 0:h.data)!=null&&m.entry)?a?(a.p(c,d),d[0]&34832&&E(a,1)):(a=yE(c),a.c(),E(a,1),a.m(e,n)):a&&($e(),T(a,1,1,()=>{a=null}),Ce()),(!i||d[0]&4096)&&(r.innerHTML=c[12]),(!i||d[0]&256)&&w(r,"contenteditable",c[8]),(!i||d[0]&2)&&w(r,"data-placeholder",c[1]),(!i||d[0]&256)&&ve(r,"isEditing",c[8]),(!i||d[0]&65536)&&ve(e,"isMine",c[16])},i(c){i||(E(a),i=!0)},o(c){T(a),i=!1},d(c){c&&I(e),a&&a.d(),t[39](null),s=!1,fn(o)}}}function yE(t){let e,n,r,i,s=t[8]&&t[5]&&wE(t);return r=new Cm({props:{isReply:!0,isNotClickable:t[7],user:t[11].data.entry.user,publicId:t[11].data.entry.publicId,content:t[11].data.entry.content,attachments:t[11].data.entry.attachments,entities:t[11].data.entry.entities}}),{c(){e=C("div"),s&&s.c(),n=N(),j(r.$$.fragment),w(e,"class","replyToWrapper svelte-1lvtsvt")},m(o,a){O(o,e,a),s&&s.m(e,null),v(e,n),B(r,e,null),i=!0},p(o,a){o[8]&&o[5]?s?(s.p(o,a),a[0]&288&&E(s,1)):(s=wE(o),s.c(),E(s,1),s.m(e,n)):s&&($e(),T(s,1,1,()=>{s=null}),Ce());const u={};a[0]&128&&(u.isNotClickable=o[7]),a[0]&2048&&(u.user=o[11].data.entry.user),a[0]&2048&&(u.publicId=o[11].data.entry.publicId),a[0]&2048&&(u.content=o[11].data.entry.content),a[0]&2048&&(u.attachments=o[11].data.entry.attachments),a[0]&2048&&(u.entities=o[11].data.entry.entities),r.$set(u)},i(o){i||(E(s),E(r.$$.fragment,o),i=!0)},o(o){T(s),T(r.$$.fragment,o),i=!1},d(o){o&&I(e),s&&s.d(),z(r)}}}function wE(t){let e,n;return e=new We({props:{pos:{right:0,top:0},small:!0,block:!0,circle:!0,title:"Remove Reply",$$slots:{default:[Qee]},$$scope:{ctx:t}}}),e.$on("click",t[22]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&1024&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Qee(t){let e,n;return e=new et({props:{icon:Sd.faTimes}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Zee(t){let e,n=[],r=new Map,i,s=[],o=new Map,a,u,l,c=Ut(t[2]);const d=b=>b[56].id;for(let b=0;b<c.length;b+=1){let S=gE(t,c,b),$=d(S);r.set($,n[b]=vE($,S))}let h=Ut(t[3]);const m=b=>b[53].id;for(let b=0;b<h.length;b+=1){let S=mE(t,h,b),$=m(S);o.set($,s[b]=bE($,S))}let g=t[6]&&_E(t);const k=t[38].default,y=hi(k,t,t[41],null);return{c(){e=C("div");for(let b=0;b<n.length;b+=1)n[b].c();i=N();for(let b=0;b<s.length;b+=1)s[b].c();a=N(),g&&g.c(),u=N(),y&&y.c(),w(e,"class","Entry svelte-1lvtsvt"),w(e,"data-id",t[0]),ve(e,"isMine",t[16]),ve(e,"isReply",t[4]),ve(e,"isDown",Kee),ve(e,"isShowingDetails",t[6]),ve(e,"isHovering",t[10])},m(b,S){O(b,e,S);for(let $=0;$<n.length;$+=1)n[$]&&n[$].m(e,null);v(e,i);for(let $=0;$<s.length;$+=1)s[$]&&s[$].m(e,null);v(e,a),g&&g.m(e,null),v(e,u),y&&y.m(e,null),t[40](e),l=!0},p(b,S){S[0]&2623364&&(c=Ut(b[2]),$e(),n=fo(n,S,d,1,b,c,r,e,co,vE,i,gE),Ce()),S[0]&1050504&&(h=Ut(b[3]),$e(),s=fo(s,S,m,1,b,h,o,e,co,bE,a,mE),Ce()),b[6]?g?(g.p(b,S),S[0]&64&&E(g,1)):(g=_E(b),g.c(),E(g,1),g.m(e,u)):g&&($e(),T(g,1,1,()=>{g=null}),Ce()),y&&y.p&&(!l||S[1]&1024)&&mi(y,k,b,b[41],l?pi(k,b[41],S,null):gi(b[41]),null),(!l||S[0]&1)&&w(e,"data-id",b[0]),(!l||S[0]&65536)&&ve(e,"isMine",b[16]),(!l||S[0]&16)&&ve(e,"isReply",b[4]),(!l||S[0]&64)&&ve(e,"isShowingDetails",b[6]),(!l||S[0]&1024)&&ve(e,"isHovering",b[10])},i(b){if(!l){for(let S=0;S<c.length;S+=1)E(n[S]);for(let S=0;S<h.length;S+=1)E(s[S]);E(g),E(y,b),l=!0}},o(b){for(let S=0;S<n.length;S+=1)T(n[S]);for(let S=0;S<s.length;S+=1)T(s[S]);T(g),T(y,b),l=!1},d(b){b&&I(e);for(let S=0;S<n.length;S+=1)n[S].d();for(let S=0;S<s.length;S+=1)s[S].d();g&&g.d(),y&&y.d(b),t[40](null)}}}let Xee=0,Kee=!1;const Jee=250;function ete(t,e,n){let r,i,s,o,a=Ee,u=()=>(a(),a=hd(fe,Se=>n(11,o=Se)),fe);Ke(t,wd,Se=>n(44,r=Se)),Ke(t,gc,Se=>n(45,i=Se)),Ke(t,vi,Se=>n(37,s=Se)),t.$$.on_destroy.push(()=>a());let{$$slots:l={},$$scope:c}=e;var d,h;let{user:m}=e,{spaceId:g}=e,{publicId:k=""}=e,{content:y=""}=e,{placeholder:b=""}=e,{attachments:S=[]}=e,{entities:$=[]}=e,{inReplyToId:D=null}=e,{isReply:P=!1}=e,{isDraft:x=!1}=e,{isShowingDetails:R=!0}=e,{isNotClickable:q=!1}=e,{isEditing:F=!1}=e,{isSelected:L=!1}=e,{isInBook:M=!1}=e,{isHovering:V=!1}=e,{submitOnEnter:H=!1}=e,{canPasteFile:J=!0}=e,Z=y||"",Q=!1,K,G,se=null,fe;const me=()=>{Fe("change",ie())},Ae=Se=>{F&&(Se.key==="Enter"&&Se.shiftKey?(document.execCommand("insertLineBreak"),Se.preventDefault()):Se.key==="Enter"&&(H?de():document.execCommand("insertLineBreak"),Se.preventDefault()))},ee=Se=>{if(!F)return;const Le=ie(),te=()=>Fe("change",Le);clearTimeout(se),se=setTimeout(te,Jee)},ue=()=>G.innerHTML.replaceAll(" "," ").trim().replace(/<br>$/,"").trimEnd(),ie=()=>({inReplyToId:D,content:ue(),attachmentIds:S.map(Se=>Se.id)}),de=()=>!ue()&&S.length===0?!1:(Fe("submit",ie()),!0),Fe=Cr();let Ve=!1;const Te=Se=>{Fe("attachment:loaded",{element:K,attachment:Se.detail.attachment}),F&&me()},we=Se=>{Fe("entity:loaded",{element:K,entity:Se.detail.entity})},je=Se=>{Fe("attachment:remove",{attachment:Se.detail.attachment}),me()},Je=()=>{n(14,G.innerHTML="",G)},Ne=()=>{G.focus();const Se=document.createRange();Se.selectNodeContents(G),Se.collapse(!1);const Le=window.getSelection();Le.removeAllRanges(),Le.addRange(Se),Se.detach(),Q=!0};Va(()=>{F&&!Q&&!M&&Ne()});const Ge=()=>de(),nt=()=>{Fe("reply:remove")},rt=nn(new Set);rt.subscribe(Se=>{const Le=Se.size>0;Fe("isUploading:change",{isUploading:Le})});const Ze=async Se=>{var Le,te,X,ye,Xe;if(r.attachmentSizeLimit!==null&&Number(i.attachmentSize)+Se.size>Number(r.attachmentSizeLimit)){Fe("attachment:limitExceeded");return}let it=Xee+=1;try{Fe("attachment:uploading",{file:Se,id:it}),rt.update(ft=>(ft.add(it),ft));const mt=await KW({variables:{spaceId:g,file:Se}}),Ct=(te=(Le=mt==null?void 0:mt.data)===null||Le===void 0?void 0:Le.createAttachment)===null||te===void 0?void 0:te.attachment;if(Ct)return Fe("attachment:uploaded",{file:Se,attachment:Ct,id:it}),Ct;
1008{const ft=(Xe=(ye=(X=mt==null?void 0:mt.data)===null||X===void 0?void 0:X.createAttachment)===null||ye===void 0?void 0:ye.errors)!==null&&Xe!==void 0?Xe:[];Fe("attachment:failed",{file:Se,id:it,errors:ft})}}catch(mt){Fe("attachment:failed",{file:Se,id:it,errors:[{message:"Failed to create attachment. Please try again."}]}),console.error(mt)}finally{rt.update(mt=>(mt.delete(it),mt))}},at=async Se=>{for(let Le of Se)try{await Ze(Le)}catch{}},bt=Se=>{if(Se.clipboardData.files.length>0){if(Se.preventDefault(),!J)return;at(Array.from(Se.clipboardData.files))}else if(Se.clipboardData.types.includes("text/html")){Se.preventDefault();const Le=Se.clipboardData.getData("text/html"),te=window.getSelection();if(!te.rangeCount)return;te.deleteFromDocument();const X=Gee(Le);if(X){const ye=te.getRangeAt(0),Xe=ye.createContextualFragment(X);ye.insertNode(Xe)}te.collapseToEnd()}};function he(Se){Qe[Se?"unshift":"push"](()=>{G=Se,n(14,G)})}function Pe(Se){Qe[Se?"unshift":"push"](()=>{K=Se,n(13,K)})}return t.$$set=Se=>{"user"in Se&&n(24,m=Se.user),"spaceId"in Se&&n(25,g=Se.spaceId),"publicId"in Se&&n(0,k=Se.publicId),"content"in Se&&n(26,y=Se.content),"placeholder"in Se&&n(1,b=Se.placeholder),"attachments"in Se&&n(2,S=Se.attachments),"entities"in Se&&n(3,$=Se.entities),"inReplyToId"in Se&&n(27,D=Se.inReplyToId),"isReply"in Se&&n(4,P=Se.isReply),"isDraft"in Se&&n(5,x=Se.isDraft),"isShowingDetails"in Se&&n(6,R=Se.isShowingDetails),"isNotClickable"in Se&&n(7,q=Se.isNotClickable),"isEditing"in Se&&n(8,F=Se.isEditing),"isSelected"in Se&&n(9,L=Se.isSelected),"isInBook"in Se&&n(28,M=Se.isInBook),"isHovering"in Se&&n(10,V=Se.isHovering),"submitOnEnter"in Se&&n(29,H=Se.submitOnEnter),"canPasteFile"in Se&&n(30,J=Se.canPasteFile),"$$scope"in Se&&n(41,c=Se.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&67109120&&(F||n(12,Z=y||"")),t.$$.dirty[0]&134219776|t.$$.dirty[1]&48&&(D?(n(36,h=n(35,d=o==null?void 0:o.query)===null||d===void 0?void 0:d.variables)===null||h===void 0?void 0:h.id)!==D&&u(n(15,fe=dG({fetchPolicy:"cache-first",variables:{id:D}}))):u(n(15,fe=null))),t.$$.dirty[0]&16777216|t.$$.dirty[1]&64&&n(16,Ve=s&&s.id===(m==null?void 0:m.id)),t.$$.dirty[0]&256&&(F||(Q=!1))},[k,b,S,$,P,x,R,q,F,L,V,o,Z,K,G,fe,Ve,Ae,ee,Te,we,je,nt,bt,m,g,y,D,M,H,J,ie,Je,Ge,Ze,d,h,s,l,he,Pe,c]}class Cm extends pt{constructor(e){super(),ht(this,e,ete,Zee,dt,{user:24,spaceId:25,publicId:0,content:26,placeholder:1,attachments:2,entities:3,inReplyToId:27,isReply:4,isDraft:5,isShowingDetails:6,isNotClickable:7,isEditing:8,isSelected:9,isInBook:28,isHovering:10,submitOnEnter:29,canPasteFile:30,buildPayload:31,reset:32,submit:33,newAttachmentFromFile:34},Yee,[-1,-1])}get buildPayload(){return this.$$.ctx[31]}get reset(){return this.$$.ctx[32]}get submit(){return this.$$.ctx[33]}get newAttachmentFromFile(){return this.$$.ctx[34]}}function tte(t){Et(t,"svelte-1hrofjx",".EntryField .AttachmentWrapper{margin:var(--e-spacing) var(--e-spacing) 0 var(--e-spacing)}.EntryField.svelte-1hrofjx.svelte-1hrofjx{position:relative;display:inline-block;margin:var(--e-spacing);margin-top:0rem;width:calc(100% - 2 * var(--e-spacing));line-height:2rem;background:var(--c-textfield);color:var(--c-text-inverse);border-radius:1.5rem 1.5rem 1.5rem 0;outline:0}.EntryField.minimized.svelte-1hrofjx.svelte-1hrofjx{width:3rem;height:4rem;opacity:0.75}.EntryField.minimized.hovering.svelte-1hrofjx.svelte-1hrofjx{opacity:1}.actionsWrapper.svelte-1hrofjx.svelte-1hrofjx{display:flex;flex-direction:row;align-items:center;padding:0rem 1.5rem 1rem 1.5rem}.actionsWrapper.svelte-1hrofjx .actions.svelte-1hrofjx{flex-shrink:0;display:flex;flex-direction:row;gap:1rem}.actionsWrapper.svelte-1hrofjx .actionsFiller.svelte-1hrofjx{flex-shrink:1;width:100%}.EntryField.isInBook.svelte-1hrofjx.svelte-1hrofjx{width:calc(100% - 3rem);background-color:var(--c-card-fader);border-radius:0}.EntryField .attachmentUploader{position:absolute;opacity:0;left:0;top:0;width:100%;height:100%}.EntryField .content{display:inline-block;width:100%;padding:1rem 1.5rem 0rem 1.5rem;outline:none;color:var(--c-text);cursor:text}.EntryField .content:empty:before{content:attr(data-placeholder);color:var(--c-text-faded)}")}function EE(t){var h;let e,n,r,i,s,o,a,u,l,c={canPasteFile:t[7],isEditing:!0,isDraft:!0,user:t[14],spaceId:t[1],attachments:t[10],entities:t[11],content:t[12],inReplyToId:(h=t[0])==null?void 0:h.id,placeholder:t[5],submitOnEnter:!0};e=new Cm({props:c}),t[28](e),e.$on("submit",t[29]),e.$on("change",t[30]),e.$on("isUploading:change",t[20]),e.$on("attachment:uploaded",t[18]),e.$on("attachment:failed",t[19]),e.$on("attachment:remove",t[21]),e.$on("reply:remove",t[15]);let d=t[6]&&kE(t);
1008return u=new We({props:{semiTransparent:!0,tiny:!0,$$slots:{default:[ste]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("div"),s=N(),o=C("div"),d&&d.c(),a=N(),j(u.$$.fragment),w(i,"class","actionsFiller svelte-1hrofjx"),w(o,"class","actions svelte-1hrofjx"),w(r,"class","actionsWrapper svelte-1hrofjx")},m(m,g){B(e,m,g),O(m,n,g),O(m,r,g),v(r,i),v(r,s),v(r,o),d&&d.m(o,null),v(o,a),B(u,o,null),l=!0},p(m,g){var b;const k={};g[0]&128&&(k.canPasteFile=m[7]),g[0]&16384&&(k.user=m[14]),g[0]&2&&(k.spaceId=m[1]),g[0]&1024&&(k.attachments=m[10]),g[0]&2048&&(k.entities=m[11]),g[0]&4096&&(k.content=m[12]),g[0]&1&&(k.inReplyToId=(b=m[0])==null?void 0:b.id),g[0]&32&&(k.placeholder=m[5]),e.$set(k),m[6]?d?(d.p(m,g),g[0]&64&&E(d,1)):(d=kE(m),d.c(),E(d,1),d.m(o,a)):d&&($e(),T(d,1,1,()=>{d=null}),Ce());const y={};g[0]&256|g[1]&2&&(y.$$scope={dirty:g,ctx:m}),u.$set(y)},i(m){l||(E(e.$$.fragment,m),E(d),E(u.$$.fragment,m),l=!0)},o(m){T(e.$$.fragment,m),T(d),T(u.$$.fragment,m),l=!1},d(m){m&&(I(n),I(r)),t[28](null),z(e,m),d&&d.d(),z(u)}}}function kE(t){let e,n;return e=new We({props:{disabled:t[13],tiny:!0,transparent:!0,$$slots:{default:[ite]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8192&&(s.disabled=r[13]),i[0]&8192|i[1]&2&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function nte(t){let e,n;return e=new et({props:{icon:_c.faPaperclip}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function rte(t){let e,n;return e=new et({props:{icon:mm.faSpinner,pulse:!0}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function ite(t){let e,n,r,i,s,o;e=new V_({props:{isDisabled:t[13]}}),e.$on("limitExceeded",t[16]),e.$on("change",t[17]);const a=[rte,nte],u=[];function l(c,d){return c[13]?0:1}return r=l(t),i=u[r]=a[r](t),{c(){j(e.$$.fragment),n=N(),i.c(),s=oe(` 1009 Attach`)},m(c,d){B(e,c,d),O(c,n,d),u[r].m(c,d),O(c,s,d),o=!0},p(c,d){const h={};d[0]&8192&&(h.isDisabled=c[13]),e.$set(h);let m=r;r=l(c),r!==m&&($e(),T(u[m],1,1,()=>{u[m]=null}),Ce(),i=u[r],i||(i=u[r]=a[r](c),i.c()),E(i,1),i.m(s.parentNode,s))},i(c){o||(E(e.$$.fragment,c),E(i),o=!0)},o(c){T(e.$$.fragment,c),T(i),o=!1},d(c){c&&(I(n),I(s)),z(e,c),u[r].d(c)}}}function ste(t){let e;return{c(){e=oe(t[8])},m(n,r){O(n,e,r)},p(n,r){r[0]&256&&Wt(e,n[8])},d(n){n&&I(e)}}}function ote(t){let e,n,r=!t[2]&&EE(t);return{c(){e=C("div"),r&&r.c(),w(e,"class","EntryField svelte-1hrofjx"),ve(e,"minimized",t[2]),ve(e,"hovering",t[4]),ve(e,"isInBook",t[3])},m(i,s){O(i,e,s),r&&r.m(e,null),n=!0},p(i,s){i[2]?r&&($e(),T(r,1,1,()=>{r=null}),Ce()):r?(r.p(i,s),s[0]&4&&E(r,1)):(r=EE(i),r.c(),E(r,1),r.m(e,null)),(!n||s[0]&4)&&ve(e,"minimized",i[2]),(!n||s[0]&16)&&ve(e,"hovering",i[4]),(!n||s[0]&8)&&ve(e,"isInBook",i[3])},i(i){n||(E(r),n=!0)},o(i){T(r),n=!1},d(i){i&&I(e),r&&r.d()}}}function ate(t,e,n){let r;Ke(t,vi,se=>n(14,r=se));let{spaceId:i}=e,{minimized:s=!1}=e,{inReplyTo:o=null}=e,{isInBook:a=null}=e,{hovering:u=!1}=e,{placeholder:l="Write here..."}=e,{canAttach:c=!1}=e,{canPasteFile:d=!0}=e,{prompt:h="Save"}=e;const m=Cr(),g=()=>$.submit(),k=()=>{n(0,o=null)};let{initialAttachments:y=[]}=e,{initialEntities:b=[]}=e,{initialContent:S=""}=e,$,D,P,x;const R=()=>{$&&$.focus()},q=()=>{n(10,D=[]),n(11,P=[]),$&&$.reset()},F=()=>{m("showUploadLimitExceededModal")};let L=!1;const M=se=>{$==null||$.newAttachmentFromFile(se.detail.file)},V=se=>{n(10,D=[...D,se.detail.attachment])},H=se=>{se.detail.errors.forEach(fe=>{xu({type:Ho.Error,message:fe.message})})},J=se=>{n(13,L=se.detail.isUploading)},Z=se=>{n(10,D=D.filter(fe=>fe.id!==se.detail.attachment.id))};function Q(se){Qe[se?"unshift":"push"](()=>{$=se,n(9,$)})}function K(se){Ht.call(this,t,se)}function G(se){Ht.call(this,t,se)}return t.$$set=se=>{"spaceId"in se&&n(1,i=se.spaceId),"minimized"in se&&n(2,s=se.minimized),"inReplyTo"in se&&n(0,o=se.inReplyTo),"isInBook"in se&&n(3,a=se.isInBook),"hovering"in se&&n(4,u=se.hovering),"placeholder"in se&&n(5,l=se.placeholder),"canAttach"in se&&n(6,c=se.canAttach),"canPasteFile"in se&&n(7,d=se.canPasteFile),"prompt"in se&&n(8,h=se.prompt),"initialAttachments"in se&&n(23,y=se.initialAttachments),"initialEntities"in se&&n(24,b=se.initialEntities),"initialContent"in se&&n(25,S=se.initialContent)},t.$$.update=()=>{t.$$.dirty[0]&8388608&&n(10,D=y),t.$$.dirty[0]&16777216&&n(11,P=b),t.$$.dirty[0]&33554432&&n(12,x=S)},[o,i,s,a,u,l,c,d,h,$,D,P,x,L,r,k,F,M,V,H,J,Z,g,y,b,S,R,q,Q,K,G]}class XC extends pt{constructor(e){super(),ht(this,e,ate,ote,dt,{spaceId:1,minimized:2,inReplyTo:0,isInBook:3,hovering:4,placeholder:5,canAttach:6,canPasteFile:7,prompt:8,submit:22,initialAttachments:23,initialEntities:24,initialContent:25,focus:26,reset:27},tte,[-1,-1])}get submit(){return this.$$.ctx[22]}get focus(){return this.$$.ctx[26]}get reset(){return this.$$.ctx[27]}}const cy=()=>"ontouchstart"in window||navigator.maxTouchPoints>0;
1009class Hu extends Error{}class ute extends Hu{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class lte extends Hu{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class cte extends Hu{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class bf extends Hu{}class KC extends Hu{constructor(e){super(`Invalid unit ${e}`)}}class ys extends Hu{}class da extends Hu{constructor(){super("Zone is an abstract class")}}const ct="numeric",Us="short",os="long",D0={year:ct,month:ct,day:ct},JC={year:ct,month:Us,day:ct},fte={year:ct,month:Us,day:ct,weekday:Us},eA={year:ct,month:os,day:ct},tA={year:ct,month:os,day:ct,weekday:os},nA={hour:ct,minute:ct},rA={hour:ct,minute:ct,second:ct},iA={hour:ct,minute:ct,second:ct,timeZoneName:Us},sA={hour:ct,minute:ct,second:ct,timeZoneName:os},oA={hour:ct,minute:ct,hourCycle:"h23"},aA={hour:ct,minute:ct,second:ct,hourCycle:"h23"},uA={hour:ct,minute:ct,second:ct,hourCycle:"h23",timeZoneName:Us},lA={hour:ct,minute:ct,second:ct,hourCycle:"h23",timeZoneName:os},cA={year:ct,month:ct,day:ct,hour:ct,minute:ct},fA={year:ct,month:ct,day:ct,hour:ct,minute:ct,second:ct},dA={year:ct,month:Us,day:ct,hour:ct,minute:ct},hA={year:ct,month:Us,day:ct,hour:ct,minute:ct,second:ct},dte={year:ct,month:Us,day:ct,weekday:Us,hour:ct,minute:ct},pA={year:ct,month:os,day:ct,hour:ct,minute:ct,timeZoneName:Us},mA={year:ct,month:os,day:ct,hour:ct,minute:ct,second:ct,timeZoneName:Us},gA={year:ct,month:os,day:ct,weekday:os,hour:ct,minute:ct,timeZoneName:os},vA={year:ct,month:os,day:ct,weekday:os,hour:ct,minute:ct,second:ct,timeZoneName:os};class Od{get type(){throw new da}get name(){throw new da}get ianaName(){return this.name}get isUniversal(){throw new da}offsetName(e,n){throw new da}formatOffset(e,n){throw new da}offset(e){throw new da}equals(e){throw new da}get isValid(){throw new da}}let F1=null;class Am extends Od{static get instance(){return F1===null&&(F1=new Am),F1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return _A(e,n,r)}formatOffset(e,n){return Rf(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Up={};function hte(t){return Up[t]||(Up[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Up[t]}const pte={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function mte(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,s,o,a,u,l,c]=r;return[o,i,s,a,u,l,c]}function gte(t,e){const n=t.formatToParts(e),r=[];for(let i=0;i<n.length;i++){const{type:s,value:o}=n[i],a=pte[s];s==="era"?r[a]=o:_n(a)||(r[a]=parseInt(o,10))}return r}let op={};class Go extends Od{static create(e){return op[e]||(op[e]=new Go(e)),op[e]}static resetCache(){op={},Up={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Go.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return _A(e,n,r,this.name)}formatOffset(e,n){return Rf(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=hte(this.name);let[i,s,o,a,u,l,c]=r.formatToParts?gte(r,n):mte(r,n);a==="BC"&&(i=-Math.abs(i)+1);const h=hy({year:i,month:s,day:o,hour:u===24?0:u,minute:l,second:c,millisecond:0});let m=+n;const g=m%1e3;return m-=g>=0?g:1e3+g,(h-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let SE={};function vte(t,e={}){const n=JSON.stringify([t,e]);let r=SE[n];return r||(r=new Intl.ListFormat(t,e),SE[n]=r),r}let fb={};function db(t,e={}){const n=JSON.stringify([t,e]);let r=fb[n];return r||(r=new Intl.DateTimeFormat(t,e),fb[n]=r),r}let hb={};function bte(t,e={}){const n=JSON.stringify([t,e]);let r=hb[n];return r||(r=new Intl.NumberFormat(t,e),hb[n]=r),r}let pb={};function _te(t,e={}){const{base:n,...r}=e,i=JSON.stringify([t,r]);let s=pb[i];return s||(s=new Intl.RelativeTimeFormat(t,e),pb[i]=s),s}let _f=null;function yte(){return _f||(_f=new Intl.DateTimeFormat().resolvedOptions().locale,_f)}function wte(t){const e=t.indexOf("-x-");
1009e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,i;try{r=db(t).resolvedOptions(),i=t}catch{const u=t.substring(0,n);r=db(u).resolvedOptions(),i=u}const{numberingSystem:s,calendar:o}=r;return[i,s,o]}}function Ete(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function kte(t){const e=[];for(let n=1;n<=12;n++){const r=Dt.utc(2016,n,1);e.push(t(r))}return e}function Ste(t){const e=[];for(let n=1;n<=7;n++){const r=Dt.utc(2016,11,13+n);e.push(t(r))}return e}function ap(t,e,n,r,i){const s=t.listingMode(n);return s==="error"?null:s==="en"?r(e):i(e)}function Tte(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class $te{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:s,...o}=r;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=bte(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):dy(e,3);return Or(n,this.padTo)}}}class Cte{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Go.create(a).valid?(i=a,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=db(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ate{constructor(e,n,r){this.opts={style:"long",...r},!n&&bA()&&(this.rtf=_te(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Vte(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class rr{static fromOpts(e){return rr.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,i=!1){const s=e||Ir.defaultLocale,o=s||(i?"en-US":yte()),a=n||Ir.defaultNumberingSystem,u=r||Ir.defaultOutputCalendar;return new rr(o,a,u,s)}static resetCache(){_f=null,fb={},hb={},pb={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return rr.create(e,n,r)}constructor(e,n,r,i){const[s,o,a]=wte(e);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=r||a||null,this.intl=Ete(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Tte(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:rr.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return ap(this,e,r,EA,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=kte(o=>this.extract(o,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1,r=!0){return ap(this,e,r,TA,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Ste(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(e=!0){return ap(this,void 0,e,()=>$A,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Dt.utc(2016,11,13,9),Dt.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return ap(this,e,n,CA,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Dt.utc(-40,1,1),Dt.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[e]}
1009)}extract(e,n,r){const i=this.dtFormatter(e,n),s=i.formatToParts(),o=s.find(a=>a.type.toLowerCase()===r);return o?o.value:null}numberFormatter(e={}){return new $te(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Cte(e,this.intl,n)}relFormatter(e={}){return new Ate(this.intl,this.isEnglish(),e)}listFormatter(e={}){return vte(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let L1=null;class Ti extends Od{static get utcInstance(){return L1===null&&(L1=new Ti(0)),L1}static instance(e){return e===0?Ti.utcInstance:new Ti(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Ti(Im(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Rf(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Rf(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Rf(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Dte extends Od{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ta(t,e){if(_n(t)||t===null)return e;if(t instanceof Od)return t;if(Ite(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Am.instance:n==="utc"||n==="gmt"?Ti.utcInstance:Ti.parseSpecifier(n)||Go.create(t)}else return $u(t)?Ti.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Dte(t)}let TE=()=>Date.now(),$E="system",CE=null,AE=null,DE=null,IE=60,OE;class Ir{static get now(){return TE}static set now(e){TE=e}static set defaultZone(e){$E=e}static get defaultZone(){return Ta($E,Am.instance)}static get defaultLocale(){return CE}static set defaultLocale(e){CE=e}static get defaultNumberingSystem(){return AE}static set defaultNumberingSystem(e){AE=e}
1009static get defaultOutputCalendar(){return DE}static set defaultOutputCalendar(e){DE=e}static get twoDigitCutoffYear(){return IE}static set twoDigitCutoffYear(e){IE=e%100}static get throwOnInvalid(){return OE}static set throwOnInvalid(e){OE=e}static resetCaches(){rr.resetCache(),Go.resetCache()}}function _n(t){return typeof t>"u"}function $u(t){return typeof t=="number"}function Dm(t){return typeof t=="number"&&t%1===0}function Ite(t){return typeof t=="string"}function Ote(t){return Object.prototype.toString.call(t)==="[object Date]"}function bA(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Nte(t){return Array.isArray(t)?t:[t]}function NE(t,e,n){if(t.length!==0)return t.reduce((r,i)=>{const s=[e(i),i];return r&&n(r[0],s[0])===r[0]?r:s},null)[1]}function Rte(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ic(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zo(t,e,n){return Dm(t)&&t>=e&&t<=n}function Pte(t,e){return t-e*Math.floor(t/e)}function Or(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Ea(t){if(!(_n(t)||t===null||t===""))return parseInt(t,10)}function lu(t){if(!(_n(t)||t===null||t===""))return parseFloat(t)}function fy(t){if(!(_n(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function dy(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Nd(t){return t%4===0&&(t%100!==0||t%400===0)}function Nf(t){return Nd(t)?366:365}function I0(t,e){const n=Pte(e-1,12)+1,r=t+(e-n)/12;return n===2?Nd(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function hy(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function O0(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function mb(t){return t>99?t:t>Ir.twoDigitCutoffYear?1900+t:2e3+t}function _A(t,e,n,r=null){const i=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(s.timeZone=r);const o={timeZoneName:e,...s},a=new Intl.DateTimeFormat(n,o).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Im(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function yA(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new ys(`Invalid unit value ${t}`);return e}function N0(t,e){const n={};for(const r in t)if(ic(t,r)){const i=t[r];if(i==null)continue;n[e(r)]=yA(i)}return n}
vendor: 6,558 bytes, line 1009
1009function Rf(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${Or(n,2)}:${Or(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Or(n,2)}${Or(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Om(t){return Rte(t,["hour","minute","second","millisecond"])}const xte=["January","February","March","April","May","June","July","August","September","October","November","December"],wA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qte=["J","F","M","A","M","J","J","A","S","O","N","D"];function EA(t){switch(t){case"narrow":return[...qte];case"short":return[...wA];case"long":return[...xte];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const kA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],SA=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fte=["M","T","W","T","F","S","S"];function TA(t){switch(t){case"narrow":return[...Fte];case"short":return[...SA];case"long":return[...kA];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $A=["AM","PM"],Lte=["Before Christ","Anno Domini"],Mte=["BC","AD"],Bte=["B","A"];function CA(t){switch(t){case"narrow":return[...Bte];case"short":return[...Mte];case"long":return[...Lte];default:return null}}function zte(t){return $A[t.hour<12?0:1]}function jte(t,e){return TA(e)[t.weekday-1]}function Ute(t,e){return EA(e)[t.month-1]}function Hte(t,e){return CA(e)[t.year<0?0:1]}function Vte(t,e,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${i[t][0]}`;case-1:return d?"yesterday":`last ${i[t][0]}`;case 0:return d?"today":`this ${i[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),u=a===1,l=i[t],c=r?u?l[1]:l[2]||l[1]:u?i[t][0]:t;return o?`${a} ${c} ago`:`in ${a} ${c}`}function RE(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Wte={D:D0,DD:JC,DDD:eA,DDDD:tA,t:nA,tt:rA,ttt:iA,tttt:sA,T:oA,TT:aA,TTT:uA,TTTT:lA,f:cA,ff:dA,fff:pA,ffff:gA,F:fA,FF:hA,FFF:mA,FFFF:vA};class fi{static create(e,n={}){return new fi(e,n)}static parseFormat(e){let n=null,r="",i=!1;const s=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(r.length>0&&s.push({literal:i||/^\s+$/.test(r),val:r}),n=null,r="",i=!i):i||a===n?r+=a:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&s.push({literal:i||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(e){return Wte[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}formatInterval(e,n={}){return this.loc.dtFormatter(e.start,{...this.opts,...n}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Or(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(m,g)=>this.loc.extract(e,m,g),o=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>r?zte(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(m,g)=>r?Ute(e,m):s(g?{month:m}:{month:m,day:"numeric"},"month"),l=(m,g)=>r?jte(e,m):s(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),c=m=>{const g=fi.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},d=m=>r?Hte(e,m):s({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
1009case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(m)}};return RE(fi.parseFormat(n),h)}formatDurationFromString(e,n){const r=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=u=>l=>{const c=r(l);return c?this.num(u.get(c),l.length):l},s=fi.parseFormat(n),o=s.reduce((u,{literal:l,val:c})=>l?u:u.concat(c),[]),a=e.shiftTo(...o.map(r).filter(u=>u));return RE(s,i(a))}}class Bs{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const AA=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wc(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Ec(...t){return e=>t.reduce(([n,r,i],s)=>{const[o,a,u]=s(e,i);return[{...n,...o},a||r,u]},[{},null,1]).slice(0,2)}function kc(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const i=n.exec(t);if(i)return r(i)}return[null,null]}function DA(...t){return(e,n)=>{const r={};let i;for(i=0;i<t.length;i++)r[t[i]]=Ea(e[n+i]);return[r,null,n+i]}}const IA=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Gte=`(?:${IA.source}?(?:\\[(${AA.source})\\])?)?`,py=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,OA=RegExp(`${py.source}${Gte}`),my=RegExp(`(?:T${OA.source})?`),Yte=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Qte=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Zte=/(\d{4})-?(\d{3})/,Xte=DA("weekYear","weekNumber","weekDay"),Kte=DA("year","ordinal"),Jte=/(\d{4})-(\d\d)-(\d\d)/,NA=RegExp(`${py.source} ?(?:${IA.source}|(${AA.source}))?`),ene=RegExp(`(?: ${NA.source})?`);function Nl(t,e,n){const r=t[e];return _n(r)?n:Ea(r)}function tne(t,e){return[{year:Nl(t,e),month:Nl(t,e+1,1),day:Nl(t,e+2,1)},null,e+3]}function Sc(t,e){return[{hours:Nl(t,e,0),minutes:Nl(t,e+1,0),seconds:Nl(t,e+2,0),milliseconds:fy(t[e+3])},null,e+4]}function Rd(t,e){const n=!t[e]&&!t[e+1],r=Im(t[e+1],t[e+2]),i=n?null:Ti.instance(r);return[{},i,e+3]}function Pd(t,e){const n=t[e]?Go.create(t[e]):null;return[{},n,e+1]}const nne=RegExp(`^T?${py.source}$`),rne=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ine(t){const[e,n,r,i,s,o,a,u,l]=t,c=e[0]==="-",d=u&&u[0]==="-",h=(m,g=!1)=>m!==void 0&&(g||m&&c)?-m:m;return[{years:h(lu(n)),months:h(lu(r)),weeks:h(lu(i)),days:h(lu(s)),hours:h(lu(o)),minutes:h(lu(a)),seconds:h(lu(u),u==="-0"),milliseconds:h(fy(l),d)}]}const sne={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gy(t,e,n,r,i,s,o){const a={year:e.length===2?mb(Ea(e)):Ea(e),month:wA.indexOf(n)+1,day:Ea(r),hour:Ea(i),minute:Ea(s)};return o&&(a.second=Ea(o)),t&&(a.weekday=t.length>3?kA.indexOf(t)+1:SA.indexOf(t)+1),a}const one=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ane(t){const[,e,n,r,i,s,o,a,u,l,c,d]=t,h=gy(e,i,r,n,s,o,a);let m;return u?m=sne[u]:l?m=0:m=Im(c,d),[h,new Ti(m)]}function une(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const lne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cne=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,fne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function PE(t){const[,e,n,r,i,s,o,a]=t;return[gy(e,i,r,n,s,o,a),Ti.utcInstance]}function dne(t){const[,e,n,r,i,s,o,a]=t;return[gy(e,a,n,r,i,s,o),Ti.utcInstance]}const hne=wc(Yte,my),pne=wc(Qte,my),mne=wc(Zte,my),gne=wc(OA),RA=Ec(tne,Sc,Rd,Pd),vne=Ec(Xte,Sc,Rd,Pd),bne=Ec(Kte,Sc,Rd,Pd),_ne=Ec(Sc,Rd,Pd);function yne(t){return kc(t,[hne,RA],[pne,vne],[mne,bne],[gne,_ne])}function wne(t){return kc(une(t),[one,ane])}function Ene(t){return kc(t,[lne,PE],[cne,PE],[fne,dne])}function kne(t){return kc(t,[rne,ine])}const Sne=Ec(Sc);function Tne(t){return kc(t,[nne,Sne])}const $ne=wc(Jte,ene),Cne=wc(NA),Ane=Ec(Sc,Rd,Pd);function Dne(t){return kc(t,[$ne,RA],[Cne,Ane])}const Ine="Invalid Duration",PA={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},One={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...PA}
1009,bs=146097/400,ll=146097/4800,Nne={years:{quarters:4,months:12,weeks:bs/7,days:bs,hours:bs*24,minutes:bs*24*60,seconds:bs*24*60*60,milliseconds:bs*24*60*60*1e3},quarters:{months:3,weeks:bs/28,days:bs/4,hours:bs*24/4,minutes:bs*24*60/4,seconds:bs*24*60*60/4,milliseconds:bs*24*60*60*1e3/4},months:{weeks:ll/7,days:ll,hours:ll*24,minutes:ll*24*60,seconds:ll*24*60*60,milliseconds:ll*24*60*60*1e3},...PA},du=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Rne=du.slice(0).reverse();function ha(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new yn(r)}function Pne(t){return t<0?Math.floor(t):Math.ceil(t)}function xA(t,e,n,r,i){const s=t[i][n],o=e[n]/s,a=Math.sign(o)===Math.sign(r[i]),u=!a&&r[i]!==0&&Math.abs(o)<=1?Pne(o):Math.trunc(o);r[i]+=u,e[n]-=u*s}function xne(t,e){Rne.reduce((n,r)=>_n(e[r])?n:(n&&xA(t,e,n,e,r),r),null)}function qne(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class yn{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Nne:One;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||rr.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return yn.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new ys(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new yn({values:N0(e,yn.normalizeUnit),loc:rr.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if($u(e))return yn.fromMillis(e);if(yn.isDuration(e))return e;if(typeof e=="object")return yn.fromObject(e);throw new ys(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=kne(e);return r?yn.fromObject(r,n):yn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Tne(e);return r?yn.fromObject(r,n):yn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new ys("need to specify a reason the Duration is invalid");const r=e instanceof Bs?e:new Bs(e,n);if(Ir.throwOnInvalid)throw new cte(r);return new yn({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new KC(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?fi.create(this.loc,r).formatDurationFromString(this,e):Ine}toHuman(e={}){const n=du.map(r=>{const i=this.values[r];return _n(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=dy(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let i=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(i+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(i+=".SSS"));let s=r.toFormat(i);return e.includePrefix&&(s="T"+s),s}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=yn.fromDurationLike(e),r={};for(const i of du)(ic(n.values,i)||ic(this.values,i))&&(r[i]=n.get(i)+this.get(i));return ha(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=yn.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=yA(e(this.values[r],r));return ha(this,{values:n},!0)}get(e){return this[yn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...N0(e,yn.normalizeUnit)};return ha(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:i,conversionAccuracy:r};return ha(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return xne(this.matrix,e),ha(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=qne(this.normalize().shiftToAll().toObject());return ha(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>yn.normalizeUnit(o));const n={},r={},i=this.toObject();let s;for(const o of du)if(e.indexOf(o)>=0){s=o;let a=0;for(const l in r)a+=this.matrix[l][o]*r[l],r[l]=0;$u(i[o])&&(a+=i[o]);const u=Math.trunc(a);n[o]=u,r[o]=(a*1e3-u*1e3)/1e3;for(const l in i)du.indexOf(l)>
vendor: 4,502 bytes, line 1009
1009du.indexOf(o)&&xA(this.matrix,i,l,n,o)}else $u(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[s]+=o===s?r[o]:r[o]/this.matrix[s][o]);return ha(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return ha(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of du)if(!n(this.values[r],e.values[r]))return!1;return!0}}const cl="Invalid Interval";function Fne(t,e){return!t||!t.isValid?vr.invalid("missing or invalid start"):!e||!e.isValid?vr.invalid("missing or invalid end"):e<t?vr.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class vr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new ys("need to specify a reason the Interval is invalid");const r=e instanceof Bs?e:new Bs(e,n);if(Ir.throwOnInvalid)throw new lte(r);return new vr({invalid:r})}static fromDateTimes(e,n){const r=lf(e),i=lf(n),s=Fne(r,i);return s??new vr({start:r,end:i})}static after(e,n){const r=yn.fromDurationLike(n),i=lf(e);return vr.fromDateTimes(i,i.plus(r))}static before(e,n){const r=yn.fromDurationLike(n),i=lf(e);return vr.fromDateTimes(i.minus(r),i)}static fromISO(e,n){const[r,i]=(e||"").split("/",2);if(r&&i){let s,o;try{s=Dt.fromISO(r,n),o=s.isValid}catch{o=!1}let a,u;try{a=Dt.fromISO(i,n),u=a.isValid}catch{u=!1}if(o&&u)return vr.fromDateTimes(s,a);if(o){const l=yn.fromISO(i,n);if(l.isValid)return vr.after(s,l)}else if(u){const l=yn.fromISO(r,n);if(l.isValid)return vr.before(a,l)}}return vr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?vr.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(lf).filter(o=>this.contains(o)).sort(),r=[];let{s:i}=this,s=0;for(;i<this.e;){const o=n[s]||this.e,a=+o>+this.e?this.e:o;r.push(vr.fromDateTimes(i,a)),i=a,s+=1}return r}splitBy(e){const n=yn.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,s;const o=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(u=>u*i));s=+a>+this.e?this.e:a,o.push(vr.fromDateTimes(r,s)),r=s,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}
1009intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:vr.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return vr.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((i,s)=>i.s-s.s).reduce(([i,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[i,s.union(o)]:[i.concat([s]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const i=[],s=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((u,l)=>u.time-l.time);for(const u of a)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&i.push(vr.fromDateTimes(n,u.time)),n=null);return vr.merge(i)}difference(...e){return vr.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:cl}toLocaleString(e=D0,n={}){return this.isValid?fi.create(this.s.loc.clone(n),e).formatInterval(this):cl}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:cl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:cl}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:cl}toFormat(e,{separator:n=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:cl}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):yn.invalid(this.invalidReason)}mapEndpoints(e){return vr.fromDateTimes(e(this.s),e(this.e))}}class up{static hasDST(e=Ir.defaultZone){const n=Dt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Go.isValidZone(e)}static normalizeZone(e){return Ta(e,Ir.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||rr.create(n,r,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||rr.create(n,r,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||rr.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||rr.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return rr.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return rr.create(n,null,"gregory").eras(e)}static features(){return{relative:bA()}}}function xE(t,e){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(yn.fromMillis(r).as("days"))}function Lne(t,e,n){const r=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const c=xE(u,l);return(c-c%7)/7}],["days",xE]],i={},s=t;let o,a;for(const[u,l]of r)n.indexOf(u)>=0&&(o=u,i[u]=l(t,e),a=s.plus(i),a>e?(i[u]--,t=s.plus(i)):t=a);return[t,i,a,o]}function Mne(t,e,n,r){let[i,s,o,a]=Lne(t,e,n);const u=e-i,l=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);l.length===0&&(o<e&&(o=i.plus({[a]:1})),o!==i&&(s[a]=(s[a]||0)+u/(o-i)));const c=yn.fromObject(s,r);return l.length>0?yn.fromMillis(u,r).shiftTo(...l).plus(c):c}const vy={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},qE={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Bne=vy.hanidec.replace(/[\[|\]]/g,"").split("");function zne(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(vy.hanidec)!==-1)e+=Bne.indexOf(t[n]);else for(const i in qE){const[s,o]=qE[i];r>=s&&r<=o&&(e+=r-s)}}return parseInt(e,10)}else return e}function Os({numberingSystem:t},e=""){return new RegExp(`${vy[t||"latn"]}${e}`)}const jne="missing Intl.DateTimeFormat.formatToParts support";function An(t,e=n=>n){return{regex:t,deser:([n])=>e(zne(n))}}const Une=" ",qA=`[ ${Une}]`,FA=new RegExp(qA,"g");function Hne(t){return t.replace(/\./g,"\\.?").replace(FA,qA)}function FE(t){return t.replace(/\./g,"").replace(FA," ").toLowerCase()}function Ns(t,e){return t===null?null:{regex:RegExp(t.map(Hne).join("|")),deser:([n])=>t.findIndex(r=>FE(n)===FE(r))+e}}function LE(t,e){return{regex:t,deser:([,n,r])=>Im(n,r),groups:e}}function lp(t){return{regex:t,deser:([e])=>e}}
1009function Vne(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Wne(t,e){const n=Os(e),r=Os(e,"{2}"),i=Os(e,"{3}"),s=Os(e,"{4}"),o=Os(e,"{6}"),a=Os(e,"{1,2}"),u=Os(e,"{1,3}"),l=Os(e,"{1,6}"),c=Os(e,"{1,9}"),d=Os(e,"{2,4}"),h=Os(e,"{4,6}"),m=y=>({regex:RegExp(Vne(y.val)),deser:([b])=>b,literal:!0}),k=(y=>{if(t.literal)return m(y);switch(y.val){case"G":return Ns(e.eras("short",!1),0);case"GG":return Ns(e.eras("long",!1),0);case"y":return An(l);case"yy":return An(d,mb);case"yyyy":return An(s);case"yyyyy":return An(h);case"yyyyyy":return An(o);case"M":return An(a);case"MM":return An(r);case"MMM":return Ns(e.months("short",!0,!1),1);case"MMMM":return Ns(e.months("long",!0,!1),1);case"L":return An(a);case"LL":return An(r);case"LLL":return Ns(e.months("short",!1,!1),1);case"LLLL":return Ns(e.months("long",!1,!1),1);case"d":return An(a);case"dd":return An(r);case"o":return An(u);case"ooo":return An(i);case"HH":return An(r);case"H":return An(a);case"hh":return An(r);case"h":return An(a);case"mm":return An(r);case"m":return An(a);case"q":return An(a);case"qq":return An(r);case"s":return An(a);case"ss":return An(r);case"S":return An(u);case"SSS":return An(i);case"u":return lp(c);case"uu":return lp(a);case"uuu":return An(n);case"a":return Ns(e.meridiems(),0);case"kkkk":return An(s);case"kk":return An(d,mb);case"W":return An(a);case"WW":return An(r);case"E":case"c":return An(n);case"EEE":return Ns(e.weekdays("short",!1,!1),1);case"EEEE":return Ns(e.weekdays("long",!1,!1),1);case"ccc":return Ns(e.weekdays("short",!0,!1),1);case"cccc":return Ns(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return LE(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return LE(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return lp(/[a-z_+-/]{1,256}?/i);case" ":return lp(/[^\S\n\r]/);default:return m(y)}})(t)||{invalidReason:jne};return k.token=t,k}const Gne={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Yne(t,e){const{type:n,value:r}=t;if(n==="literal"){const o=/^\s+$/.test(r);return{literal:!o,val:o?" ":r}}const i=e[n];let s=Gne[n];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function Qne(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Zne(t,e,n){const r=t.match(e);if(r){const i={};let s=1;for(const o in n)if(ic(n,o)){const a=n[o],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(s,s+u))),s+=u}return[r,i]}else return[r,{}]}function Xne(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return _n(t.z)||(n=Go.create(t.z)),_n(t.Z)||(n||(n=new Ti(t.Z)),r=t.Z),_n(t.q)||(t.M=(t.q-1)*3+1),_n(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),_n(t.u)||(t.S=fy(t.u)),[Object.keys(t).reduce((s,o)=>{const a=e(o);return a&&(s[a]=t[o]),s},{}),n,r]}let M1=null;function Kne(){return M1||(M1=Dt.fromMillis(1555555555555)),M1}function Jne(t,e){if(t.literal)return t;const n=fi.macroTokenToFormatOpts(t.val),r=BA(n,e);return r==null||r.includes(void 0)?t:r}function LA(t,e){return Array.prototype.concat(...t.map(n=>Jne(n,e)))}function MA(t,e,n){const r=LA(fi.parseFormat(n),t),i=r.map(o=>Wne(o,t)),s=i.find(o=>o.invalidReason);if(s)return{input:e,tokens:r,invalidReason:s.invalidReason};{const[o,a]=Qne(i),u=RegExp(o,"i"),[l,c]=Zne(e,u,a),[d,h,m]=c?Xne(c):[null,null,void 0];if(ic(c,"a")&&ic(c,"H"))throw new bf("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:u,rawMatches:l,matches:c,result:d,zone:h,specificOffset:m}}}function ere(t,e,n){const{result:r,zone:i,specificOffset:s,invalidReason:o}=MA(t,e,n);return[r,i,s,o]}function BA(t,e){return t?fi.create(e,t).formatDateTimeParts(Kne()).map(i=>Yne(i,t)):null}const zA=[0,31,59,90,120,151,181,212,243,273,304,334],jA=[0,31,60,91,121,152,182,213,244,274,305,335];function Es(t,e){return new Bs("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}
1009, which is invalid`)}function UA(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function HA(t,e,n){return n+(Nd(t)?jA:zA)[e-1]}function VA(t,e){const n=Nd(t)?jA:zA,r=n.findIndex(s=>s<e),i=e-n[r];return{month:r+1,day:i}}function gb(t){const{year:e,month:n,day:r}=t,i=HA(e,n,r),s=UA(e,n,r);let o=Math.floor((i-s+10)/7),a;return o<1?(a=e-1,o=O0(a)):o>O0(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:s,...Om(t)}}function ME(t){const{weekYear:e,weekNumber:n,weekday:r}=t,i=UA(e,1,4),s=Nf(e);let o=n*7+r-i-3,a;o<1?(a=e-1,o+=Nf(a)):o>s?(a=e+1,o-=Nf(e)):a=e;const{month:u,day:l}=VA(a,o);return{year:a,month:u,day:l,...Om(t)}}function B1(t){const{year:e,month:n,day:r}=t,i=HA(e,n,r);return{year:e,ordinal:i,...Om(t)}}function BE(t){const{year:e,ordinal:n}=t,{month:r,day:i}=VA(e,n);return{year:e,month:r,day:i,...Om(t)}}function tre(t){const e=Dm(t.weekYear),n=zo(t.weekNumber,1,O0(t.weekYear)),r=zo(t.weekday,1,7);return e?n?r?!1:Es("weekday",t.weekday):Es("week",t.week):Es("weekYear",t.weekYear)}function nre(t){const e=Dm(t.year),n=zo(t.ordinal,1,Nf(t.year));return e?n?!1:Es("ordinal",t.ordinal):Es("year",t.year)}function WA(t){const e=Dm(t.year),n=zo(t.month,1,12),r=zo(t.day,1,I0(t.year,t.month));return e?n?r?!1:Es("day",t.day):Es("month",t.month):Es("year",t.year)}function GA(t){const{hour:e,minute:n,second:r,millisecond:i}=t,s=zo(e,0,23)||e===24&&n===0&&r===0&&i===0,o=zo(n,0,59),a=zo(r,0,59),u=zo(i,0,999);return s?o?a?u?!1:Es("millisecond",i):Es("second",r):Es("minute",n):Es("hour",e)}const z1="Invalid DateTime",zE=864e13;function cp(t){return new Bs("unsupported zone",`the zone "${t.name}" is not supported`)}function j1(t){return t.weekData===null&&(t.weekData=gb(t.c)),t.weekData}function af(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Dt({...n,...e,old:n})}function YA(t,e,n){let r=t-e*60*1e3;const i=n.offset(r);if(e===i)return[r,e];r-=(i-e)*60*1e3;const s=n.offset(r);return i===s?[r,i]:[t-Math.min(i,s)*60*1e3,Math.max(i,s)]}function jE(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Hp(t,e,n){return YA(hy(t),e,n)}function UE(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:r,month:i,day:Math.min(t.c.day,I0(r,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=yn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=hy(s);let[u,l]=YA(a,n,t.zone);return o!==0&&(u+=o,l=t.zone.offset(u)),{ts:u,o:l}}function uf(t,e,n,r,i,s){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const u=e||a,l=Dt.fromObject(t,{...n,zone:u,specificOffset:s});return o?l:l.setZone(a)}else return Dt.invalid(new Bs("unparsable",`the input "${i}" can't be parsed as ${r}`))}function fp(t,e,n=!0){return t.isValid?fi.create(rr.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function U1(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=Or(t.c.year,n?6:4),e?(r+="-",r+=Or(t.c.month),r+="-",r+=Or(t.c.day)):(r+=Or(t.c.month),r+=Or(t.c.day)),r}function HE(t,e,n,r,i,s){let o=Or(t.c.hour);return e?(o+=":",o+=Or(t.c.minute),(t.c.second!==0||!n)&&(o+=":")):o+=Or(t.c.minute),(t.c.second!==0||!n)&&(o+=Or(t.c.second),(t.c.millisecond!==0||!r)&&(o+=".",o+=Or(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!s?o+="Z":t.o<0?(o+="-",o+=Or(Math.trunc(-t.o/60)),o+=":",o+=Or(Math.trunc(-t.o%60))):(o+="+",o+=Or(Math.trunc(t.o/60)),o+=":",o+=Or(Math.trunc(t.o%60)))),s&&(o+="["+t.zone.ianaName+"]"),o}const QA={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rre={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ire={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ZA=["year","month","day","hour","minute","second","millisecond"],sre=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ore=["year","ordinal","hour","minute","second","millisecond"];function VE(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new KC(t);return e}function WE(t,e){const n=Ta(e.zone,Ir.defaultZone),r=rr.fromObject(e),i=Ir.now();let s,o;
1009if(_n(t.year))s=i;else{for(const l of ZA)_n(t[l])&&(t[l]=QA[l]);const a=WA(t)||GA(t);if(a)return Dt.invalid(a);const u=n.offset(i);[s,o]=Hp(t,u,n)}return new Dt({ts:s,zone:n,loc:r,o})}function GE(t,e,n){const r=_n(n.round)?!0:n.round,i=(o,a)=>(o=dy(o,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),s=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(const o of n.units){const a=s(o);if(Math.abs(a)>=1)return i(a,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function YE(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Dt{constructor(e){const n=e.zone||Ir.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Bs("invalid input"):null)||(n.isValid?null:cp(n));this.ts=_n(e.ts)?Ir.now():e.ts;let i=null,s=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[i,s]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);i=jE(this.ts,a),r=Number.isNaN(i.year)?new Bs("invalid input"):null,i=r?null:i,s=r?null:a}this._zone=n,this.loc=e.loc||rr.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new Dt({})}static local(){const[e,n]=YE(arguments),[r,i,s,o,a,u,l]=n;return WE({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:l},e)}static utc(){const[e,n]=YE(arguments),[r,i,s,o,a,u,l]=n;return e.zone=Ti.utcInstance,WE({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:l},e)}static fromJSDate(e,n={}){const r=Ote(e)?e.valueOf():NaN;if(Number.isNaN(r))return Dt.invalid("invalid input");const i=Ta(n.zone,Ir.defaultZone);return i.isValid?new Dt({ts:r,zone:i,loc:rr.fromObject(n)}):Dt.invalid(cp(i))}static fromMillis(e,n={}){if($u(e))return e<-zE||e>zE?Dt.invalid("Timestamp out of range"):new Dt({ts:e,zone:Ta(n.zone,Ir.defaultZone),loc:rr.fromObject(n)});throw new ys(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if($u(e))return new Dt({ts:e*1e3,zone:Ta(n.zone,Ir.defaultZone),loc:rr.fromObject(n)});throw new ys("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=Ta(n.zone,Ir.defaultZone);if(!r.isValid)return Dt.invalid(cp(r));const i=Ir.now(),s=_n(n.specificOffset)?r.offset(i):n.specificOffset,o=N0(e,VE),a=!_n(o.ordinal),u=!_n(o.year),l=!_n(o.month)||!_n(o.day),c=u||l,d=o.weekYear||o.weekNumber,h=rr.fromObject(n);if((c||a)&&d)throw new bf("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new bf("Can't mix ordinal dates with month/day");const m=d||o.weekday&&!c;let g,k,y=jE(i,s);m?(g=sre,k=rre,y=gb(y)):a?(g=ore,k=ire,y=B1(y)):(g=ZA,k=QA);let b=!1;for(const q of g){const F=o[q];_n(F)?b?o[q]=k[q]:o[q]=y[q]:b=!0}const S=m?tre(o):a?nre(o):WA(o),$=S||GA(o);if($)return Dt.invalid($);const D=m?ME(o):a?BE(o):o,[P,x]=Hp(D,s,r),R=new Dt({ts:P,zone:r,o:x,loc:h});
1009return o.weekday&&c&&e.weekday!==R.weekday?Dt.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${R.toISO()}`):R}static fromISO(e,n={}){const[r,i]=yne(e);return uf(r,i,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,i]=wne(e);return uf(r,i,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,i]=Ene(e);return uf(r,i,n,"HTTP",n)}static fromFormat(e,n,r={}){if(_n(e)||_n(n))throw new ys("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=r,o=rr.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[a,u,l,c]=ere(o,e,n);return c?Dt.invalid(c):uf(a,u,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return Dt.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,i]=Dne(e);return uf(r,i,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new ys("need to specify a reason the DateTime is invalid");const r=e instanceof Bs?e:new Bs(e,n);if(Ir.throwOnInvalid)throw new ute(r);return new Dt({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=BA(e,rr.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(e,n={}){return LA(fi.parseFormat(e),rr.fromObject(n)).map(i=>i.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
vendor: 4,495 bytes, line 1009
1009get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?j1(this).weekYear:NaN}get weekNumber(){return this.isValid?j1(this).weekNumber:NaN}get weekday(){return this.isValid?j1(this).weekday:NaN}get ordinal(){return this.isValid?B1(this.c).ordinal:NaN}get monthShort(){return this.isValid?up.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?up.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?up.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?up.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Nd(this.year)}get daysInMonth(){return I0(this.year,this.month)}get daysInYear(){return this.isValid?Nf(this.year):NaN}get weeksInWeekYear(){return this.isValid?O0(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:i}=fi.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(e=0,n={}){return this.setZone(Ti.instance(e),n)}toLocal(){return this.setZone(Ir.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=Ta(e,Ir.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(n||r){const s=e.offset(this.ts),o=this.toObject();[i]=Hp(o,s,e)}return af(this,{ts:i,zone:e})}else return Dt.invalid(cp(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return af(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=N0(e,VE),r=!_n(n.weekYear)||!_n(n.weekNumber)||!_n(n.weekday),i=!_n(n.ordinal),s=!_n(n.year),o=!_n(n.month)||!_n(n.day),a=s||o,u=n.weekYear||n.weekNumber;if((a||i)&&u)throw new bf("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new bf("Can't mix ordinal dates with month/day");let l;r?l=ME({...gb(this.c),...n}):_n(n.ordinal)?(l={...this.toObject(),...n},_n(n.day)&&(l.day=Math.min(I0(l.year,l.month),l.day))):l=BE({...B1(this.c),...n});const[c,d]=Hp(l,this.o,this.zone);return af(this,{ts:c,o:d})}plus(e){if(!this.isValid)return this;const n=yn.fromDurationLike(e);return af(this,UE(this,n))}minus(e){if(!this.isValid)return this;const n=yn.fromDurationLike(e).negate();return af(this,UE(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=yn.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?fi.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):z1}toLocaleString(e=D0,n={}){return this.isValid?fi.create(this.loc.clone(n),e).formatDateTime(this):z1}toLocaleParts(e={}){return this.isValid?fi.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=U1(this,o);return a+="T",a+=HE(this,o,n,r,i,s),a}toISODate({format:e="extended"}={}){return this.isValid?U1(this,e==="extended"):null}toISOWeekDate(){return fp(this,"kkkk-'W'WW-c")}
1009toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+HE(this,o==="extended",n,e,r,s):null}toRFC2822(){return fp(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return fp(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?U1(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||e)&&(r&&(i+=" "),n?i+="z":e&&(i+="ZZ")),fp(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():z1}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return yn.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},s=Nte(n).map(yn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,u=o?e:this,l=Mne(a,u,s,i);return o?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(Dt.now(),e,n)}until(e){return this.isValid?vr.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Dt.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(i=e.unit,s=void 0),GE(n,this.plus(r),{...e,numeric:"always",units:i,unit:s})}toRelativeCalendar(e={}){return this.isValid?GE(e.base||Dt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Dt.isDateTime))throw new ys("min requires all arguments be DateTimes");return NE(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Dt.isDateTime))throw new ys("max requires all arguments be DateTimes");return NE(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:i=null,numberingSystem:s=null}=r,o=rr.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return MA(o,e,n)}static fromStringExplain(e,n,r={}){return Dt.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return D0}static get DATE_MED(){return JC}static get DATE_MED_WITH_WEEKDAY(){return fte}static get DATE_FULL(){return eA}static get DATE_HUGE(){return tA}static get TIME_SIMPLE(){return nA}static get TIME_WITH_SECONDS(){return rA}static get TIME_WITH_SHORT_OFFSET(){return iA}static get TIME_WITH_LONG_OFFSET(){return sA}static get TIME_24_SIMPLE(){return oA}static get TIME_24_WITH_SECONDS(){return aA}static get TIME_24_WITH_SHORT_OFFSET(){return uA}static get TIME_24_WITH_LONG_OFFSET(){return lA}static get DATETIME_SHORT(){return cA}static get DATETIME_SHORT_WITH_SECONDS(){return fA}static get DATETIME_MED(){return dA}static get DATETIME_MED_WITH_SECONDS(){return hA}static get DATETIME_MED_WITH_WEEKDAY(){return dte}static get DATETIME_FULL(){return pA}static get DATETIME_FULL_WITH_SECONDS(){return mA}static get DATETIME_HUGE(){return gA}static get DATETIME_HUGE_WITH_SECONDS(){return vA}}function lf(t){if(Dt.isDateTime(t))return t;if(t&&t.valueOf&&$u(t.valueOf()))return Dt.fromJSDate(t);if(t&&typeof t=="object")return Dt.fromObject(t);throw new ys(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const are=t=>{const e=localStorage.getItem(t);try{return JSON.parse(e)}catch{return}},ure=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},lre=350,QE=()=>({id:null,x:0,y:0,zoom:1,viewMode:Kl.Wall,activeChatIds:[],activeBookIds:[]});
1009class cre extends Event{constructor(e,n){super(e),this.message=n}}const fre=()=>{let t=null,e=!1,n="",r="",i="";const s=nn(QE());let o=()=>{};const a=r$(R=>{eG({variables:{...R,id:n}})},lre),u=(R,q)=>{t=R.subscription_id,o=s.subscribe(F=>{e||a(F)})},l=(R,q)=>{const F=new cre(i,R);window.dispatchEvent(F)},c=(R,q)=>{switch(R.op){case"initialize":u(R);break;case"notification":l(R);break}};let d;const h=()=>{a.flush(),d?(o(),d.unsubscribe()):b(),t=null},m=()=>{h(),S(n,$i(s))},g=()=>({...QE(),...are(r)}),k=R=>{R.key===r&&(e=!0,s.set(g()),e=!1)},y=()=>{t=null,s.set(g()),s.subscribe(R=>{e||ure(r,R)}),window.addEventListener("storage",k)},b=()=>{window.removeEventListener("storage",k)},S=async(R,q)=>{n=R,s.set(Gf(q)),r=`publicPlace:${n}:preferences`,i=`place:${n}:notification`;try{await OG(),w$.subscribe(F=>{h(),d=F.subscriptions.create({channel:"SpaceChannel",id:n},{connected(){},received(L){c(L,this)},rejected(){m()}})})}catch{h(),y()}},{set:$,subscribe:D}=s;return{getSource:()=>t?"user":"local",listen:R=>{if(!n)throw new Error("Space store has no spaceId");return window.addEventListener(i,R),()=>window.removeEventListener(i,R)},connect:S,subscribe:D,set:$}},Ur=fre();function by(t,e={}){const n=new Set;let r;function i(c){if(!(c instanceof Function))throw new TypeError("callback is not a function");return n.add(c),c(t),()=>n.delete(c)}function s(c,d,h){const m={from:t,to:c,event:d,args:h};o("_exit",m),t=c,n.forEach(g=>g(t)),o("_enter",m)}function o(c,...d){var m,g;const h=((m=e[t])==null?void 0:m[c])??((g=e["*"])==null?void 0:g[c]);return h instanceof Function?h.apply(r,d):h}function a(c,...d){var m;const h=(m=o(c,...d))==null?void 0:m.valueOf();return["string","symbol"].includes(typeof h)&&h!==t&&s(h,c,d),t}const u={};async function l(c,d=100,...h){return clearTimeout(u[c]),d===null?t:(await new Promise(m=>u[c]=setTimeout(m,d)),delete u[c],a(c,...h))}return r=new Proxy({subscribe:i},{get(c,d){return Reflect.has(c,d)||(c[d]=a.bind(null,d),c[d].debounce=l.bind(null,d)),Reflect.get(c,d)}}),o("_enter",{from:null,to:t,event:null,args:[]}),r}var XA={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="user-lock",r=640,i=512,s=[],o="f502",a="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faUserLock=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(XA);var KA={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="users-rectangle",r=640,i=512,s=[],o="e594",a="M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H544c53 0 96-43 96-96V96c0-53-43-96-96-96H96zM64 96c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32V416c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96zm159.8 80a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 309.3c0 14.7 11.9 26.7 26.7 26.7h56.1c8-34.1 32.8-61.7 65.2-73.6c-7.5-4.1-16.2-6.4-25.3-6.4H149.3C119.9 256 96 279.9 96 309.3zM461.2 336h56.1c14.7 0 26.7-11.9 26.7-26.7c0-29.5-23.9-53.3-53.3-53.3H421.3c-9.2 0-17.8 2.3-25.3 6.4c32.4 11.9 57.2 39.5 65.2 73.6zM372 289c-3.9-.7-7.9-1-12-1H280c-4.1 0-8.1 .3-12 1c-26 4.4-47.3 22.7-55.9 47c-2.7 7.5-4.1 15.6-4.1 24c0 13.3 10.7 24 24 24H408c13.3 0 24-10.7 24-24c0-8.4-1.4-16.5-4.1-24c-8.6-24.3-29.9-42.6-55.9-47zM512 176a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM320 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faUsersRectangle=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(KA);var _y={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="table",r=512,i=512,s=[],o="f0ce",a="M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V4
100916c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faTable=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(_y);var JA={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="paper-plane",r=512,i=512,s=[61913],o="f1d8",a="M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faPaperPlane=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(JA);var e7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="circle-half-stroke",r=512,i=512,s=[9680,"adjust"],o="f042",a="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faCircleHalfStroke=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(e7);var t7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="hand",r=512,i=512,s=[129306,9995,"hand-paper"],o="f256",a="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faHand=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(t7);var n7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="arrow-pointer",r=320,i=512,s=["mouse-pointer"],o="f245",a="M0 55.2V426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320H297.9c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faArrowPointer=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(n7);var r7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="arrows-to-dot",r=512,i=512,s=[],o="e4be",a="M256 0c17.7 0 32 14.3 32 32V64h32c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-64 64c-12.5 12.5-32.8 12.5-45.3 0l-64-64c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8h32V32c0-17.7 14.3-32 32-32zM169.4 393.4l64-64c12.5-12.5 32.8-12.5 45.3 0l64 64c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H288v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448H192c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9zM32 224H64V192c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c12.5 12.5 12.5 32.8 0 45.3l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32zm297.4 54.6c-12.5-12.5-12.5-32.8 0-45.3l64-64c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6v32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H448v32c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-64-64zM256 224a32 32 0 1 1 0 64 32 32 0 1 1 0-64z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faArrowsToDot=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(r7);var Nm={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="plus",r=448,i=512,s=[10133,61543,"add"],o="2b",a="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faPlus=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(Nm);var xd={};
1009(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="thumbtack",r=384,i=512,s=[128204,128392,"thumb-tack"],o="f08d",a="M32 32C32 14.3 46.3 0 64 0H320c17.7 0 32 14.3 32 32s-14.3 32-32 32H290.5l11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3H32c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64H64C46.3 64 32 49.7 32 32zM160 384h64v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V384z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faThumbtack=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(xd);var yy={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="inbox",r=512,i=512,s=[],o="f01c",a="M121 32C91.6 32 66 52 58.9 80.5L1.9 308.4C.6 313.5 0 318.7 0 323.9V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V323.9c0-5.2-.6-10.4-1.9-15.5l-57-227.9C446 52 420.4 32 391 32H121zm0 64H391l48 192H387.8c-12.1 0-23.2 6.8-28.6 17.7l-14.3 28.6c-5.4 10.8-16.5 17.7-28.6 17.7H195.8c-12.1 0-23.2-6.8-28.6-17.7l-14.3-28.6c-5.4-10.8-16.5-17.7-28.6-17.7H73L121 96z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faInbox=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(yy);class i7 extends Event{constructor(e,n,r){super(e,n),this.entry=r}}const vb="observedResize:global",dre="observedResize",ZE=new ResizeObserver(t=>{t.forEach(e=>{const n=new i7(vb,{},e);document.dispatchEvent(n)})});function hre(t){ZE.observe(t);const e=n=>{if(n.entry.target===t){const r=new i7(dre,{},n.entry);t.dispatchEvent(r)}};return document.addEventListener(vb,e),{destroy(){document.removeEventListener(vb,e),ZE.unobserve(t)}}}class s7 extends Event{constructor(e,n,r){super(e,n),this.entry=r}}const bb="observedIntersection:global",pre="observedIntersection",XE=new IntersectionObserver(t=>{t.forEach(e=>{const n=new s7(bb,{},e);document.dispatchEvent(n)})});function o7(t){XE.observe(t);const e=n=>{if(n.entry.target===t){const r=new s7(pre,{},n.entry);t.dispatchEvent(r)}};return document.addEventListener(bb,e),{destroy(){document.removeEventListener(bb,e),XE.unobserve(t)}}}const mre=(t,e)=>{if(!t)return-1;const n=e.find(r=>r.hue===t.hue&&r.alpha===t.alpha);return e.indexOf(n)},gre=({hue:t,saturation:e,lightness:n},r=!1)=>{const i={hue:t,saturation:e,lightness:n};i.lightness+=r?7:-9;const s=r?{hue:0,saturation:0,lightness:0,alpha:1}:{hue:0,saturation:100,lightness:100};return[{...s,alpha:1},{...i,hue:1,alpha:1},{...i,hue:45,alpha:1},{...i,hue:90,alpha:1},{...i,hue:135,alpha:1},{...i,hue:180,alpha:1},{...i,hue:225,alpha:1},{...i,hue:270,alpha:1},{...s,alpha:0}]},Vp=1,El=8,vre=t=>12+Math.pow(t,2),vu=EV(0,El+1).reduce((t,e)=>(t[e]=vre(e),t),{}),bre=t=>{const e=vu[El],n=vu[Vp];if(e<=t)return El;if(n>=t)return Vp;for(let r=Vp;r<=El;r+=1){const i=vu[r],s=vu[r-1];if(t<=i){if(s){const o=Math.abs(s-t),a=Math.abs(i-t);if(o<a)return r-1}return r}}return El};function _re(t){Et(t,"svelte-88hjd1",'.Avatar.svelte-88hjd1.svelte-88hjd1{width:4rem;height:4rem;border:2px solid var(--c-border-dark);overflow:hidden;cursor:default}.Avatar.svelte-88hjd1.svelte-88hjd1:hover,.Avatar.expanded.svelte-88hjd1.svelte-88hjd1{width:auto !important}.Avatar.svelte-88hjd1 .text.svelte-88hjd1{display:inline-block;visibility:hidden;font-weight:bold;color:var(--c-text)}.Avatar.svelte-88hjd1 .text.svelte-88hjd1::first-letter{visibility:visible;text-transform:uppercase}.Avatar.svelte-88hjd1:hover .text.svelte-88hjd1,.Avatar.expanded.svelte-88hjd1 .text.svelte-88hjd1{visibility:visible}.Avatar.svelte-88hjd1 .action.svelte-88hjd1{font-weight:normal}.Avatar.textOnly.svelte-88hjd1.svelte-88hjd1{border-color:transparent}.Avatar.small.svelte-88hjd1.svelte-88hjd1{width:3.4rem;height:3.4rem;border-radius:1.7rem}.Avatar.tiny.svelte-88hjd1.svelte-88hjd1{width:2rem;height:2rem;margin-bottom:-0.1rem;padding:0 0.4rem;font-size:1.1rem;line-height:1.6rem;border-radius:1rem}.Avatar[data-source="openai"].svelte-88hjd1.svelte-88hjd1:not(.textOnly){background-color:#19c37d !important;border-color:transparent}.Avatar[data-source="openai"].svelte-88hjd1:not(.textOnly) .text.svelte-88hjd1{color:white !important}.Avatar[data-source="openai"].textOnly.svelte-88hjd1 .text.svelte-88hjd1{color:#19c37d !important}.Avatar[data-source="telegram"].svelte-88hjd1.svelte-88hjd1:not(.textOnly){background-color:#3390ec !important;border-color:transparent}.Avatar[data-source="telegram"].svelte-88hjd1:not(.textOnly) .text.svelte-88hjd1{color:white !important}.Avatar[data-source="telegram"].textOnly.svelte-88hjd1 .text.svelte-88hjd1{color:#3390ec !important}')}function yre(t){let e,n,r,i,s,o=t[3]?" "+t[3]:"",a,u,l=t[4]?" "+Dt.fromISO(t[4]).toLocaleStr
1009ing(Dt.DATE_MED):"",c,d=`hsla(${t[5].hue}, ${t[5].saturation}%, ${t[5].lightness}%, ${t[5].alpha})`;return{c(){e=C("div"),n=C("span"),r=oe(t[1]),i=N(),s=C("span"),a=oe(o),u=N(),c=oe(l),w(s,"class","action svelte-88hjd1"),w(n,"class","text svelte-88hjd1"),w(e,"class","Avatar svelte-88hjd1"),w(e,"title",t[2]),w(e,"data-source",t[0]),ve(e,"small",t[6]),ve(e,"tiny",t[7]),ve(e,"expanded",t[8]),ve(e,"textOnly",t[9]),He(e,"background-color",d)},m(h,m){O(h,e,m),v(e,n),v(n,r),v(n,i),v(n,s),v(s,a),v(n,u),v(n,c)},p(h,[m]){m&2&&Wt(r,h[1]),m&8&&o!==(o=h[3]?" "+h[3]:"")&&Wt(a,o),m&16&&l!==(l=h[4]?" "+Dt.fromISO(h[4]).toLocaleString(Dt.DATE_MED):"")&&Wt(c,l),m&4&&w(e,"title",h[2]),m&1&&w(e,"data-source",h[0]),m&64&&ve(e,"small",h[6]),m&128&&ve(e,"tiny",h[7]),m&256&&ve(e,"expanded",h[8]),m&512&&ve(e,"textOnly",h[9]),m&32&&d!==(d=`hsla(${h[5].hue}, ${h[5].saturation}%, ${h[5].lightness}%, ${h[5].alpha})`)&&He(e,"background-color",d)},i:Ee,o:Ee,d(h){h&&I(e)}}}function wre(t,e,n){let{source:r}=e,{name:i}=e,{title:s=""}=e,{action:o=""}=e,{actionDate:a=""}=e,{bgColor:u={hue:0,saturation:0,lightness:0,alpha:0}}=e,{small:l=!1}=e,{tiny:c=!1}=e,{expanded:d=!1}=e,{textOnly:h=!1}=e;return t.$$set=m=>{"source"in m&&n(0,r=m.source),"name"in m&&n(1,i=m.name),"title"in m&&n(2,s=m.title),"action"in m&&n(3,o=m.action),"actionDate"in m&&n(4,a=m.actionDate),"bgColor"in m&&n(5,u=m.bgColor),"small"in m&&n(6,l=m.small),"tiny"in m&&n(7,c=m.tiny),"expanded"in m&&n(8,d=m.expanded),"textOnly"in m&&n(9,h=m.textOnly)},[r,i,s,o,a,u,l,c,d,h]}class a7 extends pt{constructor(e){super(),ht(this,e,wre,yre,dt,{source:0,name:1,title:2,action:3,actionDate:4,bgColor:5,small:6,tiny:7,expanded:8,textOnly:9},_re)}}var Ere={prefix:"fas",iconName:"arrow-up-long",icon:[384,512,["long-arrow-up"],"f176","M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3V480c0 17.7 14.3 32 32 32s32-14.3 32-32V109.3l73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128z"]},kre={prefix:"fas",iconName:"arrow-down-long",icon:[384,512,["long-arrow-down"],"f175","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128z"]},Sre={prefix:"fas",iconName:"file-import",icon:[512,512,["arrow-right-to-file"],"f56f","M128 64c0-35.3 28.7-64 64-64H352V128c0 17.7 14.3 32 32 32H512V448c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336H302.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128V64zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H128zM512 128H384V0L512 128z"]},Tre={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},$re={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Cre={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Are={prefix:"fas",iconName:"file-pen",icon:[576,512,[128221,"file-edit"],"f31c","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V285.7l-86.8 86.8c-10.3 10.3-17.5 23.1-21 37.2l-18.7 74.9c-2.3 9.2-1.8 18.8 1.3 27.5H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM549.8 235.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0zM311.9 417L441.1 287.8l71 71L382.9 487.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l15-60.1c1.4-5.6 4.3-10.8 8.4-14.9z"]},Dre={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128204,128392,"thumb-tack"],"f08d","M32 32C32 14.3 46.3 0 64 0H320c17.7 0 32 14.3 32 32s-14.3 32-32 32H290.5l11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3H32c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64H64C46.3 64 32 49.7 32 32zM160 384h64v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V384z"]}
1009,Ire={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M288 448H64V224h64V160H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64zm-64-96H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64z"]},u7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="far",n="clipboard",r=384,i=512,s=[128203],o="f328",a="M280 64h40c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128C0 92.7 28.7 64 64 64h40 9.6C121 27.5 153.3 0 192 0s71 27.5 78.4 64H280zM64 112c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320c8.8 0 16-7.2 16-16V128c0-8.8-7.2-16-16-16H304v24c0 13.3-10.7 24-24 24H192 104c-13.3 0-24-10.7-24-24V112H64zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faClipboard=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(u7);var l7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="clipboard-check",r=384,i=512,s=[],o="f46c",a="M192 0c-41.8 0-77.4 26.7-90.5 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H282.5C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM305 273L177 401c-9.4 9.4-24.6 9.4-33.9 0L79 337c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L271 239c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faClipboardCheck=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(l7);function Ore(t){let e,n;return e=new et({props:{icon:u7.faClipboard}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Nre(t){let e,n;return e=new et({props:{icon:l7.faClipboardCheck}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Rre(t){let e,n,r,i;const s=[Nre,Ore],o=[];function a(u,l){return u[1]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function Pre(t){let e,n;return e=new We({props:{tiny:!t[0],small:t[0],circle:!0,reveal:!0,title:t[1]?"Copied to clipboard":"Copy to clipboard",$$slots:{default:[Rre]},$$scope:{ctx:t}}}),e.$on("click",t[2]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&1&&(s.tiny=!r[0]),i&1&&(s.small=r[0]),i&2&&(s.title=r[1]?"Copied to clipboard":"Copy to clipboard"),i&18&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function xre(t,e,n){let{value:r}=e,{small:i=!1}=e,s=!1;const o=async()=>{n(3,r=r.replace(/<[^>]*>?/gm,"")),navigator.clipboard.writeText(r).then(()=>{n(1,s=!0),setTimeout(()=>{n(1,s=!1)},2e3)},()=>{console.log("cannot to clipboard")})};return t.$$set=a=>{"value"in a&&n(3,r=a.value),"small"in a&&n(0,i=a.small)},[i,s,o,r]}class c7 extends pt{constructor(e){super(),ht(this,e,xre,Pre,dt,{value:3,small:0})}}function qre(t){Et(t,"svelte-h4l0as","ul.svelte-h4l0as.svelte-h4l0as{display:flex;border-radius:2rem;color:var(--c-text-faded);border:2px solid var(--c-book-bg);background-color:var(--c-book-bg)}ul.svelte-h4l0as li.svelte-h4l0as{display:inline-block;flex-grow:1;padding:0.5rem 1rem;font-size:1.6rem;text-align:center;border-radius:2rem;list-style:none;cursor:default;white-space:nowrap}ul.svelte-h4l0as li.svelte-h4l0as:not(.active):hover{cursor:pointer;color:var(--c-text-hover)}ul.svelte-h4l0as li.active.svelte-h4l0as{color:var(--c-text-inverse);background-color:var(--c-button-bg)}ul.small.svelte-h4l0as li.svelte-h4l0as{height:2rem;padding:0.25rem 0.5rem;font-size:1.3rem;line-height:1.5rem;letter-spacing:0.1px;-webkit-font-smoothing:antialiased}ul.transparent.svelte-h4l0as.svelte-h4l0as{background-color:transparent;border-color:var(--c-button-bg);color:var(--c-text);padding:0.2rem}
1009ul.transparent.svelte-h4l0as li.svelte-h4l0as{padding:0rem 1rem;line-height:2.2rem}")}function KE(t,e,n){const r=t.slice();return r[8]=e[n],r}function JE(t){let e,n,r=(String(t[0])===String(t[8].value)&&t[4]?t[4]+" "+t[8].display:t[8].display)+"",i,s,o;function a(){return t[6](t[8])}return{c(){e=C("li"),n=new m5(!1),i=N(),n.a=i,w(e,"class","svelte-h4l0as"),ve(e,"active",String(t[0])===String(t[8].value))},m(u,l){O(u,e,l),n.m(r,e),v(e,i),s||(o=Ie(e,"click",a),s=!0)},p(u,l){t=u,l&19&&r!==(r=(String(t[0])===String(t[8].value)&&t[4]?t[4]+" "+t[8].display:t[8].display)+"")&&n.p(r),l&3&&ve(e,"active",String(t[0])===String(t[8].value))},d(u){u&&I(e),s=!1,o()}}}function Fre(t){let e,n=Ut(t[1]),r=[];for(let i=0;i<n.length;i+=1)r[i]=JE(KE(t,n,i));return{c(){e=C("ul");for(let i=0;i<r.length;i+=1)r[i].c();w(e,"class","svelte-h4l0as"),ve(e,"small",t[2]),ve(e,"transparent",t[3])},m(i,s){O(i,e,s);for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(e,null)},p(i,[s]){if(s&51){n=Ut(i[1]);let o;for(o=0;o<n.length;o+=1){const a=KE(i,n,o);r[o]?r[o].p(a,s):(r[o]=JE(a),r[o].c(),r[o].m(e,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}s&4&&ve(e,"small",i[2]),s&8&&ve(e,"transparent",i[3])},i:Ee,o:Ee,d(i){i&&I(e),Ci(r,i)}}}function Lre(t,e,n){let{options:r}=e,{value:i=void 0}=e,{small:s=!1}=e,{transparent:o=!1}=e,{activePrepend:a=null}=e;const u=Cr(),l=d=>{i!==d.value&&(n(0,i=d.value),u("change",{value:i}))},c=d=>l(d);return t.$$set=d=>{"options"in d&&n(1,r=d.options),"value"in d&&n(0,i=d.value),"small"in d&&n(2,s=d.small),"transparent"in d&&n(3,o=d.transparent),"activePrepend"in d&&n(4,a=d.activePrepend)},[i,r,s,o,a,l,c]}class wy extends pt{constructor(e){super(),ht(this,e,Lre,Fre,dt,{options:1,value:0,small:2,transparent:3,activePrepend:4},qre)}}function Mre(t){Et(t,"svelte-1bwwfja",`.controlsWrapper.svelte-1bwwfja.svelte-1bwwfja{position:absolute;width:100%;z-index:1;display:flex;justify-content:center}.controls.svelte-1bwwfja.svelte-1bwwfja,.svelte-1bwwfja.svelte-1bwwfja::before{--thumb-size:3rem;--thumb-border:0.2rem;--swatch-size:calc(var(--thumb-size) - var(--thumb-border) * 2);--swatch-margin:calc(var(--thumb-size) - var(--swatch-size));--scale-hovered:1.1}.controls.svelte-1bwwfja.svelte-1bwwfja{display:flex;justify-content:center;position:absolute;box-sizing:content-box;height:var(--thumb-size);transform-origin:bottom center;padding:1rem 1.2rem;border-radius:var(--thumb-size);font-size:1.6rem;line-height:3rem;background:var(--c-border-dark);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);transition:width 0.2s cubic-bezier(0.35, 1, 0.7, 1.2)}.controls.svelte-1bwwfja.svelte-1bwwfja::after{content:" ";position:absolute;z-index:-1;width:120%;height:2.5rem;bottom:-1.5rem}.toggles.svelte-1bwwfja.svelte-1bwwfja{display:flex;align-items:center;gap:0.7rem}.toggle.svelte-1bwwfja.svelte-1bwwfja{position:relative}.toggle.svelte-1bwwfja.svelte-1bwwfja:hover{cursor:pointer}.toggle.picker.svelte-1bwwfja.svelte-1bwwfja{width:var(--thumb-size);height:var(--thumb-size);border-radius:var(--thumb-size);transition-property:transform;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s}.toggle.picker.svelte-1bwwfja.svelte-1bwwfja:hover{transform:scale(var(--scale-hovered))}.toggle.picker.transparent.svelte-1bwwfja.svelte-1bwwfja{width:calc(var(--thumb-size) * var(--scale-hovered));height:calc(var(--thumb-size) * var(--scale-hovered));margin:calc((var(--thumb-size) * var(--scale-hovered) - var(--thumb-size)) * 0.5 * -1);background:repeating-conic-gradient(var(--c-text-faded) 0% 25%, var(--c-text-inverse) 0% 50%) 1010 50% / 6px 6px;clip-path:circle(45%);transition-property:clip-path}.toggle.picker.transparent.svelte-1bwwfja.svelte-1bwwfja:hover{transform:none;clip-path:circle(50%) !important}.toggle.text.svelte-1bwwfja.svelte-1bwwfja{margin-right:-0.5rem}.toggle.text.svelte-1bwwfja .Button{font-family:"Courier New", Courier, monospace;font-weight:bold;text-align:center;font-size:calc(var(--thumb-size) * 2 / 3);line-height:calc(var(--thumb-size) * 1.08);-webkit-font-smoothing:antialiased}.toggle.svelte-1bwwfja:not(.text) .Button.reveal{font-size:1.7rem}.toggle.moveToTop.svelte-1bwwfja.svelte-1bwwfja{margin-right:-0.5rem}.toggle.divider.svelte-1bwwfja.svelte-1bwwfja{background:var(--c-border-dark);width:0.4rem;height:calc(var(--thumb-size) * 2 / 3);border-radius:1rem;align-self:center;pointer-events:none}.controlsGroup.svelte-1bwwfja.svelte-1bwwfja{display:flex}.controlsGroup.svelte-1bwwfja>.Button{margin-right:1rem}
1010.controlSet.svelte-1bwwfja.svelte-1bwwfja{position:relative;display:flex;white-space:nowrap}.controlSet.svelte-1bwwfja+.controlSet.svelte-1bwwfja{margin-left:0.5rem}.controlSet.svelte-1bwwfja .fontScaleGroup.svelte-1bwwfja{position:relative}.controlSet.svelte-1bwwfja .fontScaleDisplay.svelte-1bwwfja{position:absolute;z-index:2;width:var(--thumb-size);color:var(--c-text-inverse);font-size:1.6rem;line-height:var(--thumb-size);text-align:center;pointer-events:none}.controls.svelte-1bwwfja input.svelte-1bwwfja{cursor:ew-resize;z-index:1}.controls.svelte-1bwwfja input[type="range"].svelte-1bwwfja{-webkit-appearance:none;appearance:none;box-shadow:none;border:none;background:transparent}.controls.svelte-1bwwfja input.frameHue.svelte-1bwwfja{width:calc(var(--swatch-size) * 9);opacity:0}.controls.svelte-1bwwfja input.fontScale.svelte-1bwwfja{width:calc(var(--swatch-size) * 8)}.controls.svelte-1bwwfja .fontScale.svelte-1bwwfja::-webkit-slider-runnable-track{height:var(--thumb-size);background-image:radial-gradient(var(--c-border-dark) 0.5rem, transparent 0.5rem);background-size:calc(var(--thumb-size) - var(--thumb-border) * 2) 1011 calc(var(--thumb-size) - var(--thumb-border) * 2);background-position:0 var(--thumb-border)}.controls.svelte-1bwwfja input[type="range"].svelte-1bwwfja::-webkit-slider-thumb{-webkit-appearance:none;background-color:var(--c-button-bg);width:var(--thumb-size);height:var(--thumb-size);border-radius:calc(var(--thumb-size) * 0.5);transform-origin:center center;transition-property:transform border-color;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s}.controls.svelte-1bwwfja input.frameHue.svelte-1bwwfja::-webkit-slider-thumb{-webkit-appearance:none;background-color:transparent;border:var(--thumb-border) solid var(--c-button-bg)}.controls.svelte-1bwwfja input[type="range"].svelte-1bwwfja::-webkit-slider-thumb:hover{transform:scale(var(--scale-hovered))}.controls.svelte-1bwwfja .swatches.svelte-1bwwfja{display:flex;justify-content:space-between;position:absolute;padding:var(--thumb-border);width:calc(var(--swatch-size) * 9)}.controls.svelte-1bwwfja .swatches .swatch.svelte-1bwwfja{width:var(--swatch-size);height:var(--swatch-size);border-radius:calc(var(--swatch-size) * 0.5);transform:scale(0.75)}.controls.svelte-1bwwfja .swatches .swatch.selected.svelte-1bwwfja{transform:scale(1);clip-path:circle(50%) !important}.controls.svelte-1bwwfja .swatches .swatch.svelte-1bwwfja:last-of-type,.controls.svelte-1bwwfja .picker.transparent.svelte-1bwwfja{transform:none;clip-path:circle(37%);background:repeating-conic-gradient(var(--c-text-faded) 0% 25%, var(--c-text-inverse) 0% 50%) 1012 50% / 6px 6px}.multiToggleWrapper.svelte-1bwwfja+.fontScaleGroup.svelte-1bwwfja{margin-left:1rem}.toggle.unpin.svelte-1bwwfja.svelte-1bwwfja::before{content:" ";border:1px solid var(--c-button-bg);transform:rotate(-45deg);transform-origin:top right;position:absolute;width:2.6rem;top:0.4rem;right:0.6rem}`)}function ek(t,e,n){const r=t.slice();return r[34]=e[n],r[36]=n,r}function Bre(t){let e,n,r,i,s,o;n=new We({props:{small:!0,circle:!0,outline:!0,$$slots:{default:[jre]},$$scope:{ctx:t}}}),n.$on("click",t[15]);let a=t[11]==="picker"&&tk(t),u=t[11]==="text"&&rk(t);return{c(){e=C("div"),j(n.$$.fragment),r=N(),a&&a.c(),i=N(),u&&u.c(),w(e,"class","controlsGroup svelte-1bwwfja")},m(l,c){O(l,e,c),B(n,e,null),v(e,r),a&&a.m(e,null),v(e,i),u&&u.m(e,null),o=!0},p(l,c){const d={};c[1]&64&&(d.$$scope={dirty:c,ctx:l}),n.$set(d),l[11]==="picker"?a?a.p(l,c):(a=tk(l),a.c(),a.m(e,i)):a&&(a.d(1),a=null),l[11]==="text"?u?(u.p(l,c),c[0]&2048&&E(u,1)):(u=rk(l),u.c(),E(u,1),u.m(e,null)):u&&($e(),T(u,1,1,()=>{u=null}),Ce())},i(l){o||(E(n.$$.fragment,l),E(u),l&&(s||Xn(()=>{s=fc(e,Sr,{easing:oo,delay:175}),s.start()})),o=!0)},o(l){T(n.$$.fragment,l),T(u),o=!1},d(l){l&&I(e),z(n),a&&a.d(),u&&u.d()}}}function zre(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V;s=new We({props:{small:!0,circle:!0,reveal:!0,title:(t[6].canExpand||t[6].canCollapse?t[9]?"Hide text / ":"Show text / ":"")+"Adjust text size",$$slots:{default:[Ure]},$$scope:{ctx:t}}}),s.$on("click",t[26]),u=new We({props:{small:!0,circle:!0,reveal:!0,disabled:t[5],title:"Duplicate",$$slots:{default:[Hre]},$$scope:{ctx:t}}}),u.$on("click",t[20]),d=new c7({props:{small:!0,value:t[7]}}),g=new We({props:{small:!0,circle:!0,reveal:!0,title:"Bring to front",$$slots:{default:[Vre]},$$scope:{ctx:t}}}),g.$on("click",t[22]),b=new We({props:{small:!0,circle:!0,reveal:!0,title:"Send to back",$$slots:{default:[Wre]},$$scope:{ctx:t}}}),b.$on("click",t[23]),x=new We({props:{small:!0,circle:!0,reveal:!0,disabled:t[5],title:t[8]?"Manage entry documents":"Copy to document",$$slots:{default:[Qre]},$$scope:{ctx:t}}}),x.$on("click",t[21]);
1012let H=t[6].canUnpin&&ok(t),J=t[6].canDelete&&ak(t);return{c(){e=C("div"),n=C("div"),r=N(),i=C("div"),j(s.$$.fragment),o=N(),a=C("div"),j(u.$$.fragment),l=N(),c=C("div"),j(d.$$.fragment),h=N(),m=C("div"),j(g.$$.fragment),k=N(),y=C("div"),j(b.$$.fragment),S=N(),$=C("div"),D=N(),P=C("div"),j(x.$$.fragment),R=N(),H&&H.c(),q=N(),J&&J.c(),w(n,"class","toggle picker svelte-1bwwfja"),w(n,"title","Change color"),He(n,"background-color","hsla( "+t[4].hue+", "+t[4].saturation+"%, "+t[4].lightness+"%, "+t[4].alpha),ve(n,"transparent",t[0]===t[3].length-1),w(i,"class","toggle text svelte-1bwwfja"),w(a,"class","toggle duplicate svelte-1bwwfja"),w(c,"class","toggle copyToClipboard svelte-1bwwfja"),w(m,"class","toggle moveToTop svelte-1bwwfja"),w(y,"class","toggle moveToBottom svelte-1bwwfja"),w($,"class","toggle divider svelte-1bwwfja"),w(P,"class","toggle addToBook svelte-1bwwfja"),w(e,"class","toggles svelte-1bwwfja")},m(Z,Q){O(Z,e,Q),v(e,n),v(e,r),v(e,i),B(s,i,null),v(e,o),v(e,a),B(u,a,null),v(e,l),v(e,c),B(d,c,null),v(e,h),v(e,m),B(g,m,null),v(e,k),v(e,y),B(b,y,null),v(e,S),v(e,$),v(e,D),v(e,P),B(x,P,null),v(e,R),H&&H.m(e,null),v(e,q),J&&J.m(e,null),L=!0,M||(V=Ie(n,"click",t[25]),M=!0)},p(Z,Q){t=Z,(!L||Q[0]&16)&&He(n,"background-color","hsla( "+t[4].hue+", "+t[4].saturation+"%, "+t[4].lightness+"%, "+t[4].alpha),(!L||Q[0]&9)&&ve(n,"transparent",t[0]===t[3].length-1);const K={};Q[0]&576&&(K.title=(t[6].canExpand||t[6].canCollapse?t[9]?"Hide text / ":"Show text / ":"")+"Adjust text size"),Q[1]&64&&(K.$$scope={dirty:Q,ctx:t}),s.$set(K);const G={};Q[0]&32&&(G.disabled=t[5]),Q[1]&64&&(G.$$scope={dirty:Q,ctx:t}),u.$set(G);const se={};Q[0]&128&&(se.value=t[7]),d.$set(se);const fe={};Q[1]&64&&(fe.$$scope={dirty:Q,ctx:t}),g.$set(fe);const me={};Q[1]&64&&(me.$$scope={dirty:Q,ctx:t}),b.$set(me);const Ae={};Q[0]&32&&(Ae.disabled=t[5]),Q[0]&256&&(Ae.title=t[8]?"Manage entry documents":"Copy to document"),Q[0]&256|Q[1]&64&&(Ae.$$scope={dirty:Q,ctx:t}),x.$set(Ae),t[6].canUnpin?H?(H.p(t,Q),Q[0]&64&&E(H,1)):(H=ok(t),H.c(),E(H,1),H.m(e,q)):H&&($e(),T(H,1,1,()=>{H=null}),Ce()),t[6].canDelete?J?(J.p(t,Q),Q[0]&64&&E(J,1)):(J=ak(t),J.c(),E(J,1),J.m(e,null)):J&&($e(),T(J,1,1,()=>{J=null}),Ce())},i(Z){L||(E(s.$$.fragment,Z),E(u.$$.fragment,Z),E(d.$$.fragment,Z),E(g.$$.fragment,Z),E(b.$$.fragment,Z),E(x.$$.fragment,Z),E(H),E(J),Z&&(F||Xn(()=>{F=fc(e,Sr,{easing:oo,delay:t[13],duration:t[12]}),F.start()})),L=!0)},o(Z){T(s.$$.fragment,Z),T(u.$$.fragment,Z),T(d.$$.fragment,Z),T(g.$$.fragment,Z),T(b.$$.fragment,Z),T(x.$$.fragment,Z),T(H),T(J),L=!1},d(Z){Z&&I(e),z(s),z(u),z(d),z(g),z(b),z(x),H&&H.d(),J&&J.d(),M=!1,V()}}}function jre(t){let e,n;return e=new et({props:{icon:$re}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function tk(t){let e,n,r,i,s,o,a,u=Ut(t[3]),l=[];for(let c=0;c<u.length;c+=1)l[c]=nk(ek(t,u,c));return{c(){e=C("div"),n=C("input"),i=N(),s=C("div");for(let c=0;c<l.length;c+=1)l[c].c();w(n,"type","range"),w(n,"class","frameHue svelte-1bwwfja"),w(n,"min","0"),w(n,"max",r=t[3].length-1),w(n,"step",1),w(s,"class","swatches svelte-1bwwfja"),w(e,"class","controlSet picker svelte-1bwwfja")},m(c,d){O(c,e,d),v(e,n),Yr(n,t[0]),v(e,i),v(e,s);for(let h=0;h<l.length;h+=1)l[h]&&l[h].m(s,null);o||(a=[Ie(n,"change",t[27]),Ie(n,"input",t[27]),Ie(n,"input",t[16])],o=!0)},p(c,d){if(d[0]&8&&r!==(r=c[3].length-1)&&w(n,"max",r),d[0]&1&&Yr(n,c[0]),d[0]&9){u=Ut(c[3]);let h;for(h=0;h<u.length;h+=1){const m=ek(c,u,h);l[h]?l[h].p(m,d):(l[h]=nk(m),l[h].c(),l[h].m(s,null))}for(;h<l.length;h+=1)l[h].d(1);l.length=u.length}},d(c){c&&I(e),Ci(l,c),o=!1,fn(a)}}}function nk(t){let e;return{c(){e=C("div"),w(e,"class","swatch svelte-1bwwfja"),He(e,"background-color","hsla("+t[34].hue+", "+t[34].saturation+"%, "+t[34].lightness+"%, "+t[34].alpha),ve(e,"selected",t[36]==t[0])},m(n,r){O(n,e,r)},p(n,r){r[0]&8&&He(e,"background-color","hsla("+n[34].hue+", "+n[34].saturation+"%, "+n[34].lightness+"%, "+n[34].alpha),r[0]&1&&ve(e,"selected",n[36]==n[0])},d(n){n&&I(e)}}}function rk(t){let e,n,r,i=(t[6].canExpand||t[6].canCollapse)&&ik(t),s=t[6].canDecorate&&t[9]&&sk(t);return{c(){e=C("div"),i&&i.c(),n=N(),s&&s.c(),w(e,"class","controlSet text svelte-1bwwfja")},m(o,a){O(o,e,a),i&&i.m(e,null),v(e,n),s&&s.m(e,null),r=!0},p(o,a){o[6].canExpand||o[6].canCollapse?i?(i.p(o,a),a[0]&64&&E(i,1)):(i=ik(o),i.c(),E(i,1),i.m(e,n)):i&&($e(),T(i,1,1,()=>{i=null}),Ce()),o[6].canDecorate&&o[9]?s?s.p(o,a):(s=sk(o),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i(o){r||(E(i),r=!0)},o(o){T(i),r=!1},d(o){o&&I(e),i&&i.d(),s&&s.d()}}}function ik(t){let e,n,r,i;return n=new wy({props:{transparent:!0,activePrepend:"Text",options:[{value:!1,display:"Off"},{value:!0,display:"On"}],value:t[9]}}),n.$on("change",t[28]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","multiToggleWrapper svelte-1bwwfja")},m(s,o){O(s,e,o),B(n,e,null),i=!0},p(s,o){const a={};o[0]&512&&(a.value=s[9]),n.$set(a)},i(s){i||(E(n.$$.fragment,s),s&&(r||Xn(()=>{r=fc(e,Sr,{easing:oo,delay:175}),r.start()})),i=!0)},o(s){T(n.$$.fragment,s),i=!1},d(s){s&&I(e),z(n)}}}function sk(t){let e,n,r,i,s,o,a;return{c(){e=C("div"),n=C("div"),r=oe(t[1]),i=N(),s=C("input"),w(n,"class","fontScaleDisplay svelte-1bwwfja"),He(n,"left",(t[1]-1)*25.4+"px"),w(s,"type","range"),w(s,"min",Vp),w(s,"max",El),w(s,"class","fontScale svelte-1bwwfja"),w(s,"step","1"),w(e,"class","fontScaleGroup svelte-1bwwfja")},m(u,l){O(u,e,l),v(e,n),v(n,r),v(e,i),v(e,s),Yr(s,t[1]),o||(a=[Ie(s,"change",t[29]),Ie(s,"input",t[29]),Ie(s,"input",t[18])],o=!0)},p(u,l){l[0]&2&&Wt(r,u[1]),l[0]&2&&He(n,"left",(u[1]-1)*25.4+"px"),l[0]&2&&Yr(s,u[1])},d(u){u&&I(e),o=!1,fn(a)}}}function Ure(t){let e;return{c(){e=oe("T")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Hre(t){let e,n;return e=new et({props:{icon:Ire}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Vre(t){let e,n;return e=new et({props:{icon:Ere}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Wre(t){let e,n;return e=new et({props:{icon:kre}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Gre(t){let e,n;return e=new et({props:{icon:Sre}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Yre(t){let e,n;return e=new et({props:{icon:Are}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Qre(t){let e,n,r,i;const s=[Yre,Gre],o=[];function a(u,l){return u[8]?0:1}
1012return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function ok(t){let e,n,r;return n=new We({props:{small:!0,circle:!0,outline:!0,disabled:t[5],title:t[6].isDraft?"Discard":"Unpin",$$slots:{default:[Zre]},$$scope:{ctx:t}}}),n.$on("click",t[19]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","toggle unpin svelte-1bwwfja")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s[0]&32&&(o.disabled=i[5]),s[0]&64&&(o.title=i[6].isDraft?"Discard":"Unpin"),s[1]&64&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Zre(t){let e,n;return e=new et({props:{icon:Dre}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function ak(t){let e,n,r;return n=new We({props:{small:!0,circle:!0,danger:!0,disabled:t[5],title:"Delete",$$slots:{default:[Xre]},$$scope:{ctx:t}}}),n.$on("click",t[24]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","toggle delete svelte-1bwwfja")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s[0]&32&&(o.disabled=i[5]),s[1]&64&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Xre(t){let e,n;return e=new et({props:{icon:Tre}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Kre(t){let e,n,r,i,s;const o=[zre,Bre],a=[];function u(l,c){return l[11]?1:0}return r=u(t),i=a[r]=o[r](t),{c(){e=C("div"),n=C("div"),i.c(),w(n,"class","controls svelte-1bwwfja"),He(n,"transform","scale("+t[2]+")"),He(n,"bottom","calc(100% + "+1*t[2]+"rem"),w(e,"class","controlsWrapper dont-drag svelte-1bwwfja")},m(l,c){O(l,e,c),v(e,n),a[r].m(n,null),t[30](n),s=!0},p(l,c){let d=r;r=u(l),r===d?a[r].p(l,c):($e(),T(a[d],1,1,()=>{a[d]=null}),Ce(),i=a[r],i?i.p(l,c):(i=a[r]=o[r](l),i.c()),E(i,1),i.m(n,null)),(!s||c[0]&4)&&He(n,"transform","scale("+l[2]+")"),(!s||c[0]&4)&&He(n,"bottom","calc(100% + "+1*l[2]+"rem")},i(l){s||(E(i),s=!0)},o(l){T(i),s=!1},d(l){l&&I(e),a[r].d(),t[30](null)}}}function Jre(t,e,n){let{reverseScale:r}=e,{colorIndex:i}=e,{colorPalette:s}=e,{frameColor:o}=e,{isSavingEntry:a}=e,{fontScale:u}=e,{actions:l}=e,{entryContent:c=""}=e,{hasBookLabel:d=!1}=e,{isExpanded:h=!1}=e;const m=Cr();let g,k=!1,y,b=k?500:0,S=k?175:0;$r(()=>{$(),k=!0}),Va(()=>{$()});const $=()=>{g&&n(10,g.style.width=g.firstElementChild.scrollWidth+"px",g)},D=me=>{n(11,y=me),setTimeout($,100)},P=()=>{n(11,y=""),setTimeout($,100)},x=()=>{m("onColorChange")},R=()=>{m("onToggleDetails"),setTimeout($,100)},q=()=>{m("onFontScaleChange")},F=()=>{m("onUnpin")},L=()=>{m("onDuplicate")},M=()=>{m("onAddToBook")},V=()=>{m("onMoveToTop")},H=()=>{m("onMoveToBottom")},J=()=>{m("onDelete")},Z=()=>D("picker"),Q=()=>D("text");function K(){i=Au(this.value),n(0,i)}const G=()=>R();function se(){u=Au(this.value),n(1,u)}function fe(me){Qe[me?"unshift":"push"](()=>{g=me,n(10,g)})}return t.$$set=me=>{"reverseScale"in me&&n(2,r=me.reverseScale),"colorIndex"in me&&n(0,i=me.colorIndex),"colorPalette"in me&&n(3,s=me.colorPalette),"frameColor"in me&&n(4,o=me.frameColor),"isSavingEntry"in me&&n(5,a=me.isSavingEntry),"fontScale"in me&&n(1,u=me.fontScale),"actions"in me&&n(6,l=me.actions),"entryContent"in me&&n(7,c=me.entryContent),"hasBookLabel"in me&&n(8,d=me.hasBookLabel),"isExpanded"in me&&n(9,h=me.isExpanded)},n(11,y=""),[i,u,r,s,o,a,l,c,d,h,g,y,b,S,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe]}class eie extends pt{constructor(e){super(),ht(this,e,Jre,Kre,dt,{reverseScale:2,colorIndex:0,colorPalette:3,frameColor:4,isSavingEntry:5,fontScale:1,actions:6,entryContent:7,hasBookLabel:8,isExpanded:9},Mre,[-1,-1])}}/*! ***************************************************************************** 1013Copyright (c) Microsoft Corporation. 1014 1015Permission to use, copy, modify, and/or distribute this software for any 1016purpose with or without fee is hereby granted. 1017 1018THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 1019REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 1020AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 1021INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 1022LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 1023OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1024PERFORMANCE OF THIS SOFTWARE. 1025***************************************************************************** */function dp(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}function R0(t,e){var n=e===void 0?{}:e,r=n.numToTrack,i=r===void 0?1:r,s=n.initPrevious,o=s===void 0?[]:s,a=n.requireChange,u=a===void 0?!0:a,l=n.isEqual,c=l===void 0?function(y,b){return y===b}:l;
1025if(i<=0)throw new Error("Must track at least 1 previous");for(var d=o.slice(0,i);d.length<i;)d.push(null);var h=nn(dp([t],d,!0)),m=function(y){h.update(function(b){var S=y(b[0]);return u&&c(S,b[0])?b:dp([S],b.slice(0,i),!0)})},g={subscribe:hr(h,function(y){return y[0]}).subscribe,update:m,set:function(y){m(function(){return y})}},k=dp([],Array(i),!0).map(function(y,b){return hr(h,function(S){return S[b+1]})});return dp([g],k,!0)}let f7=null;vi.subscribe(t=>{f7=(t==null?void 0:t.id)??null});const d7=({entry:t,context:e,pin:n},r={})=>{var d;const i=t.attachmentsCount>0||t.entitiesCount>0,s=Yt.cache.readFragment({id:`Space:${t.spaceId}`,fragment:Wa}),o=!t.id,a=n&&i&&n.isExpanded,u=!s||(s==null?void 0:s.isVisiting),l={isDraft:o,canReply:!1,canDelete:!1,canPin:!1,canDecorate:!1,canUnpin:!1,canEdit:!1,canExpand:!1,canCollapse:!1,canLocate:!1,canAddToBooks:!0};if(t.isPinned&&(l.canLocate=!0),u)return{...l,...r};const c=(d=t.user)==null?void 0:d.id;return t.isPinned?(l.canUnpin=!0,l.canDecorate=!0,l.canExpand=i&&!a,l.canCollapse=i&&a):l.canPin=!0,c===f7&&(l.canEdit=t.agentConversationId===null,l.canDelete=!o&&t.agentConversationId===null),{...l,...r}},h7="entryContext";var Qr=(t=>(t.Canvas="CANVAS",t.Book="BOOK",t.Drawer="DRAWER",t.Chat="CHAT",t.Space="SPACE",t))(Qr||{});const p7=()=>jo(h7)||null,qd=t=>Sf(h7,t),Ba=t=>Array.isArray(t)?t.filter(e=>!e.isDestroyed):t!=null&&t.isDestroyed?null:t;function tie(t){Et(t,"svelte-tdo37w",".linkPanelWrapper.svelte-tdo37w{position:absolute;z-index:1}.linkPanel.svelte-tdo37w{--thumb-size:3rem;--thumb-border:0.2rem;--swatch-size:calc(var(--thumb-size) - var(--thumb-border) * 2);--swatch-margin:calc(var(--thumb-size) - var(--swatch-size));--scale-hovered:1.1}.linkPanel__url.svelte-tdo37w{display:inline-block;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.linkPanel.svelte-tdo37w:hover{text-decoration:none}.linkPanel.svelte-tdo37w{color:var(--c-text);gap:0.6rem;display:flex;align-items:center;transform-origin:top center;position:absolute;box-sizing:content-box;padding:0.3rem 1.3rem;border-radius:var(--thumb-size);font-size:1.3rem;line-height:3rem;background:var(--c-border-dark);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);transition:width 0.2s cubic-bezier(0.35, 1, 0.7, 1.2)}")}function nie(t){let e,n,r,i,s,o,a=t[1].href+"",u,l,c;return r=new et({props:{icon:Cre}}),{c(){e=C("div"),n=C("a"),j(r.$$.fragment),i=N(),s=C("span"),o=oe("Open "),u=oe(a),w(s,"class","linkPanel__url svelte-tdo37w"),w(n,"target","_blank"),w(n,"href",l=t[1].href),w(n,"class","linkPanel svelte-tdo37w"),He(n,"transform","scale("+t[0]+")"),w(e,"class","linkPanelWrapper dont-drag svelte-tdo37w"),He(e,"left",t[2][0]+"px"),He(e,"top",t[2][1]+"px"),w(e,"data-link-panel",""),w(e,"data-ignore-click","")},m(d,h){O(d,e,h),v(e,n),B(r,n,null),v(n,i),v(n,s),v(s,o),v(s,u),c=!0},p(d,[h]){(!c||h&2)&&a!==(a=d[1].href+"")&&Wt(u,a),(!c||h&2&&l!==(l=d[1].href))&&w(n,"href",l),(!c||h&1)&&He(n,"transform","scale("+d[0]+")"),(!c||h&4)&&He(e,"left",d[2][0]+"px"),(!c||h&4)&&He(e,"top",d[2][1]+"px")},i(d){c||(E(r.$$.fragment,d),c=!0)},o(d){T(r.$$.fragment,d),c=!1},d(d){d&&I(e),z(r)}}}function rie(t,e,n){let{reverseScale:r}=e,{linkElement:i}=e,s=[0,0];return $r(()=>{const{offsetTop:o,offsetLeft:a,offsetHeight:u}=i;n(2,s=[a,o+u])}),t.$$set=o=>{"reverseScale"in o&&n(0,r=o.reverseScale),"linkElement"in o&&n(1,i=o.linkElement)},[r,i,s]}class iie extends pt{constructor(e){super(),ht(this,e,rie,nie,dt,{reverseScale:0,linkElement:1},tie)}}function sie(t){Et(t,"svelte-h9z48e",".EntryWrapper.svelte-h9z48e.svelte-h9z48e:not(.isEditing){margin:0;user-select:none;cursor:default}.EntryContent.svelte-h9z48e.svelte-h9z48e{width:100%;height:100%}.EntryContent > :not(*[data-link-panel]) a.active{text-decoration:underline}.EntryWrapper.isSelected .EntryContent img{pointer-events:none}.EntryWrapper.isDown.svelte-h9z48e.svelte-h9z48e:not(.isEditing):not(.isInPublicSpace){cursor:move}.EntryOnCanvas.svelte-h9z48e.svelte-h9z48e{position:absolute;transition-property:transform, width, height, background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.15, 0.7, 0.35, 1)}.EntryOnCanvas.isSelected.svelte-h9z48e.svelte-h9z48e{outline:solid 2px var(--c-text-strong);z-index:2147483647 !important}.EntryOnCanvas.isEditing.svelte-h9z48e.svelte-h9z48e{outline-style:dashed}.EntryOnCanvas.isDragging.svelte-h9z48e.svelte-h9z48e,.EntryOnCanvas.isMultiSelected.svelte-h9z48e.svelte-h9z48e{transition-property:width, height, background-color}.EntryOnCanvas.isResizing.svelte-h9z48e.svelte-h9z48e{transition-property:transform, background-color}.EntryOnCanvas.isDragging.svelte-h9z48e.svelte-h9z48e,.EntryOnCanvas.isHovering.svelte-h9z48e.svelte-h9z48e{z-index:2147483647 !important}.EntryOnCanvas.svelte-h9z48e>.EntryWrapper.svelte-h9z48e{width:100%;display:flex;height:100%}.resizeHandleWrapper.svelte-h9z48e.svelte-h9z48e{position:absolute;transform-origin:3rem 3rem;bottom:-1rem;right:-1rem;width:4rem;height:4rem}
1025.resizeHandleWrapper.isResizing.svelte-h9z48e.svelte-h9z48e{cursor:nwse-resize}.resizeHandle.svelte-h9z48e.svelte-h9z48e{transform-origin:bottom right;position:absolute;left:0.4rem;top:0.3rem}.attachButton.svelte-h9z48e.svelte-h9z48e{position:absolute;bottom:0rem;left:1.8rem;transform-origin:bottom left}.meta.svelte-h9z48e.svelte-h9z48e{display:flex;flex-direction:row;align-items:flex-end;position:absolute;bottom:0.4rem;left:0.4rem;transform-origin:bottom left}.draftLabel.svelte-h9z48e.svelte-h9z48e{position:absolute;bottom:var(--e-spacing);left:var(--e-spacing);padding:0rem 0.5rem;text-transform:uppercase;font-size:1.3rem;font-weight:bold;letter-spacing:0.2px;background:var(--c-border);color:var(--c-text-faded)}.stateDebug.svelte-h9z48e.svelte-h9z48e{font-size:1rem;font-family:monospace;position:fixed;bottom:1rem;width:100%;text-align:center;pointer-events:none;z-index:999;opacity:50%}")}function uk(t,e,n){const r=t.slice();return r[117]=e[n],r}function lk(t){var u;let e,n,r,i;function s(l){t[89](l)}function o(l){t[90](l)}let a={colorPalette:t[6],frameColor:t[34],actions:t[11],reverseScale:t[20],isSavingEntry:t[27],isExpanded:t[9],hasBookLabel:((u=Ba(t[0].books))==null?void 0:u.length)>0,entryContent:t[0].content||""};return t[33]!==void 0&&(a.colorIndex=t[33]),t[19]!==void 0&&(a.fontScale=t[19]),e=new eie({props:a}),Qe.push(()=>En(e,"colorIndex",s)),Qe.push(()=>En(e,"fontScale",o)),e.$on("onDuplicate",t[46]),e.$on("onAddToBook",t[55]),e.$on("onColorChange",t[49]),e.$on("onFontScaleChange",t[44]),e.$on("onToggleDetails",t[48]),e.$on("onUnpin",t[45]),e.$on("onDiscard",t[61]),e.$on("onDelete",t[47]),e.$on("onMoveToBottom",t[66]),e.$on("onMoveToTop",t[67]),{c(){j(e.$$.fragment)},m(l,c){B(e,l,c),i=!0},p(l,c){var h;const d={};c[0]&64&&(d.colorPalette=l[6]),c[1]&8&&(d.frameColor=l[34]),c[0]&2048&&(d.actions=l[11]),c[0]&1048576&&(d.reverseScale=l[20]),c[0]&134217728&&(d.isSavingEntry=l[27]),c[0]&512&&(d.isExpanded=l[9]),c[0]&1&&(d.hasBookLabel=((h=Ba(l[0].books))==null?void 0:h.length)>0),c[0]&1&&(d.entryContent=l[0].content||""),!n&&c[1]&4&&(n=!0,d.colorIndex=l[33],wn(()=>n=!1)),!r&&c[0]&524288&&(r=!0,d.fontScale=l[19],wn(()=>r=!1)),e.$set(d)},i(l){i||(E(e.$$.fragment,l),i=!0)},o(l){T(e.$$.fragment,l),i=!1},d(l){z(e,l)}}}function ck(t){let e,n,r,i=t[32]&&!t[4]&&fk(t),s={isHovering:t[16],isEditing:t[4],isSelected:t[17],isDraft:t[18],isNotClickable:t[14],isShowingDetails:t[9]||t[4],user:t[0].user,spaceId:t[0].spaceId,publicId:t[0].publicId,inReplyToId:t[0].inReplyToId,content:t[0].content,attachments:t[28],entities:t[4]?[]:t[0].entities};return n=new Cm({props:s}),t[91](n),n.$on("isUploading:change",t[59]),n.$on("attachment:limitExceeded",t[65]),n.$on("attachment:uploaded",t[57]),n.$on("attachment:failed",t[60]),n.$on("attachment:remove",t[58]),n.$on("submit",t[62]),n.$on("change",t[63]),{c(){i&&i.c(),e=N(),j(n.$$.fragment)},m(o,a){i&&i.m(o,a),O(o,e,a),B(n,o,a),r=!0},p(o,a){o[32]&&!o[4]?i?(i.p(o,a),a[0]&16|a[1]&2&&E(i,1)):(i=fk(o),i.c(),E(i,1),i.m(e.parentNode,e)):i&&($e(),T(i,1,1,()=>{i=null}),Ce());const u={};a[0]&65536&&(u.isHovering=o[16]),a[0]&16&&(u.isEditing=o[4]),a[0]&131072&&(u.isSelected=o[17]),a[0]&262144&&(u.isDraft=o[18]),a[0]&16384&&(u.isNotClickable=o[14]),a[0]&528&&(u.isShowingDetails=o[9]||o[4]),a[0]&1&&(u.user=o[0].user),a[0]&1&&(u.spaceId=o[0].spaceId),a[0]&1&&(u.publicId=o[0].publicId),a[0]&1&&(u.inReplyToId=o[0].inReplyToId),a[0]&1&&(u.content=o[0].content),a[0]&268435456&&(u.attachments=o[28]),a[0]&17&&(u.entities=o[4]?[]:o[0].entities),n.$set(u)},i(o){r||(E(i),E(n.$$.fragment,o),r=!0)},o(o){T(i),T(n.$$.fragment,o),r=!1},d(o){o&&I(e),i&&i.d(o),t[91](null),z(n,o)}}}function fk(t){let e,n;return e=new iie({props:{linkElement:t[32],reverseScale:t[20]}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&2&&(s.linkElement=r[32]),i[0]&1048576&&(s.reverseScale=r[20]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function dk(t){var r,i,s,o,a,u,l;let e,n;return e=new a7({props:{tiny:!0,expanded:!0,textOnly:!0,source:(r=t[0])==null?void 0:r.source,name:((s=(i=t[0])==null?void 0:i.author)==null?void 0:s.displayName)||((o=t[0])==null?void 0:o.source),title:(a=t[0])!=null&&a.createdAt?((l=(u=t[0])==null?void 0:u.author)==null?void 0:l.displayName)+" wrote on "+Dt.fromISO(t[0].createdAt).toLocaleStr
1025ing(Dt.DATE_MED):""}}),{c(){j(e.$$.fragment)},m(c,d){B(e,c,d),n=!0},p(c,d){var m,g,k,y,b,S,$;const h={};d[0]&1&&(h.source=(m=c[0])==null?void 0:m.source),d[0]&1&&(h.name=((k=(g=c[0])==null?void 0:g.author)==null?void 0:k.displayName)||((y=c[0])==null?void 0:y.source)),d[0]&1&&(h.title=(b=c[0])!=null&&b.createdAt?(($=(S=c[0])==null?void 0:S.author)==null?void 0:$.displayName)+" wrote on "+Dt.fromISO(c[0].createdAt).toLocaleString(Dt.DATE_MED):""),e.$set(h)},i(c){n||(E(e.$$.fragment,c),n=!0)},o(c){T(e.$$.fragment,c),n=!1},d(c){z(e,c)}}}function hk(t){let e,n,r=Ut(Ba(t[0].books)),i=[];for(let o=0;o<r.length;o+=1)i[o]=pk(uk(t,r,o));const s=o=>T(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Pt()},m(o,a){for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(o,a);O(o,e,a),n=!0},p(o,a){if(a[0]&257){r=Ut(Ba(o[0].books));let u;for(u=0;u<r.length;u+=1){const l=uk(o,r,u);i[u]?(i[u].p(l,a),E(i[u],1)):(i[u]=pk(l),i[u].c(),E(i[u],1),i[u].m(e.parentNode,e))}for($e(),u=r.length;u<i.length;u+=1)s(u);Ce()}},i(o){if(!n){for(let a=0;a<r.length;a+=1)E(i[a]);n=!0}}
1025,o(o){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)T(i[a]);n=!1},d(o){o&&I(e),Ci(i,o)}}}function pk(t){let e,n;return e=new L7({props:{targetEntry:t[8],book:t[117]}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&256&&(s.targetEntry=r[8]),i[0]&1&&(s.book=r[117]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function mk(t){let e;return{c(){e=C("div"),e.textContent="New",w(e,"class","draftLabel svelte-h9z48e")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function gk(t){let e,n,r,i=`scale(${t[20]})`,s,o,a,u;return r=new We({props:{block:!0,small:!0,square:!0,transparent:!0,cursor:"nwse-resize",hovering:t[15],$$slots:{default:[oie]},$$scope:{ctx:t}}}),{c(){e=C("div"),n=C("div"),j(r.$$.fragment),w(n,"class","resizeHandle dont-drag svelte-h9z48e"),He(n,"transform",i),w(e,"class","resizeHandleWrapper svelte-h9z48e"),He(e,"opacity",t[12]||t[15]?1:0),ve(e,"isResizing",t[15])},m(l,c){O(l,e,c),v(e,n),B(r,n,null),o=!0,a||(u=[zr(s=hm.call(null,e,{grid:[zn,zn],ignoreMultitouch:!0,position:{x:t[26][0],y:t[26][1]},disabled:t[1]})),Ie(e,"neodrag",t[53]),Ie(e,"neodrag:end",t[54])],a=!0)},p(l,c){const d={};c[0]&32768&&(d.hovering=l[15]),c[3]&134217728&&(d.$$scope={dirty:c,ctx:l}),r.$set(d),c[0]&1048576&&i!==(i=`scale(${l[20]})`)&&He(n,"transform",i),(!o||c[0]&36864)&&He(e,"opacity",l[12]||l[15]?1:0),s&&di(s.update)&&c[0]&67108866&&s.update.call(null,{grid:[zn,zn],ignoreMultitouch:!0,position:{x:l[26][0],y:l[26][1]},disabled:l[1]}),(!o||c[0]&32768)&&ve(e,"isResizing",l[15])},i(l){o||(E(r.$$.fragment,l),o=!0)},o(l){T(r.$$.fragment,l),o=!1},d(l){l&&I(e),z(r),a=!1,fn(u)}}}function oie(t){let e;return{c(){e=oe("â¢")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function vk(t){let e,n,r=`scale(${t[20]})`,i;return n=new We({props:{disabled:t[27]||t[30],tiny:!0,square:!0,reveal:!0,title:"Upload a file",$$slots:{default:[lie]},$$scope:{ctx:t}}}),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","attachButton svelte-h9z48e"),He(e,"transform",r)},m(s,o){O(s,e,o),B(n,e,null),i=!0},p(s,o){const a={};o[0]&1207959552&&(a.disabled=s[27]||s[30]),o[0]&1073741824|o[3]&134217728&&(a.$$scope={dirty:o,ctx:s}),n.$set(a),o[0]&1048576&&r!==(r=`scale(${s[20]})`)&&He(e,"transform",r)},i(s){i||(E(n.$$.fragment,s),i=!0)},o(s){T(n.$$.fragment,s),i=!1},d(s){s&&I(e),z(n)}}}function aie(t){let e,n;return e=new et({props:{icon:_c.faPaperclip}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function uie(t){let e,n;return e=new et({props:{icon:mm.faSpinner,pulse:!0}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function lie(t){let e,n,r,i,s,o;e=new V_({props:{isDisabled:t[30]}}),e.$on("limitExceeded",t[65]),e.$on("change",t[56]);const a=[uie,aie],u=[];function l(c,d){return c[30]?0:1}return r=l(t),i=u[r]=a[r](t),{c(){j(e.$$.fragment),n=N(),i.c(),s=Pt()},m(c,d){B(e,c,d),O(c,n,d),u[r].m(c,d),O(c,s,d),o=!0},p(c,d){const h={};d[0]&1073741824&&(h.isDisabled=c[30]),e.$set(h);let m=r;r=l(c),r!==m&&($e(),T(u[m],1,1,()=>{u[m]=null}),Ce(),i=u[r],i||(i=u[r]=a[r](c),i.c()),E(i,1),i.m(s.parentNode,s))},i(c){o||(E(e.$$.fragment,c),E(i),o=!0)},o(c){T(e.$$.fragment,c),T(i),o=!1},d(c){c&&(I(n),I(s)),z(e,c),u[r].d(c)}}}function cie(t){var J,Z;let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k=`translate3d(${(J=t[0].pin)==null?void 0:J.x}px ,${(Z=t[0].pin)==null?void 0:Z.y}px, 0)`,y=`${t[3]}px`,b=`${2*t[20]}px`,S=`${4*t[20]}px`,$=`hsla(${t[34].hue}, ${t[34].saturation}%, ${t[34].lightness}%, 1026 ${t[34].alpha})`,D,P,x,R=t[17]&&!t[5]&&!t[14]&&!t[15]&&!t[1]&&lk(t),q=t[31]&&ck(t),F=(t[7]===Nt.Selected||t[7]===Nt.Hovering)&&dk(t),L=t[0].books&&t[7]!=Nt.Editing&&(t[7]===Nt.Selected||t[7]===Nt.Hovering)&&hk(t),M=t[18]&&mk(),V=!t[14]&&!t[1]&&gk(t),H=t[4]&&vk(t);return{c(){var Q;e=C("div"),R&&R.c(),n=N(),r=C("div"),i=C("div"),q&&q.c(),s=N(),o=C("div"),F&&F.c(),a=N(),L&&L.c(),c=N(),M&&M.c(),d=N(),V&&V.c(),h=N(),H&&H.c(),m=N(),w(i,"class","EntryContent svelte-h9z48e"),ve(i,"isIdle",t[13]),ve(i,"isResizing",t[15]),w(o,"class","meta svelte-h9z48e"),He(o,"transform","scale("+Math.min(1/t[2],2)+")"),w(r,"class","EntryWrapper svelte-h9z48e"),w(r,"data-
1026publicid",u=t[0].publicId),w(r,"data-id",l=t[0].id),ve(r,"isEditing",t[4]),ve(r,"isDown",t[10]),ve(r,"isSelected",t[17]),ve(r,"isHovering",t[16]),ve(r,"isInPublicSpace",t[1]),w(e,"data-state",t[7]),w(e,"class","EntryOnCanvas svelte-h9z48e"),ve(e,"isMultiSelected",t[5]),ve(e,"isSelected",t[17]),ve(e,"isEditing",t[4]),ve(e,"isDragging",t[14]),ve(e,"isResizing",t[15]),ve(e,"isHovering",t[16]),He(e,"z-index",((Q=t[0].pin)==null?void 0:Q.z)??0),He(e,"transform",k),He(e,"font-size",y),He(e,"outline-width",b),He(e,"outline-offset",S),He(e,"background-color",$),He(e,"max-width",!t[25]&&`${t[36]}px`),He(e,"width",t[25]&&`${t[23]}px`),He(e,"height",t[25]&&`${t[24]}px`)},m(Q,K){O(Q,e,K),R&&R.m(e,null),v(e,n),v(e,r),v(r,i),q&&q.m(i,null),v(r,s),v(r,o),F&&F.m(o,null),v(o,a),L&&L.m(o,null),v(e,c),M&&M.m(e,null),v(e,d),V&&V.m(e,null),v(e,h),H&&H.m(e,null),v(e,m),D=!0,P||(x=[Ie(i,"click",t[68]),Ie(i,"pointerenter",t[69],!0),Ie(i,"pointerleave",t[70]),Ie(r,"pointerup",t[40]),Ie(r,"pointerdown",t[41]),Ie(r,"mouseenter",t[92]),Ie(r,"mouseleave",t[93]),zr(hre.call(null,r)),Ie(r,"observedResize",t[52]),zr(o7.call(null,e)),Ie(e,"observedIntersection",t[64]),zr(g=hm.call(null,e,{grid:[zn,zn],ignoreMultitouch:!0,cancel:".dont-drag",position:{x:t[21],y:t[22]},defaultPosition:{x:t[21],y:t[22]},disabled:t[1]||t[4],gpuAcceleration:!0})),Ie(e,"neodrag",t[42]),Ie(e,"neodrag:end",t[43]),Ie(e,"mouseenter",t[50]),Ie(e,"mouseleave",t[51])],P=!0)},p(Q,K){var G,se,fe;Q[17]&&!Q[5]&&!Q[14]&&!Q[15]&&!Q[1]?R?(R.p(Q,K),K[0]&180258&&E(R,1)):(R=lk(Q),R.c(),E(R,1),R.m(e,n)):R&&($e(),T(R,1,1,()=>{R=null}),Ce()),Q[31]?q?(q.p(Q,K),K[1]&1&&E(q,1)):(q=ck(Q),q.c(),E(q,1),q.m(i,null)):q&&($e(),T(q,1,1,()=>{q=null}),Ce()),(!D||K[0]&8192)&&ve(i,"isIdle",Q[13]),(!D||K[0]&32768)&&ve(i,"isResizing",Q[15]),Q[7]===Nt.Selected||Q[7]===Nt.Hovering?F?(F.p(Q,K),K[0]&128&&E(F,1)):(F=dk(Q),F.c(),E(F,1),F.m(o,a)):F&&($e(),T(F,1,1,()=>{F=null}),Ce()),Q[0].books&&Q[7]!=Nt.Editing&&(Q[7]===Nt.Selected||Q[7]===Nt.Hovering)?L?(L.p(Q,K),K[0]&129&&E(L,1)):(L=hk(Q),L.c(),E(L,1),L.m(o,null)):L&&($e(),T(L,1,1,()=>{L=null}),Ce()),(!D||K[0]&4)&&He(o,"transform","scale("+Math.min(1/Q[2],2)+")"),(!D||K[0]&1&&u!==(u=Q[0].publicId))&&w(r,"data-publicid",u),(!D||K[0]&1&&l!==(l=Q[0].id))&&w(r,"data-id",l),(!D||K[0]&16)&&ve(r,"isEditing",Q[4]),(!D||K[0]&1024)&&ve(r,"isDown",Q[10]),(!D||K[0]&131072)&&ve(r,"isSelected",Q[17]),(!D||K[0]&65536)&&ve(r,"isHovering",Q[16]),(!D||K[0]&2)&&ve(r,"isInPublicSpace",Q[1]),Q[18]?M||(M=mk(),M.c(),M.m(e,d)):M&&(M.d(1),M=null),!Q[14]&&!Q[1]?V?(V.p(Q,K),K[0]&16386&&E(V,1)):(V=gk(Q),V.c(),E(V,1),V.m(e,h)):V&&($e(),T(V,1,1,()=>{V=null}),Ce()),Q[4]?H?(H.p(Q,K),K[0]&16&&E(H,1)):(H=vk(Q),H.c(),E(H,1),H.m(e,m)):H&&($e(),T(H,1,1,()=>{H=null}),Ce()),(!D||K[0]&128)&&w(e,"data-state",Q[7]),g&&di(g.update)&&K[0]&6291474&&g.update.call(null,{grid:[zn,zn],ignoreMultitouch:!0,cancel:".dont-drag",position:{x:Q[21],y:Q[22]},defaultPosition:{x:Q[21],y:Q[22]},disabled:Q[1]||Q[4],gpuAcceleration:!0}),(!D||K[0]&32)&&ve(e,"isMultiSelected",Q[5]),(!D||K[0]&131072)&&ve(e,"
1026isSelected",Q[17]),(!D||K[0]&16)&&ve(e,"isEditing",Q[4]),(!D||K[0]&16384)&&ve(e,"isDragging",Q[14]),(!D||K[0]&32768)&&ve(e,"isResizing",Q[15]),(!D||K[0]&65536)&&ve(e,"isHovering",Q[16]),K[0]&1&&He(e,"z-index",((G=Q[0].pin)==null?void 0:G.z)??0),K[0]&1&&k!==(k=`translate3d(${(se=Q[0].pin)==null?void 0:se.x}px ,${(fe=Q[0].pin)==null?void 0:fe.y}px, 0)`)&&He(e,"transform",k),K[0]&8&&y!==(y=`${Q[3]}px`)&&He(e,"font-size",y),K[0]&1048576&&b!==(b=`${2*Q[20]}px`)&&He(e,"outline-width",b),K[0]&1048576&&S!==(S=`${4*Q[20]}px`)&&He(e,"outline-offset",S),K[1]&8&&$!==($=`hsla(${Q[34].hue}, ${Q[34].saturation}%, ${Q[34].lightness}%, 1027 ${Q[34].alpha})`)&&He(e,"background-color",$),K[0]&33554432&&He(e,"max-width",!Q[25]&&`${Q[36]}px`),K[0]&41943040&&He(e,"width",Q[25]&&`${Q[23]}px`),K[0]&50331648&&He(e,"height",Q[25]&&`${Q[24]}px`)},i(Q){D||(E(R),E(q),E(F),E(L),E(V),E(H),D=!0)},o(Q){T(R),T(q),T(F),T(L),T(V),T(H),D=!1},d(Q){Q&&I(e),R&&R.d(),q&&q.d(),F&&F.d(),L&&L.d(),M&&M.d(),V&&V.d(),H&&H.d(),P=!1,fn(x)}}}const zn=16,fie=200,die=1,Ey=vu[2],hie=zn*10,H1=zn*3,kl=t=>Math.ceil(t/zn)*zn;var Nt;(function(t){t.Hovering="hovering",t.Idle="idle",t.Dragging="dragging",t.Selected="selected",t.MultiSelected="multiSelected",t.Editing="editing",t.Resizing="resizing"})(Nt||(Nt={}));var Da;(function(t){t.Multi="multi",t.Single="single"})(Da||(Da={}));function pie(t,e,n){let r,i,s,o;var a,u,l,c,d,h,m,g,k,y;let{entry:b}=e,{objectId:S}=e,{objectState:$}=e,D=null;const P=p7(),x=sc();let{isInPublicSpace:R=!1}=e,{canvasZoom:q=1}=e,{spaceColors:F}=e;const L=Cr();let{initialState:M=Nt.Idle}=e,V=M;const H={[Nt.Idle]:Nt.Idle,[Nt.Selected]:Nt.Selected,[Nt.MultiSelected]:Nt.MultiSelected,[Nt.Dragging]:Nt.Dragging,[Nt.Resizing]:Nt.Resizing,[Nt.Editing]:Nt.Editing},J=Oe=>L(Oe,{entry:b,objectId:S}),Z=by(M,{[Nt.Idle]:Object.assign(Object.assign({click:Nt.Selected,hoverStart:Nt.Hovering},H),{_enter:()=>{J("idleStart")},_exit:()=>{n(87,V=s),J("idleEnd")}}),[Nt.Hovering]:Object.assign(Object.assign({click:Nt.Selected,hoverEnd:Nt.Idle},H),{_enter:()=>{J("hoverStart")},_exit:()=>{J("hoverEnd")}}),[Nt.Dragging]:Object.assign(Object.assign({click:Nt.Dragging},H),{_enter:()=>{J("dragStart")},_exit:()=>{J("dragEnd")}}),[Nt.MultiSelected]:Object.assign(Object.assign({click:()=>me.canEdit?Nt.Editing:Nt.MultiSelected},H),{_enter:()=>{L("selectStart",{entry:b})},_exit:()=>{n(87,V=s),L("selectEnd",{entry:b})}}),[Nt.Selected]:Object.assign(Object.assign({click:()=>me.canEdit?Nt.Editing:Nt.Selected},H),{_enter:()=>{J("selectStart")},_exit:()=>{n(87,V=s),J("selectEnd")}}),[Nt.Resizing]:Object.assign(Object.assign({},H),{_enter:()=>{J("resizeStart")},_exit:()=>{J("resizeEnd")}}),[Nt.Editing]:Object.assign(Object.assign({click:()=>me.canEdit?Nt.Editing:Nt.Selected},H),{_enter:()=>{J("editStart")},_exit:()=>{n(87,V=s),J("editEnd")}})});Ke(t,Z,Oe=>n(7,s=Oe));const Q=()=>{Z[V]()};let K,G=die,se,fe=!1,me,Ae=!1,{selected:ee=!1}=e,ue=!1,ie=!1,de=!1,Fe=!1,Ve=!1,Te=!1,we=!1,je,Je,Ne,Ge,nt,rt,Ze;const at=r$((Oe,Ft,Nr=!1)=>{(b.pin.width!==Oe||b.pin.height!==Ft)&&it({size:{width:Oe,height:Ft}},"size",Nr)},350),bt=(Oe,Ft,Nr=!1)=>{n(23,rt=Math.max(hie,Oe)),n(24,Ze=Math.max(H1,Ft)),at(rt,Ze,Nr)};let he=null,Pe=null,Se=G*fie,te=((Oe,Ft)=>Oe!==null&&Ft!==null)((k=b.pin)===null||k===void 0?void 0:k.width,(y=b.pin)===null||y===void 0?void 0:y.height),X=nn(F),ye=hr([ji,X],([Oe,Ft])=>gre(Ft,Oe.darkMode));Ke(t,ye,Oe=>n(6,i=Oe));let Xe=nn(0);Ke(t,Xe,Oe=>n(33,r=Oe));let Be=hr([ye,Xe],([Oe,Ft])=>Oe[Ft]||Oe[0]);Ke(t,Be,Oe=>n(34,o=Oe));const it=(Oe,Ft,Nr=!1)=>{const Rr=Gf(b);Oe.color&&(Rr.pin.color=Oe.color),Oe.fontSize&&(Rr.pin.fontSize=Oe.fontSize),Oe.isExpanded!==void 0&&(Rr.pin.isExpanded=Oe.isExpanded),Oe.position&&(Rr.pin.x=Oe.position.x,Rr.pin.y=Oe.position.y,Rr.pin.z=Oe.position.z),Oe.size&&(Rr.pin.width=Oe.size.width,Rr.pin.height=Oe.size.height),Oe.content&&(Rr.content=Oe.content),Oe.inReplyToId&&(Rr.inReplyToId=Oe.inReplyToId),Oe.attachments&&(Rr.attachments=Oe.attachments),Xl(b,Rr)||L("change",{entry:Rr,changes:Oe,objectId:S,reason:Ft,auto:Nr})},mt=async Oe=>{if(s===Nt.Dragging){n(10,fe=!1);return}!!Oe.target.closest("[data-ignore-click]")||(Z.click(),L("click",{entry:b,objectId:S,state:s,shiftKey:Oe.shiftKey,ctrlKey:Oe.ctrlKey,metaKey:Oe.metaKey})),n(10,fe=!1)},Ct=()=>{n(10,fe=!0)},ft=Oe=>{Z.dragging();let{offsetX:Ft,offsetY:Nr}=Oe.detail;n(21,Ge=Ft),n(22,nt=Nr)}
1027,It=async Oe=>{if(s!==Nt.Dragging)return;Q();let{offsetX:Ft,offsetY:Nr}=Oe.detail;n(21,Ge=Ft),n(22,nt=Nr),it({position:{x:Ft,y:Nr,z:b==null?void 0:b.pin.z}},"move")},Tt=()=>{var Oe;n(3,K=vu[Je]),((Oe=b.pin)===null||Oe===void 0?void 0:Oe.fontSize)!==K&&it({fontSize:K},"font size")},_t=()=>L("unpin",{entry:b,objectId:S}),gt=()=>L("duplicate",{entry:b,objectId:S}),ce=()=>L("delete",{entry:b,objectId:S}),pe=()=>{var Oe;n(9,se=!se),((Oe=b.pin)===null||Oe===void 0?void 0:Oe.isExpanded)!==se&&it({isExpanded:se},"detail toggle")},st=()=>{const Oe=i[r];it({color:Oe},"change color")},vn=()=>{n(12,Ae=!0)},Tn=()=>{n(12,Ae=!1)},bn=Oe=>{Oe.entry.contentRect.width===0&&Oe.entry.contentRect.height===0||(he=[Oe.entry.contentRect.width,Oe.entry.contentRect.height],Pe=he.map(kl),te||(bt(...Pe,!0),n(25,te=!0)))};let kn,$n=[0,0];const qt=Oe=>{Z.resizing(),kn===void 0&&(kn=[rt,Ze]);const Ft=[kn[0]+Oe.detail.offsetX,kn[1]+Oe.detail.offsetY].map(kl);bt(...Ft),n(26,$n=[0,0])},Rn=()=>{at.flush(),Q(),n(26,$n=[0,0]),kn=void 0},Hn=()=>{Z.idle()},Sn=()=>{Z.selected()},Zt=()=>{Z.multiSelected()},be=()=>{L("addToBook",{entry:b,objectId:S}),n(10,fe=!1)};let tt=!1;const[St,an]=R0(tt);let rn=!1;const Mt=async(Oe=!1,Ft)=>{n(88,rn=Oe),it({content:Ft.content,inReplyToId:Ft.inReplyToId,attachments:Gt},"content")};let Gt=[],ze,Vt=!1;const pn=Oe=>{ze.newAttachmentFromFile(Oe.detail.file)},Vn=Oe=>{n(28,Gt=[...Gt,Oe.detail.attachment]),it({attachments:Gt,attachmentIds:Gt.map(Ft=>Ft.id)},"attachmentUploaded")},vt=Oe=>{n(28,Gt=Gt.filter(Ft=>Ft.id!==Oe.detail.attachment.id)),it({attachments:Gt,attachmentIds:Gt.map(Ft=>Ft.id)},"attachmentRemoved")},mn=Oe=>{n(30,Vt=Oe.detail.isUploading)},Gs=Oe=>{Oe.detail.errors.forEach(Ft=>{xu({type:Ho.Error,message:Ft.message})})},vo=()=>{L("discard",{objectId:S})},Jo=Oe=>{Mt(!0,Oe.detail)},Cc=Oe=>{const{content:Ft,attachmentIds:Nr}=Oe.detail;!Ft&&Nr.length===0||Mt(!1,Oe.detail)};let us=!1,Ya=!1;const ea=Oe=>{us=Oe.entry.isIntersecting,n(31,Ya=Ya||us)},ta=()=>{L("showUploadLimitExceededModal")},bo=()=>{const Oe=((x==null?void 0:x.minZValue)||0)-1;it({position:{x:b.pin.x,y:b.pin.y,z:Oe}},"size")},_o=()=>{const Oe=((x==null?void 0:x.maxZValue)||0)+1;it({position:{x:b.pin.x,y:b.pin.y,z:Oe}},"size")},Ac=Oe=>{const Ft=Oe.target;if(!ii(Ft)&&Ft.tagName.toLowerCase()==="a")return Oe.preventDefault(),!1};let ls=null;const yo=Oe=>{var Ft;ls&&ls.classList.remove("active"),n(32,ls=Oe),(Ft=ls==null?void 0:ls.classList)===null||Ft===void 0||Ft.add("active")},ii=Oe=>Oe?!!Oe.closest("[data-link-panel]"):!1,Qa=Oe=>{const Ft=Oe.target;Ft.tagName.toLowerCase()==="a"&&!ii(Ft)?(yo(Ft),Ft.addEventListener("pointerleave",Nr=>{ii(Nr.relatedTarget)||yo(null)},{once:!0})):ii(Oe.target)||yo(null)},Dc=Oe=>{yo(null)};function Ic(Oe){r=Oe,Xe.set(r)}function Oc(Oe){Je=Oe,n(19,Je),n(3,K),n(0,b),n(79,a)}function wo(Oe){Qe[Oe?"unshift":"push"](()=>{ze=Oe,n(29,ze)})}const Vu=()=>Z.hoverStart(),Wu=()=>Z.hoverEnd();return t.$$set=Oe=>{"entry"in Oe&&n(0,b=Oe.entry),"objectId"in Oe&&n(71,S=Oe.objectId),"objectState"in Oe&&n(72,$=Oe.objectState),"isInPublicSpace"in Oe&&n(1,R=Oe.isInPublicSpace),"canvasZoom"in Oe&&n(2,q=Oe.canvasZoom),"spaceColors"in Oe&&n(73,F=Oe.spaceColors),"initialState"in Oe&&n(74,M=Oe.initialState),"selected"in Oe&&n(75,ee=Oe.selected)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(8,D=b.id?b:null),t.$$.dirty[0]&1|t.$$.dirty[2]&131072&&n(3,K=(n(79,a=b.pin)===null||a===void 0?void 0:a.fontSize)||Ey),t.$$.dirty[0]&1|t.$$.dirty[2]&262144&&n(9,se=(n(80,u=b.pin)===null||u===void 0?void 0:u.isExpanded)||!1),t.$$.dirty[0]&1&&n(11,me=d7({entry:b,context:P,pin:b.pin})),t.$$.dirty[2]&8192)switch(ee){case Da.Multi:Zt();break;case Da.Single:$i(Z)!==Nt.Editing&&Sn();break;default:Hn()}t.$$.dirty[0]&128&&n(13,ue=s===Nt.Idle),t.$$.dirty[0]&128&&n(14,ie=s===Nt.Dragging),t.$$.dirty[0]&128&&n(4,de=s===Nt.Editing),t.$$.dirty[0]&128&&n(15,Fe=s===Nt.Resizing),t.$$.dirty[0]&128&&n(16,Ve=s===Nt.Hovering),t.$$.dirty[0]&128&&n(5,Te=s===Nt.MultiSelected),t.$$.dirty[0]&176&&n(17,we=s===Nt.Selected||de||Te),t.$$.dirty[0]&1&&n(18,je=!b.id),t.$$.dirty[0]&8&&n(19,Je=bre(K)),t.$$.dirty[0]&4&&n(20,Ne=1/q),t.$$.dirty[0]&1|t.$$.dirty[2]&524288&&n(21,Ge=kl((n(81,l=b.pin)===null||l===void 0?void 0:l.x)||0)),t.$$.dirty[0]&1|t.$$.dirty[2]&1048576&&n(22,nt=kl((n(82,c=b.pin)===null||c===void 0?void 0:c.y)||0)),t.$$.dirty[0]&129|t.$$.dirty[2]&6291456&&s!==Nt.Resizing&&n(23,rt=(n(83,d=b.pin)===null||d===void 0?void 0:d.width)!==null?Math.max(n(84,h=b.pin)===null||h===void 0?void 0:h.width,H1):null),t.$$.dirty[0]&129|t.$$.dirty[2]&25165824&&s!==Nt.Resizing&&n(24,Ze=(n(85,m=b.pin)===null||m===void 0?void 0:m.height)!==null?Math.max(n(86,g=b.pin)===null||g===void 0?void 0:g.height,H1):null),t.$$.dirty[2]&2048&&X.set(F),t.$$.dirty[0]&65&&gr(Xe,r=mre(b.pin.color,i),r),t.$$.dirty[2]&1024&&n(27,tt=$===g7.Persisting),t.$$.dirty[2]&100663296&&an&&!St&&rn&&(V!==Nt.Editing?Q():Z.selected()),t.$$.dirty[0]&17&&(de||n(28,Gt=b.attachments))},[b,R,q,K,de,Te,i,s,D,se,fe,me,Ae,ue,ie,Fe,Ve,we,je,Je,Ne,Ge,nt,rt,Ze,te,$n,tt,Gt,ze,Vt,Ya,ls,r,o,Z,Se,ye,Xe,Be,mt,Ct,ft,It,Tt,_t,gt,ce,pe,st,vn,Tn,bn,qt,Rn,be,pn,Vn,vt,mn,Gs,vo,Jo,Cc,ea,ta,bo,_o,Ac,Qa,Dc,S,$,F,M,ee,Hn,Sn,Zt,a,u,l,c,d,h,m,g,V,rn,Ic,Oc,wo,Vu,Wu]}class mie extends pt{constructor(e){super(),ht(this,e,pie,cie,dt,{entry:0,objectId:71,objectState:72,isInPublicSpace:1,canvasZoom:2,spaceColors:73,initialState:74,selected:75,idle:76,select:77,multiselect:78},sie,[-1,-1,-1,-1])}get idle(){return this.$$.ctx[76]}get select(){return this.$$.ctx[77]}get multiselect(){return this.$$.ctx[78]}}function gie(t,e,n,r,i){m7(t,e,n||0,r||t.length-1,i||vie)}function m7(t,e,n,r,i){for(;r>n;){if(r-n>600){var s=r-n+1,o=e-n+1,a=Math.log(s),u=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*u*(s-u)/s)*(o-s/2<0?-1:1),c=Math.max(n,Math.floor(e-o*u/s+l)),d=Math.min(r,Math.floor(e+(s-o)*u/s+l));m7(t,e,c,d,i)}var h=t[e],m=n,g=r;for(cf(t,n,e),i(t[r],h)>0&&cf(t,n,r);m<g;){for(cf(t,m,g),m++,g--;i(t[m],h)<0;)m++;for(;i(t[g],h)>0;)g--}i(t[n],h)===0?cf(t,n,g):(g++,cf(t,g,r)),g<=e&&(n=g+1),e<=g&&(r=g-1)}}function cf(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function vie(t,e){return t<e?-1:t>e?1:0}class bie{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let n=this.data;const r=[];if(!pp(e,n))return r;const i=this.toBBox,s=[];for(;n;){for(let o=0;o<n.children.length;o++){const a=n.children[o],u=n.leaf?i(a):a;pp(e,u)&&(n.leaf?r.push(a):W1(e,u)?this._all(a,r):s.push(a))}n=s.pop()}return r}collides(e){let n=this.data;if(!pp(e,n))return!1;const r=[];for(;n;){for(let i=0;i<n.children.length;i++){const s=n.children[i],o=n.leaf?this.toBBox(s):s;
1027if(pp(e,o)){if(n.leaf||W1(e,o))return!0;r.push(s)}}n=r.pop()}return!1}load(e){if(!(e&&e.length))return this;if(e.length<this._minEntries){for(let r=0;r<e.length;r++)this.insert(e[r]);return this}let n=this._build(e.slice(),0,e.length-1,0);if(!this.data.children.length)this.data=n;else if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){const r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=vl([]),this}remove(e,n){if(!e)return this;let r=this.data;const i=this.toBBox(e),s=[],o=[];let a,u,l;for(;r||s.length;){if(r||(r=s.pop(),u=s[s.length-1],a=o.pop(),l=!0),r.leaf){const c=_ie(e,r.children,n);if(c!==-1)return r.children.splice(c,1),s.push(r),this._condense(s),this}!l&&!r.leaf&&W1(r,i)?(s.push(r),o.push(a),a=0,u=r,r=r.children[0]):u?(a++,r=u.children[a],l=!1):r=null}return this}toBBox(e){return e}compareMinX(e,n){return e.minX-n.minX}compareMinY(e,n){return e.minY-n.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,n){const r=[];for(;e;)e.leaf?n.push(...e.children):r.push(...e.children),e=r.pop();return n}_build(e,n,r,i){const s=r-n+1;let o=this._maxEntries,a;if(s<=o)return a=vl(e.slice(n,r+1)),fl(a,this.toBBox),a;i||(i=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,i-1))),a=vl([]),a.leaf=!1,a.height=i;const u=Math.ceil(s/o),l=u*Math.ceil(Math.sqrt(o));bk(e,n,r,l,this.compareMinX);for(let c=n;c<=r;c+=l){const d=Math.min(c+l-1,r);bk(e,c,d,u,this.compareMinY);for(let h=c;h<=d;h+=u){const m=Math.min(h+u-1,d);a.children.push(this._build(e,h,m,i-1))}}return fl(a,this.toBBox),a}_chooseSubtree(e,n,r,i){for(;i.push(n),!(n.leaf||i.length-1===r);){let s=1/0,o=1/0,a;for(let u=0;u<n.children.length;u++){const l=n.children[u],c=V1(l),d=Eie(e,l)-c;d<o?(o=d,s=c<s?c:s,a=l):d===o&&c<s&&(s=c,a=l)}n=a||n.children[0]}return n}_insert(e,n,r){const i=r?e:this.toBBox(e),s=[],o=this._chooseSubtree(i,this.data,n,s);for(o.children.push(e),wf(o,i);n>=0&&s[n].children.length>this._maxEntries;)this._split(s,n),n--;this._adjustParentBBoxes(i,s,n)}_split(e,n){const r=e[n],i=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,i);const o=this._chooseSplitIndex(r,s,i),a=vl(r.children.splice(o,r.children.length-o));a.height=r.height,a.leaf=r.leaf,fl(r,this.toBBox),fl(a,this.toBBox),n?e[n-1].children.push(a):this._splitRoot(r,a)}_splitRoot(e,n){this.data=vl([e,n]),this.data.height=e.height+1,this.data.leaf=!1,fl(this.data,this.toBBox)}_chooseSplitIndex(e,n,r){let i,s=1/0,o=1/0;for(let a=n;a<=r-n;a++){const u=yf(e,0,a,this.toBBox),l=yf(e,a,r,this.toBBox),c=kie(u,l),d=V1(u)+V1(l);c<s?(s=c,i=a,o=d<o?d:o):c===s&&d<o&&(o=d,i=a)}return i||r-n}_chooseSplitAxis(e,n,r){const i=e.leaf?this.compareMinX:yie,s=e.leaf?this.compareMinY:wie,o=this._allDistMargin(e,n,r,i),a=this._allDistMargin(e,n,r,s);o<a&&e.children.sort(i)}_allDistMargin(e,n,r,i){e.children.sort(i);const s=this.toBBox,o=yf(e,0,n,s),a=yf(e,r-n,r,s);let u=hp(o)+hp(a);for(let l=n;l<r-n;l++){const c=e.children[l];wf(o,e.leaf?s(c):c),u+=hp(o)}for(let l=r-n-1;l>=n;l--){const c=e.children[l];wf(a,e.leaf?s(c):c),u+=hp(a)}return u}_adjustParentBBoxes(e,n,r){for(let i=r;i>=0;i--)wf(n[i],e)}_condense(e){for(let n=e.length-1,r;n>=0;n--)e[n].children.length===0?n>0?(r=e[n-1].children,r.splice(r.indexOf(e[n]),1)):this.clear():fl(e[n],this.toBBox)}}function _ie(t,e,n){if(!n)return e.indexOf(t);for(let r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function fl(t,e){yf(t,0,t.children.length,e,t)}function yf(t,e,n,r,i){i||(i=vl(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s=e;s<n;s++){const o=t.children[s];wf(i,t.leaf?r(o):o)}return i}function wf(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function yie(t,e){return t.minX-e.minX}function wie(t,e){return t.minY-e.minY}function V1(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function hp(t){return t.maxX-t.minX+(t.maxY-t.minY)}function Eie(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function kie(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,s-r)}function W1(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function pp(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function vl(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function bk(t,e,n,r,i){const s=[e,n];for(;s.length;){if(n=s.pop(),e=s.pop(),n-e<=r)continue;const o=e+Math.ceil((n-e)/r/2)*r;gie(t,o,e,n,i),s.push(e,o,o,n)}}const Sie=(t,e)=>{let n=!1;const r=new bie,i=new Map,s=u=>{const l=u.map(c=>{const d=e(c);return i.set(d.id,d),d});r.load(l),n=!0},o=(u,l)=>u.id===l.id,a=u=>{u.forEach(l=>{const c=e(l),d=i.get(c.id);d?Xl(d,c)||(r.remove(d,o),r.insert(c)):r.insert(c),i.set(c.id,c)})};return t.subscribe(u=>{n?a(u):s(u)}),{search:u=>r.search(u).map(c=>c.id)}},P0=t=>t.sort((e,n)=>e-n);let G1;var g7=(t=>(t.Persisted="Persisted",t.Projecting="Projecting",t.Dirty="Dirty",t.Persisting="Persisting",t))(g7||{});const Tie=t=>{const{content:e,attachments:n}=t.entry;return!(!e&&n.length===0)},$ie=t=>{const e=t.map(Cie);return Ws.update(n=>(t.forEach(r=>{n.set(r.id,{...r,state:"Persisting"})}),n)),VW({variables:{spaceId:Sy,changes:e},fetchPolicy:"no-cache"}).then(n=>{var s;const{data:r}=n,i=((s=r==null?void 0:r.entryPersistBatch)==null?void 0:s.errors)||[];if(i.length>
10270)throw i.forEach(o=>xu({type:Ho.Error,message:o.message})),new Error("Revert");r.entryPersistBatch.refs.forEach(o=>{v7(o.id,o.ref)}),Yt.cache.writeQuery({query:g$,data:r})}).catch(n=>{t.forEach(r=>{!!r.persistedEntry&&qie(r.id)})})},Cie=t=>{const{content:e=null,attachmentIds:n=null,inReplyToId:r=null,size:i=null,position:s=null,color:o=null,fontSize:a=null,isExpanded:u=null}=t.changes,l={content:e,attachmentIds:n,inReplyToId:r},c={size:i,position:s,color:o,fontSize:a,isExpanded:u};return{id:t.entry.id,ref:t.id,entryInput:l,entryPinInput:c}};let Aie=0;const _k=()=>(Aie+=1).toString(),_b=new Map,Die=new Map,v7=(t,e)=>{_b.set(t,e),Die.set(e,t)},ky=(t=null)=>{if(t===null)return _k();if(_b.has(t))return _b.get(t);const e=_k();return v7(t,e),e},Iie=(t,e)=>{const n=e.get(ky(t.id));return Xl(t,n)?!1:b7<=t.syncClock},Oie=t=>!t.pin,Nie=(t,e=!1)=>{Ws.update(n=>(t.forEach(r=>{const i=ky(r.id);if(Oie(r))n.delete(i);else if(e||Iie(r,n)){const o=Gf(r),a={id:i,state:"Persisted",changes:{},entry:o,persistedEntry:o};n.set(i,a)}}),n))};let Sy,Ef,b7;qv.subscribe(t=>b7=t);const Ws=nn(new Map);Ws.subscribe(t=>{const e=Array.from(t.values()).filter(n=>n.state==="Dirty"&&Tie(n));e.length>0&&$ie(e)});const Fd=hr(Ws,t=>Array.from(t.values())),_7=hr(Fd,t=>s$(Object.values(t).filter(e=>{var n,r;return((r=(n=e==null?void 0:e.entry)==null?void 0:n.pin)==null?void 0:r.z)>0}),e=>{var n,r;return((r=(n=e==null?void 0:e.entry)==null?void 0:n.pin)==null?void 0:r.z)??0})),Rie=hr(Fd,t=>hV(Object.values(t).filter(e=>{var n,r;return((r=(n=e==null?void 0:e.entry)==null?void 0:n.pin)==null?void 0:r.z)>0}),e=>{var n,r;return((r=(n=e==null?void 0:e.entry)==null?void 0:n.pin)==null?void 0:r.z)??0})),Pie=hr(_7,t=>{var e,n;return((n=(e=t==null?void 0:t.entry)==null?void 0:e.pin)==null?void 0:n.z)??0}),xie=hr(Rie,t=>{var e,n;return((n=(e=t==null?void 0:t.entry)==null?void 0:e.pin)==null?void 0:n.z)??0}),qie=t=>{Ws.update(e=>{let n=e.get(t);return n&&n.persistedEntry&&(n.changes={},n.entry=n.persistedEntry,n.state="Persisted"),e.set(t,n),e})},y7=t=>{Ws.update(e=>{for(let n of t){const{id:r,entry:i,changes:s}=n;let o=e.get(r);o&&(o.entry=i,s?(o.changes={...o.changes,...s},o.state="Dirty"):o.state="Projecting"),e.set(r,o)}return e})},Fie=(t,e,n)=>y7([{id:t,entry:e,changes:n}]),Lie=async(t,e=!0)=>{let n=null;Ws.update(r=>(n=r.get(t)??null,r.delete(t),r)),e&&n&&n.entry.id&&await YW({variables:{id:n.entry.id}})},Mie=()=>({spaceId:Sy,attachmentsCount:0,entitiesCount:0,createdAt:null,updatedAt:null,entities:[],attachments:[],user:Ef,books:[],booksCount:0,source:"user",author:{id:Ef.id,authorType:"user",displayName:Ef.username,user:Ef},agentConversationId:null,isPinned:!0,pin:{width:0,height:0,x:0,y:0,z:0,fontSize:Ey,isExpanded:!0}}),Bie=t=>{let e=[];return Ws.update(n=>(t.forEach(r=>{const i=ky(),s={id:i,state:"Dirty",entry:r,changes:{attachmentIds:r.attachments.map(o=>o.id),inReplyToId:r.inReplyToId,color:r.pin.color,content:r.content,isExpanded:r.pin.isExpanded,position:{x:r.pin.x,y:r.pin.y,z:r.pin.z},size:{width:r.pin.width,height:r.pin.height},fontSize:r.pin.fontSize||Ey},persistedEntry:null};n.set(i,s),e.push(i)}),n)),e},w7=t=>{const e=P0([t.x,t.x+t.width]),n=P0([t.y,t.y+t.height]);return{minX:e[0],minY:n[0],maxX:e[1],maxY:n[1]}},zie=Sie(Fd,t=>({id:t.id,...w7({x:t.entry.pin.x,y:t.entry.pin.y,width:t.entry.pin.width,height:t.entry.pin.height})})),jie=(t,e,n)=>{G1&&G1(),Ws.set(new Map),Sy=t,Ef=e;let r=!0;G1=n.subscribe(i=>{Nie(i,r),r=!1})},Uie=(t,e,n,r)=>{const i=zie.search(w7({x:t,y:e,width:n,height:r})),s=$i(Ws);return i.map(o=>s.get(o)).filter(Boolean)},Hie=()=>$i(Fd),Vie=t=>$i(Ws).get(t),fr={generateBlankCanvasEntry:Mie,changeObject:Fie,changeObjects:y7,getObject:Vie,getObjects:Hie,createObjects:Bie,deleteObject:Lie,initialize:jie,search:Uie,objects:Fd,objectOnTop:_7,maxZValue:Pie,minZValue:xie};var Ty={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="file-import",r=512,i=512,s=["arrow-right-to-file"],o="f56f",a="M128 64c0-35.3 28.7-64 64-64H352V128c0 17.7 14.3 32 32 32H512V448c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336H302.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128V64zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H128zM512 128H384V0L512 128z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faFileImport=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(Ty);var E7={};
1027(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="file-medical",r=384,i=512,s=[],o="f477",a="M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM160 240c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v48h48c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H224v48c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V352H112c-8.8 0-16-7.2-16-16V304c0-8.8 7.2-16 16-16h48V240z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faFileMedical=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(E7);var k7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="up-down",r=256,i=512,s=[8597,11021,"arrows-alt-v"],o="f338",a="M145.6 7.7C141 2.8 134.7 0 128 0s-13 2.8-17.6 7.7l-104 112c-6.5 7-8.2 17.2-4.4 25.9S14.5 160 24 160H80V352H24c-9.5 0-18.2 5.7-22 14.4s-2.1 18.9 4.4 25.9l104 112c4.5 4.9 10.9 7.7 17.6 7.7s13-2.8 17.6-7.7l104-112c6.5-7 8.2-17.2 4.4-25.9s-12.5-14.4-22-14.4H176V160h56c9.5 0 18.2-5.7 22-14.4s2.1-18.9-4.4-25.9l-104-112z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faUpDown=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(k7);var S7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="ban",r=512,i=512,s=[128683,"cancel"],o="f05e",a="M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faBan=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(S7);const{window:Wie}=U0;function Gie(t){Et(t,"svelte-1qwyykq",".pickedEntry.svelte-1qwyykq.svelte-1qwyykq{position:relative;pointer-events:none !important;cursor:move;background-color:var(--c-card);opacity:0.8}.pickedEntry.svelte-1qwyykq .intent.svelte-1qwyykq{position:absolute;bottom:0.5rem;right:0.5rem;padding:calc(var(--e-spacing) * 0.25) calc(var(--e-spacing) * 0.75);background-color:var(--c-book-stream-bg);font-size:1.3rem;display:inline-block;border-radius:1.5rem;color:var(--c-text-strong)}.pickedEntry .actions,.pickedEntry .dragHandle,.pickedEntry .stateDebug{display:none !important}body.hasPickedEntry{user-select:none}")}function yk(t){let e,n,r,i,s,o,a=t[2]&&wk(t);return{c(){e=C("div"),n=C("div"),r=N(),a&&a.c(),w(n,"class","wrapper"),He(n,"width",`${t[5]}px`),He(n,"height",`${t[6]}px`),w(e,"class","pickedEntry svelte-1qwyykq"),He(e,"transform",`translate(${t[3]}px, ${t[4]}px)`),He(e,"width",`${t[5]}px`)},m(u,l){O(u,e,l),v(e,n),t[8](n),v(e,r),a&&a.m(e,null),i=!0,s||(o=zr(Qf.call(null,e,document.body)),s=!0)},p(u,l){l&32&&He(n,"width",`${u[5]}px`),l&64&&He(n,"height",`${u[6]}px`),u[2]?a?(a.p(u,l),l&4&&E(a,1)):(a=wk(u),a.c(),E(a,1),a.m(e,null)):a&&($e(),T(a,1,1,()=>{a=null}),Ce()),l&24&&He(e,"transform",`translate(${u[3]}px, ${u[4]}px)`),l&32&&He(e,"width",`${u[5]}px`)},i(u){i||(E(a),i=!0)},o(u){T(a),i=!1},d(u){u&&I(e),t[8](null),a&&a.d(),s=!1,o()}}}function wk(t){let e,n,r,i,s;const o=[Qie,Yie],a=[];function u(l,c){return l[2].type===za.CanvasAdd?0:l[2].type===za.BookAdd?1:-1}return~(r=u(t))&&(i=a[r]=o[r](t)),{c(){e=C("div"),n=C("p"),i&&i.c(),w(e,"class","intent svelte-1qwyykq")},m(l,c){O(l,e,c),v(e,n),~r&&a[r].m(n,null),s=!0},p(l,c){let d=r;r=u(l),r===d?~r&&a[r].p(l,c):(i&&($e(),T(a[d],1,1,()=>{a[d]=null}),Ce()),~r?(i=a[r],i?i.p(l,c):(i=a[r]=o[r](l),i.c()),E(i,1),i.m(n,null)):i=null)},i(l){s||(E(i),s=!0)},o(l){T(i),s=!1},d(l){l&&I(e),~r&&a[r].d()}}}function Yie(t){let e,n,r,i;const s=[Kie,Xie,Zie],o=[];function a(u,l){var c;return((c=u[1].context)==null?void 0:c.type)===Qr.Book&&u[1].context.book.id===u[2].book.id?0:u[1].context.type==Qr.Drawer?1:2}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function Qie(t){let e,n,r,i;const s=[tse,ese,Jie],o=[];function a(u,l){return u[1].entry.isPinned?0:u[1].context.type==Qr.Drawer?1:2}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function Zie(t){let e,n,r;return e=new et({props:{icon:E7.faFileMedical}}),{c(){j(e.$$.fragment),n=oe(" Copy to document")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Xie(t){let e,n,r;return e=new et({props:{icon:Ty.faFileImport}}),{c(){j(e.$$.fragment),n=oe(" Move to document")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Kie(t){let e,n,r;return e=new et({props:{icon:k7.faUpDown}}),{c(){j(e.$$.fragment),n=oe(" Move to position")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Jie(t){let e,n,r;return e=new et({props:{icon:xd.faThumbtack}}),{c(){j(e.$$.fragment),n=oe(" Copy to wall")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function ese(t){let e,n,r;return e=new et({props:{icon:xd.faThumbtack}}),{c(){j(e.$$.fragment),n=oe(" Move to wall")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function tse(t){let e,n,r;return e=new et({props:{icon:S7.faBan}}),{c(){j(e.$$.fragment),n=oe(" Already pinned to wall")},m(i,s){B(e,i,s),O(i,n,s),r=!0},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function nse(t){let e,n,r,i,s=t[1]&&yk(t);return{c(){s&&s.c(),e=Pt()},m(o,a){s&&s.m(o,a),O(o,e,a),n=!0,r||(i=Ie(Wie,"pointermove",t[7]),r=!0)},p(o,[a]){o[1]?s?(s.p(o,a),a&2&&E(s,1)):(s=yk(o),s.c(),E(s,1),s.m(e.parentNode,e)):s&&($e(),T(s,1,1,()=>{s=null}),Ce())},i(o){n||(E(s),n=!0)},o(o){T(s),n=!1},d(o){o&&I(e),s&&s.d(o),r=!1,i()}}}const $y="draggableEntry:",rse=12;
1027class ise extends Event{constructor(e,n){super(e),this.payload=n}}const x0=(t,e)=>{window.addEventListener(`${$y}${t}`,e)},Ek=(t,e)=>{window.removeEventListener(`${$y}${t}`,e)},kk=(t,e)=>{const n=new ise(`${$y}${t}`,e);window.dispatchEvent(n)};var za;(function(t){t.CanvasAdd="CANVAS_ADD",t.BookAdd="BOOK_ADD"})(za||(za={}));let qi=null,q0=nn(null);function sse(t,e){let{entry:n,disabled:r=!1,handleSelector:i="",onDragStart:s,onDragEnd:o,onIntentChange:a,context:u}=e,l=null,c=null,d,h;const m=x=>{x.key==="Escape"&&k(d,!0)},g=(x,R)=>{qi=R,window.removeEventListener("pointermove",$),window.addEventListener("keydown",m),document.body.classList.add("hasPickedEntry"),kk("pickStart",{command:qi,pointerEvent:x}),s&&s(qi),h=q0.subscribe(q=>a(qi,q))},k=(x,R=!1)=>{window.removeEventListener("keydown",m),document.body.classList.remove("hasPickedEntry"),kk("pickEnd",{command:qi,pointerEvent:x,cancel:R}),o&&o(qi),h&&(h(),h=void 0),qi=null},y=x=>r?!1:i?t.querySelector(i)===x||x.closest(i):!0,b=x=>{if(!y(x.target))return;l=[x.pageX,x.pageY];const R=t.getBoundingClientRect();c=[R.x-x.pageX,R.y-x.pageY],window.addEventListener("pointermove",$),window.addEventListener("pointerup",S,{once:!0}),x.preventDefault()},S=x=>{window.removeEventListener("pointermove",$),qi&&k(x)},$=x=>{d=x,!(qi||Math.sqrt(Math.pow(x.pageX-l[0],2)+Math.pow(x.pageY-l[1],2))<rse)&&g(x,{anchor:l,offset:c,el:t,entry:n,context:u})};return t.addEventListener("pointerdown",b),{update:x=>{({entry:n,disabled:r=!1,handleSelector:i="",onDragStart:s,onDragEnd:o,onIntentChange:a,context:u}=x)},destroy:()=>{t.removeEventListener("pointerdown",b),window.removeEventListener("pointermove",$),window.removeEventListener("pointerup",S)}}}function T7(t,e){let{onMove:n,onDrop:r,onEnter:i,onLeave:s,intent:o}=e;const a=m=>{({onMove:n,onDrop:r,onEnter:i,onLeave:s,intent:o}=m)},u=()=>{};let l=!1;const c=m=>{n&&n(m,qi)},d=m=>{qi&&(l||(l=!0,c(m),t.addEventListener("pointermove",c),q0.set(o),i&&i(m,qi)))},h=m=>{qi&&(l=!1,t.removeEventListener("pointermove",c),q0.set(null),s&&s(m,qi))};return x0("pickStart",()=>{t.addEventListener("pointerenter",d),t.addEventListener("pointermove",d,{once:!0}),t.addEventListener("pointerleave",h)}),x0("pickEnd",m=>{t.removeEventListener("pointerenter",d),t.removeEventListener("pointerleave",h),t.removeEventListener("pointermove",c),l&&m.payload.cancel?h(m.payload.pointerEvent):l&&r&&r(m.payload.pointerEvent,m.payload.command),l=!1}),{update:a,destroy:u}}function ose(t,e,n){let r,i=null,s=null,o=0,a=0,u=0,l=0,c=!1,d=null;lo(q0.subscribe(y=>n(2,s=y)));const h=y=>{n(1,i=y.payload.command),n(5,u=i.el.clientWidth),n(6,l=i.el.clientHeight),c=!0,d=i.el.cloneNode(!0)},m=y=>{c=!1,n(1,i=null),d=null};Va(()=>{r&&r.replaceChildren(d)}),$r(()=>{x0("pickStart",h),x0("pickEnd",m)}),lo(()=>{Ek("pickStart",h),Ek("pickEnd",m)});const g=y=>{c&&(n(3,o=y.pageX+i.offset[0]),n(4,a=y.pageY+i.offset[1]))};function k(y){Qe[y?"unshift":"push"](()=>{r=y,n(0,r)})}return[r,i,s,o,a,u,l,g,k]}class ase extends pt{constructor(e){super(),ht(this,e,ose,nse,dt,{},Gie)}}const use=300,Sk=4,Cy="none";function lse(t){return Array.isArray(t)?t:[t]}function ff(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}function cse(t,e){const n=t.getBoundingClientRect(),r=Math.abs(e[0].clientX-e[1].clientX),i=Math.abs(e[0].clientY-e[1].clientY),s=Math.min(e[0].clientX,e[1].clientX),o=Math.min(e[0].clientY,e[1].clientY),a=s+r/2,u=o+i/2,l=Math.round(a-n.left),c=Math.round(u-n.top);return{x:l,y:c}}function fse(t,e){return e.filter(n=>t.pointerId!==n.pointerId)}function mp(t,e,n,r,i){t.dispatchEvent(new CustomEvent(`${e}${i}`,{detail:{event:n,pointersCount:r.length,target:n.target}}))}function $7(t,e,n,r,i,s=Cy){e.style.touchAction=lse(s).join(" ");let o=[];function a(l){o.push(l),mp(e,t,l,o,"down"),r==null||r(o,l);const c=l.pointerId;function d(b){c===b.pointerId&&(o=fse(b,o),o.length||h(),mp(e,t,b,o,"up"),i==null||i(o,b))}function h(){m(),g(),k(),y()}const m=ff(e,"pointermove",b=>{o=o.map(S=>b.pointerId===S.pointerId?b:S),mp(e,t,b,o,"move"),n==null||n(o,b)}),g=ff(e,"lostpointercapture",b=>{d(b)}),k=ff(e,"pointerup",b=>{d(b)}),y=ff(e,"pointerleave",b=>{o=[],h(),mp(e,t,b,o,"up"),i==null||i(o,b)})}const u=ff(e,"pointerdown",a);return{destroy:()=>{u()}}}function dse(t,e){let n={delay:use,composed:!1,touchAction:Cy,...e};const r="pan";let i,s;function o(u,l){i=Date.now(),s=l.target}function a(u,l){if(u.length===1&&Date.now()-i>n.delay){const c=t.getBoundingClientRect(),d=Math.round(l.clientX-c.left),h=Math.round(l.clientY-c.top);d>=0&&h>
1027=0&&d<=c.width&&h<=c.height&&t.dispatchEvent(new CustomEvent(r,{detail:{x:d,y:h,target:s}}))}return!1}return n.composed?{onMove:a,onDown:o,onUp:null}:{...$7(r,t,a,o,null,n.touchAction),update:u=>{n={...n,...u}}}}function Tk(t){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)}function hse(t,e){const n={touchAction:Cy,composed:!1,...e},r="pinch";let i,s=0,o;function a(c,d){c.length===1&&(i=void 0)}function u(c,d){c.length===2&&(s=Tk(c),o=cse(t,c))}function l(c,d){if(c.length===2){const h=Tk(c);if(i!==void 0&&h!==i){const m=h/s;t.dispatchEvent(new CustomEvent(r,{detail:{scale:m,center:o}}))}i=h}return!1}return n.composed?{onMove:l,onDown:u,onUp:null}:$7(r,t,l,u,a,n.touchAction)}const{window:df}=U0;function pse(t){Et(t,"svelte-18vckpg",".overlay.svelte-18vckpg.svelte-18vckpg,.background.svelte-18vckpg.svelte-18vckpg{pointer-events:none;position:fixed}.overlay.svelte-18vckpg.svelte-18vckpg{z-index:2}.background.svelte-18vckpg.svelte-18vckpg{z-index:0}.canvasFrame.svelte-18vckpg.svelte-18vckpg{position:fixed;top:1rem;left:1rem;right:1rem;bottom:1rem;border-radius:2rem;overflow:hidden}.canvas.svelte-18vckpg.svelte-18vckpg{z-index:1;position:absolute;top:0;left:0;right:0;bottom:0;background:transparent;transition-property:transform, opacity;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.canvas.isPinching.svelte-18vckpg .viewport.svelte-18vckpg,.canvas.isPanning.svelte-18vckpg .viewport.svelte-18vckpg{pointer-events:none}.canvas.isPanning.svelte-18vckpg.svelte-18vckpg{cursor:grab}.canvas.isPanning.isDown.svelte-18vckpg.svelte-18vckpg{cursor:grabbing}")}function $k(t){let e,n,r;return{c(){e=C("div"),n=N(),r=C("div")},m(i,s){O(i,e,s),t[41](e),O(i,n,s),O(i,r,s),t[42](r)},p:Ee,d(i){i&&(I(e),I(n),I(r)),t[41](null),t[42](null)}}}function mse(t){let e,n,r,i,s,o,a,u,l,c,d;const h=t[37].default,m=hi(h,t,t[36],null);let g=t[1]&&$k(t);return{c(){e=C("div"),n=C("canvas"),r=N(),i=C("div"),s=C("div"),m&&m.c(),o=N(),g&&g.c(),a=N(),u=C("canvas"),w(n,"class","background svelte-18vckpg"),w(s,"class","viewport svelte-18vckpg"),w(i,"class","canvas svelte-18vckpg"),ve(i,"isPanning",t[0]),ve(i,"isPinching",t[10]),ve(i,"isDown",t[9]),w(u,"class","overlay svelte-18vckpg"),w(e,"class","canvasFrame svelte-18vckpg")},m(k,y){O(k,e,y),v(e,n),t[40](n),v(e,r),v(e,i),v(i,s),m&&m.m(s,null),v(s,o),g&&g.m(s,null),t[43](s),t[44](i),v(e,a),v(e,u),t[45](u),t[46](e),l=!0,c||(d=[Ie(df,"resize",t[21]),Ie(df,"blur",t[14]),Ie(df,"pointerup",t[15]),Ie(df,"keyup",t[22]),Ie(df,"mousemove",t[11]),zr(T7.call(null,i,{onDrop:t[25],onEnter:t[23],onLeave:t[24],intent:{type:za.CanvasAdd}})),Ie(i,"copy",t[38]),Ie(i,"paste",t[39]),zr(hse.call(null,i)),Ie(i,"pointermove",t[12]),Ie(i,"pinchdown",t[17]),Ie(i,"pinch",t[18]),Ie(i,"pinchup",t[19]),zr(dse.call(null,i,{delay:0})),Ie(i,"pan",t[16]),Ie(i,"pointerdown",t[13]),Ie(i,"wheel",Lr(t[20]))],c=!0)},p(k,y){m&&m.p&&(!l||y[1]&32)&&mi(m,h,k,k[36],l?pi(h,k[36],y,null):gi(k[36]),null),k[1]?g?g.p(k,y):(g=$k(k),g.c(),g.m(s,null)):g&&(g.d(1),g=null),(!l||y[0]&1)&&ve(i,"isPanning",k[0]),(!l||y[0]&1024)&&ve(i,"isPinching",k[10]),(!l||y[0]&512)&&ve(i,"isDown",k[9])},i(k){l||(E(m,k),l=!0)},o(k){T(m,k),l=!1},d(k){k&&I(e),t[40](null),m&&m.d(k),g&&g.d(),t[43](null),t[44](null),t[45](null),t[46](null),c=!1,fn(d)}}}const Ck=.15,Ak=1,Dk=250;function gse(t,e,n){let{$$slots:r={},$$scope:i}=e;qd({type:Qr.Canvas});let s,o,a,u,l,c,d,h,m,{initialFocus:g=[0,0]}=e,{initialZoom:k=1}=e,{debug:y=!1}=e,{centerPos:b=[0,0]}=e,{canDragSelect:S=!1}=e,$=!1,D=!0,P=!1,{isPanning:x=!1}=e,R=!1,q=b,F=b,L=[0,0];const M=Cr();let V=0,H=0,J=0,Z=0,Q=0,K=0,{zoom:G=k}=e;const se=zn,fe=be=>{L=[be.clientX,be.clientY]},me=be=>be.target===s,Ae=()=>{const be=o.getBoundingClientRect();return[L[0]-be.left,L[1]-be.top]},ee=()=>ue(Ae()),ue=([be,tt])=>[(be-F[0])/G,(tt-F[1])/G],ie=()=>{if(l){n(8,l.style.width="10px",l),n(8,l.style.height="10px",l),n(8,l.style.background="green",l),n(8,l.style.border="0",l),n(8,l.style.borderRadius="10px",l),n(8,l.style.transformOrigin="50% 50%",l),n(8,l.style.transform=`translate(${b[0]}px,${b[1]}px) scale(${G})`,l);const be=ee();n(8,l.style.transform=`translate(${be[0]}px, ${be[1]}px)`,l)}},de=()=>{d&&(d.clearRect(0,0,c.width,c.height),Te&&(d.fillStyle="rgba(255,255,255,0.2)",d.fillRect(we[0]-Z,we[1]-J,L[0]-we[0],L[1]-we[1]),d.lineWidth=1,d.strokeStyle="rgba(255,255,255,1)",d.strokeRect(we[0]-Z,we[1]-J,L[0]-we[0],L[1]-we[1])))},Fe=(be,tt)=>{if(!a)return;let St=be,an=tt;if(n(6,a.style.transform=`translate3d(${St}px, ${an}px, 0px) scale(${G})`,a),m&&(m.clearRect(0,0,h.width,h.height),$)){const rn=se*G,Mt=Math.ceil(V/rn),Gt=M
1027ath.ceil(H/rn);m.beginPath(),m.strokeStyle="rgba(255,255,255,0.025)",m.lineWidth=1;const ze=St%rn,Vt=an%rn;for(let pn=0;pn<Gt;pn+=1){const Vn=pn*rn+Vt;m.moveTo(0,Vn),m.lineTo(V,Vn)}for(let pn=0;pn<Mt;pn+=1){const Vn=pn*rn+ze;m.moveTo(Vn,0),m.lineTo(Vn,H)}m.stroke(),m.closePath()}Ct(),de(),y&&ie()},Ve=()=>{Fe(F[0],F[1]),D&&window.requestAnimationFrame(Ve)};let Te=!1,we=[0,0];const je=be=>{Ge===s&&(Math.abs(be.clientX-we[0])<Sk&&Math.abs(be.clientY-we[1])<Sk||(be.pointerType==="touch"&&!x&&Je(),S&&P&&!x&&(M("dragSelectStart"),Te=!0)))},Je=()=>{M("panStart"),n(0,x=!0)},Ne=()=>{M("panEnd"),n(0,x=!1)};let Ge,nt,rt=0,Ze;const at=be=>{Ge=be.target,n(9,P=!0),q=[be.offsetX,be.offsetY],we=[be.clientX,be.clientY],rt||(nt=Date.now())},bt=()=>{n(9,P=!1)},he=be=>{if(Te){Te=!1;const tt=P0([we[0]-Z,L[0]-Z]),St=P0([we[1]-J,L[1]-J]);M("dragSelect",{topLeft:ue([tt[0],St[0]]),bottomRight:ue([tt[1],St[1]])}),M("dragSelectEnd")}else x||(clearTimeout(Ze),Date.now()-nt<Dk&&(rt+=1),rt>1?(gt(be),rt=0):Ze=setTimeout(()=>{ce(be),rt=0},Dk));Pe(...F),be.pointerType==="touch"&&be.target===s&&(Ne(),be.preventDefault()),n(9,P=!1)},Pe=(be,tt)=>{if(be===Q&&tt===K)return;Q=be,K=tt,F=[be,tt];const St=Ct();M("positionChange",{x:St[0],y:St[1],zoom:G})},Se=(be,tt=V/2,St=H/2)=>{if(G!==be){const an=be-G,rn=ue([tt,St]),Mt=rn[0]*an,Gt=rn[1]*an;Q-=Mt,K-=Gt,F=[F[0]-Mt,F[1]-Gt],n(26,G=be);const ze=Ct();M("zoomChange",{zoom:G,x:ze[0],y:ze[1]})}},Le=(be,tt,St)=>be*(1-St)+tt*St,te=(be=void 0)=>{if(!o)return;let tt=1;if(be)tt=be;else if(G<=.25){let St=(G-.15)/.1;tt=Le(.33,1,St)}else tt=1;n(5,o.style.opacity=tt.toString(),o)},X=be=>{const{x:tt,y:St}=be.detail;!P||!x||(F=[Q-(q[0]-tt),K-(q[1]-St)])};let ye=1;const Xe=be=>{be.detail.pointersCount<=1||(n(10,R=!0),ye=G)},Be=be=>{let tt=ye*be.detail.scale;tt=Math.min(Math.max(Ck,tt),Ak),Se(tt,be.detail.center.x,be.detail.center.y)},it=()=>{n(10,R=!1)},mt=be=>{if(be.ctrlKey){let tt=G+be.deltaY*-.001;tt=Math.min(Math.max(Ck,tt),Ak),Se(tt,...Ae())}else Pe(Q-be.deltaX,K-be.deltaY)},Ct=()=>(n(27,b=ue([V/2,H/2])),u&&(n(7,u.style.width="10px",u),n(7,u.style.height="10px",u),n(7,u.style.background="red",u),n(7,u.style.border="0",u),n(7,u.style.borderRadius="10px",u),n(7,u.style.transformOrigin="50% 50%",u),n(7,u.style.transform=`translate(${b[0]}px,${b[1]}px) scale(${G})`,u)),b),ft=([be,tt])=>{F=[V/2-be*G,H/2-tt*G],Q=F[0],K=F[1];const St=Ct();M("positionChange",{x:St[0],y:St[1],zoom:G})},It=()=>{Tt(),ft(b),Ct()},Tt=()=>{const be=o.getBoundingClientRect();V=be.width||0,H=be.height||0,J=be.top||0,Z=be.left||0,n(2,c.width=o.offsetWidth,c),n(2,c.height=o.offsetHeight,c),n(3,h.width=o.offsetWidth,h),n(3,h.height=o.offsetHeight,h)};$r(()=>{a&&n(6,a.style.transformOrigin="top left",a),Tt(),ft(g),Ct(),Ve(),te()});const _t=be=>{const tt=be.key.toLowerCase();be.altKey&&tt==="t"?(be.preventDefault(),D=!D,console.log("play status:",D),D&&Ve()):be.ctrlKey&&tt==="g"?$=!$:be.ctrlKey&&(tt==="o"||tt==="ö")&&(be.preventDefault(),Se(1),Pe(0,0))},gt=be=>{be.target===s&&be.button===0&&M("doubleClick",be)},ce=be=>{be.target===s&&be.button===0&&M("click",be)},pe=(be,tt)=>{M("entryEnter",{entry:tt.entry})},st=(be,tt)=>{M("entryLeave",{entry:tt.entry})},vn=(be,tt)=>{M("entryDrop",{entry:tt.entry,x:be.clientX+tt.offset[0],y:be.clientY+tt.offset[1]})};function Tn(be){Ht.call(this,t,be)}function bn(be){Ht.call(this,t,be)}function kn(be){Qe[be?"unshift":"push"](()=>{h=be,n(3,h)})}function $n(be){Qe[be?"unshift":"push"](()=>{l=be,n(8,l)})}function qt(be){Qe[be?"unshift":"push"](()=>{u=be,n(7,u)})}function Rn(be){Qe[be?"unshift":"push"](()=>{a=be,n(6,a)})}function Hn(be){Qe[be?"unshift":"push"](()=>{s=be,n(4,s)})}function Sn(be){Qe[be?"unshift":"push"](()=>{c=be,n(2,c)})}function Zt(be){Qe[be?"unshift":"push"](()=>{o=be,n(5,o)})}return t.$$set=be=>{"initialFocus"in be&&n(28,g=be.initialFocus),"initialZoom"in be&&n(29,k=be.initialZoom),"debug"in be&&n(1,y=be.debug),"centerPos"in be&&n(27,b=be.centerPos),"canDragSelect"in be&&n(30,S=be.canDragSelect),"isPanning"in be&&n(0,x=be.isPanning),"zoom"in be&&n(26,G=be.zoom),"$$scope"in be&&n(36,i=be.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&4&&c&&(d=c.getContext("2d")),t.$$.dirty[0]&8&&h&&(m=h.getContext("2d")),t.$$.dirty[0]&67108864&&te()},[x,y,c,h,s,o,a,u,l,P,R,fe,je,at,bt,he,X,Xe,Be,it,mt,It,_t,pe,st,vn,G,b,g,k,S,me,Ae,ee,ue,ft,i,r,Tn,bn,kn,$n,qt,Rn,Hn,Sn,Zt]}class vse extends pt{constructor(e){super(),ht(this,e,gse,mse,dt,{initialFocus:28,initialZoom:29,debug:1,centerPos:27,canDragSelect:30,isPanning:0,zoom:26,eventTargetsCanvas:31,getCursorPosition:32,getCursorPositionOnCanvas:33,calculatePositionOnCanvas:34,focusOnCoordinates:35},pse,[-1,-1,-1])}get eventTargetsCanvas(){return this.$$.ctx[31]}get getCursorPosition(){return this.$$.ctx[32]}get getCursorPositionOnCanvas(){return this.$$.ctx[33]}get calculatePositionOnCanvas(){return this.$$.ctx[34]}get focusOnCoordinates(){return this.$$.ctx[35]}}function bse(t){let e;return{c(){e=oe("Copy")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function _se(t){let e;return{c(){e=oe("ð")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function yse(t){let e;function n(s,o){return s[1]?_se:bse}let r=n(t),i=r(t);return{c(){i.c(),e=Pt()},m(s,o){i.m(s,o),O(s,e,o)},p(s,o){r!==(r=n(s))&&(i.d(1),i=r(s),i&&(i.c(),i.m(e.parentNode,e)))},d(s){s&&I(e),i.d(s)}}}function wse(t){let e,n,r;return n=new We({props:{tiny:!0,$$slots:{default:[yse]},$$scope:{ctx:t}}}),n.$on("click",t[2]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","asideRight")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&10&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Ese(t){let e,n;return e=new Zr({props:{disabled:!0,value:t[0],classList:"noDrag",$$slots:{asideRight:[wse]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&1&&(s.value=r[0]),i&10&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function kse(t,e,n){let{value:r}=e,i=!1;const s=async()=>{console.log("copy to clipboard"),navigator.clipboard.writeText(r).then(()=>{n(1,i=!0),setTimeout(()=>{n(1,i=!1)},2e3)},()=>{console.log("cannot to clipboard")})};return t.$$set=o=>{"value"in o&&n(0,r=o.value)},[r,i,s]}class C7 extends pt{constructor(e){super(),ht(this,e,kse,Ese,dt,{value:0})}}function Sse(t){Et(t,"svelte-15fv1bv",".p1.svelte-15fv1bv{margin:2rem 0}.p2.svelte-15fv1bv{margin:2rem 0 1rem}")}function Tse(t){let e;return{c(){e=oe("Connect Telegram")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function $se(t){let e;return{c(){e=oe("Connect Your Account")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Cse(t){let e;return{c(){e=oe("Telegram Connected")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Ase(t){let e;return{c(){e=oe("...")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Dse(t){let e,n;function r(o,a){return o[3].loading?Ase:o[0]&&o[1]?Cse:o[0]&&!o[1]?$se:Tse}let i=r(t),s=i(t);return{c(){e=C("span"),n=C("h2"),s.c(),w(e,"slot","title")},m(o,a){O(o,e,a),v(e,n),s.m(n,null)},p(o,a){i!==(i=r(o))&&(s.d(1),s=i(o),s&&(s.c(),s.m(n,null)))},d(o){o&&I(e),s.d()}}}function Ise(t){let e,n,r,i,s,o,a,u,l=t[3].data.telegramIntegrationStatus.botName+"",c,d,h;return r=new We({props:{small:!0,$$slots:{default:[Pse]},$$scope:{ctx:t}}}),r.$on("click",t[9]),{c(){e=C("p"),e.textContent="Connect a Telegram group to feed your messages from Telegram into this place.",n=N(),j(r.$$.fragment),i=N(),s=C("p"),o=C("small"),a=oe("You can also add "),u=C("b"),c=oe(l),d=oe(` to your Telegram 1028 group and post the following message to start feeding messages into this place:`),w(e,"class","p1 svelte-15fv1bv"),w(s,"class","p2 svelte-15fv1bv")},m(m,g){O(m,e,g),O(m,n,g),B(r,m,g),O(m,i,g),O(m,s,g),v(s,o),v(o,a),v(o,u),v(u,c),v(o,d),h=!0},p(m,g){const k={};g&4096&&(k.$$scope={dirty:g,ctx:m}),r.$set(k),(!h||g&8)&&l!==(l=m[3].data.telegramIntegrationStatus.botName+"")&&Wt(c,l)},i(m){h||(E(r.$$.fragment,m),h=!0)},o(m){T(r.$$.fragment,m),h=!1},d(m){m&&(I(e),I(n),I(i),I(s)),z(r,m)}}}function Ose(t){let e,n,r,i,s,o,a,u;return s=new We({props:{small:!0,$$slots:{default:[xse]},$$scope:{ctx:t}}}),s.$on("click",t[8]),{c(){e=C("p"),e.textContent="This place is connected to a Telegram group.",n=N(),r=C("p"),r.textContent="With your permission, your messages sent to the group can appear here as well.",i=N(),j(s.$$.fragment),o=N(),a=C("p"),a.innerHTML=`<small>You can also send the following message to the group to start feeding your messages into 1029 this place:</small>`,w(e,"class","p1 svelte-15fv1bv"),w(r,"class","p1 svelte-15fv1bv"),w(a,"class","p2 svelte-15fv1bv")},m(l,c){O(l,e,c),O(l,n,c),O(l,r,c),O(l,i,c),B(s,l,c),O(l,o,c),O(l,a,c),u=!0},p(l,c){const d={};c&4096&&(d.$$scope={dirty:c,ctx:l}),s.$set(d)},i(l){u||(E(s.$$.fragment,l),u=!0)},o(l){T(s.$$.fragment,l),u=!1},d(l){l&&(I(e),I(n),I(r),I(i),I(o),I(a)),z(s,l)}}}function Nse(t){let e,n,r,i,s,o,a,u;return s=new We({props:{small:!0,$$slots:{default:[qse]},$$scope:{ctx:t}}}),s.$on("click",t[7]),{c(){e=C("p"),e.textContent="This place is connected to your Telegram group.",n=N(),r=C("p"),r.textContent="Your messages sent to the group will appear here as well.",i=N(),j(s.$$.fragment),o=N(),a=C("p"),a.innerHTML="<small>You can also send the following message to the group to refresh the connection:</small>",w(e,"class","p1 svelte-15fv1bv"),w(r,"class","p1 svelte-15fv1bv"),w(a,"class","p2 svelte-15fv1bv")},m(l,c){O(l,e,c),O(l,n,c),O(l,r,c),O(l,i,c),B(s,l,c),O(l,o,c),O(l,a,c),u=!0},p(l,c){const d={};c&4096&&(d.$$scope={dirty:c,ctx:l}),s.$set(d)},i(l){u||(E(s.$$.fragment,l),u=!0)},o(l){T(s.$$.fragment,l),u=!1},d(l){l&&(I(e),I(n),I(r),I(i),I(o),I(a)),z(s,l)}}}function Rse(t){let e;return{c(){e=C("p"),e.textContent="Loading Telegram settings..."},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function Pse(t){let e;return{c(){e=oe("Connect Group")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function xse(t){let e;return{c(){e=oe("Give permission")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function qse(t){let e;return{c(){e=oe("Reconnect / Refresh")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Fse(t){let e,n,r,i,s,o;const a=[Rse,Nse,Ose,Ise],u=[];function l(c,d){return c[3].loading?0:c[0]&&c[1]?1:c[0]&&!c[1]?2:3}return n=l(t),r=u[n]=a[n](t),s=new C7({props:{value:t[2]}}),{c(){e=C("span"),r.c(),i=N(),j(s.$$.fragment),w(e,"slot","content")},m(c,d){O(c,e,d),u[n].m(e,null),v(e,i),B(s,e,null),o=!0},p(c,d){let h=n;n=l(c),n===h?u[n].p(c,d):($e(),T(u[h],1,1,()=>{u[h]=null}
1029),Ce(),r=u[n],r?r.p(c,d):(r=u[n]=a[n](c),r.c()),E(r,1),r.m(e,i));const m={};d&4&&(m.value=c[2]),s.$set(m)},i(c){o||(E(r),E(s.$$.fragment,c),o=!0)},o(c){T(r),T(s.$$.fragment,c),o=!1},d(c){c&&I(e),u[n].d(),z(s)}}}function Lse(t){let e,n;return e=new Ar({props:{onClose:t[10],closeText:"Close",$$slots:{content:[Fse],title:[Dse]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&4111&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}const Mse=5e3;function Bse(t,e,n){let r,{space:i}=e;const s=Cr(),o=gG({variables:{spaceId:i.id}});Ke(t,o,k=>n(3,r=k));let a=!1,u=!1,l;r.query.result().then(k=>{n(0,a=k.data.telegramIntegrationStatus.spaceConnected),n(1,u=k.data.telegramIntegrationStatus.userConnected),n(2,l="/start@"+r.data.telegramIntegrationStatus.botName+" "+r.data.telegramIntegrationStatus.connectToken)});let c=setInterval(()=>r.query.refetch(),Mse);lo(()=>{clearInterval(c)});const d=()=>window.open(r.data.telegramIntegrationStatus.connectUrl,"_blank"),h=()=>window.open(r.data.telegramIntegrationStatus.connectUrl,"_blank"),m=()=>window.open(r.data.telegramIntegrationStatus.connectUrl,"_blank"),g=()=>s("close");return t.$$set=k=>{"space"in k&&n(6,i=k.space)},[a,u,l,r,s,o,i,d,h,m,g]}class zse extends pt{constructor(e){super(),ht(this,e,Bse,Lse,dt,{space:6},Sse)}}function jse(t){Et(t,"svelte-15mr3rp",`.Stream.svelte-15mr3rp{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:var(--e-spacing) 0;overflow-y:auto;overflow-x:hidden;min-height:8rem;width:100%;mask:linear-gradient(transparent 3rem, black 9rem, black calc(100% - 2rem), transparent 100%);-webkit-mask:linear-gradient( 1030 hsla(0 0% 0% / 0.03) 3rem, 1031 black 10rem, 1032 black calc(100% - 2rem), 1033 transparent 100% 1034 )}.triggerElement.svelte-15mr3rp{position:absolute;height:0.1rem;pointer-events:none;width:100%;visibility:hidden;z-index:1000}`)}function Ik(t,e,n){const r=t.slice();return r[44]=e[n],r[46]=n,r}function Ok(t){let e,n,r,i,s,o=[],a=new Map,u,l,c,d=t[2]&&Nk();const h=t[20].default,m=hi(h,t,t[19],null);let g=Ut(t[4]);const k=y=>y[44].id;for(let y=0;y<g.length;y+=1){let b=Ik(t,g,y),S=k(b);a.set(S,o[y]=Pk(S,b))}return{c(){e=C("div"),n=C("div"),r=N(),d&&d.c(),i=N(),m&&m.c(),s=N();for(let y=0;y<o.length;y+=1)o[y].c();w(n,"class","triggerElement svelte-15mr3rp"),w(e,"class","Stream svelte-15mr3rp")},m(y,b){O(y,e,b),v(e,n),v(e,r),d&&d.m(e,null),v(e,i),m&&m.m(e,null),v(e,s);for(let S=0;S<o.length;S+=1)o[S]&&o[S].m(e,null);t[29](e),u=!0,l||(c=[zr(o7.call(null,n)),Ie(n,"observedIntersection",t[9]),Ie(e,"click",t[21])],l=!0)},p(y,b){y[2]?d||(d=Nk(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),m&&m.p&&(!u||b[0]&524288)&&mi(m,h,y,y[19],u?pi(h,y[19],b,null):gi(y[19]),null),b[0]&3089&&(g=Ut(y[4]),$e(),o=fo(o,b,k,1,y,g,a,e,co,Pk,null,Ik),Ce())},i(y){if(!u){E(m,y);for(let b=0;b<g.length;b+=1)E(o[b]);u=!0}},o(y){T(m,y);for(let b=0;b<o.length;b+=1)T(o[b]);u=!1},d(y){y&&I(e),d&&d.d(),m&&m.d(y);for(let b=0;b<o.length;b+=1)o[b].d();t[29](null),l=!1,fn(c)}}}function Nk(t){return{c:Ee,m:Ee,d:Ee}}function Rk(t){let e,n;return e=new Iy({props:{dateVisible:t[10](t[44],t[4][t[46]-1]),isInPublicSpace:t[0],entry:t[44]}}),e.$on("reply",t[22]),e.$on("delete",t[23]),e.$on("pin",t[24]),e.$on("focus",t[25]),e.$on("addToBook",t[26]),e.$on("select",t[27]),e.$on("showUploadLimitExceededModal",t[28]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&16&&(s.dateVisible=r[10](r[44],r[4][r[46]-1])),i[0]&1&&(s.isInPublicSpace=r[0]),i[0]&16&&(s.entry=r[44]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Pk(t,e){let n,r=e[11](e[44]),i,s,o=r&&Rk(e);return{key:t,first:null,c(){n=Pt(),o&&o.c(),i=Pt(),this.first=n},m(a,u){O(a,n,u),o&&o.m(a,u),O(a,i,u),s=!0},p(a,u){e=a,u[0]&16&&(r=e[11](e[44])),r?o?(o.p(e,u),u[0]&16&&E(o,1)):(o=Rk(e),o.c(),E(o,1),o.m(i.parentNode,i)):o&&($e(),T(o,1,1,()=>{o=null}),Ce())},i(a){s||(E(o),s=!0)},o(a){T(o),s=!1},d(a){a&&(I(n),I(i)),o&&o.d(a)}}}function Use(t){var o;let e,n,r,i,s=((o=t[3].data)==null?void 0:o.entries)&&Ok(t);return{c(){s&&s.c(),e=Pt()},m(a,u){s&&s.m(a,u),O(a,e,u),n=!0,r||(i=Ie(window,"click",t[12]),r=!0)},p(a,u){var l;
1034(l=a[3].data)!=null&&l.entries?s?(s.p(a,u),u[0]&8&&E(s,1)):(s=Ok(a),s.c(),E(s,1),s.m(e.parentNode,e)):s&&($e(),T(s,1,1,()=>{s=null}),Ce())},i(a){n||(E(s),n=!0)},o(a){T(s),n=!1},d(a){a&&I(e),s&&s.d(a),r=!1,i()}}}var rs;(function(t){t.AgentConversation="AGENT_CONVERSATION",t.All="ALL"})(rs||(rs={}));const xk=25;function Hse(t,e,n){let r,i,s,o,{$$slots:a={},$$scope:u}=e;var l=this&&this.__rest||function(we,je){var Je={};for(var Ne in we)Object.prototype.hasOwnProperty.call(we,Ne)&&je.indexOf(Ne)<0&&(Je[Ne]=we[Ne]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(we);Ge<Ne.length;Ge++)je.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(we,Ne[Ge])&&(Je[Ne[Ge]]=we[Ne[Ge]]);return Je};let{query:c}=e;const d=we=>{switch(we.type){case rs.AgentConversation:{const je=l(we,["type"]);return{spaceId:je.spaceId,query:{agentConversation:je}}}case rs.All:{const je=l(we,["type"]);return{spaceId:je.spaceId,query:{all:je}}}}};let{isInPublicSpace:h=!1}=e,{selectedEntryOnStream:m=null}=e;const g=sc().store.listen(we=>{switch(c.type){case rs.AgentConversation:we.message.subject===`/AgentConversation/${c.agentConversationId}`&&R();break;case rs.All:R();break}});let k=d(Object.assign(Object.assign({},c),{limit:xk}));const y=Cr(),[b,S]=R0(k,{isEqual:Xl});Ke(t,b,we=>n(34,i=we)),Ke(t,S,we=>n(35,s=we));const $=vG({variables:k});Ke(t,$,we=>n(3,r=we)),$.subscribe(we=>{var je;if(we.loading)return;!!(!((je=we.data)===null||je===void 0)&&je.space)||y("inaccessible")});const D=hr($,we=>{var je,Je;const Ne=(Je=(je=we==null?void 0:we.data)===null||je===void 0?void 0:je.entries)!==null&&Je!==void 0?Je:[];return o$(Ne,Ge=>Ge.createdAt)});Ke(t,D,we=>n(4,o=we)),D.subscribe(we=>{if(r.loading)return;y("loaded",{getEntries:()=>we})}),b.subscribe(()=>{Xl(i,s)||r.query.refetch(i)});let P,x;const R=async()=>{const we=await r.query.fetchMore({variables:Object.assign(Object.assign({},k),{changedSince:P})}),je=s$(we.data.entries,Je=>Je.updatedAt);if(je){const Je=dV([P,je.updatedAt]);Je!==P&&(P=Je,y("updated",{getChanges:()=>we.data.entries.filter(nt=>nt.updatedAt>P),getEntries:()=>$i(D)}))}},q=async()=>{await r.query.refetch()},F=()=>{x==null||x.scrollTo(0,x.scrollHeight)};lo(()=>{g()});let L=0,M=0;const V=()=>(x==null?void 0:x.scrollHeight)||0;Fx(()=>{M=(x==null?void 0:x.scrollTop)||0,L=V()}),Va(()=>{const we=V();if(we===0)return;const je=we-L;x&&je>0&&n(1,x.scrollTop=M+je,x)});const H=()=>{var we;const je=((we=r.data)===null||we===void 0?void 0:we.entries)||[];return je.length===0?null:lV(je).createdAt};let J=!1,Z=!0;const Q=async()=>{if(!Z||J||r.loading)return;const we=H();if(we)try{n(2,J=!0),Z=(await r.query.fetchMore({variables:Object.assign(Object.assign({},k),{createdUntil:we})})).data.entries.length!==0}finally{n(2,J=!1)}},K=we=>{we.entry.isIntersecting&&Q()},G=(we,je)=>{if(!je)return!0;const[Je]=we.createdAt.split("T"),[Ne]=je.createdAt.split("T");return Je!==Ne},se=we=>c.type===rs.All&&c.drawer?!(we.pin!==null||Ba(we.books).length>0||we.agentConversationId!==null):!0,fe=we=>{if(m===null)return;const je=we.target;if(!x.contains(je)){n(13,m=null);return}(je==null?void 0:je.closest(".entryWrapper"))||n(13,m=null)};function me(we){Ht.call(this,t,we)}function Ae(we){Ht.call(this,t,we)}function ee(we){Ht.call(this,t,we)}function ue(we){Ht.call(this,t,we)}function ie(we){Ht.call(this,t,we)}function de(we){Ht.call(this,t,we)}function Fe(we){Ht.call(this,t,we)}function Ve(we){Ht.call(this,t,we)}function Te(we){Qe[we?"unshift":"push"](()=>{x=we,n(1,x)})}return t.$$set=we=>{"query"in we&&n(14,c=we.query),"isInPublicSpace"in we&&n(0,h=we.isInPublicSpace),"selectedEntryOnStream"in we&&n(13,m=we.selectedEntryOnStream),"$$scope"in we&&n(19,u=we.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&278528&&(n(18,k=d(Object.assign(Object.assign({},c),{limit:xk}))),gr(b,i=k,i))},[h,x,J,r,o,b,S,$,D,K,G,se,fe,m,c,R,q,F,k,u,a,me,Ae,ee,ue,ie,de,Fe,Ve,Te]}class Ay extends pt{constructor(e){super(),ht(this,e,Hse,Use,dt,{query:14,isInPublicSpace:0,selectedEntryOnStream:13,onLoadRecent:15,onReload:16,onScrollReset:17},jse,[-1,-1])}get onLoadRecent(){return this.$$.ctx[15]}get onReload(){return this.$$.ctx[16]}get onScrollReset(){return this.$$.ctx[17]}}var A7={},D7={};
1034(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="magnifying-glass",r=512,i=512,s=[128269,"search"],o="f002",a="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faMagnifyingGlass=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(D7);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=D7;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faSearch=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(A7);function Vse(t){Et(t,"svelte-1lrbv02",".SearchPanel.svelte-1lrbv02{position:relative}.SearchPanel.opened.svelte-1lrbv02{height:100%}.wrapper.svelte-1lrbv02{display:flex;flex-direction:column;position:absolute;top:-0.2rem;right:-0.2rem;z-index:2;width:36rem;min-height:4.4rem;max-height:90vh;overflow:visible}.input.svelte-1lrbv02{height:4.4rem;padding:1rem 2rem;border-radius:2.2rem;border-width:0;line-height:4.4rem;outline:none;background:var(--c-book-bg);color:var(--c-text)}.fader.svelte-1lrbv02{position:fixed;z-index:1;top:1rem;right:1rem;bottom:1rem;left:1rem;border-radius:2rem;background-color:var(--c-space-hover);opacity:0.85}.SearchPanel .entries{padding:0;mask:linear-gradient(transparent, rgba(0, 0, 0, 1) 10%);-webkit-mask:linear-gradient(transparent, rgba(0, 0, 0, 1) 10%)}")}function Wse(t){let e,n;return e=new et({props:{icon:A7.faSearch}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Gse(t){let e,n;return e=new et({props:{icon:Sd.faTimes}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Yse(t){let e,n,r,i;const s=[Gse,Wse],o=[];function a(u,l){return u[1]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function qk(t){let e,n,r,i,s,o,a,u,l,c,d=t[2].length>=3&&Fk(t);return{c(){e=C("div"),n=C("input"),i=N(),d&&d.c(),s=N(),o=C("div"),w(n,"placeholder","Type to seach in this place"),w(n,"type","input"),w(n,"class","input svelte-1lrbv02"),n.autofocus=!0,w(e,"class","wrapper svelte-1lrbv02"),w(o,"class","fader svelte-1lrbv02")},m(h,m){O(h,e,m),v(e,n),Yr(n,t[2]),v(e,i),d&&d.m(e,null),O(h,s,m),O(h,o,m),u=!0,n.focus(),l||(c=[Ie(n,"input",t[6]),Ie(o,"click",t[12])],l=!0)},p(h,m){m&4&&Yr(n,h[2]),h[2].length>=3?d?(d.p(h,m),m&4&&E(d,1)):(d=Fk(h),d.c(),E(d,1),d.m(e,null)):d&&($e(),T(d,1,1,()=>{d=null}),Ce())},i(h){u||(h&&Xn(()=>{u&&(r||(r=Zn(n,Sr,{duration:400,easing:oo},!0)),r.run(1))}),E(d),h&&Xn(()=>{u&&(a||(a=Zn(o,Sr,{duration:400,easing:oo},!0)),a.run(1))}),u=!0)},o(h){h&&(r||(r=Zn(n,Sr,{duration:400,easing:oo},!1)),r.run(0)),T(d),h&&(a||(a=Zn(o,Sr,{duration:400,easing:oo},!1)),a.run(0)),u=!1},d(h){h&&(I(e),I(s),I(o)),h&&r&&r.end(),d&&d.d(),h&&a&&a.end(),l=!1,fn(c)}}}function Fk(t){let e,n;return e=new Ay({props:{query:{type:rs.All,spaceId:t[0],searchQuery:t[3]}}}),e.$on("pin",t[7]),e.$on("reply",t[8]),e.$on("focus",t[9]),e.$on("addToBook",t[10]),e.$on("showUploadLimitExceededModal",t[11]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&9&&(s.query={type:rs.All,spaceId:r[0],searchQuery:r[3]}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Qse(t){let e,n,r,i;n=new We({props:{zindex:3,hovering:t[1],circle:!0,reveal:!0,title:"Search in space",$$slots:{default:[Yse]},$$scope:{ctx:t}}}),n.$on("click",t[5]);let s=t[1]&&qk(t);return{c(){e=C("div"),j(n.$$.fragment),r=N(),s&&s.c(),w(e,"class","SearchPanel svelte-1lrbv02"),ve(e,"opened",t[1])},m(o,a){O(o,e,a),B(n,e,null),v(e,r),s&&s.m(e,null),i=!0},p(o,[a]){const u={};a&2&&(u.hovering=o[1]),a&16386&&(u.$$scope={dirty:a,ctx:o}),n.$set(u),o[1]?s?(s.p(o,a),a&2&&E(s,1)):(s=qk(o),s.c(),E(s,1),s.m(e,null)):s&&($e(),T(s,1,1,()=>{s=null}),Ce()),(!i||a&2)&&ve(e,"opened",o[1])},i(o){i||(E(n.$$.fragment,o),E(s),i=!0)},o(o){T(n.$$.fragment,o),T(s),i=!1},d(o){o&&I(e),z(n),s&&s.d()}}}const Zse=350;function Xse(t,e,n){let{spaceId:r}=e,i=!1,s="",o="",a;const u=()=>n(2,s=""),l=()=>n(1,i=!i);
1034function c(){s=this.value,n(2,s)}function d(b){Ht.call(this,t,b)}function h(b){Ht.call(this,t,b)}function m(b){Ht.call(this,t,b)}function g(b){Ht.call(this,t,b)}function k(b){Ht.call(this,t,b)}const y=()=>n(1,i=!1);return t.$$set=b=>{"spaceId"in b&&n(0,r=b.spaceId)},t.$$.update=()=>{t.$$.dirty&20&&(clearTimeout(a),n(4,a=setTimeout(()=>{n(3,o=s)},Zse))),t.$$.dirty&2&&i&&u()},[r,i,s,o,a,l,c,d,h,m,g,k,y]}class Kse extends pt{constructor(e){super(),ht(this,e,Xse,Qse,dt,{spaceId:0},Vse)}}var I7={},O7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="ellipsis-vertical",r=128,i=512,s=["ellipsis-v"],o="f142",a="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faEllipsisVertical=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(O7);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=O7;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faEllipsisV=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(I7);function Jse(t){Et(t,"svelte-fasjrq","div.svelte-fasjrq{display:flex;flex-flow:column;z-index:3}")}function eoe(t){let e,n;return e=new et({props:{icon:I7.faEllipsisV}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Lk(t){let e;const n=t[1].default,r=hi(n,t,t[4],null);return{c(){r&&r.c()},m(i,s){r&&r.m(i,s),e=!0},p(i,s){r&&r.p&&(!e||s&16)&&mi(r,n,i,i[4],e?pi(n,i[4],s,null):gi(i[4]),null)},i(i){e||(E(r,i),e=!0)},o(i){T(r,i),e=!1},d(i){r&&r.d(i)}}}function toe(t){let e,n,r,i,s,o;n=new We({props:{circle:!0,reveal:!0,hovering:t[0],$$slots:{default:[eoe]},$$scope:{ctx:t}}}),n.$on("mouseenter",t[2]);let a=t[0]&&Lk(t);return{c(){e=C("div"),j(n.$$.fragment),r=N(),a&&a.c(),w(e,"class","ButtonGroup svelte-fasjrq")},m(u,l){O(u,e,l),B(n,e,null),v(e,r),a&&a.m(e,null),i=!0,s||(o=Ie(e,"mouseleave",t[3]),s=!0)},p(u,[l]){const c={};l&1&&(c.hovering=u[0]),l&16&&(c.$$scope={dirty:l,ctx:u}),n.$set(c),u[0]?a?(a.p(u,l),l&1&&E(a,1)):(a=Lk(u),a.c(),E(a,1),a.m(e,null)):a&&($e(),T(a,1,1,()=>{a=null}),Ce())},i(u){i||(E(n.$$.fragment,u),E(a),i=!0)},o(u){T(n.$$.fragment,u),T(a),i=!1},d(u){u&&I(e),z(n),a&&a.d(),s=!1,o()}}}function noe(t,e,n){let{$$slots:r={},$$scope:i}=e,s=!1;const o=()=>n(0,s=!0),a=()=>n(0,s=!1);return t.$$set=u=>{"$$scope"in u&&n(4,i=u.$$scope)},[s,r,o,a,i]}class roe extends pt{constructor(e){super(),ht(this,e,noe,toe,dt,{},Jse)}}function ioe(t){Et(t,"svelte-10zfrro",'.hue.svelte-10zfrro,.sat.svelte-10zfrro{padding:0.5rem 0;border-radius:2rem;margin-top:2rem}.sat.svelte-10zfrro{margin-bottom:2rem}input.svelte-10zfrro{padding:0;width:100%;height:2rem;display:block;cursor:ew-resize}input[type="range"].svelte-10zfrro{-webkit-appearance:none;box-shadow:none;border:none;background:transparent}input[type="range"].svelte-10zfrro::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid var(--c-text);width:3rem;height:3rem;border-radius:2rem;transition-property:transform border-color;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s}input[type="range"].svelte-10zfrro::-webkit-slider-thumb:hover{transform:scale(1.15)}')}function soe(t){let e;return{c(){e=C("span"),e.textContent="Ambience",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function ooe(t){let e,n,r,i,s,o,a,u,l,c,d;return n=new wy({props:{options:[{value:zs.Light,display:"Lights On"},{value:zs.Dark,display:"Lights Off"},{value:zs.Auto,display:"Auto"}],value:t[5].colorTheme}}),n.$on("change",t[8]),{c(){e=C("span"),j(n.$$.fragment),r=N(),i=C("div"),s=C("input"),o=N(),a=C("div"),u=C("input"),w(s,"type","range"),w(s,"name","hue"),w(s,"id","hue"),w(s,"min","0"),w(s,"max","360"),w(s,"class","svelte-10zfrro"),w(i,"class","hue noDrag svelte-10zfrro"),He(i,"background-image","linear-gradient(to right, "+t[4]+")"),w(u,"type","range"),w(u,"name","sat"),w(u,"id","sat"),w(u,"min","0"),w(u,"max","100"),w(u,"class","svelte-10zfrro"),w(a,"class","sat noDrag svelte-10zfrro"),He(a,"background-image","linear-gradient(to right, hsl("+t[1]+", 0%, "+t[2]+"%), hsl("+t[1]+", 100%, "+t[2]+"%))"),w(e,"slot","content")},m(h,m){O(h,e,m),B(n,e,null),v(e,r),v(e,i),v(i,s),Yr(s,t[1]),v(e,o),v(e,a),v(a,u),Yr(u,t[0]),l=!0,c||(d=[Ie(s,"change",t[9]),Ie(s,"input",t[9]),Ie(u,"change",t[10]),Ie(u,"input",t[10])],c=!0)},p(h,m){const g={};m&32&&(g.value=h[5].colorTheme),n.$set(g),m&2&&Yr(s,h[1]),(!l||m&16)&&He(i,"background-image","linear-gradient(to right, "+h[4]+")"),m&1&&Yr(u,h[0]),(!l||m&6)&&He(a,"background-image","linear-gradient(to right, hsl("+h[1]+", 0%, "+h[2]+"%), hsl("+h[1]+", 100%, "+h[2]+"%))")},i(h){l||(E(n.$$.fragment,h),l=!0)},o(h){T(n.$$.fragment,h),l=!1},d(h){h&&I(e),z(n),c=!1,fn(d)}}}function aoe(t){let e;return{c(){e=oe("Done")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function uoe(t){let e,n,r;return n=new We({props:{disabled:t[3],small:!0,margin:"0 0.5rem 0 0",$$slots:{default:[aoe]},$$scope:{ctx:t}}}),n.$on("click",t[7]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&8&&(o.disabled=i[3]),s&8192&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function loe(t){let e,n;return e=new Ar({props:{onClose:t[11],closeText:"Cancel",$$slots:{primaryButton:[uoe],content:[ooe],title:[soe]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&8255&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function coe(t,e,n){let r;Ke(t,ji,y=>n(5,r=y));let{hue:i=0}=e,{saturation:s=0}=e,{lightness:o=0}=e,{disabled:a=!1}=e;const u=Cr();let l="";const c=()=>{n(4,l="");for(let y=0;y<12;y++)n(4,l+=`hsl(${y*30},${s}%,${o}%)`),y<11&&n(4,l+=", ")},d=()=>u("done"),h=y=>
1034u("changeColorTheme",y.detail);function m(){i=Au(this.value),n(1,i)}function g(){s=Au(this.value),n(0,s)}const k=()=>u("cancel");return t.$$set=y=>{"hue"in y&&n(1,i=y.hue),"saturation"in y&&n(0,s=y.saturation),"lightness"in y&&n(2,o=y.lightness),"disabled"in y&&n(3,a=y.disabled)},t.$$.update=()=>{t.$$.dirty&5&&o&&c()},[s,i,o,a,l,r,u,d,h,m,g,k]}class foe extends pt{constructor(e){super(),ht(this,e,coe,loe,dt,{hue:1,saturation:0,lightness:2,disabled:3},ioe)}}function doe(t){Et(t,"svelte-ob40bn",".InviteForm.svelte-ob40bn{position:relative;width:100%;margin-top:-0.5rem}p.svelte-ob40bn{margin-top:1.5rem}")}function Mk(t){let e,n,r,i,s,o;const a=[poe,hoe],u=[];function l(c,d){return c[3]?0:1}return n=l(t),r=u[n]=a[n](t),{c(){e=C("div"),r.c(),w(e,"class","InviteForm noDrag svelte-ob40bn")},m(c,d){O(c,e,d),u[n].m(e,null),o=!0},p(c,d){let h=n;n=l(c),n===h?u[n].p(c,d):($e(),T(u[h],1,1,()=>{u[h]=null}),Ce(),r=u[n],r?r.p(c,d):(r=u[n]=a[n](c),r.c()),E(r,1),r.m(e,null))},i(c){o||(E(r),c&&Xn(()=>{o&&(s&&s.end(1),i=fc(e,Bo,{amount:20,duration:600,easing:Mo}),i.start())}),o=!0)},o(c){T(r),i&&i.invalidate(),c&&(s=g5(e,S$,{})),o=!1},d(c){c&&I(e),u[n].d(),c&&s&&s.end()}}}function hoe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g;n=new Tr({props:{name:"email",$$slots:{default:[moe]},$$scope:{ctx:t}}});function k(b){t[8](b)}let y={focused:!0,type:"email",name:"email",placeholder:"email address",paddingRight:"6rem"};return t[1]!==void 0&&(y.value=t[1]),i=new Zr({props:y}),Qe.push(()=>En(i,"value",k)),a=new ir({props:{errors:t[4],field:"email"}}),d=new We({props:{tiny:!0,pos:{top:4.7,right:.7},disabled:t[2],$$slots:{default:[goe]},$$scope:{ctx:t}}}),d.$on("click",t[6]),{c(){e=C("form"),j(n.$$.fragment),r=N(),j(i.$$.fragment),o=N(),j(a.$$.fragment),u=N(),l=C("input"),c=N(),j(d.$$.fragment),w(l,"type","submit"),l.disabled=t[2],w(l,"class","hide")},m(b,S){O(b,e,S),B(n,e,null),v(e,r),B(i,e,null),v(e,o),B(a,e,null),v(e,u),v(e,l),v(e,c),B(d,e,null),h=!0,m||(g=Ie(e,"submit",Lr(t[6])),m=!0)},p(b,S){const $={};S&1024&&($.$$scope={dirty:S,ctx:b}),n.$set($);const D={};!s&&S&2&&(s=!0,D.value=b[1],wn(()=>s=!1)),i.$set(D);const P={};S&16&&(P.errors=b[4]),a.$set(P),(!h||S&4)&&(l.disabled=b[2]);const x={};S&4&&(x.disabled=b[2]),S&1024&&(x.$$scope={dirty:S,ctx:b}),d.$set(x)},i(b){h||(E(n.$$.fragment,b),E(i.$$.fragment,b),E(a.$$.fragment,b),E(d.$$.fragment,b),h=!0)},o(b){T(n.$$.fragment,b),T(i.$$.fragment,b),T(a.$$.fragment,b),T(d.$$.fragment,b),h=!1},d(b){b&&I(e),z(n),z(i),z(a),z(d),m=!1,g()}}}function poe(t){let e;return{c(){e=C("p"),e.innerHTML="<b>Invitation email sent.</b> You will be able to collaborate as soon as they accept the invitation.",w(e,"class","svelte-ob40bn")},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function moe(t){let e;return{c(){e=oe("Invite Contributor")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function goe(t){let e;return{c(){e=oe("Send")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function voe(t){let e,n,r=t[0]&&Mk(t);return{c(){r&&r.c(),e=Pt()},m(i,s){r&&r.m(i,s),O(i,e,s),n=!0},p(i,[s]){i[0]?r?(r.p(i,s),s&1&&E(r,1)):(r=Mk(i),r.c(),E(r,1),r.m(e.parentNode,e)):r&&($e(),T(r,1,1,()=>{r=null}),Ce())},i(i){n||(E(r),n=!0)},o(i){T(r),n=!1},d(i){i&&I(e),r&&r.d(i)}}}function boe(t,e,n){let r,{isVisible:i=!1}=e,{space:s}=e,o,a=!1,u=!1,l;const c=nn([]);Ke(t,c,m=>n(4,r=m));const d=async()=>{n(2,a=!0);const m=await xW({variables:{email:o,spaceId:s.id}}),{errors:g}=m.data.sendInvitation;c.set(g),g.length===0&&(n(3,u=!0),clearTimeout(l),l=setTimeout(()=>{n(3,u=!1),n(0,i=!1)},5e3),n(1,o="")),n(2,a=!1)};function h(m){o=m,n(1,o)}return t.$$set=m=>{"isVisible"in m&&n(0,i=m.isVisible),"space"in m&&n(7,s=m.space)},[i,o,a,u,r,c,d,s,h]}class _oe extends pt{constructor(e){super(),ht(this,e,boe,voe,dt,{isVisible:0,space:7},doe)}}function yoe(t){Et(t,"svelte-1aba10i",".contributors.svelte-1aba10i.svelte-1aba10i{display:flex;flex-flow:wrap;gap:0.5rem;margin-bottom:1.75rem}.person.svelte-1aba10i.svelte-1aba10i{width:3.2rem;height:3.2rem;border-radius:1.7rem;overflow:hidden;border:2px solid var(--c-border);line-height:1.8rem}.contributors.svelte-1aba10i .person.svelte-1aba10i{padding:0.4rem 1rem;cursor:default}.contributors.svelte-1aba10i .person.svelte-1aba10i:hover{width:auto}.contributors.svelte-1aba10i .person.owner.svelte-1aba10i{order:-1;border-width:3px}
1034.contributors.svelte-1aba10i .person .name.svelte-1aba10i{display:inline-block;visibility:hidden}.contributors.svelte-1aba10i .person .name.svelte-1aba10i::first-letter{visibility:visible}.contributors.svelte-1aba10i .person:hover .name.svelte-1aba10i{width:auto;visibility:visible}.info.svelte-1aba10i.svelte-1aba10i{margin-top:0.5rem}")}function Bk(t,e,n){const r=t.slice();return r[8]=e[n],r}function zk(t){let e,n;return e=new Ar({props:{$$slots:{primaryButton:[Ioe],content:[Aoe],title:[woe]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&2054&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function woe(t){let e;return{c(){e=C("span"),e.textContent="Access",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function jk(t){let e,n,r,i;return e=new Tr({props:{$$slots:{default:[Eoe]},$$scope:{ctx:t}}}),r=new C7({props:{value:t[1].urlFull}}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment)},m(s,o){B(e,s,o),O(s,n,o),B(r,s,o),i=!0},p(s,o){const a={};o&2048&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&2&&(u.value=s[1].urlFull),r.$set(u)},i(s){i||(E(e.$$.fragment,s),E(r.$$.fragment,s),i=!0)},o(s){T(e.$$.fragment,s),T(r.$$.fragment,s),i=!1},d(s){s&&I(n),z(e,s),z(r,s)}}}function Eoe(t){let e;return{c(){e=oe("Secret URL")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function koe(t){let e;return{c(){e=oe("This is your private place.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Soe(t){let e;return{c(){e=oe("Only the contributors below has access to this private place.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Toe(t){let e;return{c(){e=oe("Anyone with the link above can visit this place but cannot make any changes.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function $oe(t){let e;return{c(){e=oe("Contributors")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Uk(t){let e;return{c(){e=C("small"),e.textContent="Â (Owner)"},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Hk(t){let e,n,r=(t[8].user.username||t[8].user.email)+"",i,s,o=t[8].isOwner&&Uk();return{c(){e=C("div"),n=C("span"),i=oe(r),o&&o.c(),w(n,"class","name svelte-1aba10i"),w(n,"title",s=t[8].user.email),w(e,"class","person svelte-1aba10i"),ve(e,"owner",t[8].isOwner)},m(a,u){O(a,e,u),v(e,n),v(n,i),o&&o.m(n,null)},p(a,u){u&2&&r!==(r=(a[8].user.username||a[8].user.email)+"")&&Wt(i,r),a[8].isOwner?o||(o=Uk(),o.c(),o.m(n,null)):o&&(o.d(1),o=null),u&2&&s!==(s=a[8].user.email)&&w(n,"title",s),u&2&&ve(e,"owner",a[8].isOwner)},d(a){a&&I(e),o&&o.d()}}}function Vk(t){let e,n;return e=new We({props:{small:!0,circle:!0,outline:!0,title:"Will invite contributors to this private space",$$slots:{default:[Coe]},$$scope:{ctx:t}}}),e.$on("click",t[4]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&2048&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Coe(t){let e,n;return e=new et({props:{icon:Nm.faPlus}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Aoe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g;n=new wy({props:{options:[{value:!1,display:"Private"},{value:!0,display:"Shared"}],value:t[1].isPublic}}),n.$on("change",t[5]);let k=t[1].isPublic&&jk(t);function y(q,F){return q[1].isPublic?Toe:q[1].spaceUsers.length>1?Soe:koe}let b=y(t),S=b(t);a=new Tr({props:{$$slots:{default:[$oe]},$$scope:{ctx:t}}});let $=Ut(t[1].spaceUsers),D=[];for(let q=0;q<$.length;q+=1)D[q]=Hk(Bk(t,$,q));let P=!t[2]&&Vk(t);function x(q){t[6](q)}let R={space:t[1]};return t[2]!==void 0&&(R.isVisible=t[2]),h=new _oe({props:R}),Qe.push(()=>En(h,"isVisible",x)),{c(){e=C("span"),j(n.$$.fragment),r=N(),k&&k.c(),i=N(),s=C("p"),S.c(),o=N(),j(a.$$.fragment),u=N(),l=C("div");for(let q=0;q<D.length;q+=1)D[q].c();c=N(),P&&P.c(),d=N(),j(h.$$.fragment),w(s,"class","info svelte-1aba10i"),w(l,"class","contributors svelte-1aba10i"),w(e,"slot","content")},m(q,F){O(q,e,F),B(n,e,null),v(e,r),k&&k.m(e,null),v(e,i),v(e,s),S.m(s,null),v(e,o),B(a,e,null),v(e,u),v(e,l);for(let L=0;L<D.length;L+=1)D[L]&&D[L].m(l,null);v(l,c),P&&P.m(l,null),v(l,d),B(h,l,null),g=!0},p(q,F){const L={};F&2&&(L.value=q[1].isPublic),n.$set(L),q[1].isPublic?k?(k.p(q,F),F&2&&E(k,1)):(k=jk(q),k.c(),E(k,1),k.m(e,i)):k&&($e(),T(k,1,1,()=>{k=null}),Ce()),b!==(b=y(q))&&(S.d(1),S=b(q),S&&(S.c(),S.m(s,null)));const M={};if(F&2048&&(M.$$scope={dirty:F,ctx:q}),a.$set(M),F&2){$=Ut(q[1].spaceUsers);let H;for(H=0;H<$.length;H+=1){const J=Bk(q,$,H);D[H]?D[H].p(J,F):(D[H]=Hk(J),D[H].c(),D[H].m(l,c))}for(;H<D.length;H+=1)D[H].d(1);D.length=$.length}q[2]?P&&($e(),T(P,1,1,()=>{P=null}),Ce()):P?(P.p(q,F),F&4&&E(P,1)):(P=Vk(q),P.c(),E(P,1),P.m(l,d));const V={};F&2&&(V.space=q[1]),!m&&F&4&&(m=!0,V.isVisible=q[2],wn(()=>m=!1)),h.$set(V)},i(q){g||(E(n.$$.fragment,q),E(k),E(a.$$.fragment,q),E(P),E(h.$$.fragment,q),g=!0)},o(q){T(n.$$.fragment,q),T(k),T(a.$$.fragment,q),T(P),T(h.$$.fragment,q),g=!1},d(q){q&&I(e),z(n),k&&k.d(),S.d(),z(a),Ci(D,q),P&&P.d(),z(h)}}}function Doe(t){let e;return{c(){e=oe("Done")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Ioe(t){let e,n,r;return n=new We({props:{small:!0,$$slots:{default:[Doe]},$$scope:{ctx:t}}}),n.$on("click",t[3]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&2048&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Ooe(t){let e,n,r=t[0]&&zk(t);return{c(){r&&r.c(),e=Pt()},m(i,s){r&&r.m(i,s),O(i,e,s),n=!0}
1034,p(i,[s]){i[0]?r?(r.p(i,s),s&1&&E(r,1)):(r=zk(i),r.c(),E(r,1),r.m(e.parentNode,e)):r&&($e(),T(r,1,1,()=>{r=null}),Ce())},i(i){n||(E(r),n=!0)},o(i){T(r),n=!1},d(i){i&&I(e),r&&r.d(i)}}}function Noe(t,e,n){let{isVisible:r=!1}=e,{space:i}=e,s=!1;const o=()=>{n(0,r=!1),n(2,s=!1)},a=()=>{n(2,s=!0)},u=async()=>{await Fv({variables:{id:i.id,isPublic:!i.isPublic}})};function l(c){s=c,n(2,s)}return t.$$set=c=>{"isVisible"in c&&n(0,r=c.isVisible),"space"in c&&n(1,i=c.space)},[r,i,s,o,a,u,l]}class Roe extends pt{constructor(e){super(),ht(this,e,Noe,Ooe,dt,{isVisible:0,space:1},yoe)}}function Poe(t){Et(t,"svelte-ymlrql","li.svelte-ymlrql.svelte-ymlrql{line-height:2rem}h3.svelte-ymlrql.svelte-ymlrql{margin:2rem 0 0.5rem;font-size:1.6rem}h3.svelte-ymlrql.svelte-ymlrql:first-of-type{margin-top:0}.key.svelte-ymlrql.svelte-ymlrql{background-color:var(--c-border);border-radius:0.4rem;padding:0.3rem 0.5rem;font-weight:bold;font-size:11px}.key.svelte-ymlrql+.key.svelte-ymlrql{margin-left:0.25rem}.action.svelte-ymlrql.svelte-ymlrql{font-weight:bold}")}function Wk(t){let e,n,r,i,s;return{c(){e=C("li"),e.innerHTML='Double click to <span class="action svelte-ymlrql">create new note</span>',n=N(),r=C("li"),r.innerHTML='Double click a note to <span class="action svelte-ymlrql">edit</span>',i=N(),s=C("li"),s.innerHTML='Click outside to <span class="action svelte-ymlrql">finish editing</span>',w(e,"class","svelte-ymlrql"),w(r,"class","svelte-ymlrql"),w(s,"class","svelte-ymlrql")},m(o,a){O(o,e,a),O(o,n,a),O(o,r,a),O(o,i,a),O(o,s,a)},d(o){o&&(I(e),I(n),I(r),I(i),I(s))}}}function Gk(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y;return{c(){e=C("h3"),e.textContent="While Writing",n=N(),r=C("ul"),i=C("li"),i.innerHTML=`<span class="key svelte-ymlrql">SHIFT</span><span class="key svelte-ymlrql">ENTER</span> for 1035 <span class="action svelte-ymlrql">new line</span>`,s=N(),o=C("li"),a=C("span"),a.textContent=`${t[2]?"COMMAND":"CTRL"}`,u=C("span"),u.textContent="B",l=oe(` for 1036 `),c=C("span"),c.textContent="bold",d=N(),h=C("li"),m=C("span"),m.textContent=`${t[2]?"COMMAND":"CTRL"}`,g=C("span"),g.textContent="I",k=oe(` for 1037 `),y=C("span"),y.textContent="italic",w(e,"class","svelte-ymlrql"),w(i,"class","svelte-ymlrql"),w(a,"class","key svelte-ymlrql"),w(u,"class","key svelte-ymlrql"),w(c,"class","action svelte-ymlrql"),w(o,"class","svelte-ymlrql"),w(m,"class","key svelte-ymlrql"),w(g,"class","key svelte-ymlrql"),w(y,"class","action svelte-ymlrql"),w(h,"class","svelte-ymlrql")},m(b,S){O(b,e,S),O(b,n,S),O(b,r,S),v(r,i),v(r,s),v(r,o),v(o,a),v(o,u),v(o,l),v(o,c),v(r,d),v(r,h),v(h,m),v(h,g),v(h,k),v(h,y)},p:Ee,d(b){b&&(I(e),I(n),I(r))}}}function xoe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D=!t[0]&&Wk(),P=!t[0]&&Gk(t);return{c(){e=C("span"),n=C("h3"),n.textContent="On The Wall",r=N(),i=C("ul"),s=C("li"),s.innerHTML='Scroll to <span class="action svelte-ymlrql">pan</span>',o=N(),a=C("li"),a.innerHTML='Hold <span class="key svelte-ymlrql">SPACE</span> + click and drag to <span class="action svelte-ymlrql">pan</span>',u=N(),l=C("li"),c=oe("Hold "),d=C("span"),d.textContent=`${t[2]?"CTRL":"ALT"}`,h=oe(` + scroll to 1038 `),m=C("span"),m.textContent="zoom",g=N(),D&&D.c(),k=N(),P&&P.c(),y=N(),b=C("br"),S=N(),$=C("p"),$.innerHTML="Write to us at <b>[email protected]</b> for any questions or feedback.",w(n,"class","svelte-ymlrql"),w(s,"class","svelte-ymlrql"),w(a,"class","svelte-ymlrql"),w(d,"class","key svelte-ymlrql"),w(m,"class","action svelte-ymlrql"),w(l,"class","svelte-ymlrql"),w(e,"slot","content")},m(x,R){O(x,e,R),v(e,n),v(e,r),v(e,i),v(i,s),v(i,o),v(i,a),v(i,u),v(i,l),v(l,c),v(l,d),v(l,h),v(l,m),v(i,g),D&&D.m(i,null),v(e,k),P&&P.m(e,null),v(e,y),v(e,b),v(e,S),v(e,$)},p(x,R){x[0]?D&&(D.d(1),D=null):D||(D=Wk(),D.c(),D.m(i,null)),x[0]?P&&(P.d(1),P=null):P?P.p(x,R):(P=Gk(x),P.c(),P.m(e,y))},d(x){x&&I(e),D&&D.d(),P&&P.d()}}}function qoe(t){let e,n;return e=new Ar({props:{closeText:"Close",onClose:t[1],$$slots:{content:[xoe]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&17&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Foe(t,e,n){let{isInPublicSpace:r=!1}=e;const i=Cr(),s=()=>{i("hideHelpModal")},o=navigator.platform.indexOf("Mac")===0||navigator.platform=="iPhone";return t.$$set=a=>{"isInPublicSpace"in a&&n(0,r=a.isInPublicSpace)},[r,s,o]}class Loe extends pt{constructor(e){super(),ht(this,e,Foe,qoe,dt,{isInPublicSpace:0},Poe)}}function Moe(t){Et(t,"svelte-1eqn936",".listWrapper.svelte-1eqn936.svelte-1eqn936{display:flex;flex-direction:row;gap:1rem;margin-bottom:1em}.listWrapper.svelte-1eqn936>.svelte-1eqn936{flex-grow:0;flex-shrink:1;width:100%}p.svelte-1eqn936+p.svelte-1eqn936{margin-top:1rem}.list.svelte-1eqn936.svelte-1eqn936{max-height:240px;overflow-y:auto}.listItem.svelte-1eqn936.svelte-1eqn936{color:var(--c-text);font-weight:bold;cursor:pointer;padding:0.25rem 1rem;margin-bottom:0.5rem}.buttonGroup.svelte-1eqn936.svelte-1eqn936{display:flex;flex-direction:row;gap:2rem;padding-bottom:0.5rem}")}function Yk(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qk(t,e,n){const r=t.slice();return r[13]=e[n],r}function Boe(t){let e;return{c(){e=C("span"),e.textContent="Manage Entry Documents",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function zoe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m;s=new Tr({props:{$$slots:{default:[Uoe]},$$scope:{ctx:t}}});let g=Ut(t[0]),k=[];for(let S=0;S<g.length;S+=1)k[S]=Zk(Qk(t,g,S));c=new Tr({props:{$$slots:{default:[Hoe]},$$scope:{ctx:t}}});let y=Ut(t[1]),b=[];for(let S=0;S<y.length;S+=1)b[S]=Xk(Yk(t,y,S));
1038return{c(){e=C("p"),e.textContent="Entries can appear in multiple documents, managed below;",n=N(),r=C("div"),i=C("div"),j(s.$$.fragment),o=N(),a=C("div");for(let S=0;S<k.length;S+=1)k[S].c();u=N(),l=C("div"),j(c.$$.fragment),d=N(),h=C("div");for(let S=0;S<b.length;S+=1)b[S].c();w(a,"class","list svelte-1eqn936"),w(i,"class","svelte-1eqn936"),w(h,"class","list svelte-1eqn936"),w(l,"class","svelte-1eqn936"),w(r,"class","listWrapper svelte-1eqn936")},m(S,$){O(S,e,$),O(S,n,$),O(S,r,$),v(r,i),B(s,i,null),v(i,o),v(i,a);for(let D=0;D<k.length;D+=1)k[D]&&k[D].m(a,null);v(r,u),v(r,l),B(c,l,null),v(l,d),v(l,h);for(let D=0;D<b.length;D+=1)b[D]&&b[D].m(h,null);m=!0},p(S,$){const D={};if($&262144&&(D.$$scope={dirty:$,ctx:S}),s.$set(D),$&141){g=Ut(S[0]);let x;for(x=0;x<g.length;x+=1){const R=Qk(S,g,x);k[x]?k[x].p(R,$):(k[x]=Zk(R),k[x].c(),k[x].m(a,null))}for(;x<k.length;x+=1)k[x].d(1);k.length=g.length}const P={};if($&262144&&(P.$$scope={dirty:$,ctx:S}),c.$set(P),$&150){y=Ut(S[1]);let x;for(x=0;x<y.length;x+=1){const R=Yk(S,y,x);b[x]?b[x].p(R,$):(b[x]=Xk(R),b[x].c(),b[x].m(h,null))}for(;x<b.length;x+=1)b[x].d(1);b.length=y.length}},i(S){m||(E(s.$$.fragment,S),E(c.$$.fragment,S),m=!0)},o(S){T(s.$$.fragment,S),T(c.$$.fragment,S),m=!1},d(S){S&&(I(e),I(n),I(r)),z(s),Ci(k,S),z(c),Ci(b,S)}}}function joe(t){let e,n,r;return{c(){e=C("p"),e.innerHTML=`Notes and messages can be added to multiple documents<br/> 1039 but you don't have any documents to add to.`,n=N(),r=C("p"),r.textContent="Would you like to create a new document?",w(e,"class","svelte-1eqn936"),w(r,"class","svelte-1eqn936")},m(i,s){O(i,e,s),O(i,n,s),O(i,r,s)},p:Ee,i:Ee,o:Ee,d(i){i&&(I(e),I(n),I(r))}}}function Uoe(t){let e;return{c(){e=oe("Documents to add to")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Zk(t){let e,n=t[13].name+"",r,i,s,o;function a(){return t[10](t[13])}return{c(){e=C("div"),r=oe(n),i=N(),w(e,"class","listItem svelte-1eqn936"),He(e,"background-color",qu(t[13],t[2].darkMode).colorString),He(e,"margin-right",t[7]())},m(u,l){O(u,e,l),v(e,r),v(e,i),s||(o=Ie(e,"click",a),s=!0)},p(u,l){t=u,l&1&&n!==(n=t[13].name+"")&&Wt(r,n),l&5&&He(e,"background-color",qu(t[13],t[2].darkMode).colorString)},d(u){u&&I(e),s=!1,o()}}}function Hoe(t){let e;return{c(){e=oe("Documents to remove from")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Xk(t){let e,n=t[13].name+"",r,i,s,o;function a(){return t[11](t[13])}return{c(){e=C("div"),r=oe(n),i=N(),w(e,"class","listItem svelte-1eqn936"),He(e,"background-color",qu(t[13],t[2].darkMode).colorString),He(e,"margin-right",t[7]())},m(u,l){O(u,e,l),v(e,r),v(e,i),s||(o=Ie(e,"click",a),s=!0)},p(u,l){t=u,l&2&&n!==(n=t[13].name+"")&&Wt(r,n),l&6&&He(e,"background-color",qu(t[13],t[2].darkMode).colorString)},d(u){u&&I(e),s=!1,o()}}}function Voe(t){let e,n,r,i;const s=[joe,zoe],o=[];function a(u,l){return u[0].length===0&&u[1].length===0?0:1}return n=a(t),r=o[n]=s[n](t),{c(){e=C("span"),r.c(),w(e,"slot","content")},m(u,l){O(u,e,l),o[n].m(e,null),i=!0},p(u,l){let c=n;n=a(u),n===c?o[n].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),r=o[n],r?r.p(u,l):(r=o[n]=s[n](u),r.c()),E(r,1),r.m(e,null))},i(u){i||(E(r),i=!0)},o(u){T(r),i=!1},d(u){u&&I(e),o[n].d()}}}function Woe(t){let e,n;return e=new We({props:{small:!0,$$slots:{default:[Yoe]},$$scope:{ctx:t}}}),e.$on("click",t[6]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&262144&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Goe(t){let e,n,r,i,s;return n=new We({props:{small:!0,$$slots:{default:[Qoe]},$$scope:{ctx:t}}}),n.$on("click",t[5]),i=new We({props:{outline:!0,small:!0,$$slots:{default:[Zoe]},$$scope:{ctx:t}}}),i.$on("click",t[6]),{c(){e=C("div"),j(n.$$.fragment),r=N(),j(i.$$.fragment),w(e,"class","buttonGroup svelte-1eqn936")},m(o,a){O(o,e,a),B(n,e,null),v(e,r),B(i,e,null),s=!0},p(o,a){const u={};a&262144&&(u.$$scope={dirty:a,ctx:o}),n.$set(u);const l={};a&262144&&(l.$$scope={dirty:a,ctx:o}),i.$set(l)},i(o){s||(E(n.$$.fragment,o),E(i.$$.fragment,o),s=!0)},o(o){T(n.$$.fragment,o),T(i.$$.fragment,o),s=!1},d(o){o&&I(e),z(n),z(i)}}}function Yoe(t){let e;return{c(){e=oe("Done")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Qoe(t){let e;return{c(){e=oe("Create new document")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Zoe(t){let e;return{c(){e=oe("Not now")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Xoe(t){let e,n,r,i;const s=[Goe,Woe],o=[];function a(u,l){return u[0].length===0&&u[1].length===0?0:1}return n=a(t),r=o[n]=s[n](t),{c(){e=C("span"),r.c(),w(e,"slot","primaryButton")},m(u,l){O(u,e,l),o[n].m(e,null),i=!0},p(u,l){let c=n;n=a(u),n===c?o[n].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),r=o[n],r?r.p(u,l):(r=o[n]=s[n](u),r.c()),E(r,1),r.m(e,null))},i(u){i||(E(r),i=!0)},o(u){T(r),i=!1},d(u){u&&I(e),o[n].d()}}}function Koe(t){let e,n;
1039return e=new Ar({props:{medium:!0,$$slots:{primaryButton:[Xoe],content:[Voe],title:[Boe]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&262151&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Joe(t,e,n){let r;Ke(t,ji,y=>n(2,r=y));const i=Cr();let{books:s}=e,{entry:o}=e,a=[],u=[];const l=async y=>{const b=await g0({variables:{id:o.id,entryBooks:[{command:m0.Set,bookId:y}]}});n(8,o=b.data.editEntry.entry)},c=async y=>{const b=await g0({variables:{id:o.id,entryBooks:[{command:m0.Del,bookId:y}]}});n(8,o=b.data.editEntry.entry)},d=()=>i("createNewBook"),h=()=>i("close"),m=()=>Math.round(Math.random()*3)+"rem",g=y=>l(y.id),k=y=>c(y.id);return t.$$set=y=>{"books"in y&&n(9,s=y.books),"entry"in y&&n(8,o=y.entry)},t.$$.update=()=>{t.$$.dirty&768&&n(0,a=s.filter(y=>!Ba(o.books).map(b=>b.id).includes(y.id))),t.$$.dirty&256&&n(1,u=[...Ba(o.books)])},[a,u,r,l,c,d,h,m,o,s,g,k]}class eae extends pt{constructor(e){super(),ht(this,e,Joe,Koe,dt,{books:9,entry:8},Moe)}}const tae=t=>{const e=new URLSearchParams(t);return Object.fromEntries(e.entries())},nae=t=>hr(t,e=>tae((e==null?void 0:e.search)||""));function rae(t){Et(t,"svelte-1o24grc",".CanvasMultiSelect.svelte-1o24grc{outline:solid 2px var(--c-text-strong);position:absolute;z-index:2147483647;background:rgba(255, 255, 255, 0.1);cursor:grab}")}function iae(t){let e,n,r=`${2*t[2]}px`,i=`${4*t[2]}px`,s=`${t[1][0]}px`,o=`${t[1][1]}px`,a,u;return{c(){e=C("div"),w(e,"class","CanvasMultiSelect svelte-1o24grc"),He(e,"outline-width",r),He(e,"outline-offset",i),He(e,"width",s),He(e,"height",o)},m(l,c){O(l,e,c),a||(u=[Ie(e,"neodrag",t[3]),Ie(e,"neodrag:end",t[4]),zr(n=hm.call(null,e,{grid:[zn,zn],ignoreMultitouch:!0,cancel:".dont-drag",position:{x:t[0][0],y:t[0][1]},gpuAcceleration:!0}))],a=!0)},p(l,[c]){n&&di(n.update)&&c&1&&n.update.call(null,{grid:[zn,zn],ignoreMultitouch:!0,cancel:".dont-drag",position:{x:l[0][0],y:l[0][1]},gpuAcceleration:!0}),c&4&&r!==(r=`${2*l[2]}px`)&&He(e,"outline-width",r),c&4&&i!==(i=`${4*l[2]}px`)&&He(e,"outline-offset",i),c&2&&s!==(s=`${l[1][0]}px`)&&He(e,"width",s),c&2&&o!==(o=`${l[1][1]}px`)&&He(e,"height",o)},i:Ee,o:Ee,d(l){l&&I(e),a=!1,fn(u)}}}function sae(t,e,n){let{pos:r}=e,{size:i}=e,{reverseScale:s=1}=e;const o=Cr(),a=l=>{o("drag",l.detail)},u=l=>{o("dragEnd",l.detail)};return t.$$set=l=>{"pos"in l&&n(0,r=l.pos),"size"in l&&n(1,i=l.size),"reverseScale"in l&&n(2,s=l.reverseScale)},[r,i,s,a,u]}class oae extends pt{constructor(e){super(),ht(this,e,sae,iae,dt,{pos:0,size:1,reverseScale:2},rae)}}var N7={},R7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="house",r=576,i=512,s=[127968,63498,63500,"home","home-alt","home-lg-alt"],o="f015",a="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faHouse=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(R7);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=R7;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faHome=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(N7);var P7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="box-archive",r=512,i=512,s=["archive"],o="f187",a="M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faBoxArchive=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(P7);var x7={};
1039(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="wrench",r=512,i=512,s=[128295],o="f0ad",a="M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faWrench=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(x7);function aae(t){Et(t,"svelte-tscw1c",".ChatStream.svelte-tscw1c.svelte-tscw1c{position:relative;display:flex;flex-direction:column;justify-content:flex-end;height:min-content;border-left:1px solid transparent;z-index:20}.ChatStream.svelte-tscw1c.svelte-tscw1c:not(.minimized){min-width:36rem;max-width:36rem;height:100%;filter:brightness(0.97);background-color:var(--bgColor);background-image:var(--c-space-gradient)}.ChatStream:not(.minimized) + .ChatStream:not(.minimized){border-left-color:var(--c-window-border)}.ChatStream:hover + .ChatStream:not(.minimized){border-left-color:var(--c-window-border)}.ChatStream:not(.minimized) + .ChatStream:hover{border-left-color:var(--c-window-border)}.ChatStream.minimized.svelte-tscw1c.svelte-tscw1c{cursor:pointer}.ChatStream.minimized.svelte-tscw1c:hover .title.svelte-tscw1c{opacity:1}.stateIndicator.svelte-tscw1c.svelte-tscw1c{margin:var(--e-spacing);margin-top:0}.minimized.svelte-tscw1c .stateIndicator.svelte-tscw1c{display:none}.stateIndicator.walletEmpty.svelte-tscw1c span.danger.svelte-tscw1c{color:var(--c-accent)}.header.svelte-tscw1c.svelte-tscw1c{position:absolute;z-index:2;width:100%;min-width:20rem;top:0;padding-top:1.6rem}.header.svelte-tscw1c .buttons.svelte-tscw1c{opacity:0.25}.header.svelte-tscw1c .buttons.hovering.svelte-tscw1c{opacity:1}.minimized.svelte-tscw1c .header.svelte-tscw1c{position:relative;margin-top:auto;min-width:unset;width:unset}.header.svelte-tscw1c .title.svelte-tscw1c{color:var(--c-text);outline:0;margin:0 var(--e-spacing);width:calc(100% - 9rem);cursor:text}.minimized.svelte-tscw1c .header .title.svelte-tscw1c{writing-mode:tb;transform:rotate(-180deg);padding:1.5rem 0.5rem;opacity:0.6;width:unset;cursor:pointer}.minimizeButton.svelte-tscw1c.svelte-tscw1c{display:inline-block;transform:rotate(45deg);font-size:1.8rem}.welcome.svelte-tscw1c.svelte-tscw1c{margin:6rem var(--e-spacing) 0}.welcome.svelte-tscw1c ul.svelte-tscw1c{margin-top:1rem;margin-left:var(--e-spacing)}@media screen and (max-width: 768px){.ChatStream.svelte-tscw1c.svelte-tscw1c:not(.minimized){min-width:100%;max-width:100%}.ChatStream.minimized.svelte-tscw1c .header .title.svelte-tscw1c{margin:0 0.5rem}}")}function Kk(t){let e,n;return e=new Ar({props:{medium:!0,onClose:t[33],closeText:"Cancel",$$slots:{primaryButton:[fae],content:[lae],title:[uae]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&16392|i[1]&134217728&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function uae(t){let e;return{c(){e=C("span"),e.textContent="Are you sure?",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function lae(t){let e,n,r,i=t[3].title+"",s,o;return{c(){e=C("span"),n=C("p"),r=oe('Your chat titled "'),s=oe(i),o=oe(`" will be archived and won't be accessible 1040 anymore.`),w(e,"slot","content")},m(a,u){O(a,e,u),v(e,n),v(n,r),v(n,s),v(n,o)},p(a,u){u[0]&8&&i!==(i=a[3].title+"")&&Wt(s,i)},d(a){a&&I(e)}}}function cae(t){let e;return{c(){e=oe("Archive")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function fae(t){let e,n,r;return n=new We({props:{small:!0,destroy:!0,disabled:t[14],margin:"0 0.5rem 0 0",$$slots:{default:[cae]},$$scope:{ctx:t}}}),n.$on("click",t[34]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};
1040s[0]&16384&&(o.disabled=i[14]),s[1]&134217728&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Jk(t){let e,n,r,i,s,o,a=t[16].canDebugConversations&&eS(t);return r=new We({props:{tiny:!0,circle:!0,reveal:!0,danger:!0,pos:{top:1.7,right:4.8},$$slots:{default:[hae]},$$scope:{ctx:t}}}),r.$on("click",t[32]),s=new We({props:{small:!0,circle:!0,reveal:!0,pos:{top:1.2,right:1.6},$$slots:{default:[pae]},$$scope:{ctx:t}}}),s.$on("click",t[27]),{c(){e=C("div"),a&&a.c(),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),w(e,"class","buttons svelte-tscw1c"),ve(e,"hovering",t[8])},m(u,l){O(u,e,l),a&&a.m(e,null),v(e,n),B(r,e,null),v(e,i),B(s,e,null),o=!0},p(u,l){u[16].canDebugConversations?a?(a.p(u,l),l[0]&65536&&E(a,1)):(a=eS(u),a.c(),E(a,1),a.m(e,n)):a&&($e(),T(a,1,1,()=>{a=null}),Ce());const c={};l[1]&134217728&&(c.$$scope={dirty:l,ctx:u}),r.$set(c);const d={};l[1]&134217728&&(d.$$scope={dirty:l,ctx:u}),s.$set(d),(!o||l[0]&256)&&ve(e,"hovering",u[8])},i(u){o||(E(a),E(r.$$.fragment,u),E(s.$$.fragment,u),o=!0)},o(u){T(a),T(r.$$.fragment,u),T(s.$$.fragment,u),o=!1},d(u){u&&I(e),a&&a.d(),z(r),z(s)}}}function eS(t){let e,n;return e=new We({props:{tiny:!0,circle:!0,reveal:!0,pos:{top:1.7,right:7.8},href:`/debug-conversation/${t[3].id}`,$$slots:{default:[dae]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.href=`/debug-conversation/${r[3].id}`),i[1]&134217728&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function dae(t){let e,n;return e=new et({props:{icon:x7.faWrench}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function hae(t){let e,n;return e=new et({props:{icon:P7.faBoxArchive}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function pae(t){let e,n,r;return n=new et({props:{icon:Ed.faArrowDown}}),{c(){e=C("span"),j(n.$$.fragment),w(e,"class","minimizeButton svelte-tscw1c")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p:Ee,i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function tS(t){let e,n,r,i,s;function o(c){t[39](c)}function a(c){t[40](c)}function u(c){t[41](c)}let l={query:{type:rs.AgentConversation,spaceId:t[2],agentConversationId:t[3].id},isInPublicSpace:t[4],selectedEntryOnStream:t[12],$$slots:{default:[mae]},$$scope:{ctx:t}};return t[9]!==void 0&&(l.onScrollReset=t[9]),t[1]!==void 0&&(l.onLoadRecent=t[1]),t[10]!==void 0&&(l.onReload=t[10]),e=new Ay({props:l}),Qe.push(()=>En(e,"onScrollReset",o)),Qe.push(()=>En(e,"onLoadRecent",a)),Qe.push(()=>En(e,"onReload",u)),e.$on("reply",t[24]),e.$on("pin",t[42]),e.$on("focus",t[43]),e.$on("addToBook",t[44]),e.$on("select",t[23]),{c(){j(e.$$.fragment)},m(c,d){B(e,c,d),s=!0},p(c,d){const h={};d[0]&12&&(h.query={type:rs.AgentConversation,spaceId:c[2],agentConversationId:c[3].id}),d[0]&16&&(h.isInPublicSpace=c[4]),d[0]&4096&&(h.selectedEntryOnStream=c[12]),d[1]&134217728&&(h.$$scope={dirty:d,ctx:c}),!n&&d[0]&512&&(n=!0,h.onScrollReset=c[9],wn(()=>n=!1)),!r&&d[0]&2&&(r=!0,h.onLoadRecent=c[1],wn(()=>r=!1)),!i&&d[0]&1024&&(i=!0,h.onReload=c[10],wn(()=>i=!1)),e.$set(h)},i(c){s||(E(e.$$.fragment,c),s=!0)},o(c){T(e.$$.fragment,c),s=!1},d(c){z(e,c)}}}function mae(t){let e;return{c(){e=C("div"),e.innerHTML='<p><b>Chat with the AI Assistant (ChatGPT 4o Mini)</b></p> <ul class="svelte-tscw1c"><li>Ask questions to expand your ideas</li> <li>
1040Pin valuable insights to the wall</li> <li>Add personal notes to create context</li></ul>',w(e,"class","welcome svelte-tscw1c")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function nS(t){let e;return{c(){e=C("div"),e.textContent="Assistant is typing...",w(e,"class","stateIndicator typingIndicator svelte-tscw1c")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function rS(t){let e;return{c(){e=C("div"),e.textContent="Assistant failed to answer your question, please try again...",w(e,"class","stateIndicator errorIndicator svelte-tscw1c")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function iS(t){let e,n,r,i,s,o;function a(d,h){return d[18].balance>0?vae:gae}let u=a(t),l=u(t),c=t[19].canLoadCredit&&sS(t);return{c(){e=C("div"),l.c(),n=N(),c&&c.c(),r=N(),i=C("form"),s=C("input"),w(e,"class","stateIndicator walletEmpty svelte-tscw1c"),w(s,"type","hidden"),w(s,"name","access_token"),s.value=t[20],w(i,"action","/api/load-credit"),w(i,"method","post")},m(d,h){O(d,e,h),l.m(e,null),v(e,n),c&&c.m(e,null),O(d,r,h),O(d,i,h),v(i,s),t[45](i),o=!0},p(d,h){u===(u=a(d))&&l?l.p(d,h):(l.d(1),l=u(d),l&&(l.c(),l.m(e,n))),d[19].canLoadCredit?c?(c.p(d,h),h[0]&524288&&E(c,1)):(c=sS(d),c.c(),E(c,1),c.m(e,null)):c&&($e(),T(c,1,1,()=>{c=null}),Ce()),(!o||h[0]&1048576)&&(s.value=d[20])},i(d){o||(E(c),o=!0)},o(d){T(c),o=!1},d(d){d&&(I(e),I(r),I(i)),l.d(),c&&c.d(),t[45](null)}}}function gae(t){let e,n;function r(o,a){return o[19].canLoadCredit?_ae:bae}let i=r(t),s=i(t);return{c(){e=C("span"),n=oe(`Your AI chat credits have finished. 1041 `),s.c(),w(e,"class","danger svelte-tscw1c")},m(o,a){O(o,e,a),v(e,n),s.m(e,null)},p(o,a){i!==(i=r(o))&&(s.d(1),s=i(o),s&&(s.c(),s.m(e,null)))},d(o){o&&I(e),s.d()}}}function vae(t){let e;return{c(){e=C("span"),e.textContent="Your AI chat credits are running out",w(e,"class","warning")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function bae(t){let e;return{c(){e=oe("Subscribe to be able to purchase more.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function _ae(t){let e;return{c(){e=oe("Purchase more to continue chatting.")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function sS(t){let e,n;return e=new We({props:{tiny:!0,semiTransparent:!0,$$slots:{default:[yae]},$$scope:{ctx:t}}}),e.$on("click",t[35]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&134217728&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function yae(t){let e;return{c(){e=oe("Add $10")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function oS(t){let e,n,r={minimized:t[0],inReplyTo:t[11],hovering:t[8],spaceId:t[2],placeholder:t[5],prompt:"Send",canPasteFile:!1};return e=new XC({props:r}),t[46](e),e.$on("cancelReply",t[25]),e.$on("submit",t[26]),e.$on("expand",t[28]),{c(){j(e.$$.fragment)},m(i,s){B(e,i,s),n=!0},p(i,s){const o={};s[0]&1&&(o.minimized=i[0]),s[0]&2048&&(o.inReplyTo=i[11]),s[0]&256&&(o.hovering=i[8]),s[0]&4&&(o.spaceId=i[2]),s[0]&32&&(o.placeholder=i[5]),e.$set(o)},i(i){n||(E(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){t[46](null),z(e,i)}}}function wae(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y=t[13]&&Kk(t);s=new H_({props:{isEnabled:!t[0],changeHandler:t[31],value:t[3].title}});let b=!t[0]&&Jk(t),S=!t[0]&&tS(t),$=t[17]===yl.Waiting&&nS(),D=t[17]===yl.Failed&&rS(),P=t[18].balance<=.15&&iS(t),x=t[18].balance>0&&oS(t);return{c(){y&&y.c(),e=N(),n=C("div"),r=C("div"),i=C("h2"),j(s.$$.fragment),o=N(),b&&b.c(),a=N(),S&&S.c(),u=N(),$&&$.c(),l=N(),D&&D.c(),c=N(),P&&P.c(),d=N(),x&&x.c(),w(i,"class","title svelte-tscw1c"),w(r,"class","header svelte-tscw1c"),w(n,"class","ChatStream svelte-tscw1c"),w(n,"data-id",h=t[3].id),ve(n,"minimized",t[0])},m(R,q){y&&y.m(R,q),O(R,e,q),O(R,n,q),v(n,r),v(r,i),B(s,i,null),v(r,o),b&&b.m(r,null),v(n,a),S&&S.m(n,null),v(n,u),$&&$.m(n,null),v(n,l),D&&D.m(n,null),v(n,c),P&&P.m(n,null),v(n,d),x&&x.m(n,null),t[47](n),m=!0,g||(k=[Ie(n,"mouseup",t[29]),Ie(n,"mouseenter",t[48]),Ie(n,"mouseleave",t[49])],g=!0)},p(R,q){R[13]?y?(y.p(R,q),q[0]&8192&&E(y,1)):(y=Kk(R),y.c(),E(y,1),y.m(e.parentNode,e)):y&&($e(),T(y,1,1,()=>{y=null}),Ce());const F={};q[0]&1&&(F.isEnabled=!R[0]),q[0]&8&&(F.value=R[3].title),s.$set(F),R[0]?b&&($e(),T(b,1,1,()=>{b=null}),Ce()):b?(b.p(R,q),q[0]&1&&E(b,1)):(b=Jk(R),b.c(),E(b,1),b.m(r,
1041null)),R[0]?S&&($e(),T(S,1,1,()=>{S=null}),Ce()):S?(S.p(R,q),q[0]&1&&E(S,1)):(S=tS(R),S.c(),E(S,1),S.m(n,u)),R[17]===yl.Waiting?$||($=nS(),$.c(),$.m(n,l)):$&&($.d(1),$=null),R[17]===yl.Failed?D||(D=rS(),D.c(),D.m(n,c)):D&&(D.d(1),D=null),R[18].balance<=.15?P?(P.p(R,q),q[0]&262144&&E(P,1)):(P=iS(R),P.c(),E(P,1),P.m(n,d)):P&&($e(),T(P,1,1,()=>{P=null}),Ce()),R[18].balance>0?x?(x.p(R,q),q[0]&262144&&E(x,1)):(x=oS(R),x.c(),E(x,1),x.m(n,null)):x&&($e(),T(x,1,1,()=>{x=null}),Ce()),(!m||q[0]&8&&h!==(h=R[3].id))&&w(n,"data-id",h),(!m||q[0]&1)&&ve(n,"minimized",R[0])},i(R){m||(E(y),E(s.$$.fragment,R),E(b),E(S),E(P),E(x),m=!0)},o(R){T(y),T(s.$$.fragment,R),T(b),T(S),T(P),T(x),m=!1},d(R){R&&(I(e),I(n)),y&&y.d(R),z(s),b&&b.d(),S&&S.d(),$&&$.d(),D&&D.d(),P&&P.d(),x&&x.d(),t[47](null),g=!1,fn(k)}}}function Eae(t,e,n){let r,i,s,o,a,u,l;Ke(t,ji,X=>n(52,i=X)),Ke(t,vi,X=>n(16,s=X)),Ke(t,yd,X=>n(18,a=X)),Ke(t,wd,X=>n(19,u=X)),Ke(t,Ma,X=>n(20,l=X));let c,{spaceId:d}=e,{agentConversation:h}=e,{isInPublicSpace:m=!1}=e,{placeholder:g="Send message..."}=e,{minimized:k=!1}=e,{hue:y=210}=e,{saturation:b=10}=e,{lightness:S=94}=e,$;const D=bG({variables:{id:h.id},initialFetchPolicy:"cache-and-network"});Ke(t,D,X=>n(51,r=X));const P=cy();let x=P;const R=Cr();let q,{onLoadRecent:F=void 0}=e,L;const M=nn([]);let V=!1,H=null,J=null;const Z=X=>{n(12,J=X.detail.entry)},Q=X=>{n(11,H=X.detail.entry),$.focus()},K=()=>{n(11,H=null)},G=async X=>{try{V=!0;const ye=await sG({variables:{spaceId:d,agentConversationId:h.id,attachmentIds:X.detail.attachmentIds,content:X.detail.content}}),{errors:Xe}=ye.data.agentConversationChat;M.set(Xe),Xe.length===0&&($.reset(),n(11,H=null),R("entryCreated"),await ie())}catch(ye){console.log(ye)}finally{V=!1}},se=()=>{k||(n(0,k=!0),n(8,x=x),R("minimized",{agentConversation:h}))},fe=()=>{k&&(n(0,k=!1),R("expanded",{agentConversation:h}))},me=()=>{fe(),n(12,J=null)},Ae=()=>{if(!c)return;const X=i.darkMode?b*.25:b*.4,ye=i.darkMode?S*2.25:S*1.025,Xe=i.darkMode?S*1.5:S*.97;document.body.style.setProperty("--bubbleColorLight",`hsl(${y}, ${X}%, ${ye}%)`),document.body.style.setProperty("--bubbleColorDark",`hsl(${y}, ${X}%, ${Xe}%)`),c.style.setProperty("--bgColor",`hsla(${y}, ${b}%, ${S}%, 0.92)`)};$r(()=>{Ae()}),sc().store.listen(X=>{X.message.subject===`/AgentConversation/${h.id}`&&r.query.refetch()});const ue=hr(D,X=>{var ye,Xe;return((Xe=(ye=X==null?void 0:X.data)===null||ye===void 0?void 0:ye.agentConversation)===null||Xe===void 0?void 0:Xe.state)||yl.Idle});Ke(t,ue,X=>n(17,o=X));const ie=async()=>{await F(),q()},de=async X=>rG({variables:{id:h.id,title:X}});let Fe=!1,Ve=!1;const Te=()=>{n(13,Fe=!0)},we=()=>{n(13,Fe=!1)},je=async()=>{n(14,Ve=!0);try{await iG({variables:{id:h.id}}),n(13,Fe=!1)}finally{n(14,Ve=!1)}};let Je;const Ne=()=>{Je.submit()};function Ge(X){q=X,n(9,q)}function nt(X){F=X,n(1,F)}function rt(X){L=X,n(10,L)}function Ze(X){Ht.call(this,t,X)}function at(X){Ht.call(this,t,X)}function bt(X){Ht.call(this,t,X)}function he(X){Qe[X?"unshift":"push"](()=>{Je=X,n(15,Je)})}function Pe(X){Qe[X?"unshift":"push"](()=>{$=X,n(7,$)})}function Se(X){Qe[X?"unshift":"push"](()=>{c=X,n(6,c)})}const Le=()=>n(8,x=!0),te=()=>n(8,x=P);return t.$$set=X=>{"spaceId"in X&&n(2,d=X.spaceId),"agentConversation"in X&&n(3,h=X.agentConversation),"isInPublicSpace"in X&&n(4,m=X.isInPublicSpace),"placeholder"in X&&n(5,g=X.placeholder),"minimized"in X&&n(0,k=X.minimized),"hue"in X&&n(36,y=X.hue),"saturation"in X&&n(37,b=X.saturation),"lightness"in X&&n(38,S=X.lightness),"onLoadRecent"in X&&n(1,F=X.onLoadRecent)},t.$$.update=()=>{t.$$.dirty[0]&8&&qd({type:Qr.Chat,agentConversation:h}),t.$$.dirty[1]&224&&Ae()},[k,F,d,h,m,g,c,$,x,q,L,H,J,Fe,Ve,Je,s,o,a,u,l,D,P,Z,Q,K,G,se,fe,me,ue,de,Te,we,je,Ne,y,b,S,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te]}class kae extends pt{constructor(e){super(),ht(this,e,Eae,wae,dt,{spaceId:2,agentConversation:3,isInPublicSpace:4,placeholder:5,minimized:0,hue:36,saturation:37,lightness:38,onLoadRecent:1},aae,[-1,-1])}}var q7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="angle-left",r=320,i=512,s=[8249],o="f104",a="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faAngleLeft=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(q7);function Sae(t){Et(t,"svelte-1nqi8s8",`.DrawerStream.svelte-1nqi8s8.svelte-1nqi8s8{position:relative;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;min-width:32rem;max-width:32rem;height:100%;z-index:21;margin-left:-1rem;background-color:var(--c-outerspace);transition-property:margin;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s}.DrawerStream.hidden.svelte-1nqi8s8.svelte-1nqi8s8{margin-left:-32rem}.toggle.svelte-1nqi8s8.svelte-1nqi8s8{display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 3rem);right:-2rem;width:2rem;height:6rem;font-size:2rem;background-color:var(--c-outerspace);border-top-right-radius:1rem;border-bottom-right-radius:1rem;color:var(--c-text-faded);border:none;cursor:pointer}.toggle.svelte-1nqi8s8.svelte-1nqi8s8:hover{color:var(--c-text-hover)}.toggle.svelte-1nqi8s8 .inbox.svelte-1nqi8s8{display:block;position:relative;font-size:1.5rem;font-weight:bold}.toggle.svelte-1nqi8s8 .inbox.isFull.svelte-1nqi8s8::before{content:" ";position:absolute;
1041left:0.4rem;top:0.5rem;width:0.7rem;height:0.15rem;border-radius:0.2rem;background-color:var(--c-text-faded)}.toggle.svelte-1nqi8s8 .inbox.isFull.svelte-1nqi8s8::after{content:" ";position:absolute;left:0.3rem;top:0.75rem;width:0.9rem;height:0.15rem;border-radius:0.2rem;background-color:var(--c-text-faded)}.corner.svelte-1nqi8s8.svelte-1nqi8s8{--radius:2rem;position:absolute;right:calc(-1 * var(--radius));width:var(--radius);height:var(--radius);overflow:hidden}.corner.svelte-1nqi8s8.svelte-1nqi8s8::after{content:"";position:absolute;left:calc(var(--radius) * -1);width:calc(var(--radius) * 2);height:calc(var(--radius) * 2);border-radius:50%;border:calc(var(--radius) * 1) solid var(--c-outerspace);background:rgba(0, 0, 0, 0)}.corner.top.svelte-1nqi8s8.svelte-1nqi8s8{top:0rem}.corner.top.svelte-1nqi8s8.svelte-1nqi8s8::after{top:calc(var(--radius) * -1)}.corner.bottom.svelte-1nqi8s8.svelte-1nqi8s8{bottom:0rem}.corner.bottom.svelte-1nqi8s8.svelte-1nqi8s8::after{top:calc(var(--radius) * -2)}.DrawerStream.svelte-1nqi8s8 .Stream{mask:linear-gradient( 1042 transparent 1rem, 1043 black 4, 1044 black calc(100% - 4rem), 1045 transparent calc(100% - 1rem) 1046 );-webkit-mask:linear-gradient( 1047 transparent 1rem, 1048 black 4rem, 1049 black calc(100% - 4rem), 1050 transparent calc(100% - 1rem) 1051 )}.welcome.svelte-1nqi8s8.svelte-1nqi8s8{margin:6rem var(--e-spacing) 0}.welcome.svelte-1nqi8s8 ul.svelte-1nqi8s8{margin-top:1rem;margin-left:var(--e-spacing)}.noExtension.svelte-1nqi8s8.svelte-1nqi8s8{margin-top:var(--e-spacing);color:var(--c-accent)}body.extensionInstalled .noExtension{display:none}`)}function Tae(t){let e;return{c(){e=oe("Install browser extension")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function $ae(t){let e,n,r,i,s,o,a,u;return a=new We({props:{block:!0,href:"https://chrome.google.com/webstore/detail/hyperplace/kbanfkffoldngciemjinoaealhjaniol",target:"_blank",$$slots:{default:[Tae]},$$scope:{ctx:t}}}),{c(){e=C("div"),n=C("p"),n.innerHTML="<b>Save relevant links, notes and images</b>",r=N(),i=C("ul"),i.innerHTML="<li>Ideas sent with the extension appear here</li> <li>
1051Move and visually organize them on the wall</li> <li>Add personal notes on the wall for context</li>",s=N(),o=C("div"),j(a.$$.fragment),w(i,"class","svelte-1nqi8s8"),w(o,"class","noExtension svelte-1nqi8s8"),w(e,"class","welcome svelte-1nqi8s8")},m(l,c){O(l,e,c),v(e,n),v(e,r),v(e,i),v(e,s),v(e,o),B(a,o,null),u=!0},p(l,c){const d={};c&268435456&&(d.$$scope={dirty:c,ctx:l}),a.$set(d)},i(l){u||(E(a.$$.fragment,l),u=!0)},o(l){T(a.$$.fragment,l),u=!1},d(l){l&&I(e),z(a)}}}function Cae(t){let e,n,r;return e=new et({props:{icon:q7.faAngleLeft}}),{c(){j(e.$$.fragment),n=oe("Â ")},m(i,s){B(e,i,s),O(i,n,s),r=!0},p:Ee,i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Aae(t){let e,n,r,i;return n=new et({props:{icon:yy.faInbox}}),{c(){e=C("small"),j(n.$$.fragment),r=oe("Â "),w(e,"class","inbox svelte-1nqi8s8"),ve(e,"isFull",t[3]>0)},m(s,o){O(s,e,o),B(n,e,null),v(e,r),i=!0},p(s,o){(!i||o&8)&&ve(e,"isFull",s[3]>0)},i(s){i||(E(n.$$.fragment,s),i=!0)},o(s){T(n.$$.fragment,s),i=!1},d(s){s&&I(e),z(n)}}}function aS(t){let e,n;return e=new Oy({props:{entryToDestroy:t[8]}}),e.$on("entryDestroyed",t[14]),e.$on("cancel",t[15]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&256&&(s.entryToDestroy=r[8]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Dae(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S;function $(L){t[16](L)}function D(L){t[17](L)}let P={query:{type:rs.All,spaceId:t[2],drawer:!0},isInPublicSpace:t[4],selectedEntryOnStream:t[7],$$slots:{default:[$ae]},$$scope:{ctx:t}};t[1]!==void 0&&(P.onLoadRecent=t[1]),t[6]!==void 0&&(P.onReload=t[6]),n=new Ay({props:P}),Qe.push(()=>En(n,"onLoadRecent",$)),Qe.push(()=>En(n,"onReload",D)),n.$on("delete",t[13]),n.$on("pin",t[18]),n.$on("inaccessible",t[19]),n.$on("focus",t[20]),n.$on("addToBook",t[21]),n.$on("showUploadLimitExceededModal",t[22]),n.$on("select",t[11]);const x=[Aae,Cae],R=[];function q(L,M){return L[0]?0:1}a=q(t),u=R[a]=x[a](t);let F=!!t[8]&&aS(t);return{c(){e=C("div"),j(n.$$.fragment),s=N(),o=C("button"),u.c(),c=N(),d=C("div"),h=N(),m=C("div"),g=N(),F&&F.c(),k=Pt(),w(o,"title",l=t[9]()),w(o,"class","toggle svelte-1nqi8s8"),w(d,"class","corner top svelte-1nqi8s8"),w(m,"class","corner bottom svelte-1nqi8s8"),w(e,"class","DrawerStream svelte-1nqi8s8"),ve(e,"hidden",t[0])},m(L,M){O(L,e,M),B(n,e,null),v(e,s),v(e,o),R[a].m(o,null),v(e,c),v(e,d),v(e,h),v(e,m),O(L,g,M),F&&F.m(L,M),O(L,k,M),y=!0,b||(S=[Ie(o,"click",t[12]),Ie(e,"mouseenter",t[23]),Ie(e,"mouseleave",t[24])],b=!0)},p(L,[M]){const V={};M&4&&(V.query={type:rs.All,spaceId:L[2],drawer:!0}),M&16&&(V.isInPublicSpace=L[4]),M&128&&(V.selectedEntryOnStream=L[7]),M&268435456&&(V.$$scope={dirty:M,ctx:L}),!r&&M&2&&(r=!0,V.onLoadRecent=L[1],wn(()=>r=!1)),!i&&M&64&&(i=!0,V.onReload=L[6],wn(()=>i=!1)),n.$set(V);let H=a;a=q(L),a===H?R[a].p(L,M):($e(),T(R[H],1,1,()=>{R[H]=null}),Ce(),u=R[a],u?u.p(L,M):(u=R[a]=x[a](L),u.c()),E(u,1),u.m(o,null)),(!y||M&512&&l!==(l=L[9]()))&&w(o,"title",l),(!y||M&1)&&ve(e,"hidden",L[0]),L[8]?F?(F.p(L,M),M&256&&E(F,1)):(F=aS(L),F.c(),E(F,1),F.m(k.parentNode,k)):F&&($e(),T(F,1,1,()=>{F=null}),Ce())},i(L){y||(E(n.$$.fragment,L),E(u),E(F),y=!0)},o(L){T(n.$$.fragment,L),T(u),T(F),y=!1},d(L){L&&(I(e),I(g),I(k)),z(n),R[a].d(),F&&F.d(L),b=!1,fn(S)}}}function Iae(t,e,n){let r,{spaceId:i=null}=e,{count:s=0}=e,{isInPublicSpace:o=!1}=e;qd({type:Qr.Drawer});let{hidden:a=!1}=e;const u=cy();let l=u;const c=Cr();let{onLoadRecent:d=void 0}=e,h,m=null;const g=H=>{n(7,m=H.detail.entry)},k=()=>{a?(n(0,a=!1),c("expanded")):(n(0,a=!0),n(5,l=l),n(7,m=null),c("minimized"))};let y=null;const b=async H=>{const{entry:J}=H.detail;n(8,y=J)},S=()=>{h(),n(8,y=null)},$=()=>{n(8,y=null)};function D(H){d=H,n(1,d)}function P(H){h=H,n(6,h)}function x(H){Ht.call(this,t,H)}function R(H){Ht.call(this,t,H)}function q(H){Ht.call(this,t,H)}function F(H){Ht.call(this,t,H)}function L(H){Ht.call(this,t,H)}const M=()=>n(5,l=!0),V=()=>n(5,l=u);return t.$$set=H=>{"spaceId"in H&&n(2,i=H.spaceId),"count"in H&&n(3,s=H.count),"isInPublicSpace"in H&&n(4,o=H.isInPublicSpace),"hidden"in H&&n(0,a=H.hidden),"onLoadRecent"in H&&n(1,d=H.onLoadRecent)}
1051,t.$$.update=()=>{t.$$.dirty&9&&n(9,r=()=>a?s>1?`Open drawer with ${s} items`:s===1?"Open drawer with 1 item":"Open drawer":"Close drawer")},document.body.classList.contains("extensionInstalled"),[a,d,i,s,o,l,h,m,y,r,u,g,k,b,S,$,D,P,x,R,q,F,L,M,V]}class Oae extends pt{constructor(e){super(),ht(this,e,Iae,Dae,dt,{spaceId:2,count:3,isInPublicSpace:4,hidden:0,onLoadRecent:1},Sae)}}const{window:uS}=U0;function Nae(t){Et(t,"svelte-8top3j",'body.locked{overscroll-behavior-y:none;overflow:hidden}.stateDebug.svelte-8top3j.svelte-8top3j{font-size:1rem;font-family:monospace;position:fixed;bottom:1rem;width:100%;text-align:center;pointer-events:none;z-index:999;opacity:50%}.SpaceWrapper.svelte-8top3j.svelte-8top3j{transform:translate3d(0, 0, 0);position:fixed;width:100%;height:100%;padding:1rem;background-color:var(--c-outerspace)}.Space.svelte-8top3j.svelte-8top3j{position:fixed;left:1rem;right:1rem;top:1rem;bottom:1rem;display:flex;align-items:flex-end;overflow-x:scroll;overflow-y:hidden;background-color:var(--c-space-bg);background-image:var(--c-space-gradient-radial);border-radius:2rem}.placeTitle.svelte-8top3j.svelte-8top3j{font-size:1.3rem;padding:0.9rem;max-width:calc(50vw - 35.5rem);opacity:0.75}.SearchPanel-wrapper.svelte-8top3j.svelte-8top3j{z-index:4}.spaceActions.svelte-8top3j.svelte-8top3j,.canvasControls.svelte-8top3j.svelte-8top3j{display:flex;flex-direction:row;justify-content:flex-end;position:fixed;gap:0.5rem;user-select:none}.spaceActions.svelte-8top3j.svelte-8top3j{top:2rem;right:2rem;z-index:10}.canvasControls.svelte-8top3j.svelte-8top3j{top:2rem;left:50%;transform:translateX(-50%);z-index:10}.canvasControls.svelte-8top3j .toggleGroup.svelte-8top3j{display:flex;gap:0;border-radius:2rem;background-color:var(--c-book-bg);border:2px solid var(--c-book-bg)}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j{position:relative;width:3rem;height:3rem;margin:0.2rem;border-radius:2rem;-webkit-appearance:none;box-shadow:none;border:none;background:transparent;cursor:ew-resize;transition-property:background-color, width;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j::before{content:attr(data-percent) "%";position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-size:1.1rem;font-weight:bold;color:var(--c-text);opacity:0.8}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:hover,.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:active,.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:focus-within{background:var(--c-border-dark);width:12rem}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:hover::before{opacity:1}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:hover::-webkit-slider-thumb,.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:active::-webkit-slider-thumb,.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j:focus-within::-webkit-slider-thumb{opacity:1}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid var(--c-text);width:3rem;height:3rem;border-radius:2rem;transition-property:transform border-color;transition-timing-function:var(--transition-timing-function);transition-duration:0.2s;opacity:0}.canvasControls.svelte-8top3j input[type="range"].svelte-8top3j::-webkit-slider-thumb:hover{transform:scale(1.15)}.questionMark.svelte-8top3j.svelte-8top3j{font-size:1.8rem}.textIcon.svelte-8top3j.svelte-8top3j{font-family:"Courier New", Courier, monospace;font-weight:bold;text-align:center}.textIconSmall.svelte-8top3j.svelte-8top3j{display:inline-block;width:1.6rem;height:1.6rem;margin-bottom:0.4rem;vertical-align:middle;font-size:1.5rem;line-height:1.7rem;color:var(--c-text-inverse);background-color:var(--c-text);border-radius:0.2rem}.textIconSmall.active.svelte-8top3j.svelte-8top3j{background-color:var(--c-card);color:var(--c-text)}.textIconBig.svelte-8top3j.svelte-8top3j{font-size:2rem;line-height:2.1rem;vertical-align:text-top}.welcome.svelte-8top3j.svelte-8top3j{position:absolute;width:40rem;transform:translate(-50%, -60%);pointer-events:none;user-select:none;padding:1.5rem 2.5rem;line-height:2.2rem;background:var(--c-card);border-radius:2rem}
1051.welcome.svelte-8top3j h2.svelte-8top3j,.welcome.svelte-8top3j p.svelte-8top3j,.welcome.svelte-8top3j ol.svelte-8top3j{margin-bottom:2rem}.welcome.svelte-8top3j ol li.svelte-8top3j{padding-left:0.3rem;margin-left:-0.2rem;line-height:2.5rem}.welcome.svelte-8top3j ol li.svelte-8top3j::marker{font-size:1.3rem;font-weight:bold;color:var(--c-accent);margin-right:2ch}.welcome.svelte-8top3j ol li.svelte-8top3j:last-of-type::marker{content:"+â";font-size:1.5rem}.welcome.svelte-8top3j ol li span.svelte-8top3j{font-size:2.4rem;vertical-align:bottom}.welcome.svelte-8top3j .cta.svelte-8top3j{color:var(--c-accent)}.newChatButton.svelte-8top3j.svelte-8top3j,.newDocumentButton.svelte-8top3j.svelte-8top3j{margin:1.6rem;white-space:nowrap}.spacer.svelte-8top3j.svelte-8top3j{flex-grow:1}.mb15.svelte-8top3j.svelte-8top3j{margin-bottom:1.5rem}.baseState-addingNote .canvas, .baseState-addingText .canvas{cursor:crosshair}@media screen and (max-width: 768px){.canvasControls.svelte-8top3j.svelte-8top3j{display:none}}')}function lS(t,e,n){const r=t.slice();return r[148]=e[n],r}function cS(t,e,n){const r=t.slice();return r[151]=e[n],r}function fS(t,e,n){const r=t.slice();return r[154]=e[n],r[155]=e,r[156]=n,r}function dS(t){let e,n;return e=new zse({props:{space:t[3]}}),e.$on("close",t[74]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.space=r[3]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Rae(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt=t[33]&&xae(t);function Ze(ce){t[99](ce)}function at(ce){t[101](ce)}let bt={canDragSelect:[t[1].Ready,t[1].Editing,t[1].AddingNote,t[1].AddingText].includes(t[2])&&!t[3].isVisiting,initialFocus:t[8],initialZoom:t[0],isPanning:t[2]===t[1].Panning,$$slots:{default:[qae]},$$scope:{ctx:t}};t[6]!==void 0&&(bt.centerPos=t[6]),t[0]!==void 0&&(bt.zoom=t[0]),n=new vse({props:bt}),Qe.push(()=>En(n,"centerPos",Ze)),t[100](n),Qe.push(()=>En(n,"zoom",at)),n.$on("entryDrop",t[70]),n.$on("dragSelect",t[81]),n.$on("dragSelectStart",t[35].dragSelectStart),n.$on("dragSelectEnd",t[35].dragSelectEnd),n.$on("doubleClick",t[77]),n.$on("zoomChange",t[62]),n.$on("positionChange",t[64]),n.$on("panStart",t[65]),n.$on("panEnd",t[66]),n.$on("click",t[80]),a=new We({props:{small:!0,circle:!0,reveal:!0,margin:"0.2rem 0",title:"Go to initial location",$$slots:{default:[Fae]},$$scope:{ctx:t}}}),a.$on("click",t[88]),c=new We({props:{small:!0,circle:!0,transparent:t[4]!==t[1].Ready,title:"Select (V)",cursor:"default",$$slots:{default:[Lae]},$$scope:{ctx:t}}}),c.$on("click",t[35].ready),h=new We({props:{small:!0,circle:!0,transparent:t[4]!==t[1].AddingNote,title:"Add note (N)",cursor:"default",$$slots:{default:[Mae]},$$scope:{ctx:t}}}),h.$on("click",t[35].addingNoteStart),k=new We({props:{small:!0,circle:!0,transparent:t[4]!==t[1].AddingText,title:"Add title (T)",cursor:"default",$$slots:{default:[Bae]},$$scope:{ctx:t}}}),k.$on("click",t[35].addingTextStart),b=new We({props:{small:!0,circle:!0,transparent:t[4]!==t[1].Panning,title:"Pan (Hold space bar)",cursor:"default",$$slots:{default:[zae]},$$scope:{ctx:t}}}),b.$on("click",t[65]);let he=!t[3].isVisiting&&gS(t),Pe=!t[3].isVisiting&&_S(t),Se=Ut(t[3].books),Le=[];for(let ce=0;ce<Se.length;ce+=1)Le[ce]=wS(lS(t,Se,ce));const te=ce=>T(Le[ce],1,1,()=>{Le[ce]=null});H=new H_({props:{changeHandler:t[90],isEnabled:!t[3].isVisiting,value:t[3].name}}),Q=new Kse({props:{spaceId:t[3].id}}),Q.$on("pin",t[57]),Q.$on("focus",t[60]),Q.$on("showUploadLimitExceededModal",t[53]);let X=!t[3].isVisiting&&ES(t);se=new We({props:{circle:!0,reveal:!0,title:"Help",$$slots:{default:[Gae]},$$scope:{ctx:t}}}),se.$on("click",t[48]);let ye=!t[3].isVisiting&&kS(t);const Xe=[Jae,Kae],Be=[];function it(ce,pe){return ce[30]?0:1}Ae=it(t),ee=Be[Ae]=Xe[Ae](t);function mt(ce){t[105](ce)}let Ct={space:t[3]};t[14]!==void 0&&(Ct.isVisible=t[14]),ie=new Roe({props:Ct}),Qe.push(()=>En(ie,"isVisible",mt));let ft=t[27]&&SS(t),It=t[24]&&TS(t),Tt=t[17]&&$S(t),_t=t[19]&&CS(t),gt=t[13]&&AS(t);return{c(){rt&&rt.c(),e=N(),j(n.$$.fragment),s=N(),o=C("div"),j(a.$$.fragment),u=N(),l=C("div"),j(c.$$.fragment),d=N(),j(h.$$.fragment),m=N(),g=C("div"),j(k.$$.fragment),y=N(),j(b.$$.fragment),S=N(),$=C("input"),P=N(),he&&he.c(),x=N(),R=C("div"),q=N(),Pe&&Pe.c(),F=N();for(let ce=0;ce<Le.length;ce+=1)Le[ce].c();L=N(),M=C("div"),V=C("h2"),j(H.$$.fragment),J=N(),Z=C("div"),j(Q.$$.fragment),K=N(),X&&X.c(),G=N(),j(se.$$.fragment),fe=N(),ye&&ye.c(),me=N(),ee.c(),ue=N(),j(ie.$$.fragment),Fe=N(),ft&&ft.c(),Ve=N(),It&&It.c(),Te=N(),Tt&&Tt.c(),we=N(),_t&&_t.c(),je=N(),gt&>.c(),Je=Pt(),w(g,"class","button text"),w(l,"class","toggleGroup svelte-8top3j"),w($,"type","range"),w($,"name","zoom"),w($,"id","zoom"),w($,"min","0.15"),w($,"max","1"),w($,"step","0.01"),w($,"title","Adjust zoom (CTRL + mouse scroll)"),w($,"data-
1051percent",D=Math.floor(t[0]*100)),w($,"class","svelte-8top3j"),w(o,"class","canvasControls svelte-8top3j"),w(R,"class","spacer svelte-8top3j"),w(V,"class","placeTitle svelte-8top3j"),w(Z,"class","SearchPanel-wrapper svelte-8top3j"),w(M,"class","spaceActions svelte-8top3j")},m(ce,pe){rt&&rt.m(ce,pe),O(ce,e,pe),B(n,ce,pe),O(ce,s,pe),O(ce,o,pe),B(a,o,null),v(o,u),v(o,l),B(c,l,null),v(l,d),B(h,l,null),v(l,m),v(l,g),B(k,g,null),v(l,y),B(b,l,null),v(o,S),v(o,$),Yr($,t[0]),O(ce,P,pe),he&&he.m(ce,pe),O(ce,x,pe),O(ce,R,pe),O(ce,q,pe),Pe&&Pe.m(ce,pe),O(ce,F,pe);for(let st=0;st<Le.length;st+=1)Le[st]&&Le[st].m(ce,pe);O(ce,L,pe),O(ce,M,pe),v(M,V),B(H,V,null),v(M,J),v(M,Z),B(Q,Z,null),v(M,K),X&&X.m(M,null),v(M,G),B(se,M,null),v(M,fe),ye&&ye.m(M,null),v(M,me),Be[Ae].m(M,null),O(ce,ue,pe),B(ie,ce,pe),O(ce,Fe,pe),ft&&ft.m(ce,pe),O(ce,Ve,pe),It&&It.m(ce,pe),O(ce,Te,pe),Tt&&Tt.m(ce,pe),O(ce,we,pe),_t&&_t.m(ce,pe),O(ce,je,pe),gt&>.m(ce,pe),O(ce,Je,pe),Ne=!0,Ge||(nt=[Ie($,"change",t[102]),Ie($,"input",t[102]),Ie($,"input",t[63])],Ge=!0)},p(ce,pe){ce[33]&&rt.p(ce,pe);const st={};pe[0]&14&&(st.canDragSelect=[ce[1].Ready,ce[1].Editing,ce[1].AddingNote,ce[1].AddingText].includes(ce[2])&&!ce[3].isVisiting),pe[0]&256&&(st.initialFocus=ce[8]),pe[0]&1&&(st.initialZoom=ce[0]),pe[0]&6&&(st.isPanning=ce[2]===ce[1].Panning),pe[0]&618664073|pe[1]&3|pe[5]&4&&(st.$$scope={dirty:pe,ctx:ce}),!r&&pe[0]&64&&(r=!0,st.centerPos=ce[6],wn(()=>r=!1)),!i&&pe[0]&1&&(i=!0,st.zoom=ce[0],wn(()=>i=!1)),n.$set(st);const vn={};pe[5]&4&&(vn.$$scope={dirty:pe,ctx:ce}),a.$set(vn);const Tn={};pe[0]&18&&(Tn.transparent=ce[4]!==ce[1].Ready),pe[5]&4&&(Tn.$$scope={dirty:pe,ctx:ce}),c.$set(Tn);const bn={};pe[0]&18&&(bn.transparent=ce[4]!==ce[1].AddingNote),pe[0]&6|pe[5]&4&&(bn.$$scope={dirty:pe,ctx:ce}),h.$set(bn);const kn={};pe[0]&18&&(kn.transparent=ce[4]!==ce[1].AddingText),pe[5]&4&&(kn.$$scope={dirty:pe,ctx:ce}),k.$set(kn);const $n={};if(pe[0]&18&&($n.transparent=ce[4]!==ce[1].Panning),pe[5]&4&&($n.$$scope={dirty:pe,ctx:ce}),b.$set($n),(!Ne||pe[0]&1&&D!==(D=Math.floor(ce[0]*100)))&&w($,"data-percent",D),pe[0]&1&&Yr($,ce[0]),ce[3].isVisiting?he&&($e(),T(he,1,1,()=>{he=null}),Ce()):he?(he.p(ce,pe),pe[0]&8&&E(he,1)):(he=gS(ce),he.c(),E(he,1),he.m(x.parentNode,x)),ce[3].isVisiting?Pe&&($e(),T(Pe,1,1,()=>{Pe=null}),Ce()):Pe?(Pe.p(ce,pe),pe[0]&8&&E(Pe,1)):(Pe=_S(ce),Pe.c(),E(Pe,1),Pe.m(F.parentNode,F)),pe[0]&268435496|pe[1]&608174080|pe[2]&536871936){Se=Ut(ce[3].books);let be;for(be=0;be<Se.length;be+=1){const tt=lS(ce,Se,be);Le[be]?(Le[be].p(tt,pe),E(Le[be],1)):(Le[be]=wS(tt),Le[be].c(),E(Le[be],1),Le[be].m(L.parentNode,L))}for($e(),be=Se.length;be<Le.length;be+=1)te(be);Ce()}const qt={};pe[0]&8&&(qt.isEnabled=!ce[3].isVisiting),pe[0]&8&&(qt.value=ce[3].name),H.$set(qt);const Rn={};pe[0]&8&&(Rn.spaceId=ce[3].id),Q.$set(Rn),ce[3].isVisiting?X&&($e(),T(X,1,1,()=>{X=null}),Ce()):X?(X.p(ce,pe),pe[0]&8&&E(X,1)):(X=ES(ce),X.c(),E(X,1),X.m(M,G));const Hn={};pe[5]&4&&(Hn.$$scope={dirty:pe,ctx:ce}),se.$set(Hn),ce[3].isVisiting?ye&&($e(),T(ye,1,1,()=>{ye=null}),Ce()):ye?(ye.p(ce,pe),pe[0]&8&&E(ye,1)):(ye=kS(ce),ye.c(),E(ye,1),ye.m(M,me));let Sn=Ae;Ae=it(ce),Ae!==Sn&&($e(),T(Be[Sn],1,1,()=>{Be[Sn]=null}),Ce(),ee=Be[Ae],ee||(ee=Be[Ae]=Xe[Ae](ce),ee.c()),E(ee,1),ee.m(M,null));const Zt={};pe[0]&8&&(Zt.space=ce[3]),!de&&pe[0]&16384&&(de=!0,Zt.isVisible=ce[14],wn(()=>de=!1)),ie.$set(Zt),ce[27]?ft?(ft.p(ce,pe),pe[0]&134217728&&E(ft,1)):(ft=SS(ce),ft.c(),E(ft,1),ft.m(Ve.parentNode,Ve)):ft&&($e(),T(ft,1,1,()=>{ft=null}),Ce()),ce[24]?It?(It.p(ce,pe),pe[0]&16777216&&E(It,1)):(It=TS(ce),It.c(),E(It,1),It.m(Te.parentNode,Te)):It&&($e(),T(It,1,1,()=>{It=null}),Ce()),ce[17]?Tt?(Tt.p(ce,pe),pe[0]&131072&&E(Tt,1)):(Tt=$S(ce),Tt.c(),E(Tt,1),Tt.m(we.parentNode,we)):Tt&&($e(),T(Tt,1,1,()=>{Tt=null}),Ce()),ce[19]?_t?(_t.p(ce,pe),pe[0]&524288&&E(_t,1)):(_t=CS(ce),_t.c(),E(_t,1),_t.m(je.parentNode,je)):_t&&($e(),T(_t,1,1,()=>{_t=null}),Ce()),ce[13]?gt?(gt.p(ce,pe),pe[0]&8192&&E(gt,1)):(gt=AS(ce),gt.c(),E(gt,1),gt.m(Je.parentNode,Je)):gt&&($e(),T(gt,1,1,()=>{gt=null}),Ce())},i(ce){if(!Ne){E(n.$$.fragment,ce),E(a.$$.fragment,ce),E(c.$$.fragment,ce),E(h.$$.fragment,ce),E(k.$$.fragment,ce),E(b.$$.fragment,ce),E(he),E(Pe);for(let pe=0;pe<Se.length;pe+=1)E(Le[pe]);E(H.$$.fragment,ce),E(Q.$$.fragment,ce),E(X),E(se.$$.fragment,ce),E(ye),E(ee),E(ie.$$.fragment,ce),E(ft),E(It),E(Tt),E(_t),E(gt),Ne=!0}},o(ce){T(n.$$.fragment,ce),T(a.$$.fragment,ce),T(c.$$.fragment,ce),T(h.$$.fragment,ce),T(k.$$.fragment,ce),T(b.$$.fragment,ce),T(he),T(Pe),Le=Le.filter(Boolean);for(let pe=0;pe<Le.length;pe+=1)T(Le[pe]);T(H.$$.fragment,ce),T(Q.$$.fragment,ce),T(X),T(se.$$.fragment,ce),T(ye),T(ee),T(ie.$$.fragment,ce),T(ft),T(It),T(Tt),T(_t),T(gt),Ne=!1},d(ce){ce&&(I(e),I(s),I(o),I(P),I(x),I(R),I(q),I(F),I(L),I(M),I(ue),I(Fe),I(Ve),I(Te),I(we),I(je),I(Je)),rt&&rt.d(ce),t[100](null),z(n,ce),z(a),z(c),z(h),z(k),z(b),he&&he.d(ce),Pe&&Pe.d(ce),Ci(Le,ce),z(H),z(Q),X&&X.d(),z(se),ye&&ye.d(),Be[Ae].d(),z(ie,ce),ft&&ft.d(ce),It&&It.d(ce),Tt&&Tt.d(ce),_t&&_t.d(ce),gt&>.d(ce),Ge=!1,fn(nt)}}}function Pae(t){let e,n;return e=new pm({}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function xae(t){let e,n;return{c(){e=C("div"),n=oe(t[2]),w(e,"class","stateDebug svelte-8top3j")},m(r,i){O(r,e,i),v(e,n)},p(r,i){i[0]&4&&Wt(n,r[2])},d(r){r&&I(e)}}}function hS(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S;return l=new et({props:{icon:xd.faThumbtack}}),k=new et({props:{icon:yy.faInbox}}),{c(){e=C("div"),n=C("h2"),n.innerHTML="A new place for working on your ideas!<br/>This is where it begins ð±",r=N(),i=C("ol"),s=C("li"),s.innerHTML='Chat with the AI assistant on the left <span class="svelte-8top3j">â</span>',o=N(),a=C("li"),u=oe("Pin and visualize notes and insights on the wall "),j(l.$$.fragment),c=N(),d=C("li"),d.innerHTML='Write down longer documents on the right <span class="svelte-8top3j">â</span>',h=N(),m=C("li"),g=oe("Unplaced ideas go to the drawer on the left "),j(k.$$.fragment),y=N(),b=C("p"),b.innerHTML='<span class="cta svelte-8top3j"><b>Double click</b> anywhere to create a new note</span><br/> <small>Click the <b>?</b> icon on top right for more actions</small>',w(n,"class","svelte-8top3j"),w(s,"class","svelte-8top3j"),w(a,"class","svelte-8top3j"),w(d,"class","svelte-8top3j"),w(m,"class","svelte-8top3j"),w(i,"class","svelte-8top3j"),w(b,"class","svelte-8top3j"),w(e,"class","welcome svelte-8top3j")},m($,D){O($,e,D),v(e,n),v(e,r),v(e,i),v(i,s),v(i,o),v(i,a),v(a,u),B(l,a,null),v(i,c),v(i,d),v(i,h),v(i,m),v(m,g),B(k,m,null),v(e,y),v(e,b),S=!0},i($){S||(E(l.$$.fragment,$),E(k.$$.fragment,$),S=!0)},o($){T(l.$$.fragment,$),T(k.$$.fragment,$),S=!1},d($){$&&I(e),z(l),z(k)}}}function pS(t,e){let n,r,i=e[154],s;const o=()=>e[98](r,i),a=()=>e[98](null,i);
1051let u={selected:e[29].includes(e[154].id)?e[29].length>1?Da.Multi:Da.Single:!1,objectState:e[154].state,objectId:e[154].id,isInPublicSpace:e[3].isVisiting,spaceColors:{hue:e[21],saturation:e[22],lightness:e[23]},initialState:e[26][e[154].id],canvasZoom:e[0],entry:e[154].entry};return r=new mie({props:u}),o(),r.$on("unpin",e[61]),r.$on("duplicate",e[84]),r.$on("change",e[67]),r.$on("dragStart",e[35].moveStart),r.$on("dragEnd",e[35].moveEnd),r.$on("click",e[79]),r.$on("idleStart",e[78]),r.$on("resizeStart",e[35].resizeStart),r.$on("resizeEnd",e[35].resizeEnd),r.$on("editStart",e[35].editStart),r.$on("editEnd",e[35].editEnd),r.$on("addToBook",e[72]),r.$on("showUploadLimitExceededModal",e[53]),r.$on("delete",e[85]),{key:t,first:null,c(){n=Pt(),j(r.$$.fragment),this.first=n},m(l,c){O(l,n,c),B(r,l,c),s=!0},p(l,c){e=l,i!==e[154]&&(a(),i=e[154],o());const d={};c[0]&536870912|c[1]&1&&(d.selected=e[29].includes(e[154].id)?e[29].length>1?Da.Multi:Da.Single:!1),c[1]&1&&(d.objectState=e[154].state),c[1]&1&&(d.objectId=e[154].id),c[0]&8&&(d.isInPublicSpace=e[3].isVisiting),c[0]&14680064&&(d.spaceColors={hue:e[21],saturation:e[22],lightness:e[23]}),c[0]&67108864|c[1]&1&&(d.initialState=e[26][e[154].id]),c[0]&1&&(d.canvasZoom=e[0]),c[1]&1&&(d.entry=e[154].entry),r.$set(d)},i(l){s||(E(r.$$.fragment,l),s=!0)},o(l){T(r.$$.fragment,l),s=!1},d(l){l&&I(n),a(),z(r,l)}}}function mS(t){let e,n;const r=[t[32],{reverseScale:t[7]}];let i={};for(let s=0;s<r.length;s+=1)i=ks(i,r[s]);return e=new oae({props:i}),e.$on("drag",t[82]),e.$on("dragEnd",t[83]),{c(){j(e.$$.fragment)},m(s,o){B(e,s,o),n=!0},p(s,o){const a=o[0]&128|o[1]&2?Vl(r,[o[1]&2&&hf(s[32]),o[0]&128&&{reverseScale:s[7]}]):{};e.$set(a)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){T(e.$$.fragment,s),n=!1},d(s){z(e,s)}}}function qae(t){let e,n=[],r=new Map,i,s,o,a=t[31].length===0&&hS(),u=Ut(t[31]);const l=d=>d[154].id;for(let d=0;d<u.length;d+=1){let h=fS(t,u,d),m=l(h);r.set(m,n[d]=pS(m,h))}let c=t[32]&&mS(t);return{c(){a&&a.c(),e=N();for(let d=0;d<n.length;d+=1)n[d].c();i=N(),c&&c.c(),s=Pt()},m(d,h){a&&a.m(d,h),O(d,e,h);for(let m=0;m<n.length;m+=1)n[m]&&n[m].m(d,h);O(d,i,h),c&&c.m(d,h),O(d,s,h),o=!0},p(d,h){d[31].length===0?a?h[1]&1&&E(a,1):(a=hS(),a.c(),E(a,1),a.m(e.parentNode,e)):a&&($e(),T(a,1,1,()=>{a=null}),Ce()),h[0]&618663945|h[1]&1077936145|h[2]&12780576&&(u=Ut(d[31]),$e(),n=fo(n,h,l,1,d,u,r,i.parentNode,co,pS,i,fS),Ce()),d[32]?c?(c.p(d,h),h[1]&2&&E(c,1)):(c=mS(d),c.c(),E(c,1),c.m(s.parentNode,s)):c&&($e(),T(c,1,1,()=>{c=null}),Ce())},i(d){if(!o){E(a);for(let h=0;h<u.length;h+=1)E(n[h]);E(c),o=!0}},o(d){T(a);for(let h=0;h<n.length;h+=1)T(n[h]);T(c),o=!1},d(d){d&&(I(e),I(i),I(s)),a&&a.d(d);for(let h=0;h<n.length;h+=1)n[h].d(d);c&&c.d(d)}}}function Fae(t){let e,n;return e=new et({props:{icon:r7.faArrowsToDot}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Lae(t){let e,n,r;return n=new et({props:{icon:n7.faArrowPointer}}),{c(){e=oe("Â "),j(n.$$.fragment)},m(i,s){O(i,e,s),B(n,i,s),r=!0},p:Ee,i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n,i)}}}function Mae(t){let e;return{c(){e=C("span"),e.textContent="T",w(e,"class","textIcon textIconSmall svelte-8top3j"),ve(e,"active",t[2]===t[1].AddingNote)},m(n,r){O(n,e,r)},p(n,r){r[0]&6&&ve(e,"active",n[2]===n[1].AddingNote)},d(n){n&&I(e)}}}function Bae(t){let e;return{c(){e=C("span"),e.textContent="T",w(e,"class","textIcon textIconBig svelte-8top3j")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function zae(t){let e,n;return e=new et({props:{icon:t7.faHand}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function gS(t){let e,n,r,i,s,o,a;function u(m){t[103](m)}let l={hidden:t[3].preferences.viewMode===Kl.Wall,count:t[3].drawerEntriesCount,spaceId:t[3].id};t[11]!==void 0&&(l.onLoadRecent=t[11]),e=new Oae({props:l}),Qe.push(()=>En(e,"onLoadRecent",u)),e.$on("showUploadLimitExceededModal",t[53]),e.$on("inaccessible",t[45]),e.$on("minimized",t[59]),e.$on("expanded",t[58]),e.$on("pin",t[57]),e.$on("focus",t[60]),e.$on("addToBook",t[72]);let c=Ut(t[3].agentConversations),d=[];for(let m=0;m<c.length;m+=1)d[m]=vS(cS(t,c,m));const h=m=>T(d[m],1,1,()=>{d[m]=null});return o=new We({props:{title:"New AI chat",circle:t[3].agentConversations.length!=0,semiTransparent:!0,$$slots:{default:[jae]},$$scope:{ctx:t}}}),o.$on("click",t[89]),{c(){j(e.$$.fragment),r=N();for(let m=0;m<d.length;m+=1)d[m].c();i=N(),s=C("div"),j(o.$$.fragment),w(s,"class","newChatButton svelte-8top3j")},m(m,g){B(e,m,g),O(m,r,g);for(let k=0;k<d.length;k+=1)d[k]&&d[k].m(m,g);O(m,i,g),O(m,s,g),B(o,s,null),a=!0},p(m,g){const k={};if(g[0]&8&&(k.hidden=m[3].preferences.viewMode===Kl.Wall),g[0]&8&&(k.count=m[3].drawerEntriesCount),g[0]&8&&(k.spaceId=m[3].id),!n&&g[0]&2048&&(n=!0,k.onLoadRecent=m[11],wn(()=>n=!1)),e.$set(k),g[0]&14680072|g[1]&603979776|g[2]&1073742848|g[3]&1){c=Ut(m[3].agentConversations);let b;for(b=0;b<c.length;b+=1){const S=cS(m,c,b);d[b]?(d[b].p(S,g),E(d[b],1)):(d[b]=vS(S),d[b].c(),E(d[b],1),d[b].m(i.parentNode,i))}for($e(),b=c.length;b<d.length;b+=1)h(b);Ce()}const y={};g[0]&8&&(y.circle=m[3].agentConversations.length!=0),g[0]&8|g[5]&4&&(y.$$scope={dirty:g,ctx:m}),o.$set(y)},i(m){if(!a){E(e.$$.fragment,m);for(let g=0;g<c.length;g+=1)E(d[g]);E(o.$$.fragment,m),a=!0}}
1051,o(m){T(e.$$.fragment,m),d=d.filter(Boolean);for(let g=0;g<d.length;g+=1)T(d[g]);T(o.$$.fragment,m),a=!1},d(m){m&&(I(r),I(i),I(s)),z(e,m),Ci(d,m),z(o)}}}function vS(t){let e,n;return e=new kae({props:{spaceId:t[3].id,agentConversation:t[151],hue:t[21],saturation:t[22],lightness:t[23],minimized:!t[3].preferences.activeChatIds.includes(t[151].id)}}),e.$on("minimized",t[92]),e.$on("expanded",t[93]),e.$on("pin",t[57]),e.$on("focus",t[60]),e.$on("addToBook",t[72]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.spaceId=r[3].id),i[0]&8&&(s.agentConversation=r[151]),i[0]&2097152&&(s.hue=r[21]),i[0]&4194304&&(s.saturation=r[22]),i[0]&8388608&&(s.lightness=r[23]),i[0]&8&&(s.minimized=!r[3].preferences.activeChatIds.includes(r[151].id)),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function bS(t){let e;return{c(){e=oe("New AI chat")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function jae(t){let e,n,r,i;e=new et({props:{icon:Nm.faPlus}});let s=t[3].agentConversations.length===0&&bS();return{c(){j(e.$$.fragment),n=N(),s&&s.c(),r=Pt()},m(o,a){B(e,o,a),O(o,n,a),s&&s.m(o,a),O(o,r,a),i=!0},p(o,a){o[3].agentConversations.length===0?s||(s=bS(),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){T(e.$$.fragment,o),i=!1},d(o){o&&(I(n),I(r)),z(e,o),s&&s.d(o)}}}function _S(t){let e,n,r;return n=new We({props:{circle:t[3].books.length!=0,title:"New document",semiTransparent:!0,$$slots:{default:[Uae]},$$scope:{ctx:t}}}),n.$on("click",t[94]),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","newDocumentButton svelte-8top3j")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s[0]&8&&(o.circle=i[3].books.length!=0),s[0]&8|s[5]&4&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function yS(t){let e;return{c(){e=oe("New document")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Uae(t){let e,n,r,i;e=new et({props:{icon:Nm.faPlus}});let s=t[3].books.length===0&&yS();return{c(){j(e.$$.fragment),n=N(),s&&s.c(),r=Pt()},m(o,a){B(e,o,a),O(o,n,a),s&&s.m(o,a),O(o,r,a),i=!0},p(o,a){o[3].books.length===0?s||(s=yS(),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){T(e.$$.fragment,o),i=!1},d(o){o&&(I(n),I(r)),z(e,o),s&&s.d(o)}}}function wS(t){let e,n;return e=new U7({props:{book:t[148],navigateTo:t[5].navigateTo,minimized:!t[28].activeBookIds.includes(t[148].id),isVisiting:t[3].isVisiting}}),e.$on("addToBook",t[72]),e.$on("focus",t[60]),e.$on("toggle",t[91]),e.$on("pin",t[57]),e.$on("showUploadLimitExceededModal",t[53]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.book=r[148]),i[0]&32&&(s.navigateTo=r[5].navigateTo),i[0]&268435464&&(s.minimized=!r[28].activeBookIds.includes(r[148].id)),i[0]&8&&(s.isVisiting=r[3].isVisiting),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function ES(t){let e,n;return e=new We({props:{circle:!0,reveal:!0,title:"Participants & Sharing",$$slots:{default:[Wae]},$$scope:{ctx:t}}}),e.$on("click",t[50]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8|i[5]&4&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Hae(t){let e,n;return e=new et({props:{icon:XA.faUserLock}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Vae(t){let e,n;return e=new et({props:{icon:KA.faUsersRectangle}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Wae(t){let e,n,r,i;const s=[Vae,Hae],o=[];function a(u,l){return u[3].spaceUsers.length>1?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function Gae(t){let e;return{c(){e=C("span"),e.textContent="?",w(e,"class","questionMark svelte-8top3j")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function kS(t){let e,n;return e=new roe({props:{$$slots:{default:[Xae]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&524288|i[5]&4&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Yae(t){let e,n;return e=new et({props:{icon:e7.faCircleHalfStroke}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Qae(t){let e,n;return e=new et({props:{icon:JA.faPaperPlane}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Zae(t){let e,n;return e=new et({props:{icon:kd.faTrash}}
1051),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Xae(t){let e,n,r,i,s,o;return e=new We({props:{circle:!0,margin:"1rem 0 0 0",title:"Change ambiance",hovering:t[19],$$slots:{default:[Yae]},$$scope:{ctx:t}}}),e.$on("click",t[104]),r=new We({props:{circle:!0,margin:"1rem 0 0 0",title:"Connect space to Telegram",$$slots:{default:[Qae]},$$scope:{ctx:t}}}),r.$on("click",t[73]),s=new We({props:{circle:!0,margin:"1rem 0 0 0",title:"Delete space",danger:!0,$$slots:{default:[Zae]},$$scope:{ctx:t}}}),s.$on("click",t[54]),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment)},m(a,u){B(e,a,u),O(a,n,u),B(r,a,u),O(a,i,u),B(s,a,u),o=!0},p(a,u){const l={};u[0]&524288&&(l.hovering=a[19]),u[5]&4&&(l.$$scope={dirty:u,ctx:a}),e.$set(l);const c={};u[5]&4&&(c.$$scope={dirty:u,ctx:a}),r.$set(c);const d={};u[5]&4&&(d.$$scope={dirty:u,ctx:a}),s.$set(d)},i(a){o||(E(e.$$.fragment,a),E(r.$$.fragment,a),E(s.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),T(r.$$.fragment,a),T(s.$$.fragment,a),o=!1},d(a){a&&(I(n),I(i)),z(e,a),z(r,a),z(s,a)}}}function Kae(t){let e,n;return e=new We({props:{href:"/",circle:!0,reveal:!0,title:"Back to Hyper.place",$$slots:{default:[eue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Jae(t){let e,n;return e=new We({props:{href:"/",circle:!0,reveal:!0,title:"Back to places",$$slots:{default:[tue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function eue(t){let e,n;return e=new et({props:{icon:N7.faHome}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function tue(t){let e,n;return e=new et({props:{icon:_y.faTable}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function SS(t){let e,n;return e=new Oy({props:{entryToDestroy:t[27].entry}}),e.$on("cancel",t[86]),e.$on("entryDestroyed",t[87]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&134217728&&(s.entryToDestroy=r[27].entry),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function TS(t){let e,n;return e=new eae({props:{books:t[3].books,entry:t[24]}}),e.$on("close",t[71]),e.$on("createNewBook",t[94]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.books=r[3].books),i[0]&16777216&&(s.entry=r[24]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function $S(t){let e,n;return e=new Ar({props:{medium:!0,onClose:t[55],closeText:"Cancel",$$slots:{primaryButton:[sue],content:[rue],title:[nue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&262152|i[5]&4&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function nue(t){let e;return{c(){e=C("span"),e.textContent="Are you sure?",w(e,"slot","title"),w(e,"class","svelte-8top3j")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function rue(t){let e,n,r=t[3].name+"",i,s;return{c(){e=C("span"),n=oe('Are you sure you want to delete "'),i=oe(r),s=oe('" place?'),w(e,"slot","content"),w(e,"class","svelte-8top3j")},m(o,a){O(o,e,a),v(e,n),v(e,i),v(e,s)},p(o,a){a[0]&8&&r!==(r=o[3].name+"")&&Wt(i,r)},d(o){o&&I(e)}}}function iue(t){let e;return{c(){e=oe("Delete")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function sue(t){let e,n,r;return n=new We({props:{small:!0,destroy:!0,disabled:t[18],margin:"0 0.5rem 0 0",$$slots:{default:[iue]},$$scope:{ctx:t}}}),n.$on("click",t[56]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton"),w(e,"class","svelte-8top3j")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s[0]&262144&&(o.disabled=i[18]),s[5]&4&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function CS(t){let e,n,r,i,s;function o(c){t[106](c)}function a(c){t[107](c)}function u(c){t[108](c)}let l={disabled:t[20]};return t[21]!==void 0&&(l.hue=t[21]),t[22]!==void 0&&(l.saturation=t[22]),t[23]!==void 0&&(l.lightness=t[23]),e=new foe({props:l}),Qe.push(()=>En(e,"hue",o)),Qe.push(()=>En(e,"saturation",a)),Qe.push(()=>En(e,"lightness",u)),e.$on("done",t[68]),e.$on("cancel",t[69]),e.$on("changeColorTheme",t[41]),{c(){j(e.$$.fragment)},m(c,d){B(e,c,d),s=!0},p(c,d){const h={};d[0]&1048576&&(h.disabled=c[20]),!n&&d[0]&2097152&&(n=!0,h.hue=c[21],wn(()=>n=!1)),!r&&d[0]&4194304&&(r=!0,h.saturation=c[22],wn(()=>r=!1)),!i&&d[0]&8388608&&(i=!0,h.lightness=c[23],wn(()=>i=!1)),e.$set(h)},i(c){s||(E(e.$$.fragment,c),s=!0)},o(c){T(e.$$.fragment,c),s=!1},d(c){z(e,c)}}}function AS(t){let e,n;return e=new Loe({props:{isInPublicSpace:t[3].isVisiting}}),e.$on("hideHelpModal",t[49]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&8&&(s.isInPublicSpace=r[3].isVisiting),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function DS(t){let e,n;return e=new Ar({props:{onClose:t[51],closeText:"OK",centered:!0,withFader:!0,$$slots:{content:[aue],title:[oue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[5]&4&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function oue(t){let e;return{c(){e=C("span"),e.textContent="Hyperplace is best on a big screen",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function aue(t){let e;return{c(){e=C("span"),e.innerHTML='<p class="mb15 svelte-8top3j">Unfortunately we haven'
1051t focused on making Hyperplace work on a small screen yet.</p> <p><strong>Please revisit on your desktop computer for the best experience.</strong></p>',w(e,"slot","content")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function IS(t){let e,n;return e=new Ar({props:{onClose:t[52],closeText:"OK",$$slots:{content:[lue],title:[uue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[5]&4&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function uue(t){let e;return{c(){e=C("span"),e.textContent="Reached upload limit",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function lue(t){let e;return{c(){e=C("span"),e.innerHTML='<p class="mb15 svelte-8top3j">You've filled up your upload space and can't add more files.</p> <p><strong>Subscribe to a plan with a larger limit to get more space.</strong></p>',w(e,"slot","content")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function cue(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g=t[25]&&dS(t);const k=[Pae,Rae],y=[];function b(D,P){return D[10]?0:1}i=b(t),s=y[i]=k[i](t);let S=t[15]&&DS(t),$=t[16]&&IS(t);return c=new ase({}),{c(){g&&g.c(),e=N(),n=C("div"),r=C("div"),s.c(),a=N(),S&&S.c(),u=N(),$&&$.c(),l=N(),j(c.$$.fragment),w(r,"id","space"),w(r,"class","Space svelte-8top3j"),He(r,"background-color","hsl("+t[21]+", "+t[22]+"%, "+t[23]+"%)"),w(n,"class",o="SpaceWrapper state-"+t[2]+" baseState-"+t[4]+" svelte-8top3j")},m(D,P){g&&g.m(D,P),O(D,e,P),O(D,n,P),v(n,r),y[i].m(r,null),O(D,a,P),S&&S.m(D,P),O(D,u,P),$&&$.m(D,P),O(D,l,P),B(c,D,P),d=!0,h||(m=[Ie(uS,"keyup",t[96]),Ie(uS,"keydown",t[95])],h=!0)},p(D,P){D[25]?g?(g.p(D,P),P[0]&33554432&&E(g,1)):(g=dS(D),g.c(),E(g,1),g.m(e.parentNode,e)):g&&($e(),T(g,1,1,()=>{g=null}),Ce());let x=i;i=b(D),i===x?y[i].p(D,P):($e(),T(y[x],1,1,()=>{y[x]=null}),Ce(),s=y[i],s?s.p(D,P):(s=y[i]=k[i](D),s.c()),E(s,1),s.m(r,null)),(!d||P[0]&14680064)&&He(r,"background-color","hsl("+D[21]+", "+D[22]+"%, "+D[23]+"%)"),(!d||P[0]&20&&o!==(o="SpaceWrapper state-"+D[2]+" baseState-"+D[4]+" svelte-8top3j"))&&w(n,"class",o),D[15]?S?(S.p(D,P),P[0]&32768&&E(S,1)):(S=DS(D),S.c(),E(S,1),S.m(u.parentNode,u)):S&&($e(),T(S,1,1,()=>{S=null}),Ce()),D[16]?$?($.p(D,P),P[0]&65536&&E($,1)):($=IS(D),$.c(),E($,1),$.m(l.parentNode,l)):$&&($e(),T($,1,1,()=>{$=null}),Ce())},i(D){d||(E(g),E(s),E(S),E($),E(c.$$.fragment,D),d=!0)},o(D){T(g),T(s),T(S),T($),T(c.$$.fragment,D),d=!1},d(D){D&&(I(e),I(n),I(a),I(u),I(l)),g&&g.d(D),y[i].d(),S&&S.d(D),$&&$.d(D),z(c,D),h=!1,fn(m)}}}const F7="space",sc=()=>jo(F7)||null,fue="Untitled Document";function due(t,e,n){let r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S;Ke(t,Ur,ae=>n(28,i=ae)),Ke(t,vi,ae=>n(30,a=ae));var $=this&&this.__rest||function(ae,ot){var Ot={};for(var sn in ae)Object.prototype.hasOwnProperty.call(ae,sn)&&ot.indexOf(sn)<0&&(Ot[sn]=ae[sn]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,sn=Object.getOwnPropertySymbols(ae);Jt<sn.length;Jt++)ot.indexOf(sn[Jt])<0&&Object.prototype.propertyIsEnumerable.call(ae,sn[Jt])&&(Ot[sn[Jt]]=ae[sn[Jt]]);return Ot};let{publicId:D}=e;const P=!1,x={store:Ur,maxZValue:0,minZValue:0,navigateTo:null,navigate:ae=>{switch(n(5,x.navigateTo=ae,x),ae==null?void 0:ae.type){case"canvas":_t(ae.entry);return;case"book":Za(ae.book.id,!1);return}}};Sf(F7,x);let R=()=>{};const q=H0(),F=nae(q),L=hr(F,ae=>ae.pin);Ke(t,L,ae=>n(119,l=ae));let M=[0,0],V=1,H=1,J=[0,0],Z,Q=!0,K;qd({type:Qr.Space});var G;(function(ae){ae.Loading="loading",ae.Editing="editing",ae.Ready="ready",ae.Panning="panning",ae.Moving="moving",ae.Resizing="resizing",ae.DragSelecting="dragSelecting",ae.AddingNote="addingNote",ae.AddingNoteDragging="addingNoteDragging",ae.AddingText="addingText",ae.AddingTextDragging="addingTextDragging"})(G||(G={}));const se=[G.Ready,G.AddingText,G.AddingNote,G.Panning],fe=by(G.Loading,{[G.Loading]:{loadEnd:G.Ready},[G.Editing]:{moveStart:G.Moving,panStart:G.Panning,resizeStart:G.Resizing,dragSelectStart:()=>{switch(y){case G.AddingNote:return G.AddingNoteDragging;case G.AddingTextDragging:return G.AddingTextDragging;default:return G.DragSelecting}},editEnd:()=>G.Ready},[G.Ready]:{loadStart:G.Loading,moveStart:G.Moving,panStart:G.Panning,resizeStart:G.Re
1051sizing,editStart:G.Editing,dragSelectStart:G.DragSelecting,addingNoteStart:G.AddingNote,addingTextStart:G.AddingText},[G.Panning]:{loadStart:G.Loading,ready:G.Ready,addingNoteStart:G.AddingNote,addingTextStart:G.AddingText,panEnd:()=>k},[G.Moving]:{loadStart:G.Loading,moveEnd:()=>k},[G.Resizing]:{loadStart:G.Loading,resizeEnd:()=>k},[G.DragSelecting]:{loadStart:G.Loading,dragSelectEnd:G.Ready},[G.AddingNoteDragging]:{loadStart:G.Loading,dragSelectEnd:G.Ready,editStart:G.Editing},[G.AddingNote]:{ready:G.Ready,loadStart:G.Loading,addingNoteEnd:G.Ready,panStart:G.Panning,addingTextStart:G.AddingText,dragSelectStart:G.AddingNoteDragging},[G.AddingTextDragging]:{loadStart:G.Loading,dragSelectEnd:G.Ready,editStart:G.Editing},[G.AddingText]:{ready:G.Ready,loadStart:G.Loading,addingTextEnd:G.Ready,panStart:G.Panning,moveStart:G.Moving,resizeStart:G.Resizing,addingNoteStart:G.AddingNote,dragSelectStart:G.AddingTextDragging}});Ke(t,fe,ae=>n(2,r=ae));const[me,Ae]=R0(r);Ke(t,me,ae=>n(123,g=ae)),Ke(t,Ae,ae=>n(124,k=ae));const ee=nn(G.Ready);Ke(t,ee,ae=>n(4,h=ae));const[ue,ie]=R0(h);Ke(t,ue,ae=>n(122,m=ae)),Ke(t,ie,ae=>n(125,y=ae));const de=PG(),Fe=ae=>de(ae.detail.value);let Ve=fG({variables:{publicId:D}});Ke(t,Ve,ae=>n(121,d=ae)),d.query.result().then(ae=>{ae.data.space===null?Mi("/"):Ur.connect(ae.data.space.id,ae.data.space.preferences).then(Ge)});let Te=hr(Ve,({data:ae})=>ae==null?void 0:ae.space);Ke(t,Te,ae=>n(3,s=ae));let we=hr(Ve,({data:ae})=>{var ot;return(((ot=ae==null?void 0:ae.space)===null||ot===void 0?void 0:ot.pinnedEntries)||[]).filter(sn=>!!sn.pin)});Ke(t,we,ae=>n(120,c=ae));let je={},Je=null;const Ne=()=>{Mi("/",{state:{flash:"Logged out."}})};window.cm=fr;const Ge=()=>{R=Ur.listen(ae=>{if(ae.message.subject.startsWith("/Entry/")){const ot=ae.message.subject.split("/")[2];Yt.query({query:v$,variables:{id:ot},fetchPolicy:"network-only"})}}),fr.initialize(s.id,a,we),Je=l?c.find(ae=>ae.publicId===l):null,n(8,J=[i.x,i.y]),n(0,V=i.zoom),n(21,tt=s.hue),n(22,St=s.saturation),fe.loadEnd()};Va(()=>{Je&&Z&&_t(Je),Je=null});let nt=fr.objects;Ke(t,nt,ae=>n(31,b=ae));let rt=hr(fr.maxZValue,ae=>ae+1);Ke(t,rt,ae=>n(118,u=ae)),fr.maxZValue.subscribe(ae=>n(5,x.maxZValue=ae,x)),fr.minZValue.subscribe(ae=>n(5,x.minZValue=ae,x));let Ze=!1;const at=()=>{n(13,Ze=!0)},bt=()=>{n(13,Ze=!1)};let he=!1;const Pe=()=>{n(14,he=!0)};let Se=!1;const Le=()=>{n(15,Se=!1)},te=()=>{n(15,Se=!0)};let X=!1;const ye=()=>{n(16,X=!1)},Xe=()=>{n(16,X=!0)},Be=nn([]);let it=!1,mt=!1;const Ct=()=>{n(17,it=!0)},ft=()=>{n(17,it=!1)},It=async()=>{n(18,mt=!0);try{const ae=await HW({variables:{id:s.id}}),{errors:ot}=ae.data.destroySpace;if(Be.set(ot),ot.length===0){Mi("/");return}ft()}catch(ae){console.error(ae)}finally{n(18,mt=!1)}},Tt=async ae=>{const[ot,Ot]=M,sn=fr.generateBlankCanvasEntry(),{pin:Jt}=sn,si=$(sn,["pin"]);Jt.x=ot,Jt.y=Ot,Jt.z=u,Jt.width=zn*20,Jt.height=zn*20,Object.assign(si,ae.detail.entry,{pin:Jt}),fr.createObjects([si])},_t=ae=>{if(!ae.pin)return;const ot=ae.pin.x+vn(ae)[0]/2,Ot=ae.pin.y+vn(ae)[1]/2;gr(Ur,i.x=ot,i),gr(Ur,i.y=Ot,i),Z.focusOnCoordinates([ot,Ot])},gt=()=>{gr(Ur,i.viewMode=Kl.Room,i)},ce=()=>{gr(Ur,i.viewMode=Kl.Wall,i)},pe=ae=>{const{entry:ot}=ae.detail;_t(ot)},st=async ae=>{await fr.deleteObject(ae.detail.objectId),fe.editEnd(),K()},vn=ae=>{var ot,Ot;return!((ot=ae==null?void 0:ae.pin)===null||ot===void 0)&&ot.width&&(!((Ot=ae==null?void 0:ae.pin)===null||Ot===void 0)&&Ot.height)?[ae.pin.width,ae.pin.height]:[0,0]},Tn=ae=>{n(0,V=ae.detail.zoom),gr(Ur,i.zoom=ae.detail.zoom,i),kn()},bn=ae=>{n(0,V=Number(ae.target.value)),gr(Ur,i.zoom=V,i),kn()},kn=()=>{document.documentElement.style.setProperty("--radial-gradient-width",200+V*500+"%")},$n=ae=>{gr(Ur,i.x=ae.detail.x,i),gr(Ur,i.y=ae.detail.y,i)},qt=()=>{fe.panStart()},Rn=()=>{fe.panEnd()},Hn=async ae=>{const{entry:ot,changes:Ot}=ae.detail;Ot.position={x:ot.pin.x,y:ot.pin.y,z:ot.pin.z},fr.changeObject(ae.detail.objectId,ot,Ot)};let Sn;$r(()=>{document.body.classList.add("locked"),Sn=document.title,window.innerWidth<800&&te()}),lo(()=>{document.body.classList.remove("locked"),document.title=Sn,R()});let Zt=!1,be=!1,tt=210,St=10,an=94;const rn=async()=>{n(20,be=!0);try{await Fv({variables:{id:s.id,hue:tt,saturation:St}})}finally{n(20,be=!1)}n(19,Zt=!1)},Mt=()=>{n(21,tt=s.hue),n(22,St=s.saturation),n(19,Zt=!1)};ji.subscribe(({darkMode:ae})=>{n(23,an=ae?14:90)});const Gt=ae=>{if(ae.detail.entry.pin)return;const ot=Z.calculatePositionOnCanvas([ae.detail.x,ae.detail.y]),Ot=fr.generateBlankCanvasEntry(),{pin:sn}=Ot,Jt=$(Ot,["pin"]);sn.x=ot[0],sn.y=ot[1],sn.z=u,sn.width=zn*20,sn.height=zn*20,Object.assign(Jt,ae.detail.entry,{pin:sn}),fr.createObjects([Jt])};let ze=null;const Vt=()=>{n(24,ze=null)},pn=ae=>{var ot;n(24,ze=(ot=ae==null?void 0:ae.detail)===null||ot===void 0?void 0:ot.entry)};let Vn=!1;const vt=()=>{n(25,Vn=!0)},mn=()=>{n(25,Vn=!1)},Gs={},vo=nn([]);Ke(t,vo,ae=>n(29,o=ae));const Jo=hr([vo,fr.objects],([ae,ot])=>{if(ae.length<=1)return null;const Ot=ot.filter(Vi=>ae.includes(Vi.id)),sn=Math.min(...Ot.map(Vi=>Vi.entry.pin.x)),Jt=Math.min(...Ot.map(Vi=>Vi.entry.pin.y)),si=Math.max(...Ot.map(Vi=>Vi.entry.pin.x+Vi.entry.pin.width)),Kr=Math.max(...Ot.map(Vi=>Vi.entry.pin.y+Vi.entry.pin.height)),bi=si-sn,Ka=Kr-Jt;return{pos:[sn,Jt],size:[bi,Ka],objects:Ot}});Ke(t,Jo,ae=>n(32,S=ae));const Cc=()=>
1051{if(s.isVisiting||r!==G.Ready)return;let ae=Z.getCursorPositionOnCanvas();const ot=ta(ae),[Ot]=fr.createObjects([ot]);_o(Ot)},us=ae=>{const ot=CV([...ae].sort());Xl(o,ot)||gr(vo,o=ot,o)},Ya=ae=>{us(o.filter(ot=>ot!==ae.detail.objectId))},ea=ae=>{ae.detail.shiftKey?us([...o,ae.detail.objectId]):us([ae.detail.objectId])},ta=(ae,ot=[zn*20,zn*20])=>{const Ot=fr.generateBlankCanvasEntry();return Ot.pin.x=ae[0],Ot.pin.y=ae[1],Ot.pin.z=u,Ot.pin.width=kl(ot[0]),Ot.pin.height=kl(ot[1]),Ot},bo=(ae,ot=[zn*20,zn*20])=>{const Ot=ta(ae,ot);return Ot.pin.color={hue:0,saturation:0,lightness:0,alpha:0},Ot.pin.fontSize=vu[4],Ot},_o=ae=>{n(26,Gs[ae]=Nt.Editing,Gs),us([ae]),setTimeout(()=>fe.editStart(),0)},Ac=()=>{switch(us([]),r){case G.AddingNote:{const ae=ta(Z.getCursorPositionOnCanvas()),[ot]=fr.createObjects([ae]);fe.addingNoteEnd(),_o(ot);return}case G.AddingText:{const ae=bo(Z.getCursorPositionOnCanvas()),[ot]=fr.createObjects([ae]);fe.addingTextEnd(),_o(ot);return}}};let ls={topLeft:[0,0],bottomRight:[0,0]};const yo=ae=>{ls=ae.detail;const{topLeft:ot,bottomRight:Ot}=ls;switch(r){case G.DragSelecting:const sn=fr.search(ot[0],ot[1],Ot[0]-ot[0],Ot[1]-ot[1]);us(sn.map(Jt=>Jt.id));return;case G.AddingNoteDragging:{const Jt=ot,si=[Ot[0]-Jt[0],Ot[1]-Jt[1]],Kr=ta(Jt,si),[bi]=fr.createObjects([Kr]);_o(bi);return}case G.AddingTextDragging:{const Jt=ot,si=[Ot[0]-Jt[0],Ot[1]-Jt[1]],Kr=bo(Jt,si),[bi]=fr.createObjects([Kr]);_o(bi);return}}};let ii=null;const Qa=(ae,ot=!1)=>{const{objects:Ot}=$i(Jo),{offsetX:sn,offsetY:Jt}=ae.detail,si=Ot.map(Kr=>{const bi=Gf(Kr.entry),Ka={x:sn+ii[Kr.id][0],y:Jt+ii[Kr.id][1],z:bi.pin.z};return ot?{id:Kr.id,entry:bi,changes:{position:Ka}}:(bi.pin.x=Ka.x,bi.pin.y=Ka.y,{id:Kr.id,entry:bi})});fr.changeObjects(si)},Dc=ae=>{const{pos:[ot,Ot],objects:sn}=$i(Jo);ii||(ii={},sn.forEach(Jt=>{ii[Jt.id]=[Jt.entry.pin.x-ot,Jt.entry.pin.y-Ot]}),fe.moveStart()),Qa(ae)};vo.subscribe(()=>ii=null);const Ic=ae=>{ii&&Qa(ae,!0),ii=null,fe.moveEnd()},Oc=ae=>{const ot=Gf([ae.detail.entry]).map(sn=>{var Jt,si,Kr;return sn.pin.x+=zn*2,sn.pin.y+=zn*2,(Jt=sn.pin)===null||Jt===void 0||delete Jt.__typename,(Kr=(si=sn.pin)===null||si===void 0?void 0:si.color)===null||Kr===void 0||delete Kr.__typename,delete sn.id,sn}),Ot=fr.createObjects(ot);us(Ot)};let wo=null;const Vu=ae=>{n(27,wo=ae.detail)},Wu=()=>{n(27,wo=null)},Oe=()=>{fr.deleteObject(wo.objectId,!1),n(27,wo=null)},Ft=()=>{Z.focusOnCoordinates([0,0])},Nr=async()=>{const ae=await nG({variables:{spaceId:s.id}});ae.data.agentConversationCreate.errors.length===0&&gr(Ur,i.activeChatIds=[...i.activeChatIds,ae.data.agentConversationCreate.agentConversation.id],i)},Rr=async ae=>Fv({variables:{id:s.id,name:ae}}),Za=(ae,ot)=>{if(ot)gr(Ur,i.activeBookIds=i.activeBookIds.filter(Ot=>Ot!==ae),i);else{if(i.activeBookIds.includes(ae))return;gr(Ur,i.activeBookIds=[...i.activeBookIds,ae],i)}},Hd=ae=>{Za(ae.detail.id,ae.detail.minimized)},Bm=ae=>{const ot=ae.detail.agentConversation.id;gr(Ur,i.activeChatIds=i.activeChatIds.filter(Ot=>Ot!==ot),i)},Vd=ae=>{const ot=ae.detail.agentConversation.id;i.activeChatIds.includes(ot)||gr(Ur,i.activeChatIds=[...i.activeChatIds,ot],i)},Wd=async()=>{const ae=await QW({variables:{name:fue,spaceId:s.id}});gr(Ur,i.activeBookIds=[...i.activeChatIds,ae.data.createBook.book.id],i)};let Xa=!1;const zm=ae=>{ae.code==="Space"&&r!==G.Panning&&(fe.panStart(),Xa=!0)},Gd=ae=>{if(r!==G.Editing)if(Xa&&ae.code==="Space")fe.panEnd(),Xa=!1;else switch(ae.key.toLowerCase()){case"n":fe.addingNoteStart();return;case"t":fe.addingTextStart();return;case"h":fe.panStart();return;case"v":fe.ready();return}};function Nc(ae,ot){Qe[ae?"unshift":"push"](()=>{je[ot.id]=ae,n(12,je)})}function Rc(ae){M=ae,n(6,M)}function na(ae){Qe[ae?"unshift":"push"](()=>{Z=ae,n(9,Z)})}function Yd(ae){V=ae,n(0,V)}function Qd(){V=Au(this.value),n(0,V)}function jm(ae){K=ae,n(11,K)}const Zd=()=>n(19,Zt=!Zt);function Xd(ae){he=ae,n(14,he)}function Kd(ae){tt=ae,n(21,tt)}function Jd(ae){St=ae,n(22,St)}function Um(ae){an=ae,n(23,an)}return t.$$set=ae=>{"publicId"in ae&&n(97,D=ae.publicId)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(7,H=Math.min(1/V,3)),t.$$.dirty[0]&6&&n(10,Q=r===G.Loading),t.$$.dirty[0]&4&&gr(me,g=r,g),t.$$.dirty[0]&4&&se.includes(r)&&gr(ee,h=r,h),t.$$.dirty[0]&16&&gr(ue,m=h,m),t.$$.dirty[0]&8&&s!=null&&s.name&&(document.title=`Hyperplace â ${s==null?void 0:s.name}`)},[V,G,r,s,h,x,M,H,J,Z,Q,K,je,Ze,he,Se,X,it,mt,Zt,be,tt,St,an,ze,Vn,Gs,wo,i,o,a,b,S,P,L,fe,me,Ae,ee,ue,ie,Fe,Ve,Te,we,Ne,nt,rt,at,bt,Pe,Le,
1051ye,Xe,Ct,ft,It,Tt,gt,ce,pe,st,Tn,bn,$n,qt,Rn,Hn,rn,Mt,Gt,Vt,pn,vt,mn,vo,Jo,Cc,Ya,ea,Ac,yo,Dc,Ic,Oc,Vu,Wu,Oe,Ft,Nr,Rr,Hd,Bm,Vd,Wd,zm,Gd,D,Nc,Rc,na,Yd,Qd,jm,Zd,Xd,Kd,Jd,Um]}class yb extends pt{constructor(e){super(),ht(this,e,due,cue,dt,{publicId:97},Nae,[-1,-1,-1,-1,-1,-1])}}function hue(t){Et(t,"svelte-11604m9",".label.svelte-11604m9.svelte-11604m9{cursor:pointer;width:1.8rem;height:1.8rem;margin-right:0.2rem;padding:0 0.5rem;text-align:center;font-size:1.1rem;line-height:1.8rem;color:var(--c-text);background-color:var(--c-border);overflow:hidden}.label.svelte-11604m9.svelte-11604m9:hover{width:1.8rem;height:auto !important;min-height:4rem;writing-mode:tb;padding:0.5rem 0 1rem;transform:rotate(-180deg);color:var(--c-text-strong)}.label.svelte-11604m9 .name.svelte-11604m9{display:inline-block;visibility:hidden;font-weight:bold;white-space:nowrap}.label.svelte-11604m9 .name.svelte-11604m9::first-letter{visibility:visible;text-transform:uppercase}.label.svelte-11604m9:hover .name.svelte-11604m9{visibility:visible}")}function pue(t){let e,n,r=t[0].name+"",i,s,o;return{c(){e=C("span"),n=C("span"),i=oe(r),w(n,"class","name svelte-11604m9"),w(e,"class","label svelte-11604m9"),w(e,"role","button"),w(e,"tabindex","0"),w(e,"data-ignore-click",t[2]),He(e,"background-color",t[1].colorString)},m(a,u){O(a,e,u),v(e,n),v(n,i),s||(o=[Ie(e,"keydown",t[3]),Ie(e,"click",t[3])],s=!0)},p(a,[u]){u&1&&r!==(r=a[0].name+"")&&Wt(i,r)},i:Ee,o:Ee,d(a){a&&I(e),s=!1,fn(o)}}}function mue(t,e,n){let r;Ke(t,ji,c=>n(5,r=c));let{book:i}=e,{targetEntry:s=null}=e;const o=qu(i,r.darkMode),a=sc();let u=!!a;const l=c=>{if(u)return a.navigate({type:"book",book:i,entry:s}),!1};return t.$$set=c=>{"book"in c&&n(0,i=c.book),"targetEntry"in c&&n(4,s=c.targetEntry)},[i,o,u,l,s]}class L7 extends pt{constructor(e){super(),ht(this,e,mue,pue,dt,{book:0,targetEntry:4},hue)}}var M7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="reply",r=512,i=512,s=[61714,"mail-reply"],o="f3e5",a="M205 34.8c11.5 5.1 19 16.6 19 29.2v64H336c97.2 0 176 78.8 176 176c0 113.3-81.5 163.9-100.2 174.1c-2.5 1.4-5.3 1.9-8.1 1.9c-10.9 0-19.7-8.9-19.7-19.7c0-7.5 4.3-14.4 9.8-19.5c9.4-8.8 22.2-26.4 22.2-56.7c0-53-43-96-96-96H224v64c0 12.6-7.4 24.1-19 29.2s-25 3-34.4-5.4l-160-144C3.9 225.7 0 217.1 0 208s3.9-17.7 10.6-23.8l160-144c9.4-8.5 22.9-10.6 34.4-5.4z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faReply=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(M7);var B7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="pencil",r=512,i=512,s=[9999,61504,"pencil-alt"],o="f303",a="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
10515.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faPencil=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(B7);var z7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="file-pen",r=576,i=512,s=[128221,"file-edit"],o="f31c",a="M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V285.7l-86.8 86.8c-10.3 10.3-17.5 23.1-21 37.2l-18.7 74.9c-2.3 9.2-1.8 18.8 1.3 27.5H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM549.8 235.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0zM311.9 417L441.1 287.8l71 71L382.9 487.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l15-60.1c1.4-5.6 4.3-10.8 8.4-14.9z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faFilePen=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(z7);var Dy={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="up-down-left-right",r=512,i=512,s=["arrows-alt"],o="f0b2",a="M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8h32v96H128V192c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V288h96v96H192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8H288V288h96v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6v32H288V128h32c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faUpDownLeftRight=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(Dy);var j7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="map-pin",r=320,i=512,s=[128205],o="f276",a="M16 144a144 144 0 1 1 288 0A144 144 0 1 1 16 144zM160 80c8.8 0 16-7.2 16-16s-7.2-16-16-16c-53 0-96 43-96 96c0 8.8 7.2 16 16 16s16-7.2 16-16c0-35.3 28.7-64 64-64zM128 480V317.1c10.4 1.9 21.1 2.9 32 2.9s21.6-1 32-2.9V480c0 17.7-14.3 32-32 32s-32-14.3-32-32z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faMapPin=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(j7);function gue(t){Et(t,"svelte-awrljp",".ShowOnWall.svelte-awrljp.svelte-awrljp{width:2rem;height:2rem;margin-bottom:-0.1rem;padding:0 0.4rem;border:none;color:var(--c-text-faded);background-color:transparent;font-size:1.1rem;font-weight:500;line-height:1.6rem;border-radius:1rem;border:2px solid var(--c-border-dark);overflow:hidden;cursor:pointer}.ShowOnWall.faded.svelte-awrljp.svelte-awrljp{opacity:0.5}.ShowOnWall.svelte-awrljp.svelte-awrljp:hover{width:auto !important;border-color:var(--c-button-ol);color:var(--c-text)}.ShowOnWall.svelte-awrljp .text.svelte-awrljp{display:none}.ShowOnWall.svelte-awrljp:hover .text.svelte-awrljp{display:inline}")}function vue(t){let e,n,r,i,s,o,a;return n=new et({props:{icon:j7.faMapPin}}),{c(){e=C("button"),j(n.$$.fragment),r=N(),i=C("span"),i.textContent="Locate on wall",w(i,"class","text svelte-awrljp"),w(e,"class","ShowOnWall svelte-awrljp"),ve(e,"faded",t[0])},m(u,l){O(u,e,l),B(n,e,null),v(e,r),v(e,i),s=!0,o||(a=Ie(e,"click",t[1]),o=!0)},p(u,[l]){(!s||l&1)&&ve(e,"faded",u[0])},i(u){s||(E(n.$$.fragment,u),s=!0)},o(u){T(n.$$.fragment,u),s=!1},d(u){u&&I(e),z(n),o=!1,a()}}}function bue(t,e,n){let{faded:r=!1}=e;function i(s){Ht.call(this,t,s)}return t.$$set=s=>{"faded"in s&&n(0,r=s.faded)},[r,i]}class _ue extends pt{constructor(e){super(),ht(this,e,bue,vue,dt,{faded:0},gue)}}function yue(t){Et(t,"svelte-zhj3qa",".EntryOnStream.svelte-zhj3qa.svelte-zhj3qa{width:100%;position:relative;display:flex;flex-direction:column;padding:var(--e-spacing);padding-bottom:0}.entryWrapper.svelte-zhj3qa.svelte-zhj3qa{position:relative;padding:1rem;padding-bottom:3.5rem;border-radius:var(--e-spacing)}.isInDrawer.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{background-color:var(--c-border)}.isMine.svelte-zhj3qa:not(.isInDrawer) .entryWrapper.svelte-zhj3qa{background:var(--c-bubble-mine);border-bottom-left-radius:0}.isMine.svelte-zhj3qa .entryWrapper.svelte-zhj3qa .content::selection{background-color:var(--c-bubble-mine-selection-bg)}.svelte-zhj3qa:not(.isMine):not(.isInDrawer) .entryWrapper.svelte-zhj3qa{color:var(--c-text-hover);background:var(--c-bubble-theirs);border-bottom-right-radius:0}.svelte-zhj3qa:not(.isMine) .entryWrapper.svelte-zhj3qa .content::selection{background-color:var(--c-bubble-theirs-selection-bg)}.isInDrawer.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{border-bottom-right-radius:var(--e-spacing);border-bottom-left-radius:var(--e-spacing)}.EntryOnStream.isInBook.svelte-zhj3qa.svelte-zhj3qa{padding-top:0}.EntryOnStream.isInBook.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{background:transparent;border-radius:0;padding:0.75rem 1.5rem 2.75rem;outline-offset:0px !important}.EntryOnStream.isInBook.svelte-zhj3qa:not(.isMine):hover .entryWrapper.svelte-zhj3qa{color:var(--c-text-faded)}.EntryOnStream.isInBook.isHovering.svelte-zhj3qa .entryWrapper.svelte-zhj3qa,.EntryOnStream.isInBook.isEditing.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{outline-color:var(--c-border) !important}.EntryOnStream.isInBook.svelte-zhj3qa .meta.svelte-zhj3qa{opacity:0.25;padding-top:0;padding-bottom:0.5rem}.EntryOnStream.isInBook.isHovering.svelte-zhj3qa .meta.svelte-zhj3qa,.EntryOnStream.isInBook.isEditing.svelte-zhj3qa .meta.svelte-zhj3qa{opacity:1}.EntryOnStream.isBeingDragged.shouldHideWhileDragging.svelte-zhj3qa.svelte-zhj3qa{display:none}.autoAlign.svelte-zhj3qa.svelte-zhj3qa:not(.isMine){align-self:end}.entryDay.svelte-zhj3qa.svelte-zhj3qa{margin:2rem 2rem 0;font-weight:bold}.meta.svelte-zhj3qa.svelte-zhj3qa{position:absolute;bottom:0;display:flex;flex-direction:row;align-items:flex-end;padding:0.5rem 0 0.75rem;margin-left:-0.5rem}.actions.svelte-zhj3qa.svelte-zhj3qa{display:flex;gap:0.5rem;z-index:1;position:sticky;width:fit-content;transform:translateY(100%);margin-top:-2.8rem;float:right;bottom:3rem;padding:0.4rem;border-radius:2rem;backdrop-filter:blur(1rem);background-color:var(--c-border)}
1051.actions.svelte-zhj3qa.svelte-zhj3qa:blank{display:none}.actions.svelte-zhj3qa .divider.svelte-zhj3qa{display:inline-block;background:var(--c-border-dark);width:0.3rem;height:1.4rem;margin:0 0.3rem;border-radius:1rem;align-self:center;pointer-events:none}.isInBook.svelte-zhj3qa .dragHandleWrapper.svelte-zhj3qa{position:absolute;z-index:1;left:-1.35rem;bottom:0.3rem;padding:0.2rem;cursor:grab;color:var(--c-text);border-radius:2rem;backdrop-filter:blur(1rem);background-color:var(--c-border)}.EntryOnStream.svelte-zhj3qa.svelte-zhj3qa:not(.isInDrawer){cursor:text}.EntryOnStream.isInDrawer.svelte-zhj3qa.svelte-zhj3qa{cursor:default}.EntryOnStream.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{outline-offset:4px;outline-width:0.2rem;outline-style:solid;outline-color:transparent}.EntryOnStream.isInBook.svelte-zhj3qa:hover .entryWrapper.svelte-zhj3qa{outline-color:var(--c-border)}.EntryOnStream.isEditing.svelte-zhj3qa .entryWrapper.svelte-zhj3qa{outline-style:dashed}.hasPickedEntry .EntryOnStream.isInBook.svelte-zhj3qa:hover .entryWrapper.svelte-zhj3qa{outline-color:transparent !important;color:inherit !important}.hasPickedEntry .EntryOnStream.isInBook.svelte-zhj3qa:hover .meta.svelte-zhj3qa,.hasPickedEntry .EntryOnStream.isInBook.svelte-zhj3qa:hover .actions.svelte-zhj3qa,.hasPickedEntry .EntryOnStream.isInBook.svelte-zhj3qa:hover .dragHandleWrapper.svelte-zhj3qa{display:none}.stateDebug.svelte-zhj3qa.svelte-zhj3qa{font-size:1rem;font-family:monospace;position:absolute;bottom:1rem;width:100%;text-align:center;pointer-events:none;z-index:999;opacity:50%}")}function OS(t,e,n){const r=t.slice();return r[53]=e[n],r}function NS(t){let e,n=Dt.fromISO(t[0].createdAt).toLocaleString(Dt.DATE_MED)+"",r;return{c(){e=C("div"),r=oe(n),w(e,"class","entryDay svelte-zhj3qa")},m(i,s){O(i,e,s),v(e,r)},p(i,s){s[0]&1&&n!==(n=Dt.fromISO(i[0].createdAt).toLocaleString(Dt.DATE_MED)+"")&&Wt(r,n)},d(i){i&&I(e)}}}function RS(t){let e,n,r,i,s,o,a,u,l,c=t[21]&&wue(t),d=t[9].canPin&&!t[0].isPinned&&PS(t),h=t[9].canAddToBooks&&xS(t),m=!t[20]&&$ue(t),g=t[9].canReply&&qS(t),k=(t[9].canEdit||t[9].canDelete)&&FS(),y=t[9].canEdit&&LS(t),b=t[9].canDelete&&MS(t);return{c(){e=C("div"),c&&c.c(),n=N(),d&&d.c(),r=N(),h&&h.c(),i=N(),m&&m.c(),s=N(),g&&g.c(),o=N(),k&&k.c(),a=N(),y&&y.c(),u=N(),b&&b.c(),w(e,"class","actions noDrag svelte-zhj3qa"),ve(e,"isInDrawer",t[19])},m(S,$){O(S,e,$),c&&c.m(e,null),v(e,n),d&&d.m(e,null),v(e,r),h&&h.m(e,null),v(e,i),m&&m.m(e,null),v(e,s),g&&g.m(e,null),v(e,o),k&&k.m(e,null),v(e,a),y&&y.m(e,null),v(e,u),b&&b.m(e,null),l=!0},p(S,$){S[21]&&c.p(S,$),S[9].canPin&&!S[0].isPinned?d?(d.p(S,$),$[0]&513&&E(d,1)):(d=PS(S),d.c(),E(d,1),d.m(e,r)):d&&($e(),T(d,1,1,()=>{d=null}),Ce()),S[9].canAddToBooks?h?(h.p(S,$),$[0]&512&&E(h,1)):(h=xS(S),h.c(),E(h,1),h.m(e,i)):h&&($e(),T(h,1,1,()=>{h=null}),Ce()),S[9].canReply?g?(g.p(S,$),$[0]&512&&E(g,1)):(g=qS(S),g.c(),E(g,1),g.m(e,o)):g&&($e(),T(g,1,1,()=>{g=null}),Ce()),S[9].canEdit||S[9].canDelete?k||(k=FS(),k.c(),k.m(e,a)):k&&(k.d(1),k=null),S[9].canEdit?y?(y.p(S,$),$[0]&512&&E(y,1)):(y=LS(S),y.c(),E(y,1),y.m(e,u)):y&&($e(),T(y,1,1,()=>{y=null}),Ce()),S[9].canDelete?b?(b.p(S,$),$[0]&512&&E(b,1)):(b=MS(S),b.c(),E(b,1),b.m(e,null)):b&&($e(),T(b,1,1,()=>{b=null}),Ce())},i(S){l||(E(c),E(d),E(h),E(m),E(g),E(y),E(b),l=!0)},o(S){T(c),T(d),T(h),T(m),T(g),T(y),T(b),l=!1},d(S){S&&I(e),c&&c.d(),d&&d.d(),h&&h.d(),m&&m.d(),g&&g.d(),k&&k.d(),y&&y.d(),b&&b.d()}}}function wue(t){let e,n;return e=new c7({props:{value:t[0].content}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&1&&(s.value=r[0].content),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function PS(t){let e,n;return e=new We({props:{tiny:!0,reveal:!0,circle:!0,title:"Pin to wall",$$slots:{default:[Eue]},$$scope:{ctx:t}}}),e.$on("click",t[33]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Eue(t){let e,n;return e=new et({props:{icon:xd.faThumbtack}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function xS(t){let e,n;return e=new We({props:{tiny:!0,reveal:!0,circle:!0,title:t[20]?"Manage entry documents":"Add to document",$$slots:{default:[Tue]},$$scope:{ctx:t}}}),e.$on("click",t[35]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&1|i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function kue(t){let e,n;return e=new et({props:{icon:Ty.faFileImport}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Sue(t){let e,n;return e=new et({props:{icon:z7.faFilePen}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Tue(t){let e,n,r,i,s;const o=[Sue,kue],a=[];function u(l,c){var d;return c[0]&1&&(e=null),e==null&&(e=((d=Ba(l[0].books))==null?void 0:d.length)>0),e?0:1}return n=u(t,[-1,-1]),r=a[n]=o[n](t),{c(){r.c(),i=Pt()},m(l,c){a[n].m(l,c),O(l,i,c),s=!0},p(l,c){let d=n;n=u(l,c),n!==d&&($e(),T(a[d],1,1,()=>{a[d]=null}),Ce(),r=a[n],r||(r=a[n]=o[n](l),r.c()),E(r,1),r.m(i.parentNode,i))},i(l){s||(E(r),s=!0)},o(l){T(r),s=!1},d(l){l&&I(i),a[n].d(l)}}}function $ue(t){let e,n,r;return n=new We({props:{tiny:!0,circle:!0,reveal:!0,cursor:"grab",title:"Drag onto wall or into a document",$$slots:{default:[Cue]},$$scope:{ctx:t}}}),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","dragHandle")},m(i,s){O(i,e,s),B(n,e,null),r=!0},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Cue(t){let e,n;return e=new et({props:{icon:Dy.faUpDownLeftRight}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function qS(t){let e,n;return e=new We({props:{tiny:!0,reveal:!0,circle:!0,title:"Reply",$$slots:{default:[Aue]},$$scope:{ctx:t}}}
1051),e.$on("click",t[31]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Aue(t){let e,n;return e=new et({props:{icon:M7.faReply}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function FS(t){let e;return{c(){e=C("div"),w(e,"class","divider svelte-zhj3qa")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function LS(t){let e,n;return e=new We({props:{tiny:!0,reveal:!0,circle:!0,title:"Edit",$$slots:{default:[Due]},$$scope:{ctx:t}}}),e.$on("click",t[23]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Due(t){let e,n;return e=new et({props:{icon:B7.faPencil}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function MS(t){let e,n;return e=new We({props:{tiny:!0,reveal:!0,circle:!0,danger:!0,title:"Delete",$$slots:{default:[Iue]},$$scope:{ctx:t}}}),e.$on("click",t[32]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Iue(t){let e,n;return e=new et({props:{icon:kd.faTrash}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function BS(t){let e,n,r,i,s=t[9].canLocate&&zS(t),o=(!t[20]||t[20]&&!t[17]||t[10]||t[7])&&jS(t),a=(t[20]&&t[7]||t[10]||t[21])&&US(t);return{c(){s&&s.c(),e=N(),o&&o.c(),n=N(),a&&a.c(),r=Pt()},m(u,l){s&&s.m(u,l),O(u,e,l),o&&o.m(u,l),O(u,n,l),a&&a.m(u,l),O(u,r,l),i=!0},p(u,l){u[9].canLocate?s?(s.p(u,l),l[0]&512&&E(s,1)):(s=zS(u),s.c(),E(s,1),s.m(e.parentNode,e)):s&&($e(),T(s,1,1,()=>{s=null}),Ce()),!u[20]||u[20]&&!u[17]||u[10]||u[7]?o?(o.p(u,l),l[0]&132224&&E(o,1)):(o=jS(u),o.c(),E(o,1),o.m(n.parentNode,n)):o&&($e(),T(o,1,1,()=>{o=null}),Ce()),u[20]&&u[7]||u[10]||u[21]?a?(a.p(u,l),l[0]&1152&&E(a,1)):(a=US(u),a.c(),E(a,1),a.m(r.parentNode,r)):a&&($e(),T(a,1,1,()=>{a=null}),Ce())},i(u){i||(E(s),E(o),E(a),i=!0)},o(u){T(s),T(o),T(a),i=!1},d(u){u&&(I(e),I(n),I(r)),s&&s.d(u),o&&o.d(u),a&&a.d(u)}}}function zS(t){let e,n;return e=new _ue({}),e.$on("click",t[34]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function jS(t){var r,i,s,o,a,u,l;let e,n;return e=new a7({props:{tiny:!0,expanded:!0,textOnly:!0,source:(r=t[0])==null?void 0:r.source,name:((s=(i=t[0])==null?void 0:i.author)==null?void 0:s.displayName)||((o=t[0])==null?void 0:o.source),title:(a=t[0])!=null&&a.createdAt?((l=(u=t[0])==null?void 0:u.author)==null?void 0:l.displayName)+" wrote on "+Dt.fromISO(t[0].createdAt).toLocaleString(Dt.DATE_MED):""}}),{c(){j(e.$$.fragment)},m(c,d){B(e,c,d),n=!0},p(c,d){var m,g,k,y,b,S,$;const h={};d[0]&1&&(h.source=(m=c[0])==null?void 0:m.source),d[0]&1&&(h.name=((k=(g=c[0])==null?void 0:g.author)==null?void 0:k.displayName)||((y=c[0])==null?void 0:y.source)),d[0]&1&&(h.title=(b=c[0])!=null&&b.createdAt?(($=(S=c[0])==null?void 0:S.author)==null?void 0:$.displayName)+" wrote on "+Dt.fromISO(c[0].createdAt).toLocaleString(Dt.DATE_MED):""),e.$set(h)},i(c){n||(E(e.$$.fragment,c),n=!0)},o(c){T(e.$$.fragment,c),n=!1},d(c){z(e,c)}}}function US(t){let e,n,r=Ut(t[0].books),i=[];for(let o=0;o<r.length;o+=1)i[o]=VS(OS(t,r,o));const s=o=>T(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Pt()},m(o,a){for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(o,a);O(o,e,a),n=!0},p(o,a){if(a[0]&262145){r=Ut(o[0].books);let u;for(u=0;
1051u<r.length;u+=1){const l=OS(o,r,u);i[u]?(i[u].p(l,a),E(i[u],1)):(i[u]=VS(l),i[u].c(),E(i[u],1),i[u].m(e.parentNode,e))}for($e(),u=r.length;u<i.length;u+=1)s(u);Ce()}},i(o){if(!n){for(let a=0;a<r.length;a+=1)E(i[a]);n=!0}},o(o){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)T(i[a]);n=!1},d(o){o&&I(e),Ci(i,o)}}}function HS(t){let e,n;return e=new L7({props:{targetEntry:t[0],book:t[53]}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&1&&(s.targetEntry=r[0]),i[0]&1&&(s.book=r[53]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function VS(t){var i,s;let e,n,r=(((i=t[18])==null?void 0:i.type)===Qr.Book&&t[18].book.id!==t[53].id||((s=t[18])==null?void 0:s.type)===Qr.Chat)&&HS(t);return{c(){r&&r.c(),e=Pt()},m(o,a){r&&r.m(o,a),O(o,e,a),n=!0},p(o,a){var u,l;((u=o[18])==null?void 0:u.type)===Qr.Book&&o[18].book.id!==o[53].id||((l=o[18])==null?void 0:l.type)===Qr.Chat?r?(r.p(o,a),a[0]&1&&E(r,1)):(r=HS(o),r.c(),E(r,1),r.m(e.parentNode,e)):r&&($e(),T(r,1,1,()=>{r=null}),Ce())},i(o){n||(E(r),n=!0)},o(o){T(r),n=!1},d(o){o&&I(e),r&&r.d(o)}}}function WS(t){let e,n,r;return n=new We({props:{tiny:!0,circle:!0,reveal:!0,cursor:"grab",title:"Sort or copy to wall or document",$$slots:{default:[Oue]},$$scope:{ctx:t}}}),{c(){e=C("div"),j(n.$$.fragment),w(e,"class","dragHandle dragHandleWrapper svelte-zhj3qa")},m(i,s){O(i,e,s),B(n,e,null),r=!0},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Oue(t){let e,n;return e=new et({props:{icon:Dy.faUpDownLeftRight}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function GS(t){let e,n;return e=new We({props:{disabled:t[15],pos:{right:0,bottom:0},small:!0,circle:!0,reveal:!0,title:"Upload a file",$$slots:{default:[Pue]},$$scope:{ctx:t}}}),e.$on("click",t[23]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&32768&&(s.disabled=r[15]),i[0]&32768|i[1]&33554432&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Nue(t){let e,n;return e=new et({props:{icon:_c.faPaperclip}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Rue(t){let e,n;return e=new et({props:{icon:mm.faSpinner,pulse:!0}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Pue(t){let e,n,r,i,s,o;e=new V_({props:{isDisabled:t[15]}}),e.$on("limitExceeded",t[30]),e.$on("change",t[25]);const a=[Rue,Nue],u=[];function l(c,d){return c[15]?0:1}return r=l(t),i=u[r]=a[r](t),{c(){j(e.$$.fragment),n=N(),i.c(),s=Pt()},m(c,d){B(e,c,d),O(c,n,d),u[r].m(c,d),O(c,s,d),o=!0},p(c,d){const h={};d[0]&32768&&(h.isDisabled=c[15]),e.$set(h);let m=r;r=l(c),r!==m&&($e(),T(u[m],1,1,()=>{u[m]=null}),Ce(),i=u[r],i||(i=u[r]=a[r](c),i.c()),E(i,1),i.m(s.parentNode,s))},i(c){o||(E(e.$$.fragment,c),E(i),o=!0)},o(c){T(e.$$.fragment,c),T(i),o=!1},d(c){c&&(I(n),I(s)),z(e,c),u[r].d(c)}}}function xue(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b=!t[20]&&t[4]&&NS(t),S={isHovering:t[10],isEditing:t[7],isInBook:t[20],isReply:t[1],user:t[0].user,spaceId:t[0].spaceId,publicId:t[0].publicId,content:t[0].content,attachments:t[14],entities:t[0].entities,inReplyToId:t[0].inReplyToId};i=new Cm({props:S}),t[46](i),i.$on("isUploading:change",t[26]),i.$on("attachment:limitExceeded",t[30]),i.$on("attachment:uploaded",t[27]),i.$on("attachment:failed",t[29]),i.$on("attachment:remove",t[28]),i.$on("submit",t[24]),i.$on("change",t[24]);let $=!t[3]&&!t[2]&&t[10]&&RS(t),D=!t[2]&&BS(t),P=t[20]&&(t[10]||t[7])&&!t[3]&&WS(t),x=t[7]&&!t[3]&&GS(t);return{c(){b&&b.c(),e=N(),n=C("div"),r=C("div"),j(i.$$.fragment),s=N(),$&&$.c(),o=N(),a=C("div"),D&&D.c(),u=N(),P&&P.c(),l=N(),x&&x.c(),c=N(),w(a,"class","meta svelte-zhj3qa"),w(r,"class","entryWrapper svelte-zhj3qa"),w(n,"class","EntryOnStream svelte-zhj3qa"),w(n,"data-publicid",h=t[0].publicId),w(n,"data-id",m=t[0].id),ve(n,"isMine",t[17]),ve(n,"autoAlign",t[5]),ve(n,"isInReplyTo",t[2]),ve(n,"isPinned",t[0].isPinned),ve(n,"isHovering",t[10]),ve(n,"isEditing",t[7]),ve(n,"isInDrawer",t[19]),ve(n,"isInBook",t[20]),ve(n,"isBeingDragged",t[12]),ve(n,"shouldHideWhileDragging",t[16])}
1051,m(R,q){b&&b.m(R,q),O(R,e,q),O(R,n,q),v(n,r),B(i,r,null),v(r,s),$&&$.m(r,null),v(r,o),v(r,a),D&&D.m(a,null),v(r,u),P&&P.m(r,null),v(r,l),x&&x.m(r,null),v(r,c),t[47](n),g=!0,k||(y=[zr(d=sse.call(null,r,{entry:t[0],context:t[18],onDragStart:t[39],onDragEnd:t[40],onIntentChange:t[41],disabled:!t[6],handleSelector:".dragHandle"})),Ie(n,"click",t[36]),Ie(n,"mouseenter",t[37]),Ie(n,"mouseleave",t[38])],k=!0)},p(R,q){!R[20]&&R[4]?b?b.p(R,q):(b=NS(R),b.c(),b.m(e.parentNode,e)):b&&(b.d(1),b=null);const F={};q[0]&1024&&(F.isHovering=R[10]),q[0]&128&&(F.isEditing=R[7]),q[0]&2&&(F.isReply=R[1]),q[0]&1&&(F.user=R[0].user),q[0]&1&&(F.spaceId=R[0].spaceId),q[0]&1&&(F.publicId=R[0].publicId),q[0]&1&&(F.content=R[0].content),q[0]&16384&&(F.attachments=R[14]),q[0]&1&&(F.entities=R[0].entities),q[0]&1&&(F.inReplyToId=R[0].inReplyToId),i.$set(F),!R[3]&&!R[2]&&R[10]?$?($.p(R,q),q[0]&1036&&E($,1)):($=RS(R),$.c(),E($,1),$.m(r,o)):$&&($e(),T($,1,1,()=>{$=null}),Ce()),R[2]?D&&($e(),T(D,1,1,()=>{D=null}),Ce()):D?(D.p(R,q),q[0]&4&&E(D,1)):(D=BS(R),D.c(),E(D,1),D.m(a,null)),R[20]&&(R[10]||R[7])&&!R[3]?P?q[0]&1160&&E(P,1):(P=WS(R),P.c(),E(P,1),P.m(r,l)):P&&($e(),T(P,1,1,()=>{P=null}),Ce()),R[7]&&!R[3]?x?(x.p(R,q),q[0]&136&&E(x,1)):(x=GS(R),x.c(),E(x,1),x.m(r,c)):x&&($e(),T(x,1,1,()=>{x=null}),Ce()),d&&di(d.update)&&q[0]&65&&d.update.call(null,{entry:R[0],context:R[18],onDragStart:R[39],onDragEnd:R[40],onIntentChange:R[41],disabled:!R[6],handleSelector:".dragHandle"}),(!g||q[0]&1&&h!==(h=R[0].publicId))&&w(n,"data-publicid",h),(!g||q[0]&1&&m!==(m=R[0].id))&&w(n,"data-id",m),(!g||q[0]&131072)&&ve(n,"isMine",R[17]),(!g||q[0]&32)&&ve(n,"autoAlign",R[5]),(!g||q[0]&4)&&ve(n,"isInReplyTo",R[2]),(!g||q[0]&1)&&ve(n,"isPinned",R[0].isPinned),(!g||q[0]&1024)&&ve(n,"isHovering",R[10]),(!g||q[0]&128)&&ve(n,"isEditing",R[7]),(!g||q[0]&4096)&&ve(n,"isBeingDragged",R[12]),(!g||q[0]&65536)&&ve(n,"shouldHideWhileDragging",R[16])},i(R){g||(E(i.$$.fragment,R),E($),E(D),E(P),E(x),g=!0)},o(R){T(i.$$.fragment,R),T($),T(D),T(P),T(x),g=!1},d(R){R&&(I(e),I(n)),b&&b.d(R),t[46](null),z(i),$&&$.d(),D&&D.d(),P&&P.d(),x&&x.d(),t[47](null),k=!1,fn(y)}}}var kr;(function(t){t.Idle="idle",t.Hovering="hovering",t.Editing="editing",t.Dragging="dragging"})(kr||(kr={}));function que(t,e,n){let r,i,s;Ke(t,vi,he=>n(45,s=he));var o;let{entry:a}=e,{isReply:u=!1}=e,{isInReplyTo:l=!1}=e,{isInPublicSpace:c=!1}=e,{dateVisible:d=!1}=e,{autoAlign:h=!0}=e,{draggable:m=!0}=e,{canEdit:g=void 0}=e;const k=p7(),y=k.type===Qr.Drawer,b=k.type===Qr.Book,S=k.type===Qr.Chat;let $;const D={};g!==void 0&&(D.canEdit=g);let P=kr.Idle,x=P;const R=by(P,{[kr.Idle]:{mouseEnter:kr.Hovering,_exit:()=>{x=i}},[kr.Hovering]:{click:()=>{if($.canEdit&&!y)return kr.Editing},edit:()=>{if($.canEdit)return kr.Editing},mouseLeave:kr.Idle,dragStart:kr.Dragging,_exit:()=>{x=i}},[kr.Dragging]:{mouseLeave:()=>{x=x===kr.Hovering?kr.Idle:x},mouseEnter:()=>{x=x===kr.Idle?kr.Hovering:x},dragEnd:()=>x},[kr.Editing]:{clickOut:kr.Idle,dragStart:kr.Dragging,_enter:()=>{window.addEventListener("click",q)},_exit:()=>{x=i,window.removeEventListener("click",q)}}});Ke(t,R,he=>n(8,i=he));const q=he=>{if(!L)return;const Pe=he.target;L.contains(Pe)||L==Pe||R.clickOut()};let F=!1,L,M=!1;const V=Cr();let H,J=!1;const Z=()=>{R.edit()};let Q=!1;const K=async()=>{const he=H.buildPayload();try{Q=!0;const Pe=await g0({variables:{id:a.id,attachmentIds:G.map(Le=>Le.id),content:he.content}}),{errors:Se}=Pe.data.editEntry;Se.forEach(Le=>xu({type:Ho.Error,message:Le.message}))}catch(Pe){console.log(Pe)}finally{Q=!1}};let G,se=!1;const fe=he=>{H.newAttachmentFromFile(he.detail.file)},me=he=>{n(15,se=he.detail.isUploading)},Ae=he=>{n(14,G=[...G,he.detail.attachment])},ee=he=>{n(14,G=G.filter(Pe=>Pe.id!==he.detail.attachment.id))},ue=he=>{he.detail.errors.forEach(Pe=>{xu({type:Ho.Error,message:Pe.message})})},ie=()=>{V("showUploadLimitExceededModal")},de=()=>V("reply",{entry:a}),Fe=()=>V("delete",{entry:a}),Ve=()=>V("pin",{entry:a}),Te=()=>V("focus",{entry:a}),we=()=>V("addToBook",{entry:a}),je=he=>{if(c)return;const Pe=he.target;r&&Pe.tagName.toLowerCase()==="div"&&!S&&(he.preventDefault(),R.click())},Je=()=>{R.mouseEnter()},Ne=()=>{R.mouseLeave()},Ge=()=>{R.dragStart()},nt=()=>{R.dragEnd()};let rt=!1;const Ze=(he,Pe)=>{n(16,rt=(Pe==null?void 0:Pe.type)===za.BookAdd&&he.context.type===Qr.Book||he.context.type===Qr.Drawer)};lo(()=>{V("unmounted",{element:L})}),$r(()=>{V("mounted",{element:L})});function at(he){Qe[he?"unshift":"push"](()=>{H=he,n(13,H)})}function bt(he){Qe[he?"unshift":"push"](()=>{L=he,n(11,L)})}return t.$$set=he=>{"entry"in he&&n(0,a=he.entry),"isReply"in he&&n(1,u=he.isReply),"isInReplyTo"in he&&n(2,l=he.isInReplyTo),"isInPublicSpace"in he&&n(3,c=he.isInPublicSpace),"dateVisible"in he&&n(4,d=he.dateVisible),"autoAlign"in he&&n(5,h=he.autoAlign),"draggable"in he&&n(6,m=he.draggable),"canEdit"in he&&n(42,g=he.canEdit)},t.$$.update=()=>{t.$$.dirty[0]&1|t.$$.dirty[1]&8192&&n(9,$=d7({entry:a,context:k,pin:a.pin},D)),t.$$.dirty[0]&256&&n(10,F=i===kr.Hovering),t.$$.dirty[0]&1|t.$$.dirty[1]&20480&&n(17,r=s&&s.id===(n(43,o=a.user)===null||o===void 0?void 0:o.id)),t.$$.dirty[0]&256&&n(12,M=i===kr.Dragging),t.$$.dirty[0]&256&&n(7,J=i===kr.Editing),t.$$.dirty[0]&129&&(J||n(14,G=a.attachments))},[a,u,l,c,d,h,m,J,i,$,F,L,M,H,G,se,rt,r,k,y,b,S,R,Z,K,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,Ze,g,o,D,s,at,bt]}
1051class Iy extends pt{constructor(e){super(),ht(this,e,que,xue,dt,{entry:0,isReply:1,isInReplyTo:2,isInPublicSpace:3,dateVisible:4,autoAlign:5,draggable:6,canEdit:42},yue,[-1,-1])}}function Fue(t){Et(t,"svelte-hu1ei1",".DestroyShowcase.svelte-hu1ei1{padding:2rem 0;background-color:var(--c-border);border-radius:0.75rem}p.svelte-hu1ei1{margin-bottom:2rem}")}function Lue(t){let e;return{c(){e=C("span"),e.textContent="Are you sure?",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function Mue(t){let e,n,r,i,s,o;return s=new Iy({props:{entry:t[0],isInReplyTo:!0}}),{c(){e=C("span"),n=C("p"),n.textContent="Following entry will be permanently deleted!",r=N(),i=C("div"),j(s.$$.fragment),w(n,"class","svelte-hu1ei1"),w(i,"class","DestroyShowcase svelte-hu1ei1"),w(e,"slot","content")},m(a,u){O(a,e,u),v(e,n),v(e,r),v(e,i),B(s,i,null),o=!0},p(a,u){const l={};u&1&&(l.entry=a[0]),s.$set(l)},i(a){o||(E(s.$$.fragment,a),o=!0)},o(a){T(s.$$.fragment,a),o=!1},d(a){a&&I(e),z(s)}}}function Bue(t){let e;return{c(){e=oe("Delete")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function zue(t){let e,n,r;return n=new We({props:{small:!0,destroy:!0,disabled:t[1],margin:"0 0.5rem 0 0",$$slots:{default:[Bue]},$$scope:{ctx:t}}}),n.$on("click",t[3]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};s&2&&(o.disabled=i[1]),s&64&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function jue(t){let e,n;return e=new Ar({props:{medium:!0,onClose:t[2],closeText:"Cancel",$$slots:{primaryButton:[zue],content:[Mue],title:[Lue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,[i]){const s={};i&67&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Uue(t,e,n){let{entryToDestroy:r=null}=e;const i=Cr();let s=!1;const o=()=>{i("cancel")},a=nn([]),u=async()=>{n(1,s=!0);try{const l=await GW({variables:{id:r.id}});a.set(l.data.destroyEntry.errors),i("entryDestroyed")}catch(l){console.log(l)}finally{n(1,s=!1)}};return t.$$set=l=>{"entryToDestroy"in l&&n(0,r=l.entryToDestroy)},[r,s,o,u]}class Oy extends pt{constructor(e){super(),ht(this,e,Uue,jue,dt,{entryToDestroy:0},Fue)}}function Hue(t){Et(t,"svelte-rg1kn6",'.Book.svelte-rg1kn6.svelte-rg1kn6{min-width:52rem;max-width:52rem;z-index:2;transition:margin var(--transition-duration-fast) var(--transition-timing-function)}.Book.svelte-rg1kn6 .header.svelte-rg1kn6{position:relative}.Book.svelte-rg1kn6 .header h2.svelte-rg1kn6{font-size:1.8rem;font-weight:500;color:var(--c-text);letter-spacing:0.5px;filter:brightness(1.05);outline:none}.Book.svelte-rg1kn6.svelte-rg1kn6:not(.isOpen){margin-right:0.2rem;min-width:4rem}.Book.svelte-rg1kn6:not(.isOpen) .header.svelte-rg1kn6{writing-mode:tb;transform:rotate(-180deg);cursor:pointer}.Book.svelte-rg1kn6:not(.isOpen) .header h2.svelte-rg1kn6{padding:1.5rem 1rem 3rem}.Book.svelte-rg1kn6.svelte-rg1kn6:not(.isOpen):hover{filter:brightness(1.05)}.Book.isOpen.svelte-rg1kn6.svelte-rg1kn6{display:flex;flex-direction:column;width:52rem;height:calc(100% - 6rem);margin-right:2rem;background-color:var(--c-book-bg)}.Book.isOpen.svelte-rg1kn6 .header.svelte-rg1kn6{position:relative;min-height:unset !important}.Book.isOpen.svelte-rg1kn6 .header h2.svelte-rg1kn6{width:calc(100% - 9rem);padding:2rem 2rem 2rem 5.5rem;border-left:1px dotted hsla(0, 0%, 0%, 0.05)}.Book.isOpen.svelte-rg1kn6 .header .buttons.svelte-rg1kn6{position:absolute;top:0;right:0;display:flex;align-items:center;gap:0.5rem;height:6rem;padding-right:2rem;opacity:0.25}.Book.isOpen.svelte-rg1kn6 .header .buttons.hovering.svelte-rg1kn6{opacity:1}.Book.isOpen.svelte-rg1kn6 .header .buttons .minimizeButton.svelte-rg1kn6,.Book.isOpen.svelte-rg1kn6 .header .buttons .maximizeButton.svelte-rg1kn6{display:inline-block;transform:rotate(45deg);font-size:1.8rem}.Book.isOpen.svelte-rg1kn6 .header .buttons .maximizeButton.svelte-rg1kn6{transform:rotate(225deg)}.Book.isOpen.svelte-rg1kn6 .bookBody.svelte-rg1kn6{position:relative;display:flex;flex-direction:column;justify-content:flex-end;flex-grow:1;overflow:hidden;padding:0 2.75rem;background-color:var(--c-book-bg)}.Book.isFullscreen.svelte-rg1kn6.svelte-rg1kn6{position:fixed;top:1rem;right:1rem;bottom:1rem;min-width:unset;max-width:unset;width:calc(100% - 2rem);height:calc(100% - 2rem);margin:0;padding:0;font-size:125%;line-height:1.3em;border-radius:1rem;overflow:hidden}.Book.isFullscreen.svelte-rg1kn6 .bookBody.svelte-rg1kn6{max-width:62rem;margin:auto}.Book.isFullscreen.svelte-rg1kn6 .header h2.svelte-rg1kn6{max-width:62rem;margin:auto}.bookEntries.svelte-rg1kn6.svelte-rg1kn6{display:flex;flex-direction:column;flex-grow:1;overflow-x:hidden;overflow-y:auto;padding-top:2rem}.initialHelp.svelte-rg1kn6.svelte-rg1kn6{padding:0 2rem 2rem;color:var(--c-text-faded)}.emptyPlaceholder.svelte-rg1kn6.svelte-rg1kn6{display:flex;flex-grow:1;width:100%;padding:0 var(--e-spacing)}.bookEntries .appendTop::before,.bookEntries .appendBottom::after{content:"";display:block;width:100%;height:6rem;margin:1rem 0;background:var(--c-border)}@media screen and (max-width: 768px){.Book.isOpen.svelte-rg1kn6.svelte-rg1kn6{width:100%;max-width:100%;min-width:100%}.Book.isOpen.svelte-rg1kn6 .bookBody.svelte-rg1kn6{padding:0;margin:0 -1.6rem}.Book.isOpen.svelte-rg1kn6 .header h2.svelte-rg1kn6{padding:2rem 1.6rem}}')}function YS(t,e,n){const r=t.slice();return r[62]=e[n],r[64]=n,r}function QS(t){let e,n;return e=new Ar({props:{onClose:t[20],closeText:"Cancel",$$slots:{primaryButton:[Yue],content:[Wue],title:[Vue]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&1026|i[2]&8&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Vue(t){let e;return{c(){e=C("span"),e.textContent="Are you sure?",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function Wue(t){let e,n,r=t[1].name+"",i,s;return{c(){e=C("span"),n=oe('Are you sure you want to delete "'),i=oe(r),s=oe('"? Entries in the document will not be deleted.'),w(e,"slot","content")},m(o,a){O(o,e,a),v(e,n),v(e,i),v(e,s)},p(o,a){a[0]&2&&r!==(r=o[1].name+"")&&Wt(i,r)},d(o){o&&I(e)}}}function Gue(t){let e;return{c(){e=oe("Delete")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Yue(t){let e,n,r;return n=new We({props:{small:!0,destroy:!0,disabled:t[10],margin:"0 0.5rem 0 0",$$slots:{default:[Gue]},$$scope:{ctx:t}}}),n.$on("click",t[21]),{c(){e=C("span"),j(n.$$.fragment),w(e,"slot","primaryButton")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p(i,s){const o={};
1051s[0]&1024&&(o.disabled=i[10]),s[2]&8&&(o.$$scope={dirty:s,ctx:i}),n.$set(o)},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function ZS(t){let e,n,r,i,s,o=!t[2]&&XS(t);r=new We({props:{tiny:!0,square:!0,reveal:!0,$$slots:{default:[Kue]},$$scope:{ctx:t}}}),r.$on("click",t[22]);let a=!t[8]&&KS(t);return{c(){e=C("div"),o&&o.c(),n=N(),j(r.$$.fragment),i=N(),a&&a.c(),w(e,"class","buttons svelte-rg1kn6"),ve(e,"hovering",t[6])},m(u,l){O(u,e,l),o&&o.m(e,null),v(e,n),B(r,e,null),v(e,i),a&&a.m(e,null),s=!0},p(u,l){u[2]?o&&($e(),T(o,1,1,()=>{o=null}),Ce()):o?(o.p(u,l),l[0]&4&&E(o,1)):(o=XS(u),o.c(),E(o,1),o.m(e,n));const c={};l[0]&256|l[2]&8&&(c.$$scope={dirty:l,ctx:u}),r.$set(c),u[8]?a&&($e(),T(a,1,1,()=>{a=null}),Ce()):a?(a.p(u,l),l[0]&256&&E(a,1)):(a=KS(u),a.c(),E(a,1),a.m(e,null)),(!s||l[0]&64)&&ve(e,"hovering",u[6])},i(u){s||(E(o),E(r.$$.fragment,u),E(a),s=!0)},o(u){T(o),T(r.$$.fragment,u),T(a),s=!1},d(u){u&&I(e),o&&o.d(),z(r),a&&a.d()}}}function XS(t){let e,n;return e=new We({props:{tiny:!0,square:!0,reveal:!0,danger:!0,$$slots:{default:[Que]},$$scope:{ctx:t}}}),e.$on("click",t[19]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[2]&8&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Que(t){let e,n;return e=new et({props:{icon:kd.faTrash}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Zue(t){let e,n,r;return n=new et({props:{icon:Ed.faArrowDown}}),{c(){e=C("span"),j(n.$$.fragment),w(e,"class","maximizeButton svelte-rg1kn6")},m(i,s){O(i,e,s),B(n,e,null),r=!0},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Xue(t){let e,n,r;return n=new et({props:{icon:Ed.faArrowDown}}),{c(){e=C("span"),j(n.$$.fragment),w(e,"class","minimizeButton svelte-rg1kn6")},m(i,s){O(i,e,s),B(n,e,null),r=!0},i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function Kue(t){let e,n,r,i;const s=[Xue,Zue],o=[];function a(u,l){return u[8]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e!==c&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n||(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function KS(t){let e,n;return e=new We({props:{tiny:!0,square:!0,reveal:!0,$$slots:{default:[Jue]},$$scope:{ctx:t}}}),e.$on("click",t[18]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[2]&8&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Jue(t){let e,n,r;return n=new et({props:{icon:Ed.faArrowDown}}),{c(){e=C("span"),j(n.$$.fragment),w(e,"class","minimizeButton svelte-rg1kn6")},m(i,s){O(i,e,s),B(n,e,null),r=!0},p:Ee,i(i){r||(E(n.$$.fragment,i),r=!0)},o(i){T(n.$$.fragment,i),r=!1},d(i){i&&I(e),z(n)}}}function JS(t){let e,n,r,i;const s=[tle,ele],o=[];function a(u,l){return!u[15]||u[12].loading?0:u[12].data?1:-1}return~(n=a(t))&&(r=o[n]=s[n](t)),{c(){e=C("div"),r&&r.c(),w(e,"class","bookBody svelte-rg1kn6")},m(u,l){O(u,e,l),~n&&o[n].m(e,null),i=!0},p(u,l){let c=n;n=a(u),n===c?~n&&o[n].p(u,l):(r&&($e(),T(o[c],1,1,()=>{o[c]=null}),Ce()),~n?(r=o[n],r?r.p(u,l):(r=o[n]=s[n](u),r.c()),E(r,1),r.m(e,null)):r=null)},i(u){i||(E(r),i=!0)},o(u){T(r),i=!1},d(u){u&&I(e),~n&&o[n].d()}}}function ele(t){let e,n,r=[],i=new Map,s,o,a,u,l,c,d,h,m=t[13].length===0&&!t[2]&&e8(),g=Ut(t[13]);const k=b=>b[62].id;for(let b=0;b<g.length;b+=1){let S=YS(t,g,b),$=k(S);i.set($,r[b]=t8($,S))}let y=!t[2]&&n8(t);return{c(){e=C("div"),m&&m.c(),n=N();for(let b=0;b<r.length;b+=1)r[b].c();s=N(),o=C("div"),u=N(),y&&y.c(),l=Pt(),w(o,"class","emptyPlaceholder svelte-rg1kn6"),w(e,"class","bookEntries svelte-rg1kn6")},m(b,S){O(b,e,S),m&&m.m(e,null),v(e,n);for(let $=0;$<r.length;$+=1)r[$]&&r[$].m(e,null);v(e,s),v(e,o),t[41](o),t[42](e),O(b,u,S),y&&y.m(b,S),O(b,l,S),c=!0,d||(h=zr(a=T7.call(null,e,{intent:{type:za.BookAdd,book:t[1]},onEnter:t[31],onMove:t[28],onDrop:t[29],onLeave:t[30]})),d=!0)},p(b,S){b[13].length===0&&!b[2]?m||(m=e8(),m.c(),m.m(e,n)):m&&(m.d(1),m=null),S[0]&67117060&&(g=Ut(b[13]),$e(),r=fo(r,S,k,1,b,g,i,e,co,t8,s,YS),Ce()),a&&di(a.update)&&S[0]&2&&a.update.call(null,{intent:{type:za.BookAdd,book:b[1]},onEnter:b[31],onMove:b[28],onDrop:b[29],onLeave:b[30]}),b[2]?y&&($e(),T(y,1,1,()=>{y=null}),Ce()):y?(y.p(b,S),S[0]&4&&E(y,1)):(y=n8(b),y.c(),E(y,1),y.m(l.parentNode,l))},i(b){if(!c){for(let S=0;S<g.length;S+=1)E(r[S]);E(y),c=!0}},o(b){for(let S=0;S<r.length;S+=1)T(r[S]);T(y),c=!1},d(b){b&&(I(e),I(u),I(l)),m&&m.d();for(let S=0;S<r.length;S+=1)r[S].d();t[41](null),t[42](null),y&&y.d(b),d=!1,h()}}}function tle(t){let e;return{c(){e=C("div"),e.textContent="Loading..."},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function e8(t){let e;return{c(){e=C("div"),e.innerHTML="<ul><li>Send ideas from wall or chats into this document</li> <li>Write personal notes for context</li> <li>Move and organize the order</li></ul>",w(e,"class","initialHelp svelte-rg1kn6")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function t8(t,e){let n,r,i;return r=new Iy({props:{dateVisible:!1,isInPublicSpace:e[2],entry:e[62].entry}}),r.$on("reply",e[35]),r.$on("delete",e[26]),r.$on("pin",e[36]),r.$on("focus",e[37]),r.$on("addToBook",e[38]),r.$on("select",e[39]),r.$on("showUploadLimitExceededModal",e[40]),{key:t,first:null,c(){n=Pt(),j(r.$$.fragment),this.first=n},m(s,o){O(s,n,o),B(r,s,o),i=!0},p(s,o){e=s;const a={};o[0]&4&&(a.isInPublicSpace=e[2]),o[0]&8192&&(a.entry=e[62].entry),r.$set(a)},i(s){i||(E(r.$$.fragment,s),i=!0)},o(s){T(r.$$.fragment,s),i=!1},d(s){s&&I(n),z(r,s)}}}function n8(t){let e,n,r={minimized:!1,isInBook:!0,spaceId:t[1].spaceId,placeholder:"New note...",canAttach:!0};return e=new XC({props:r}),t[43](e),e.$on("submit",t[24]),e.$on("showUploadLimitExceededModal",t[44]),{c(){j(e.$$.fragment)},m(i,s){B(e,i,s),n=!0},p(i,s){const o={};
1051s[0]&2&&(o.spaceId=i[1].spaceId),e.$set(o)},i(i){n||(E(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){t[43](null),z(e,i)}}}function r8(t){let e,n;return e=new Oy({props:{entryToDestroy:t[11]}}),e.$on("entryDestroyed",t[25]),e.$on("cancel",t[27]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&2048&&(s.entryToDestroy=r[11]),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function nle(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g=t[9]&&QS(t);s=new H_({props:{isEnabled:!t[0]&&!t[2],value:t[1].name,changeHandler:t[23]}});let k=!t[0]&&ZS(t),y=!t[0]&&JS(t),b=!!t[11]&&r8(t);return{c(){g&&g.c(),e=N(),n=C("div"),r=C("div"),i=C("h2"),j(s.$$.fragment),o=N(),k&&k.c(),a=N(),y&&y.c(),l=N(),b&&b.c(),c=Pt(),w(i,"class","svelte-rg1kn6"),w(r,"class","header svelte-rg1kn6"),He(r,"background-color",t[7].colorString),He(r,"min-height",t[7].height.min+"rem"),He(r,"max-height",t[7].height.max+"rem"),w(n,"class","Book svelte-rg1kn6"),ve(n,"isFullscreen",t[8]),ve(n,"isOpen",!t[0])},m(S,$){g&&g.m(S,$),O(S,e,$),O(S,n,$),v(n,r),v(r,i),B(s,i,null),v(r,o),k&&k.m(r,null),v(n,a),y&&y.m(n,null),O(S,l,$),b&&b.m(S,$),O(S,c,$),d=!0,h||(m=[Ie(r,"click",t[17]),zr(u=Qf.call(null,n,t[8]?document.body:void 0)),Ie(n,"mouseenter",t[45]),Ie(n,"mouseleave",t[46])],h=!0)},p(S,$){S[9]?g?(g.p(S,$),$[0]&512&&E(g,1)):(g=QS(S),g.c(),E(g,1),g.m(e.parentNode,e)):g&&($e(),T(g,1,1,()=>{g=null}),Ce());const D={};$[0]&5&&(D.isEnabled=!S[0]&&!S[2]),$[0]&2&&(D.value=S[1].name),s.$set(D),S[0]?k&&($e(),T(k,1,1,()=>{k=null}),Ce()):k?(k.p(S,$),$[0]&1&&E(k,1)):(k=ZS(S),k.c(),E(k,1),k.m(r,null)),(!d||$[0]&128)&&He(r,"background-color",S[7].colorString),(!d||$[0]&128)&&He(r,"min-height",S[7].height.min+"rem"),(!d||$[0]&128)&&He(r,"max-height",S[7].height.max+"rem"),S[0]?y&&($e(),T(y,1,1,()=>{y=null}),Ce()):y?(y.p(S,$),$[0]&1&&E(y,1)):(y=JS(S),y.c(),E(y,1),y.m(n,null)),u&&di(u.update)&&$[0]&256&&u.update.call(null,S[8]?document.body:void 0),(!d||$[0]&256)&&ve(n,"isFullscreen",S[8]),(!d||$[0]&1)&&ve(n,"isOpen",!S[0]),S[11]?b?(b.p(S,$),$[0]&2048&&E(b,1)):(b=r8(S),b.c(),E(b,1),b.m(c.parentNode,c)):b&&($e(),T(b,1,1,()=>{b=null}),Ce())},i(S){d||(E(g),E(s.$$.fragment,S),E(k),E(y),E(b),d=!0)},o(S){T(g),T(s.$$.fragment,S),T(k),T(y),T(b),d=!1},d(S){S&&(I(e),I(n),I(l),I(c)),g&&g.d(S),z(s),k&&k.d(),y&&y.d(),b&&b.d(S),h=!1,fn(m)}}}const rle=50,ile=1,sle=25,i8=.2;function ole(t,e,n){let r,i,s;Ke(t,ji,ye=>n(34,s=ye));let{navigateTo:o=null}=e,{book:a}=e,{minimized:u=!0}=e,{isVisiting:l=!1}=e;const c=cy();let d,h,m,g=!1,k=!1,y=qu(a,s.darkMode);const b=Cr();let S=!1;const $=hG({initialFetchPolicy:"standby"});Ke(t,$,ye=>n(12,r=ye));const D=hr($,ye=>{var Xe,Be;return uH(((Be=(Xe=ye==null?void 0:ye.data)===null||Xe===void 0?void 0:Xe.book)===null||Be===void 0?void 0:Be.bookEntries)||[]).sort((mt,Ct)=>mt.position-Ct.position)});Ke(t,D,ye=>n(13,i=ye));const P=()=>(r.query.refetch({id:a.id}),$),x=()=>{u&&(n(0,u=!1),b("toggle",{id:a.id,minimized:u}))},R=()=>{u||(n(0,u=!0),b("toggle",{id:a.id,minimized:u}))},q=nn([]);let F=!1,L=!1;const M=()=>{n(9,F=!0)},V=()=>{n(9,F=!1)},H=async()=>{n(10,L=!0);try{const ye=await XW({variables:{id:a.id}}),{errors:Xe}=ye.data.destroyBook;q.set(Xe),b("destroyed"),V()}catch(ye){console.log(ye)}finally{n(10,L=!1)}},J=()=>{n(8,S=!S)},Z=async ye=>ZW({variables:{name:ye,id:a.id}});let Q=!1;const K=nn([]),G=async ye=>{try{Q=!0;const Xe=await WW({variables:{spaceId:a.spaceId,bookIds:[a.id],attachmentIds:ye.detail.attachmentIds,content:ye.detail.content}}),{errors:Be}=Xe.data.createEntry;K.set(Be),Be.length===0&&(m.reset(),b("entryCreated"),g=!0,P())}catch(Xe){console.log(Xe)}finally{Q=!1}};let se=null;const fe=async()=>{n(11,se=null),r.query.refetch(),b("entryDestroyed")},me=async ye=>{const{entry:Xe}=ye.detail;n(11,se=Xe)},Ae=()=>{n(11,se=null)};let ee=null;const ue=()=>{d.querySelectorAll(".bookEntries .appendTop").forEach(Be=>Be.classList.remove("appendTop")),d.querySelectorAll(".bookEntries .appendBottom").forEach(Be=>Be.classList.remove("appendBottom"))};let ie=0,de=0,Fe=null;const Ve=(ye,Xe)=>{const Be=ye.target;if(Be===h){ue(),Be.classList.add("appendTop");return}const it=Be.closest(".EntryOnStream");if(!it)return;const mt=d.getBoundingClientRect(),Ct=(ye.clientY-mt.y)/mt.height,ft=d.scrollHeight-mt.height;if(Ct<i8&&d.scrollTop>0?de=-1:Ct>1-i8&&d.scrollTop<ft?de=1:de=0,ue(),it.dataset.id===Xe.entry.id){ee=null;return}
1051const It=it.getBoundingClientRect(),Tt=ye.clientY<It.y+It.height/2;it.classList.add(Tt?"appendTop":"appendBottom");const _t=it.dataset.id,gt=i.findIndex(vn=>vn.entryId===_t),ce=Tt?gt-1:gt+1,pe=i[gt],st=i[ce];st?ee=(pe.position+st.position)/2:ee=pe.position+(Tt?-.5:.5)||null},Te=async(ye,Xe)=>{await g0({variables:{id:Xe.entry.id,entryBooks:[{command:m0.Set,bookId:a.id,position:ee}]}}),we()},we=(ye,Xe)=>{clearInterval(Fe),ue(),ee=null},je=()=>{ie=0,Fe=setInterval(()=>{if(de===0){ie=0;return}Math.abs(ie)<rle&&(ie+=de*ile),n(3,d.scrollTop+=ie,d)},sle)},Je=sc();let Ne=()=>{};Je&&!u&&(Ne=sc().store.listen(ye=>{ye.message.subject===`/Book/${a.id}`&&r.query.refetch()})),lo(()=>{clearInterval(Fe),Ne()}),Va(()=>{if(d){if(g)n(3,d.scrollTop=d.scrollHeight,d),g=!1;else if(Je&&(o==null?void 0:o.type)=="book"&&(o==null?void 0:o.book.id)===a.id&&!u&&r.data){const ye=d.querySelector(`[data-id="${o.entry.id}"]`);ye&&(ye.scrollIntoView(),ye.animate([{boxShadow:"inset 0 0 10px #fff"},{boxShadow:"inset 0 0 10px transparent"}],{duration:500})),Je.navigate(null)}}});function Ge(ye){Ht.call(this,t,ye)}function nt(ye){Ht.call(this,t,ye)}function rt(ye){Ht.call(this,t,ye)}function Ze(ye){Ht.call(this,t,ye)}function at(ye){Ht.call(this,t,ye)}function bt(ye){Ht.call(this,t,ye)}function he(ye){Qe[ye?"unshift":"push"](()=>{h=ye,n(4,h)})}function Pe(ye){Qe[ye?"unshift":"push"](()=>{d=ye,n(3,d)})}function Se(ye){Qe[ye?"unshift":"push"](()=>{m=ye,n(5,m)})}function Le(ye){Ht.call(this,t,ye)}const te=()=>n(6,k=!0),X=()=>n(6,k=c);return t.$$set=ye=>{"navigateTo"in ye&&n(32,o=ye.navigateTo),"book"in ye&&n(1,a=ye.book),"minimized"in ye&&n(0,u=ye.minimized),"isVisiting"in ye&&n(2,l=ye.isVisiting)},t.$$.update=()=>{t.$$.dirty[0]&2&&qd({type:Qr.Book,book:a}),t.$$.dirty[0]&2|t.$$.dirty[1]&8&&n(7,y=qu(a,s.darkMode)),t.$$.dirty[0]&1&&(u||P()),t.$$.dirty[0]&1|t.$$.dirty[1]&4&&u&&(Ne&&Ne(),n(33,Ne=()=>{}))},[u,a,l,d,h,m,k,y,S,F,L,se,r,i,c,$,D,x,R,M,V,H,J,Z,G,fe,me,Ae,Ve,Te,we,je,o,Ne,s,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X]}class U7 extends pt{constructor(e){super(),ht(this,e,ole,nle,dt,{navigateTo:32,book:1,minimized:0,isVisiting:2},Hue,[-1,-1,-1])}}function ale(t){Et(t,"svelte-dx6ypt",".BookShelf.svelte-dx6ypt{display:flex;flex-direction:row;align-items:flex-end;transform-origin:bottom right;position:absolute;right:0;bottom:0px}")}function s8(t,e,n){const r=t.slice();return r[4]=e[n],r}function ule(t){let e,n,r=Ut(t[2].data.space.books),i=[];for(let o=0;o<r.length;o+=1)i[o]=o8(s8(t,r,o));const s=o=>T(i[o],1,1,()=>{i[o]=null});return{c(){e=C("div");for(let o=0;o<i.length;o+=1)i[o].c();w(e,"class","BookShelf svelte-dx6ypt"),He(e,"transform","scale("+t[1]+")")},m(o,a){O(o,e,a);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(e,null);n=!0},p(o,a){if(a&5){r=Ut(o[2].data.space.books);let u;for(u=0;
1051u<r.length;u+=1){const l=s8(o,r,u);i[u]?(i[u].p(l,a),E(i[u],1)):(i[u]=o8(l),i[u].c(),E(i[u],1),i[u].m(e,null))}for($e(),u=r.length;u<i.length;u+=1)s(u);Ce()}(!n||a&2)&&He(e,"transform","scale("+o[1]+")")},i(o){if(!n){for(let a=0;a<r.length;a+=1)E(i[a]);n=!0}},o(o){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)T(i[a]);n=!1},d(o){o&&I(e),Ci(i,o)}}}function lle(t){let e,n;return e=new pm({}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function cle(t){let e,n,r;return e=new U7({props:{book:t[4]}}),{c(){j(e.$$.fragment),n=N()},m(i,s){B(e,i,s),O(i,n,s),r=!0},p(i,s){const o={};s&4&&(o.book=i[4]),e.$set(o)},i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function o8(t){let e,n;return e=new Ui({props:{to:`${t[0].urlPath}?books=${t[4].id}`,$$slots:{default:[cle]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&5&&(s.to=`${r[0].urlPath}?books=${r[4].id}`),i&132&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function fle(t){let e,n,r,i;const s=[lle,ule],o=[];function a(u,l){return u[2].loading?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,[l]){let c=e;e=a(u),e===c?o[e].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n?n.p(u,l):(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function dle(t,e,n){let r,{space:i}=e,{scale:s=1}=e;const o=uG({variables:{id:i.id}});return Ke(t,o,a=>n(2,r=a)),t.$$set=a=>{"space"in a&&n(0,i=a.space),"scale"in a&&n(1,s=a.scale)},[i,s,r,o]}class hle extends pt{constructor(e){super(),ht(this,e,dle,fle,dt,{space:0,scale:1},ale)}}var H7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="angle-down",r=448,i=512,s=[8964],o="f107",a="M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faAngleDown=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(H7);var V7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="angle-up",r=448,i=512,s=[8963],o="f106",a="M201.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 205.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faAngleUp=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(V7);function ple(t){Et(t,"svelte-1p0wkup",".toggle.svelte-1p0wkup{position:relative;z-index:5}.dropdownContent.svelte-1p0wkup{position:absolute;z-index:5;top:5rem;right:0rem;padding:2rem;padding-bottom:1rem;width:max-content;min-width:20rem;font-size:1.8rem;line-height:2.5rem;border-radius:2rem;background-color:var(--c-card);
1051box-shadow:var(--box-shadow)}.dropdownContent.svelte-1p0wkup .Button{margin-left:-1.4rem}p.svelte-1p0wkup{margin-bottom:1.5rem}hr.svelte-1p0wkup{grid-column:1 / -1;border:0;border-top:0.2rem solid var(--c-border-dark);margin:0.75rem -2rem}")}function mle(t){let e,n;return e=new et({props:{icon:H7.faAngleDown}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function gle(t){let e,n;return e=new et({props:{icon:V7.faAngleUp}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function vle(t){let e=t[2].username+"",n,r,i,s,o,a;const u=[gle,mle],l=[];function c(d,h){return d[0]?0:1}return i=c(t),s=l[i]=u[i](t),{c(){n=oe(e),r=N(),s.c(),o=Pt()},m(d,h){O(d,n,h),O(d,r,h),l[i].m(d,h),O(d,o,h),a=!0},p(d,h){(!a||h&4)&&e!==(e=d[2].username+"")&&Wt(n,e);let m=i;i=c(d),i!==m&&($e(),T(l[m],1,1,()=>{l[m]=null}),Ce(),s=l[i],s||(s=l[i]=u[i](d),s.c()),E(s,1),s.m(o.parentNode,o))},i(d){a||(E(s),a=!0)},o(d){T(s),a=!1},d(d){d&&(I(n),I(r),I(o)),l[i].d(d)}}}function a8(t){let e,n,r,i=t[2].username+"",s,o,a,u=t[2].email+"",l,c,d,h,m,g,k,y,b,S;return m=new We({props:{href:"/account",transparent:!0,$$slots:{default:[ble]},$$scope:{ctx:t}}}),b=new We({props:{transparent:!0,$$slots:{default:[_le]},$$scope:{ctx:t}}}),b.$on("click",t[3]),{c(){e=C("div"),n=C("p"),r=C("b"),s=oe(i),o=C("br"),a=N(),l=oe(u),c=N(),d=C("hr"),h=N(),j(m.$$.fragment),g=N(),k=C("hr"),y=N(),j(b.$$.fragment),w(n,"class","svelte-1p0wkup"),He(d,"border-color","hsl(230, 25%, "+t[1]+"%)"),w(d,"class","svelte-1p0wkup"),He(k,"border-color","hsl(230, 25%, "+t[1]+"%)"),w(k,"class","svelte-1p0wkup"),w(e,"class","dropdownContent svelte-1p0wkup")},m($,D){O($,e,D),v(e,n),v(n,r),v(r,s),v(n,o),v(n,a),v(n,l),v(e,c),v(e,d),v(e,h),B(m,e,null),v(e,g),v(e,k),v(e,y),B(b,e,null),S=!0},p($,D){(!S||D&4)&&i!==(i=$[2].username+"")&&Wt(s,i),(!S||D&4)&&u!==(u=$[2].email+"")&&Wt(l,u),(!S||D&2)&&He(d,"border-color","hsl(230, 25%, "+$[1]+"%)");const P={};D&32&&(P.$$scope={dirty:D,ctx:$}),m.$set(P),(!S||D&2)&&He(k,"border-color","hsl(230, 25%, "+$[1]+"%)");const x={};D&32&&(x.$$scope={dirty:D,ctx:$}),b.$set(x)},i($){S||(E(m.$$.fragment,$),E(b.$$.fragment,$),S=!0)},o($){T(m.$$.fragment,$),T(b.$$.fragment,$),S=!1},d($){$&&I(e),z(m),z(b)}}}function ble(t){let e;return{c(){e=oe("Account details")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function _le(t){let e;return{c(){e=oe("Sign out")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function yle(t){let e,n,r,i,s;r=new We({props:{hovering:t[0],title:"Show account details",$$slots:{default:[vle]},$$scope:{ctx:t}}}),r.$on("click",t[4]);let o=t[0]&&a8(t);return{c(){e=C("div"),n=C("div"),j(r.$$.fragment),i=N(),o&&o.c(),w(n,"class","toggle svelte-1p0wkup"),w(e,"class","AccountDropdown")},m(a,u){O(a,e,u),v(e,n),B(r,n,null),v(e,i),o&&o.m(e,null),s=!0},p(a,[u]){const l={};u&1&&(l.hovering=a[0]),u&37&&(l.$$scope={dirty:u,ctx:a}),r.$set(l),a[0]?o?(o.p(a,u),u&1&&E(o,1)):(o=a8(a),o.c(),E(o,1),o.m(e,null)):o&&($e(),T(o,1,1,()=>{o=null}),Ce())},i(a){s||(E(r.$$.fragment,a),E(o),s=!0)},o(a){T(r.$$.fragment,a),T(o),s=!1},d(a){a&&I(e),z(r),o&&o.d()}}}function wle(t,e,n){let r;Ke(t,vi,u=>n(2,r=u));let i=!1;const s=()=>{k$()},o=()=>{n(0,i=!i)};let a=94;return ji.subscribe(({darkMode:u})=>{n(1,a=u?16:94)}),[i,a,r,s,o]}class Ele extends pt{constructor(e){super(),ht(this,e,wle,yle,dt,{},ple)}}function kle(t){Et(t,"svelte-1k6qzq",'.Home.svelte-1k6qzq.svelte-1k6qzq{width:100vw;height:100vh}header.svelte-1k6qzq.svelte-1k6qzq{position:fixed;width:100%;padding:2rem;z-index:10}header.svelte-1k6qzq .right.svelte-1k6qzq{position:absolute;display:flex;align-items:center;top:2rem;right:2rem;gap:2rem}h2.svelte-1k6qzq.svelte-1k6qzq{font-family:"Athelas", "Times New Roman", "Times", serif;font-size:2.4rem;font-weight:400;line-height:2.8rem;letter-spacing:-0.5px;color:var(--c-text);margin-bottom:1rem}p.svelte-1k6qzq.svelte-1k6qzq{font-size:1.6rem;font-weight:400;line-height:2rem;letter-spacing:0.2px;color:var(--c-text);margin-bottom:1rem}.Spaces.svelte-1k6qzq.svelte-1k6qzq{display:grid;width:100%;height:100%;overflow-y:auto;padding:15vh 15vw;grid-template-columns:1fr 1fr;grid-template-rows:auto;column-gap:5vw;row-gap:5vw;background-color:var(--bgColor)}.Spaces.svelte-1k6qzq a{display:block}.Spaces.svelte-1k6qzq .footer.svelte-1k6qzq{grid-column:1 / -1;height:min-content;background:var(--c-card-fader);padding:3rem 2rem 2rem;border-radius:2rem}.Space.svelte-1k6qzq.svelte-1k6qzq{background-size:contain;position:relative;overflow:auto;min-height:33vh;background-color:var(--c-space-bg);background-image:var(--c-space-gradient);border-radius:2rem;transition-property:transform, background-color, background-image;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.Space.svelte-1k6qzq .SpacePreview.svelte-1k6qzq{position:absolute;
1051left:10%;top:10%;width:80%;height:80%;background-size:contain;background-repeat:no-repeat;background-position:center;opacity:0.3}.Space.svelte-1k6qzq .placeName.svelte-1k6qzq{display:flex;position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;align-items:center;justify-content:center;font-size:2rem;font-weight:400;line-height:2.5rem;letter-spacing:0.2px;text-align:center;line-height:3rem;color:var(--c-text);transition-property:transform, color;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.Space.svelte-1k6qzq .placeName.svelte-1k6qzq:hover{color:var(--c-text-strong)}.Space.svelte-1k6qzq.svelte-1k6qzq:hover{transform:scale(1.05);transform-origin:50%, 50%}.Space.svelte-1k6qzq:hover .placeName.svelte-1k6qzq{transform:scale(0.95);transform-origin:50%, 50%}.Space.Create.svelte-1k6qzq.svelte-1k6qzq{background-color:transparent;background-image:none;border:2px solid var(--c-border);transition-property:all;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.Space.Create.svelte-1k6qzq.svelte-1k6qzq:not(.disabled):hover,.Space.Create.svelte-1k6qzq.svelte-1k6qzq:not(.disabled):focus,.Space.Create.svelte-1k6qzq.svelte-1k6qzq:not(.disabled):active{background-color:var(--c-space-bg);background-image:var(--c-space-gradient);border-color:transparent;cursor:pointer}.Space.Create.svelte-1k6qzq:not(.disabled):hover .placeName.svelte-1k6qzq{color:transparent}.Space.Create.svelte-1k6qzq:not(.disabled):hover form.svelte-1k6qzq{opacity:1}.Space.Create.disabled.svelte-1k6qzq .placeName.svelte-1k6qzq{cursor:default;color:var(--c-text-faded)}form.createPlace.svelte-1k6qzq.svelte-1k6qzq{opacity:0;display:flex;position:absolute;left:0;right:0;top:0;bottom:0;z-index:2;flex-direction:column;justify-content:center;align-items:center;transition:opacity var(--transition-props)}form.createPlace.svelte-1k6qzq div{position:absolute;top:4vh}form.createPlace.svelte-1k6qzq input[type="text"].svelte-1k6qzq{display:block;width:100%;font-size:2rem;color:var(--c-text);letter-spacing:0.2px;text-align:center;line-height:12rem;border:none;outline:none;background-color:transparent}form.createPlace.svelte-1k6qzq button{position:absolute !important;bottom:4vh}body.extensionInstalled .extensionInstallButton{display:none}.welcome.svelte-1k6qzq.svelte-1k6qzq{position:relative;padding:1.5rem 2rem;line-height:2.2rem;background:var(--c-card);border-radius:2rem}.welcome.svelte-1k6qzq h2.svelte-1k6qzq,.welcome.svelte-1k6qzq p.svelte-1k6qzq{margin-bottom:2rem}.welcome.svelte-1k6qzq .cta.svelte-1k6qzq{position:relative}.welcome.svelte-1k6qzq .cta em.svelte-1k6qzq{z-index:1;position:relative;display:inline-block;padding-right:0.8rem;background-color:var(--c-card);font-style:normal;color:var(--c-accent)}.welcome.svelte-1k6qzq .pointRight.svelte-1k6qzq{display:block;position:absolute;width:100%;height:100%;top:0;left:0}.welcome.svelte-1k6qzq .pointRight.svelte-1k6qzq::before{content:" ";position:absolute;bottom:3.2rem;right:-6.8rem;width:70%;border-top:2px solid var(--c-accent);transition-property:right;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.welcome.svelte-1k6qzq .pointRight.svelte-1k6qzq::after{content:" ";position:absolute;width:2rem;height:2rem;border-right:2px solid var(--c-accent);border-top:2px solid var(--c-accent);transform:rotate(45deg);right:-6.5rem;bottom:2.2rem;transition-property:right;transition-duration:var(--transition-duration);transition-timing-function:var(--transition-timing-function)}.welcome.svelte-1k6qzq:hover .pointRight.svelte-1k6qzq::before{right:-12.8rem}.welcome.svelte-1k6qzq:hover .pointRight.svelte-1k6qzq::after{right:-12.5rem}@media(max-width: 900px){.welcome.svelte-1k6qzq .pointRight.svelte-1k6qzq{display:none}}@media screen and (max-width: 768px){header.svelte-1k6qzq.svelte-1k6qzq{background-color:var(--bgColor)}.Spaces.svelte-1k6qzq.svelte-1k6qzq{padding-left:2rem;padding-right:2rem;grid-template-columns:1fr}p.svelte-1k6qzq.svelte-1k6qzq{font-size:1.6rem}.extensionInstallButton.svelte-1k6qzq.svelte-1k6qzq{display:none}}')}function u8(t,e,n){const r=t.slice();return r[19]=e[n],r}function Sle(t){let e,n,r;return e=new et({props:{icon:C$.faPuzzlePiece}}),{c(){j(e.$$.fragment),n=oe(" Install extension")},m(i,s){B(e,i,s),O(i,n,s),r=!0},p:Ee,i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Tle(t){var q;let e,n,r,i,s,o,a,u,l,c,d,h,m,g=((q=t[0].data.spaces)==null?void 0:q.length)===0&&l8(t),k=Ut(t[0].data.spaces),y=[];for(let F=0;F<k.length;F+=1)y[F]=c8(u8(t,k,F));const b=F=>T(y[F],1,1,()=>{y[F]=null}),S=[Ile,Dle],$=[];function D(F,L){var M;return(F[3].spaceLimit??1/0)>((M=F[0].data.spaces)==null?void 0:M.length)?0:1}r=D(t),i=$[r]=S[r](t);function P(F,L){var M;return((M=F[0].data.spaces)==null?void 0:M.length)!=0?Rle:Nle}let x=P(t),R=x(t);return{c(){g&&g.c(),e=N();for(let F=0;F<y.length;F+=1)y[F].c();n=N(),i.c(),s=N(),o=C("div"),a=C("p"),R.c(),u=oe(` 1052 are looking forward to developing Hyperplace further with your input.`),l=C("br"),c=oe(` 1053 Please write to us at `),d=C("b"),d.textContent="[email protected]",h=oe(" with your feedback or questions."),w(a,"class","svelte-1k6qzq"),w(o,"class","footer svelte-1k6qzq")},m(F,L){g&&g.m(F,L),O(F,e,L);for(let M=0;M<y.length;M+=1)y[M]&&y[M].m(F,L);O(F,n,L),$[r].m(F,L),O(F,s,L),O(F,o,L),v(o,a),R.m(a,null),v(a,u),v(a,l),v(a,c),v(a,d),v(a,h),m=!0},p(F,L){var V;if(((V=F[0].data.spaces)==null?void 0:V.length)===0?g?g.p(F,L):(g=l8(F),g.c(),g.m(e.parentNode,e)):g&&(g.d(1),g=null),L&5){k=Ut(F[0].data.spaces);let H;for(H=0;H<k.length;H+=1){const J=u8(F,k,H);y[H]?(y[H].p(J,L),E(y[H],1)):(y[H]=c8(J),y[H].c(),E(y[H],1),y[H].m(n.parentNode,n))}for($e(),H=k.length;H<y.length;H+=1)b(H);Ce()}let M=r;r=D(F),r===M?$[r].p(F,L):($e(),T($[M],1,1,()=>{$[M]=null}),Ce(),i=$[r],i?i.p(F,L):(i=$[r]=S[r](F),i.c()),E(i,1),i.m(s.parentNode,s)),x===(x=P(F))&&R?R.p(F,L):(R.d(1),R=x(F),R&&(R.c(),R.m(a,u)))},i(F){if(!m){for(let L=0;L<k.length;L+=1)E(y[L]);E(i),m=!0}}
1053,o(F){y=y.filter(Boolean);for(let L=0;L<y.length;L+=1)T(y[L]);T(i),m=!1},d(F){F&&(I(e),I(n),I(s),I(o)),g&&g.d(F),Ci(y,F),$[r].d(F),R.d()}}}function $le(t){let e,n=t[0].error+"",r;return{c(){e=oe("Error: "),r=oe(n)},m(i,s){O(i,e,s),O(i,r,s)},p(i,s){s&1&&n!==(n=i[0].error+"")&&Wt(r,n)},i:Ee,o:Ee,d(i){i&&(I(e),I(r))}}}function Cle(t){let e,n;return e=new pm({}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function l8(t){let e,n,r,i=t[4].username+"",s,o,a,u,l,c;return{c(){e=C("div"),n=C("h2"),r=oe("Welcome "),s=oe(i),o=oe(" ð We're thrilled to have you on board!"),a=N(),u=C("p"),u.textContent=`Ready to get started? Create your very first place for something you're curious about, 1054 something you love, or a topic that's been on your mind lately.`,l=N(),c=C("p"),c.innerHTML='<em class="svelte-1k6qzq">Start by creating a new place</em><br/> <small>You can rename it later or delete it entirely</small> <span class="pointRight svelte-1k6qzq"></span>',w(n,"class","svelte-1k6qzq"),w(u,"class","svelte-1k6qzq"),w(c,"class","cta svelte-1k6qzq"),w(e,"class","welcome svelte-1k6qzq")},m(d,h){O(d,e,h),v(e,n),v(n,r),v(n,s),v(n,o),v(e,a),v(e,u),v(e,l),v(e,c)},p(d,h){h&16&&i!==(i=d[4].username+"")&&Wt(s,i)},d(d){d&&I(e)}}}function Ale(t){let e,n=t[19].name+"",r;return{c(){e=C("span"),r=oe(n),w(e,"class","placeName svelte-1k6qzq")},m(i,s){O(i,e,s),v(e,r)},p(i,s){s&1&&n!==(n=i[19].name+"")&&Wt(r,n)},d(i){i&&I(e)}}}function c8(t){let e,n,r,i,s,o,a;return i=new Ui({props:{to:t[19].urlPath,$$slots:{default:[Ale]},$$scope:{ctx:t}}}),o=new hle({props:{space:t[19],scale:.35}}),{c(){e=C("div"),n=C("div"),r=N(),j(i.$$.fragment),s=N(),j(o.$$.fragment),w(n,"class","SpacePreview svelte-1k6qzq"),He(n,"background-image","url('"+t[19].previewSvgUrl+"')"),w(e,"class","Space svelte-1k6qzq"),He(e,"background-color","hsl("+t[19].hue+", "+t[19].saturation+"%, "+t[2]+"%)")},m(u,l){O(u,e,l),v(e,n),v(e,r),B(i,e,null),v(e,s),B(o,e,null),a=!0},p(u,l){(!a||l&1)&&He(n,"background-image","url('"+u[19].previewSvgUrl+"')");const c={};l&1&&(c.to=u[19].urlPath),l&4194305&&(c.$$scope={dirty:l,ctx:u}),i.$set(c);const d={};l&1&&(d.space=u[19]),o.$set(d),(!a||l&5)&&He(e,"background-color","hsl("+u[19].hue+", "+u[19].saturation+"%, "+u[2]+"%)")},i(u){a||(E(i.$$.fragment,u),E(o.$$.fragment,u),a=!0)},o(u){T(i.$$.fragment,u),T(o.$$.fragment,u),a=!1},d(u){u&&I(e),z(i),z(o)}}}function Dle(t){let e;return{c(){e=C("div"),e.innerHTML='<span class="placeName svelte-1k6qzq">Upgrade to create more places</span>',w(e,"class","Space Create disabled svelte-1k6qzq")},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function Ile(t){let e,n,r,i,s,o,a,u,l,c;return s=new We({props:{type:"submit",$$slots:{default:[Ole]},$$scope:{ctx:t}}}),{c(){e=C("div"),n=C("form"),r=C("input"),i=N(),j(s.$$.fragment),o=N(),a=C("span"),a.textContent="Create new place",w(r,"type","text"),w(r,"placeholder","Enter name"),w(r,"spellcheck","false"),w(r,"class","svelte-1k6qzq"),w(n,"class","createPlace svelte-1k6qzq"),w(a,"class","placeName svelte-1k6qzq"),w(e,"class","Space Create svelte-1k6qzq")},m(d,h){O(d,e,h),v(e,n),v(n,r),t[9](r),v(n,i),B(s,n,null),v(e,o),v(e,a),u=!0,l||(c=[Ie(n,"submit",Lr(t[7])),Ie(e,"mouseenter",t[10]),Ie(e,"mouseleave",t[11])],l=!0)},p(d,h){const m={};h&4194304&&(m.$$scope={dirty:h,ctx:d}),s.$set(m)},i(d){u||(E(s.$$.fragment,d),u=!0)},o(d){T(s.$$.fragment,d),u=!1},d(d){d&&I(e),t[9](null),z(s),l=!1,fn(c)}}}function Ole(t){let e;return{c(){e=oe("Create")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Nle(t){let e;return{c(){e=oe("We")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function Rle(t){let e=t[4].username+"",n,r;return{c(){n=oe(e),r=oe(", we")},m(i,s){O(i,n,s),O(i,r,s)},p(i,s){s&16&&e!==(e=i[4].username+"")&&Wt(n,e)},d(i){i&&(I(n),I(r))}}}function Ple(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g;r=new j_({}),a=new We({props:{small:!0,semiTransparent:!0,target:"_blank",href:"https://chrome.google.com/webstore/detail/hyperplace/kbanfkffoldngciemjinoaealhjaniol",title:"Install extension to add save URLs from your browser",$$slots:{default:[Sle]},$$scope:{ctx:t}}}),l=new Ele({});const k=[Cle,$le,Tle],y=[];function b(S,$){return S[0].loading?0:S[0].error?1:2}return h=b(t),m=y[h]=k[h](t),{c(){e=C("div"),n=C("header"),j(r.$$.fragment),i=N(),s=C("div"),o=C("div"),j(a.$$.fragment),u=N(),j(l.$$.fragment),c=N(),d=C("div"),m.c(),w(o,"class","extensionInstallButton svelte-1k6qzq"),w(s,"class","right svelte-1k6qzq"),w(n,"class","svelte-1k6qzq"),w(d,"class","Spaces svelte-1k6qzq"),w(e,"class","Home svelte-1k6qzq")},m(S,$){O(S,e,$),v(e,n),B(r,n,null),v(n,i),v(n,s),v(s,o),B(a,o,null),v(s,u),B(l,s,null),v(e,c),v(e,d),y[h].m(d,null),g=!0},p(S,[$]){const D={};$&4194304&&(D.$$scope={dirty:$,ctx:S}),a.$set(D);let P=h;h=b(S),h===P?y[h].p(S,$):($e(),T(y[P],1,1,()=>{y[P]=null}),Ce(),m=y[h],m?m.p(S,$):(m=y[h]=k[h](S),m.c()),E(m,1),m.m(d,null))},i(S){g||(E(r.$$.fragment,S),E(a.$$.fragment,S),E(l.$$.fragment,S),E(m),g=!0)},o(S){T(r.$$.fragment,S),T(a.$$.fragment,S),T(l.$$.fragment,S),T(m),g=!1},d(S){S&&I(e),z(r),z(a),z(l),y[h].d()}}}function xle(t,e,n){let r,i,s,o,a,u;Ke(t,gc,S=>n(12,r=S)),Ke(t,wd,S=>n(3,i=S)),Ke(t,yd,S=>n(13,s=S)),Ke(t,vi,S=>n(4,u=S));const l=mG({});Ke(t,l,S=>n(0,o=S));let c;const d=H0();Ke(t,d,S=>n(8,a=S));const h=async()=>{const S=Math.round(Math.random()*360),$=30+Math.round(Math.random()*20);try{const D=await PW({variables:{name:c.value,hue:S,saturation:$}}),{space:P,errors:x}=D.data.createSpace;
1054x.length===0?Mi(P.urlPath):x.forEach(R=>{xu({type:Ho.Error,message:R.message})})}catch(D){console.log(D)}};let m=94;ji.subscribe(({darkMode:S})=>{n(2,m=S?16:94)}),$r(()=>{document.documentElement.style.setProperty("--bgColor",`hsl(230, 25%, ${m}%)`)}),i.attachmentSizeLimit/1024/1024/1024,Math.round(r.attachmentSize/i.attachmentSizeLimit*100),(100-s.balance*100).toFixed(),i.spaceLimit-r.spaceCount;function k(S){Qe[S?"unshift":"push"](()=>{c=S,n(1,c)})}const y=()=>c.focus(),b=()=>c.blur();return t.$$.update=()=>{t.$$.dirty&257&&a&&o.query.refetch()},[o,c,m,i,u,l,d,h,a,k,y,b]}class qle extends pt{constructor(e){super(),ht(this,e,xle,Ple,dt,{},kle)}}var ci={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="check",r=448,i=512,s=[10003,10004],o="f00c",a="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faCheck=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(ci);function Fle(t){Et(t,"svelte-1v7lfti",'.Account.svelte-1v7lfti.svelte-1v7lfti{padding:15vh 15vw;min-height:100vh;background-color:var(--bgColor)}.accountInfo.svelte-1v7lfti.svelte-1v7lfti{background:var(--c-card-fader);padding:1rem 2rem 2rem;border-radius:2rem}header.svelte-1v7lfti.svelte-1v7lfti{position:fixed;width:100%;padding:2rem;z-index:10}header.svelte-1v7lfti .right.svelte-1v7lfti{position:absolute;display:flex;align-items:center;top:2rem;right:2rem;gap:2rem}h2.svelte-1v7lfti.svelte-1v7lfti{font-family:"Athelas", "Times New Roman", "Times", serif;font-size:2.4rem;font-weight:400;line-height:2.8rem;letter-spacing:-0.5px;color:var(--c-text);margin:3rem 0 1rem}.plans.svelte-1v7lfti.svelte-1v7lfti{display:flex;flex-direction:row;gap:4rem;justify-content:center;margin:2rem 0 1rem}.plan.svelte-1v7lfti.svelte-1v7lfti{position:relative;display:flex;flex-direction:row;flex-grow:1;padding:2.5rem 3rem;border-radius:2rem;background-color:var(--c-border)}.plan.svelte-1v7lfti .info.svelte-1v7lfti{width:100%}.plan.svelte-1v7lfti h3.svelte-1v7lfti{font-family:"Athelas", "Times New Roman", Times, serif;font-size:2.4rem;line-height:3rem;font-weight:normal;color:var(--c-accent)}.plan.svelte-1v7lfti .price.svelte-1v7lfti{white-space:nowrap}.plan.svelte-1v7lfti .price span.svelte-1v7lfti{font-family:"Times New Roman", Times, serif;font-size:4rem;font-weight:500;line-height:2rem;letter-spacing:-3px;margin-right:0.2rem}.plan.svelte-1v7lfti ul.svelte-1v7lfti{list-style:none;padding:0;margin:1rem 0 0}.plan.svelte-1v7lfti ul li.svelte-1v7lfti{margin-bottom:0.25rem}.plan.svelte-1v7lfti ul li em.svelte-1v7lfti{color:var(--c-accent)}.plan.svelte-1v7lfti ul li.svelte-1v7lfti svg{margin-left:-2rem;margin-right:0.4rem;color:var(--c-accent)}.plan.svelte-1v7lfti .button.svelte-1v7lfti{position:absolute;right:2rem;bottom:2rem}.accountButtons.svelte-1v7lfti.svelte-1v7lfti{display:flex;gap:2rem;margin:2rem 0 3rem}.hiddenForm.svelte-1v7lfti.svelte-1v7lfti{position:absolute;top:-1000px}dl.svelte-1v7lfti.svelte-1v7lfti{display:grid;grid-template-columns:12rem 1fr;margin-bottom:0.5rem}dt.svelte-1v7lfti.svelte-1v7lfti{font-weight:bold}dt.svelte-1v7lfti.svelte-1v7lfti,dd.svelte-1v7lfti.svelte-1v7lfti{padding:0.5rem 0}dl.svelte-1v7lfti small.svelte-1v7lfti{display:inline-block;line-height:1.5rem}th.svelte-1v7lfti.svelte-1v7lfti{text-align:left;width:20rem}hr.svelte-1v7lfti.svelte-1v7lfti{grid-column:1 / -1;border:0;border-top:0.2rem solid var(--bgColor);margin:3rem -2rem 0}.mt2.svelte-1v7lfti.svelte-1v7lfti{margin-top:2rem}@media screen and (max-width: 768px){header.svelte-1v7lfti.svelte-1v7lfti{background-color:var(--bgColor)}.Account.svelte-1v7lfti.svelte-1v7lfti{padding:8rem 2rem;min-height:100vh}.plans.svelte-1v7lfti.svelte-1v7lfti{flex-direction:column;gap:4rem}.plan.svelte-1v7lfti.svelte-1v7lfti{flex-direction:column;padding:1.5rem 2.5rem}.plan.svelte-1v7lfti .price.svelte-1v7lfti{margin-top:1.5rem}.plan.svelte-1v7lfti .button.svelte-1v7lfti{position:static;margin-top:0.5rem}p.svelte-1v7lfti.svelte-1v7lfti{font-size:1.6rem}.accountButtons.svelte-1v7lfti.svelte-1v7lfti{flex-direction:column;gap:1rem}th.svelte-1v7lfti.svelte-1v7lfti:first-of-type{min-width:16rem}}')}function f8(t,e,n){const r=t.slice();return r[44]=e[n],r}function Lle(t){let e,n;return e=new j_({}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Mle(t){let e,n,r;return e=new et({props:{icon:_y.faTable}}),{c(){j(e.$$.fragment),n=oe(" Back to places")},m(i,s){B(e,i,s),O(i,n,s),r=!0},p:Ee,i(i){r||(E(e.$$.fragment,i),r=!0)},o(i){T(e.$$.fragment,i),r=!1},d(i){i&&I(n),z(e,i)}}}function Ble(t){let e;return{c(){e=oe("Change")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function d8(t){let e;function n(s,o){return s[9].cancelAtPeriodEnd?jle:zle}let r=n(t),i=r(t);return{c(){i.c(),e=Pt()},m(s,o){i.m(s,o),O(s,e,o)},p(s,o){r===(r=n(s))&&i?i.p(s,o):(i.d(1),i=r(s),i&&(i.c(),i.m(e.parentNode,e)))},d(s){s&&I(e),i.d(s)}}}function zle(t){let e,n,r;return{c(){e=C("dt"),e.textContent="Renews on",n=C("dd"),r=oe(t[8]),w(e,"class","svelte-1v7lfti"),w(n,"class","svelte-1v7lfti")},m(i,s){O(i,e,s),O(i,n,s),v(n,r)},p(i,s){s[0]&256&&Wt(r,i[8])},d(i){i&&(I(e),I(n))}}}function jle(t){let e,n,r,i,s,o,a;return{c(){e=C("dt"),e.textContent="Expiry date",n=C("dd"),r=oe(t[8]),i=C("br"),s=N(),o=C("small"),o.textContent="Your subscription is cancelled and expires at this date.",a=N(),w(e,"class","svelte-1v7lfti"),w(o,"class","warning svelte-1v7lfti"),w(n,"class","svelte-1v7lfti")},m(u,l){O(u,e,l),O(u,n,l),v(n,r),v(n,i),v(n,s),v(n,o),v(n,a)},p(u,l){l[0]&256&&Wt(r,u[8])},d(u){u&&(I(e),I(n))}}}function Ule(t){let e,n,r,i=t[12].balance.toFixed(2)+"",s;return{c(){e=C("dt"),e.textContent="AI credits",n=C("dd"),r=oe("$"),s=oe(i),w(e,"class","svelte-1v7lfti"),w(n,"class","svelte-1v7lfti")},m(o,a){O(o,e,a),O(o,n,a),v(n,r),v(n,s)},p(o,a){a[0]&4096&&i!==(i=o[12].balance.toFixed(2)+"")&&Wt(s,i)},d(o){o&&(I(e),I(n))}}}function Hle(t){let e,n;return{c(){e=C("dt"),e.textContent="AI credits used",n=C("dd"),n.textContent=`${t[28]}% of your free credits`,w(e,"class","svelte-1v7lfti"),w(n,"class","svelte-1v7lfti")},m(r,i){O(r,e,i),O(r,n,i)},p:Ee,d(r){r&&(I(e),I(n))}}}function h8(t){let e,n,r,i,s=t[11].canLoadCredit&&p8(t);return r=new We({props:{small:!0,outline:!0,$$slots:{default:[Wle]},$$scope:{ctx:t}}}),r.$on("click",t[20]),{c(){e=C("div"),s&&s.c(),n=N(),j(r.$$.fragment),w(e,"class","accountButtons svelte-1v7lfti")},m(o,a){O(o,e,a),s&&s.m(e,null),v(e,n),B(r,e,null),i=!0},p(o,a){o[11].canLoadCredit?s?(s.p(o,a),a[0]&2048&&E(s,1)):(s=p8(o),s.c(),E(s,1),s.m(e,n)):s&&($e(),T(s,1,1,()=>{s=null}),Ce());const u={};a[1]&65536&&(u.$$scope={dirty:a,ctx:o}),r.$set(u)},i(o){i||(E(s),E(r.$$.fragment,o),i=!0)},o(o){T(s),T(r.$$.fragment,o),i=!1},d(o){o&&I(e),s&&s.d(),z(r)}}}function p8(t){let e,n;return e=new We({props:{small:!0,$$slots:{default:[Vle]},$$scope:{ctx:t}}}),e.$on("click",t[18]),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[1]&65536&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Vle(t){let e;return{c(){e=oe("Add $10 AI credits")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Wle(t){let e;return{c(){e=oe("Manage subscription")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}
1054function Gle(t){let e,n=t[14].data.getLoadCreditTransactions.length!=0&&m8(t);return{c(){n&&n.c(),e=Pt()},m(r,i){n&&n.m(r,i),O(r,e,i)},p(r,i){r[14].data.getLoadCreditTransactions.length!=0?n?n.p(r,i):(n=m8(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&I(e),n&&n.d(r)}}}function Yle(t){let e;return{c(){e=C("div"),e.textContent="Loading transaction history..."},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function m8(t){let e,n,r,i,s,o,a,u=Ut(t[14].data.getLoadCreditTransactions),l=[];for(let c=0;c<u.length;c+=1)l[c]=g8(f8(t,u,c));return{c(){e=C("hr"),n=N(),r=C("h2"),r.textContent="Credits history",i=N(),s=C("table"),o=C("tr"),o.innerHTML='<th class="svelte-1v7lfti">Date</th> <th class="svelte-1v7lfti">Amount</th> <th class="svelte-1v7lfti">Receipt</th>',a=N();for(let c=0;c<l.length;c+=1)l[c].c();w(e,"class","svelte-1v7lfti"),w(r,"class","svelte-1v7lfti")},m(c,d){O(c,e,d),O(c,n,d),O(c,r,d),O(c,i,d),O(c,s,d),v(s,o),v(s,a);for(let h=0;h<l.length;h+=1)l[h]&&l[h].m(s,null)},p(c,d){if(d[0]&16384){u=Ut(c[14].data.getLoadCreditTransactions);let h;for(h=0;h<u.length;h+=1){const m=f8(c,u,h);l[h]?l[h].p(m,d):(l[h]=g8(m),l[h].c(),l[h].m(s,null))}for(;h<l.length;h+=1)l[h].d(1);l.length=u.length}},d(c){c&&(I(e),I(n),I(r),I(i),I(s)),Ci(l,c)}}}function Qle(t){let e;return{c(){e=C("span"),e.textContent="N/A"},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function Zle(t){let e,n,r;return{c(){e=C("a"),n=oe("View"),w(e,"target","_blank"),w(e,"rel","noreferrer"),w(e,"href",r=t[44].receiptUrl)},m(i,s){O(i,e,s),v(e,n)},p(i,s){s[0]&16384&&r!==(r=i[44].receiptUrl)&&w(e,"href",r)},d(i){i&&I(e)}}}function g8(t){let e,n,r=Dt.fromISO(t[44].createdAt).toLocaleString(Dt.DATETIME_MED)+"",i,s,o,a,u=t[44].amount.toFixed(2)+"",l,c,d,h;function m(y,b){return y[44].receiptUrl?Zle:Qle}let g=m(t),k=g(t);return{c(){e=C("tr"),n=C("td"),i=oe(r),s=N(),o=C("td"),a=oe("$"),l=oe(u),c=N(),d=C("td"),k.c(),h=N()},m(y,b){O(y,e,b),v(e,n),v(n,i),v(e,s),v(e,o),v(o,a),v(o,l),v(e,c),v(e,d),k.m(d,null),v(e,h)},p(y,b){b[0]&16384&&r!==(r=Dt.fromISO(y[44].createdAt).toLocaleString(Dt.DATETIME_MED)+"")&&Wt(i,r),b[0]&16384&&u!==(u=y[44].amount.toFixed(2)+"")&&Wt(l,u),g===(g=m(y))&&k?k.p(y,b):(k.d(1),k=g(y),k&&(k.c(),k.m(d,null)))},d(y){y&&I(e),k.d()}}}function v8(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe;return h=new et({props:{icon:ci.faCheck}}),y=new et({props:{icon:ci.faCheck}}),D=new et({props:{icon:ci.faCheck}}),Z=new We({props:{$$slots:{default:[Xle]},$$scope:{ctx:t}}}),Z.$on("click",t[29]),ee=new et({props:{icon:ci.faCheck}}),Fe=new et({props:{icon:ci.faCheck}}),je=new et({props:{icon:ci.faCheck}}),Se=new We({props:{$$slots:{default:[Kle]},$$scope:{ctx:t}}}),Se.$on("click",t[30]),{c(){e=C("h2"),e.textContent="Ready for more?",n=N(),r=C("p"),r.textContent="Subscribe to a plan form more places, bigger upload limits and ability to add AI credits",i=N(),s=C("div"),o=C("div"),a=C("div"),u=C("h3"),u.textContent="Personal",l=N(),c=C("ul"),d=C("li"),j(h.$$.fragment),m=oe(" 5 places"),g=N(),k=C("li"),j(y.$$.fragment),b=oe(" 10GB storage"),S=N(),$=C("li"),j(D.$$.fragment),P=oe(" AI Assistant"),x=C("br"),R=C("small"),R.innerHTML="GPT-4o Mini and GPT-4o*<br/>with limited credits",q=N(),F=C("br"),L=C("small"),L.innerHTML='<em class="svelte-1v7lfti">* GPT-4o coming soon</em>',M=N(),V=C("p"),V.innerHTML='<span class="svelte-1v7lfti">$10</span>/month',H=N(),J=C("div"),j(Z.$$.fragment),Q=N(),K=C("div"),G=C("div"),se=C("h3"),se.textContent="Pro",fe=N(),me=C("ul"),Ae=C("li"),j(ee.$$.fragment),ue=oe(" Unlimited places"),ie=N(),de=C("li"),j(Fe.$$.fragment),Ve=oe(" 100GB storage"),Te=N(),we=C("li"),j(je.$$.fragment),Je=oe(" AI Assistant"),Ne=C("br"),Ge=C("small"),Ge.innerHTML="GPT-4o Mini and GPT-4o*<br/>with limited credits",nt=N(),rt=C("br"),Ze=C("small"),Ze.innerHTML='<em class="svelte-1v7lfti">* GPT-4o coming soon</em>',at=N(),bt=C("p"),bt.innerHTML='<span class="svelte-1v7lfti">$50</span>/month',he=N(),Pe=C("div"),j(Se.$$.fragment),Le=N(),te=C("p"),te.innerHTML="<small>* All prices are in USD, excl. VAT</small>",X=N(),ye=C("hr"),w(e,"class","svelte-1v7lfti"),w(r,"class","svelte-1v7lfti"),w(u,"class","svelte-1v7lfti"),w(d,"class","svelte-1v7lfti"),w(k,"class","svelte-1v7lfti"),w($,"class","svelte-1v7lfti"),w(c,"class","svelte-1v7lfti"),w(a,"class","info svelte-1v7lfti"),w(V,"class","price svelte-1v7lfti"),w(J,"class","button svelte-1v7lfti"),w(o,"class","plan svelte-1v7lfti"),w(se,"class","svelte-1v7lfti"),w(Ae,"class","svelte-1v7lfti"),w(de,"class","svelte-1v7lfti"),w(we,"class","svelte-1v7lfti"),w(me,"class","svelte-1v7lfti"),w(G,"class","info svelte-1v7lfti"),w(bt,"class","price svelte-1v7lfti"),w(Pe,"class","button svelte-1v7lfti"),w(K,"class","plan svelte-1v7lfti"),w(s,"class","plans svelte-1v7lfti"),w(te,"class","center svelte-1v7lfti"),w(ye,"class","svelte-1v7lfti")}
1054,m(Be,it){O(Be,e,it),O(Be,n,it),O(Be,r,it),O(Be,i,it),O(Be,s,it),v(s,o),v(o,a),v(a,u),v(a,l),v(a,c),v(c,d),B(h,d,null),v(d,m),v(c,g),v(c,k),B(y,k,null),v(k,b),v(c,S),v(c,$),B(D,$,null),v($,P),v($,x),v($,R),v($,q),v($,F),v($,L),v(o,M),v(o,V),v(o,H),v(o,J),B(Z,J,null),v(s,Q),v(s,K),v(K,G),v(G,se),v(G,fe),v(G,me),v(me,Ae),B(ee,Ae,null),v(Ae,ue),v(me,ie),v(me,de),B(Fe,de,null),v(de,Ve),v(me,Te),v(me,we),B(je,we,null),v(we,Je),v(we,Ne),v(we,Ge),v(we,nt),v(we,rt),v(we,Ze),v(K,at),v(K,bt),v(K,he),v(K,Pe),B(Se,Pe,null),O(Be,Le,it),O(Be,te,it),O(Be,X,it),O(Be,ye,it),Xe=!0},p(Be,it){const mt={};it[1]&65536&&(mt.$$scope={dirty:it,ctx:Be}),Z.$set(mt);const Ct={};it[1]&65536&&(Ct.$$scope={dirty:it,ctx:Be}),Se.$set(Ct)},i(Be){Xe||(E(h.$$.fragment,Be),E(y.$$.fragment,Be),E(D.$$.fragment,Be),E(Z.$$.fragment,Be),E(ee.$$.fragment,Be),E(Fe.$$.fragment,Be),E(je.$$.fragment,Be),E(Se.$$.fragment,Be),Xe=!0)},o(Be){T(h.$$.fragment,Be),T(y.$$.fragment,Be),T(D.$$.fragment,Be),T(Z.$$.fragment,Be),T(ee.$$.fragment,Be),T(Fe.$$.fragment,Be),T(je.$$.fragment,Be),T(Se.$$.fragment,Be),Xe=!1},d(Be){Be&&(I(e),I(n),I(r),I(i),I(s),I(Le),I(te),I(X),I(ye)),z(h),z(y),z(D),z(Z),z(ee),z(Fe),z(je),z(Se)}}}function Xle(t){let e;return{c(){e=oe("Subscribe now")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Kle(t){let e;return{c(){e=oe("Subscribe now")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function b8(t){let e,n;return e=new Ar({props:{$$slots:{content:[ice],title:[Jle]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i[0]&33008|i[1]&65536&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Jle(t){let e;return{c(){e=C("span"),e.textContent="Update name",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function ece(t){let e;return{c(){e=oe("New name")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function tce(t){let e;return{c(){e=oe("Your current password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function nce(t){let e;return{c(){e=oe("Change")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function rce(t){let e;return{c(){e=oe("Cancel")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function ice(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x;n=new Tr({props:{name:"username",$$slots:{default:[ece]},$$scope:{ctx:t}}});function R(M){t[31](M)}let q={name:"username",classList:"noDrag"};t[6]!==void 0&&(q.value=t[6]),i=new Zr({props:q}),Qe.push(()=>En(i,"value",R)),a=new ir({props:{errors:t[15],field:"name"}}),l=new Tr({props:{name:"currentPassword",$$slots:{default:[tce]},$$scope:{ctx:t}}});function F(M){t[32](M)}let L={autocomplete:"password",type:"password",name:"currentPassword",classList:"noDrag"};return t[5]!==void 0&&(L.value=t[5]),d=new Zr({props:L}),Qe.push(()=>En(d,"value",F)),g=new ir({props:{errors:t[15],field:"currentPassword"}}),b=new We({props:{margin:"1rem 1rem 0 0",disabled:t[4],small:!0,type:"submit",$$slots:{default:[nce]},$$scope:{ctx:t}}}),$=new We({props:{margin:"1rem 1rem 0 0",small:!0,outline:!0,$$slots:{default:[rce]},$$scope:{ctx:t}}}),$.$on("click",t[24]),{c(){e=C("form"),j(n.$$.fragment),r=N(),j(i.$$.fragment),o=N(),j(a.$$.fragment),u=N(),j(l.$$.fragment),c=N(),j(d.$$.fragment),m=N(),j(g.$$.fragment),k=N(),y=C("div"),j(b.$$.fragment),S=N(),j($.$$.fragment),w(e,"slot","content")},m(M,V){O(M,e,V),B(n,e,null),v(e,r),B(i,e,null),v(e,o),B(a,e,null),v(e,u),B(l,e,null),v(e,c),B(d,e,null),v(e,m),B(g,e,null),v(e,k),v(e,y),B(b,y,null),v(y,S),B($,y,null),t[33](e),D=!0,P||(x=Ie(e,"submit",Lr(t[25])),P=!0)},p(M,V){const H={};V[1]&65536&&(H.$$scope={dirty:V,ctx:M}),n.$set(H);const J={};!s&&V[0]&64&&(s=!0,J.value=M[6],wn(()=>s=!1)),i.$set(J);const Z={};V[0]&32768&&(Z.errors=M[15]),a.$set(Z);const Q={};V[1]&65536&&(Q.$$scope={dirty:V,ctx:M}),l.$set(Q);const K={};!h&&V[0]&32&&(h=!0,K.value=M[5],wn(()=>h=!1)),d.$set(K);const G={};V[0]&32768&&(G.errors=M[15]),g.$set(G);const se={};V[0]&16&&(se.disabled=M[4]),V[1]&65536&&(se.$$scope={dirty:V,ctx:M}),b.$set(se);const fe={};V[1]&65536&&(fe.$$scope={dirty:V,ctx:M}),$.$set(fe)},i(M){D||(E(n.$$.fragment,M),E(i.$$.fragment,M),E(a.$$.fragment,M),E(l.$$.fragment,M),E(d.$$.fragment,M),E(g.$$.fragment,M),E(b.$$.fragment,M),E($.$$.fragment,M),D=!0)},o(M){T(n.$$.fragment,M),T(i.$$.fragment,M),T(a.$$.fragment,M),T(l.$$.fragment,M),T(d.$$.fragment,M),T(g.$$.fragment,M),T(b.$$.fragment,M),T($.$$.fragment,M),D=!1},d(M){M&&I(e),z(n),z(i),z(a),z(l),z(d),z(g),z(b),z($),t[33](null),P=!1,x()}}}function sce(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g=t[13].username+"",k,y,b,S,$,D,P=t[13].email+"",x,R,q,F,L,M,V,H,J,Z=t[11].name+"",Q,K,G,se=t[10].spaceCount+"",fe,me,Ae=(t[11].spaceLimit||"Unlimited")+"",ee,ue,ie,de,Fe,Ve=t[11].attachmentSizeLimit?t[27]+"GB":"Unlimited",Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe;n=new Ui({props:{to:"/",$$slots:{default:[Lle]},$$scope:{ctx:t}}}),s=new We({props:{outline:!0,$$slots:{default:[Mle]},$$scope:{ctx:t}}}),s.$on("click",t[21]),b=new We({props:{tiny:!0,semiTransparent:!0,$$slots:{default:[Ble]},$$scope:{ctx:t}}}),b.$on("click",t[23]);let Be=t[9]&&d8(t);function it(pe,st){return pe[9]?Ule:Hle}let mt=it(t),Ct=mt(t),ft=t[9]&&h8(t);function It(pe,st){if(pe[14].loading)return Yle;
1054if(pe[14].data.getLoadCreditTransactions)return Gle}let Tt=It(t),_t=Tt&&Tt(t),gt=!t[9]&&v8(t),ce=t[3]&&b8(t);return{c(){e=C("header"),j(n.$$.fragment),r=N(),i=C("div"),j(s.$$.fragment),o=N(),a=C("div"),u=C("div"),l=C("h2"),l.textContent="Your Details",c=N(),d=C("dl"),h=C("dt"),h.textContent="Display name",m=C("dd"),k=oe(g),y=oe(` 1055 â `),j(b.$$.fragment),S=N(),$=C("dt"),$.textContent="Email address",D=C("dd"),x=oe(P),R=N(),q=C("hr"),F=N(),L=C("h2"),L.textContent="Account Details",M=N(),V=C("dl"),H=C("dt"),H.textContent="Current plan",J=C("dd"),Q=oe(Z),Be&&Be.c(),K=C("dt"),K.textContent="Places created",G=C("dd"),fe=oe(se),me=oe(" / "),ee=oe(Ae),ue=C("dt"),ue.textContent="Data uploaded",ie=C("dd"),de=oe(t[26]),Fe=oe("GB / "),Te=oe(Ve),Ct.c(),we=N(),ft&&ft.c(),je=N(),_t&&_t.c(),Je=N(),Ne=C("hr"),Ge=N(),gt&>.c(),nt=N(),rt=C("p"),rt.innerHTML="Write to us at <b>[email protected]</b> with your questions or feedback.",Ze=N(),ce&&ce.c(),at=N(),bt=C("form"),he=C("input"),Pe=N(),Se=C("form"),Le=C("input"),te=N(),X=C("form"),ye=C("input"),w(i,"class","right svelte-1v7lfti"),w(e,"class","svelte-1v7lfti"),w(l,"class","svelte-1v7lfti"),w(h,"class","svelte-1v7lfti"),w(m,"class","svelte-1v7lfti"),w($,"class","svelte-1v7lfti"),w(D,"class","svelte-1v7lfti"),w(d,"class","svelte-1v7lfti"),w(q,"class","svelte-1v7lfti"),w(L,"class","svelte-1v7lfti"),w(H,"class","svelte-1v7lfti"),w(J,"class","svelte-1v7lfti"),w(K,"class","svelte-1v7lfti"),w(G,"class","svelte-1v7lfti"),w(ue,"class","svelte-1v7lfti"),w(ie,"class","svelte-1v7lfti"),w(V,"class","svelte-1v7lfti"),w(Ne,"class","svelte-1v7lfti"),w(rt,"class","mt2 svelte-1v7lfti"),w(u,"class","accountInfo svelte-1v7lfti"),w(a,"class","Account svelte-1v7lfti"),w(he,"type","hidden"),w(he,"name","access_token"),he.value=t[16],w(bt,"class","hiddenForm svelte-1v7lfti"),w(bt,"method","post"),w(Le,"type","hidden"),w(Le,"name","access_token"),Le.value=t[16],w(Se,"class","hiddenForm svelte-1v7lfti"),w(Se,"action","/api/load-credit"),w(Se,"method","post"),w(ye,"type","hidden"),w(ye,"name","access_token"),ye.value=t[16],w(X,"class","hiddenForm svelte-1v7lfti"),w(X,"action","/api/billing-portal"),w(X,"method","post")},m(pe,st){O(pe,e,st),B(n,e,null),v(e,r),v(e,i),B(s,i,null),O(pe,o,st),O(pe,a,st),v(a,u),v(u,l),v(u,c),v(u,d),v(d,h),v(d,m),v(m,k),v(m,y),B(b,m,null),v(m,S),v(d,$),v(d,D),v(D,x),v(u,R),v(u,q),v(u,F),v(u,L),v(u,M),v(u,V),v(V,H),v(V,J),v(J,Q),Be&&Be.m(V,null),v(V,K),v(V,G),v(G,fe),v(G,me),v(G,ee),v(V,ue),v(V,ie),v(ie,de),v(ie,Fe),v(ie,Te),Ct.m(V,null),v(u,we),ft&&ft.m(u,null),v(u,je),_t&&_t.m(u,null),v(u,Je),v(u,Ne),v(u,Ge),gt&>.m(u,null),v(u,nt),v(u,rt),O(pe,Ze,st),ce&&ce.m(pe,st),O(pe,at,st),O(pe,bt,st),v(bt,he),t[34](bt),O(pe,Pe,st),O(pe,Se,st),v(Se,Le),t[35](Se),O(pe,te,st),O(pe,X,st),v(X,ye),t[36](X),Xe=!0},p(pe,st){const vn={};st[1]&65536&&(vn.$$scope={dirty:st,ctx:pe}),n.$set(vn);const Tn={};st[1]&65536&&(Tn.$$scope={dirty:st,ctx:pe}),s.$set(Tn),(!Xe||st[0]&8192)&&g!==(g=pe[13].username+"")&&Wt(k,g);const bn={};st[1]&65536&&(bn.$$scope={dirty:st,ctx:pe}),b.$set(bn),(!Xe||st[0]&8192)&&P!==(P=pe[13].email+"")&&Wt(x,P),(!Xe||st[0]&2048)&&Z!==(Z=pe[11].name+"")&&Wt(Q,Z),pe[9]?Be?Be.p(pe,st):(Be=d8(pe),Be.c(),Be.m(V,K)):Be&&(Be.d(1),Be=null),(!Xe||st[0]&1024)&&se!==(se=pe[10].spaceCount+"")&&Wt(fe,se),(!Xe||st[0]&2048)&&Ae!==(Ae=(pe[11].spaceLimit||"Unlimited")+"")&&Wt(ee,Ae),(!Xe||st[0]&2048)&&Ve!==(Ve=pe[11].attachmentSizeLimit?pe[27]+"GB":"Unlimited")&&Wt(Te,Ve),mt===(mt=it(pe))&&Ct?Ct.p(pe,st):(Ct.d(1),Ct=mt(pe),Ct&&(Ct.c(),Ct.m(V,null))),pe[9]?ft?(ft.p(pe,st),st[0]&512&&E(ft,1)):(ft=h8(pe),ft.c(),E(ft,1),ft.m(u,je)):ft&&($e(),T(ft,1,1,()=>{ft=null}),Ce()),Tt===(Tt=It(pe))&&_t?_t.p(pe,st):(_t&&_t.d(1),_t=Tt&&Tt(pe),_t&&(_t.c(),_t.m(u,Je))),pe[9]?gt&&($e(),T(gt,1,1,()=>{gt=null}),Ce()):gt?(gt.p(pe,st),st[0]&512&&E(gt,1)):(gt=v8(pe),gt.c(),E(gt,1),gt.m(u,nt)),pe[3]?ce?(ce.p(pe,st),st[0]&8&&E(ce,1)):(ce=b8(pe),ce.c(),E(ce,1),ce.m(at.parentNode,at)):ce&&($e(),T(ce,1,1,()=>{ce=null}),Ce()),(!Xe||st[0]&65536)&&(he.value=pe[16]),(!Xe||st[0]&65536)&&(Le.value=pe[16]),(!Xe||st[0]&65536)&&(ye.value=pe[16])},i(pe){Xe||(E(n.$$.fragment,pe),E(s.$$.fragment,pe),E(b.$$.fragment,pe),E(ft),E(gt),E(ce),Xe=!0)},o(pe){T(n.$$.fragment,pe),T(s.$$.fragment,pe),T(b.$$.fragment,pe),T(ft),T(gt),T(ce),Xe=!1},d(pe){pe&&(I(e),I(o),I(a),I(Ze),I(at),I(bt),I(Pe),I(Se),I(te),I(X)),z(n),z(s),z(b),Be&&Be.d(),Ct.d(),ft&&ft.d(),_t&&_t.d(),gt&>.d(),ce&&ce.d(pe),t[34](null),t[35](null),t[36](null)}}}function oce(t,e,n){let r,i,s,o,a,u,l,c;Ke(t,dm,de=>n(9,r=de)),Ke(t,gc,de=>n(10,i=de)),Ke(t,wd,de=>n(11,s=de)),Ke(t,yd,de=>n(12,o=de)),Ke(t,vi,de=>n(13,a=de)),Ke(t,Ma,de=>n(16,c=de));const d=yG();Ke(t,d,de=>n(14,u=de)),hr(fm,de=>de.filter(Fe=>Fe.isActive).length>0);let h;const m=()=>{h.submit()};let g;const k=de=>{n(1,g.action=`/api/subscribe/${de}`,g),g.submit()};let y;const b=()=>{y.submit()},S=()=>{Mi("/")},$=nn([]);Ke(t,$,de=>n(15,l=de));let D=!1,P=!1,x,R=a.username,q;const F=()=>{n(3,D=!0)},L=()=>{n(3,D=!1)},M=async()=>{n(4,P=!0),q.reset();const de=await tG({variables:{username:R,currentPassword:x}});de.data.changeUsername.errors.length===0?($.set([]),n(3,D=!1)):$.set(de.data.changeUsername.errors),n(4,P=!1)},V=(i.attachmentSize/1024/1024/1024).toFixed(2),H=(s.attachmentSizeLimit/1024/1024/1024).toFixed();s.attachmentSizeLimit/1024/1024/1024,Math.round(i.attachmentSize/s.attachmentSizeLimit*100);const J=(100-o.balance*100).toFixed();s.spaceLimit-i.spaceCount;let Z;if(r){const de=new Date(r.currentPeriodEnd),Fe={day:"numeric",month:"long",year:"numeric",timeZone:"UTC",hour:"numeric",minute:"numeric"};Z=de.toLocaleDateString(void 0,Fe)}let Q=94;ji.subscribe(({darkMode:de})=>{Q=de?16:94}),$r(()=>{document.documentElement.style.setProperty("--bgColor",`hsl(230, 25%, ${Q}%)`)});const G=()=>k("personal:1"),se=()=>k("pro:1");function fe(de){R=de,n(6,R)}function me(de){x=de,n(5,x)}function Ae(de){Qe[de?"unshift":"push"](()=>{q=de,n(7,q)})}function ee(de){Qe[de?"unshift":"push"](()=>{g=de,n(1,g)})}function ue(de){Qe[de?"unshift":"push"](()=>{h=de,n(0,h)})}function ie(de){Qe[de?"unshift":"push"](()=>{y=de,n(2,y)})}return[h,g,y,D,P,x,R,q,Z,r,i,s,o,a,u,l,c,d,m,k,b,S,$,F,L,M,V,H,J,G,se,fe,me,Ae,ee,ue,ie]}class ace extends pt{constructor(e){super(),ht(this,e,oce,sce,dt,{},Fle,[-1,-1])}}function uce(t,e,n){let{to:r}=e,{replace:i=!1}=e,{state:s=void 0}=e;return $r(()=>{Mi(r,{replace:i,state:s})}),t.$$set=o=>{"to"in o&&n(0,r=o.to),"replace"in o&&n(1,i=o.replace),"state"in o&&n(2,s=o.state)},[r,i,s]}
1055class Ld extends pt{constructor(e){super(),ht(this,e,uce,null,dt,{to:0,replace:1,state:2})}}function lce(t){Et(t,"svelte-1u7feqe","p.svelte-1u7feqe{margin:2rem 0}p.svelte-1u7feqe a{margin-left:1rem;color:var(--c-text)}")}function cce(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Forgot your password?</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function fce(t){let e;return{c(){e=oe("Email")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function dce(t){let e;return{c(){e=oe("Send Instructions")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function hce(t){let e;return{c(){e=oe("Go back")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function pce(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P;o=new Tr({props:{$$slots:{default:[fce]},$$scope:{ctx:t}}});function x(q){t[5](q)}let R={focused:!0,required:!0,type:"email",name:"email",autocomplete:"email",placeholder:"Email"};return t[0]!==void 0&&(R.value=t[0]),u=new Zr({props:R}),Qe.push(()=>En(u,"value",x)),d=new ir({props:{errors:t[2],field:"email"}}),y=new We({props:{type:"submit",$$slots:{default:[dce]},$$scope:{ctx:t}}}),S=new Ui({props:{to:"/login",$$slots:{default:[hce]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("p"),n.textContent="Enter the email address you signed up with to receive instructions to reset your password.",r=N(),i=C("form"),s=C("div"),j(o.$$.fragment),a=N(),j(u.$$.fragment),c=N(),j(d.$$.fragment),h=N(),m=C("input"),g=N(),k=C("p"),j(y.$$.fragment),b=N(),j(S.$$.fragment),w(n,"class","svelte-1u7feqe"),w(m,"type","submit"),w(m,"class","hide"),w(k,"class","svelte-1u7feqe"),w(e,"slot","content")},m(q,F){O(q,e,F),v(e,n),v(e,r),v(e,i),v(i,s),B(o,s,null),v(s,a),B(u,s,null),v(s,c),B(d,s,null),v(i,h),v(i,m),v(i,g),v(i,k),B(y,k,null),v(k,b),B(S,k,null),t[6](i),$=!0,D||(P=Ie(i,"submit",Lr(t[4])),D=!0)},p(q,F){const L={};F&128&&(L.$$scope={dirty:F,ctx:q}),o.$set(L);const M={};!l&&F&1&&(l=!0,M.value=q[0],wn(()=>l=!1)),u.$set(M);const V={};F&4&&(V.errors=q[2]),d.$set(V);const H={};F&128&&(H.$$scope={dirty:F,ctx:q}),y.$set(H);const J={};F&128&&(J.$$scope={dirty:F,ctx:q}),S.$set(J)},i(q){$||(E(o.$$.fragment,q),E(u.$$.fragment,q),E(d.$$.fragment,q),E(y.$$.fragment,q),E(S.$$.fragment,q),$=!0)},o(q){T(o.$$.fragment,q),T(u.$$.fragment,q),T(d.$$.fragment,q),T(y.$$.fragment,q),T(S.$$.fragment,q),$=!1}
1055,d(q){q&&I(e),z(o),z(u),z(d),z(y),z(S),t[6](null),D=!1,P()}}}function mce(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[pce],title:[cce]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&135&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function gce(t,e,n){let r,i,s;const o=nn([]);Ke(t,o,c=>n(2,r=c));const a=async()=>{const c=await qW({variables:{email:i}});c.data.sendResetPasswordInstructions.errors.length===0?(s.reset(),Mi("/login",{state:{flash:"An email with instructions on how to reset your pasword is sent."}})):o.set(c.data.sendResetPasswordInstructions.errors)};function u(c){i=c,n(0,i)}function l(c){Qe[c?"unshift":"push"](()=>{s=c,n(1,s)})}return[i,s,r,o,a,u,l]}class vce extends pt{constructor(e){super(),ht(this,e,gce,mce,dt,{},lce)}}function bce(t){Et(t,"svelte-1u7feqe","p.svelte-1u7feqe{margin:2rem 0}p.svelte-1u7feqe a{margin-left:1rem;color:var(--c-text)}")}function _ce(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Set new password</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function yce(t){let e;return{c(){e=oe("Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function wce(t){let e;return{c(){e=oe("Confirm Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Ece(t){let e;return{c(){e=oe("Save New Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function kce(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H;o=new Tr({props:{$$slots:{default:[yce]},$$scope:{ctx:t}}});function J(G){t[7](G)}let Z={type:"password",name:"password",autocomplete:"new-password",placeholder:"Password"};t[0]!==void 0&&(Z.value=t[0]),u=new Zr({props:Z}),Qe.push(()=>En(u,"value",J)),d=new ir({props:{errors:t[3],field:"password"}}),g=new Tr({props:{$$slots:{default:[wce]},$$scope:{ctx:t}}});function Q(G){t[8](G)}let K={type:"password",name:"confirm-password",autocomplete:"new-password",placeholder:"Confirm password"};return t[1]!==void 0&&(K.value=t[1]),y=new Zr({props:K}),Qe.push(()=>En(y,"value",Q)),$=new ir({props:{prefix:"Your reset password link ",errors:t[3],field:"reset_password_token"}}),P=new ir({props:{errors:t[3],field:"password"}}),L=new We({props:{type:"submit",$$slots:{default:[Ece]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("p"),n.textContent="Enter a new password to replace your old password.",r=N(),i=C("form"),s=C("div"),j(o.$$.fragment),a=N(),j(u.$$.fragment),c=N(),j(d.$$.fragment),h=N(),m=C("div"),j(g.$$.fragment),k=N(),j(y.$$.fragment),S=N(),j($.$$.fragment),D=N(),j(P.$$.fragment),x=N(),R=C("input"),q=N(),F=C("p"),j(L.$$.fragment),w(n,"class","svelte-1u7feqe"),w(R,"type","submit"),w(R,"class","hide"),w(F,"class","svelte-1u7feqe"),w(e,"slot","content")},m(G,se){O(G,e,se),v(e,n),v(e,r),v(e,i),v(i,s),B(o,s,null),v(s,a),B(u,s,null),v(s,c),B(d,s,null),v(i,h),v(i,m),B(g,m,null),v(m,k),B(y,m,null),v(m,S),B($,m,null),v(i,D),B(P,i,null),v(i,x),v(i,R),v(i,q),v(i,F),B(L,F,null),t[9](i),M=!0,V||(H=Ie(i,"submit",Lr(t[5])),V=!0)},p(G,se){const fe={};se&1024&&(fe.$$scope={dirty:se,ctx:G}),o.$set(fe);const me={};!l&&se&1&&(l=!0,me.value=G[0],wn(()=>l=!1)),u.$set(me);const Ae={};se&8&&(Ae.errors=G[3]),d.$set(Ae);const ee={};se&1024&&(ee.$$scope={dirty:se,ctx:G}),g.$set(ee);const ue={};!b&&se&2&&(b=!0,ue.value=G[1],wn(()=>b=!1)),y.$set(ue);const ie={};se&8&&(ie.errors=G[3]),$.$set(ie);const de={};se&8&&(de.errors=G[3]),P.$set(de);const Fe={};se&1024&&(Fe.$$scope={dirty:se,ctx:G}),L.$set(Fe)},i(G){M||(E(o.$$.fragment,G),E(u.$$.fragment,G),E(d.$$.fragment,G),E(g.$$.fragment,G),E(y.$$.fragment,G),E($.$$.fragment,G),E(P.$$.fragment,G),E(L.$$.fragment,G),M=!0)},o(G){T(o.$$.fragment,G),T(u.$$.fragment,G),T(d.$$.fragment,G),T(g.$$.fragment,G),T(y.$$.fragment,G),T($.$$.fragment,G),T(P.$$.fragment,G),T(L.$$.fragment,G),M=!1}
1055,d(G){G&&I(e),z(o),z(u),z(d),z(g),z(y),z($),z(P),z(L),t[9](null),V=!1,H()}}}function Sce(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[kce],title:[_ce]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&1039&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function Tce(t,e,n){let r,{token:i}=e,s,o,a;const u=nn([]);Ke(t,u,m=>n(3,r=m));const l=async()=>{const m=await FW({variables:{token:i,password:s,passwordConfirmation:o}});m.data.resetPassword.errors.length===0?(a.reset(),Mi("/login",{state:{flash:"Password successfully changed. Use your new password to log in."}})):u.set(m.data.resetPassword.errors)};function c(m){s=m,n(0,s)}function d(m){o=m,n(1,o)}function h(m){Qe[m?"unshift":"push"](()=>{a=m,n(2,a)})}return t.$$set=m=>{"token"in m&&n(6,i=m.token)},[s,o,a,r,u,l,i,c,d,h]}class $ce extends pt{constructor(e){super(),ht(this,e,Tce,Sce,dt,{token:6},bce)}}function Cce(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Invitation to join Hyperplace</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function Ace(t){let e,n,r,i,s;return r=new Ui({props:{to:"/forgot-password",$$slots:{default:[Oce]},$$scope:{ctx:t}}}),{c(){e=C("p"),n=oe(`We couldn't find a valid invitation for you. You might be already registered! In that case 1056 you can `),j(r.$$.fragment),i=oe(" to regain access to your account.")},m(o,a){O(o,e,a),v(e,n),B(r,e,null),v(e,i),s=!0},p(o,a){const u={};a&16384&&(u.$$scope={dirty:a,ctx:o}),r.$set(u)},i(o){s||(E(r.$$.fragment,o),s=!0)},o(o){T(r.$$.fragment,o),s=!1},d(o){o&&I(e),z(r)}}}function Dce(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q;r=new Tr({props:{$$slots:{default:[Nce]},$$scope:{ctx:t}}});function K(ee){t[10](ee)}let G={type:"password",name:"password",autocomplete:"new-password",placeholder:"Password"};t[2]!==void 0&&(G.value=t[2]),s=new Zr({props:G}),Qe.push(()=>En(s,"value",K)),u=new ir({props:{errors:t[5],field:"password"}}),d=new Tr({props:{$$slots:{default:[Rce]},$$scope:{ctx:t}}});function se(ee){t[11](ee)}let fe={type:"password",name:"password",autocomplete:"new-password",placeholder:"Confirm password"};t[3]!==void 0&&(fe.value=t[3]),m=new Zr({props:fe}),Qe.push(()=>En(m,"value",se)),y=new ir({props:{errors:t[5],field:"password_confirmation"}}),$=new Tr({props:{$$slots:{default:[Pce]},$$scope:{ctx:t}}});function me(ee){t[12](ee)}let Ae={focused:!0,type:"text",name:"username",autocomplete:"username",placeholder:"Name"};return t[1]!==void 0&&(Ae.value=t[1]),P=new Zr({props:Ae}),Qe.push(()=>En(P,"value",me)),q=new ir({props:{errors:t[5],field:"username"}}),L=new ir({props:{errors:t[5],field:"base"}}),H=new We({props:{$$slots:{default:[xce]},$$scope:{ctx:t}}}),H.$on("click",t[8]),{c(){e=C("form"),n=C("div"),j(r.$$.fragment),i=N(),j(s.$$.fragment),a=N(),j(u.$$.fragment),l=N(),c=C("div"),j(d.$$.fragment),h=N(),j(m.$$.fragment),k=N(),j(y.$$.fragment),b=N(),S=C("div"),j($.$$.fragment),D=N(),j(P.$$.fragment),R=N(),j(q.$$.fragment),F=N(),j(L.$$.fragment),M=N(),V=C("p"),j(H.$$.fragment)},m(ee,ue){O(ee,e,ue),v(e,n),B(r,n,null),v(n,i),B(s,n,null),v(n,a),B(u,n,null),v(e,l),v(e,c),B(d,c,null),v(c,h),B(m,c,null),v(c,k),B(y,c,null),v(e,b),v(e,S),B($,S,null),v(S,D),B(P,S,null),v(S,R),B(q,S,null),v(e,F),B(L,e,null),t[13](e),O(ee,M,ue),O(ee,V,ue),B(H,V,null),J=!0,Z||(Q=Ie(e,"submit",Lr(t[8])),Z=!0)},p(ee,ue){const ie={};ue&16384&&(ie.$$scope={dirty:ue,ctx:ee}),r.$set(ie);const de={};!o&&ue&4&&(o=!0,de.value=ee[2],wn(()=>o=!1)),s.$set(de);const Fe={};ue&32&&(Fe.errors=ee[5]),u.$set(Fe);const Ve={};ue&16384&&(Ve.$$scope={dirty:ue,ctx:ee}),d.$set(Ve);const Te={};!g&&ue&8&&(g=!0,Te.value=ee[3],wn(()=>g=!1)),m.$set(Te);const we={};ue&32&&(we.errors=ee[5]),y.$set(we);const je={};ue&16384&&(je.$$scope={dirty:ue,ctx:ee}),$.$set(je);const Je={};!x&&ue&2&&(x=!0,Je.value=ee[1],wn(()=>x=!1)),P.$set(Je);const Ne={};ue&32&&(Ne.errors=ee[5]),q.$set(Ne);const Ge={};ue&32&&(Ge.errors=ee[5]),L.$set(Ge);const nt={};ue&16384&&(nt.$$scope={dirty:ue,ctx:ee}),H.$set(nt)},i(ee){J||(E(r.$$.fragment,ee),E(s.$$.fragment,ee),E(u.$$.fragment,ee),E(d.$$.fragment,ee),E(m.$$.fragment,ee),E(y.$$.fragment,ee),E($.$$.fragment,ee),E(P.$$.fragment,ee),E(q.$$.fragment,ee),E(L.$$.fragment,ee),E(H.$$.fragment,ee),J=!0)},o(ee){T(r.$$.fragment,ee),T(s.$$.fragment,ee),T(u.$$.fragment,ee),T(d.$$.fragment,ee),T(m.$$.fragment,ee),T(y.$$.fragment,ee),T($.$$.fragment,ee),T(P.$$.fragment,ee),T(q.$$.fragment,ee),T(L.$$.fragment,ee),T(H.$$.fragment,ee),J=!1}
1056,d(ee){ee&&(I(e),I(M),I(V)),z(r),z(s),z(u),z(d),z(m),z(y),z($),z(P),z(q),z(L),t[13](null),z(H),Z=!1,Q()}}}function Ice(t){let e;return{c(){e=oe("Checking invitation validity...")},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function Oce(t){let e;return{c(){e=oe("reset your password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Nce(t){let e;return{c(){e=oe("Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Rce(t){let e;return{c(){e=oe("Confirm Password")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Pce(t){let e;return{c(){e=oe("Name")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function xce(t){let e;return{c(){e=oe("Create account")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function qce(t){let e,n,r,i;const s=[Ice,Dce,Ace],o=[];function a(u,l){return u[4].loading?0:u[4].data.invitationValidity?1:2}return n=a(t),r=o[n]=s[n](t),{c(){e=C("span"),r.c(),w(e,"slot","content")},m(u,l){O(u,e,l),o[n].m(e,null),i=!0},p(u,l){let c=n;n=a(u),n===c?o[n].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),r=o[n],r?r.p(u,l):(r=o[n]=s[n](u),r.c()),E(r,1),r.m(e,null))},i(u){i||(E(r),i=!0)},o(u){T(r),i=!1},d(u){u&&I(e),o[n].d()}}}function Fce(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[qce],title:[Cce]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&16447&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function Lce(t,e,n){let r,i,{token:s}=e;const o=cG({variables:{token:s}});Ke(t,o,b=>n(4,r=b));let a,u,l,c;const d=nn([]);Ke(t,d,b=>n(5,i=b));const h=async()=>{var b,S,$;const D=await BW({variables:{token:s,username:u,password:l,passwordConfirmation:c}});d.set(D.data.acceptInvitation.errors),(($=(S=(b=D.data)===null||b===void 0?void 0:b.acceptInvitation)===null||S===void 0?void 0:S.errors)===null||$===void 0?void 0:$.length)===0&&(a.reset(),Mi("/login",{state:{flash:"Registration successful"}}))};function m(b){l=b,n(2,l)}function g(b){c=b,n(3,c)}function k(b){u=b,n(1,u)}function y(b){Qe[b?"unshift":"push"](()=>{a=b,n(0,a)})}return t.$$set=b=>{"token"in b&&n(9,s=b.token)},[a,u,l,c,r,i,o,d,h,s,m,g,k,y]}class Mce extends pt{constructor(e){super(),ht(this,e,Lce,Fce,dt,{token:9})}}function Bce(t){Et(t,"svelte-1u7feqe","p.svelte-1u7feqe{margin:2rem 0}p.svelte-1u7feqe a{margin-left:1rem;color:var(--c-text)}")}function _8(t){var n,r;const e=(r=(n=t[3].data)==null?void 0:n.confirmEmail)==null?void 0:r.errors;t[4]=e}function zce(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Email Confirmation</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function jce(t){let e,n,r,i,s;return i=new Ui({props:{to:"/",$$slots:{default:[Uce]},$$scope:{ctx:t}}}),{c(){e=C("p"),e.textContent="An error occured while confirming your email address.",n=N(),r=C("p"),j(i.$$.fragment),w(e,"class","svelte-1u7feqe"),w(r,"class","svelte-1u7feqe")},m(o,a){O(o,e,a),O(o,n,a),O(o,r,a),B(i,r,null),s=!0},p(o,a){const u={};a&32&&(u.$$scope={dirty:a,ctx:o}),i.$set(u)},i(o){s||(E(i.$$.fragment,o),s=!0)},o(o){T(i.$$.fragment,o),s=!1},d(o){o&&(I(e),I(n),I(r)),z(i)}}}function Uce(t){let e;return{c(){e=oe("Home")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Hce(t){_8(t);let e,n,r,i;const s=[Wce,Vce],o=[];function a(u,l){var c;return((c=u[4])==null?void 0:c.length)===0?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){_8(u),n.p(u,l)},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function Vce(t){let e,n,r,i,s,o,a,u,l,c,d;return e=new ir({props:{errors:t[4],prefix:"Your email address ",field:"email"}}),r=new ir({props:{errors:t[4],prefix:"Confirmation token you have provided ",field:"confirmation_token"}}),s=new ir({props:{errors:t[4],field:"base"}}),u=new We({props:{$$slots:{default:[Gce]},$$scope:{ctx:t}}}),u.$on("click",t[1]),c=new Ui({props:{to:"/resend-confirmation-email",$$slots:{default:[Yce]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),a=C("p"),j(u.$$.fragment),l=N(),j(c.$$.fragment),w(a,"class","svelte-1u7feqe")},m(h,m){B(e,h,m),O(h,n,m),B(r,h,m),O(h,i,m),B(s,h,m),O(h,o,m),O(h,a,m),B(u,a,null),v(a,l),B(c,a,null),d=!0}
1056,p(h,m){const g={};m&32&&(g.$$scope={dirty:m,ctx:h}),u.$set(g);const k={};m&32&&(k.$$scope={dirty:m,ctx:h}),c.$set(k)},i(h){d||(E(e.$$.fragment,h),E(r.$$.fragment,h),E(s.$$.fragment,h),E(u.$$.fragment,h),E(c.$$.fragment,h),d=!0)},o(h){T(e.$$.fragment,h),T(r.$$.fragment,h),T(s.$$.fragment,h),T(u.$$.fragment,h),T(c.$$.fragment,h),d=!1},d(h){h&&(I(n),I(i),I(o),I(a)),z(e,h),z(r,h),z(s,h),z(u),z(c)}}}function Wce(t){let e,n;return e=new Ld({props:{to:"/login",state:{flash:"Your email address is confirmed, please login with your email and password."}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function Gce(t){let e;return{c(){e=oe("Login")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Yce(t){let e;return{c(){e=oe("Resend Confirmation")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function Qce(t){let e;return{c(){e=C("p"),e.textContent="Please wait while we are confirming your email...",w(e,"class","svelte-1u7feqe")},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function Zce(t){let e,n,r={ctx:t,current:null,token:null,hasCatch:!0,pending:Qce,then:Hce,catch:jce,value:3,blocks:[,,,]};return nv(t[0],r),{c(){e=C("span"),r.block.c(),w(e,"slot","content")},m(i,s){O(i,e,s),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,n=!0},p(i,s){t=i,v5(r,t,s)},i(i){n||(E(r.block),n=!0)},o(i){for(let s=0;s<3;s+=1){const o=r.blocks[s];T(o)}n=!1},d(i){i&&I(e),r.block.d(),r.token=null,r=null}}}function Xce(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[Zce],title:[zce]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&32&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function Kce(t,e,n){let{token:r}=e;const i=jW({variables:{token:r}}),s=()=>Mi("/login");return t.$$set=o=>{"token"in o&&n(2,r=o.token)},[i,s,r]}class Jce extends pt{constructor(e){super(),ht(this,e,Kce,Xce,dt,{token:2},Bce)}}function efe(t){Et(t,"svelte-1u7feqe","p.svelte-1u7feqe{margin:2rem 0}p.svelte-1u7feqe a{margin-left:1rem;color:var(--c-text)}")}function tfe(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Resend Confirmation Email</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function nfe(t){let e;return{c(){e=oe("Email")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function rfe(t){let e;return{c(){e=oe("Resend")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function ife(t){let e;return{c(){e=oe("Go Back")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function sfe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$;i=new Tr({props:{$$slots:{default:[nfe]},$$scope:{ctx:t}}});function D(x){t[5](x)}let P={focused:!0,type:"email",name:"email",autocomplete:"email",placeholder:"Email"};return t[0]!==void 0&&(P.value=t[0]),o=new Zr({props:P}),Qe.push(()=>En(o,"value",D)),l=new ir({props:{errors:t[2],field:"email"}}),g=new We({props:{$$slots:{default:[rfe]},$$scope:{ctx:t}}}),g.$on("click",t[4]),y=new Ui({props:{to:"/login",$$slots:{default:[ife]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("form"),r=C("div"),j(i.$$.fragment),s=N(),j(o.$$.fragment),u=N(),j(l.$$.fragment),c=N(),d=C("input"),h=N(),m=C("p"),j(g.$$.fragment),k=N(),j(y.$$.fragment),w(d,"type","submit"),w(d,"class","hide"),w(m,"class","svelte-1u7feqe"),w(e,"slot","content")},m(x,R){O(x,e,R),v(e,n),v(n,r),B(i,r,null),v(r,s),B(o,r,null),v(r,u),B(l,r,null),v(n,c),v(n,d),t[6](n),v(e,h),v(e,m),B(g,m,null),v(m,k),B(y,m,null),b=!0,S||($=Ie(n,"submit",Lr(t[4])),S=!0)},p(x,R){const q={};R&128&&(q.$$scope={dirty:R,ctx:x}),i.$set(q);const F={};!a&&R&1&&(a=!0,F.value=x[0],wn(()=>a=!1)),o.$set(F);const L={};R&4&&(L.errors=x[2]),l.$set(L);const M={};R&128&&(M.$$scope={dirty:R,ctx:x}),g.$set(M);const V={};R&128&&(V.$$scope={dirty:R,ctx:x}),y.$set(V)},i(x){b||(E(i.$$.fragment,x),E(o.$$.fragment,x),E(l.$$.fragment,x),E(g.$$.fragment,x),E(y.$$.fragment,x),b=!0)},o(x){T(i.$$.fragment,x),T(o.$$.fragment,x),T(l.$$.fragment,x),T(g.$$.fragment,x),T(y.$$.fragment,x),b=!1},d(x){x&&I(e),z(i),z(o),z(l),t[6](null),z(g),z(y),S=!1,$()}}}function ofe(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[sfe],title:[tfe]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&135&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function afe(t,e,n){let r,i,s;const o=nn([]);Ke(t,o,c=>n(2,r=c));const a=async()=>{const c=await zW({variables:{email:i}});c.data.confirmationResend.errors.length===0?(s.reset(),Mi("/login",{state:{flash:"A new confirmation email has been sent to your email address."}})):o.set(c.data.confirmationResend.errors)};function u(c){i=c,n(0,i)}function l(c){Qe[c?"unshift":"push"](()=>{s=c,n(1,s)})}return[i,s,r,o,a,u,l]}class ufe extends pt{constructor(e){super(),ht(this,e,afe,ofe,dt,{},efe)}}function lfe(t){Et(t,"svelte-1u7feqe","p.svelte-1u7feqe{margin:2rem 0}p.svelte-1u7feqe a{margin-left:1rem;color:var(--c-text)}")}function cfe(t){let e;return{c(){e=C("span"),e.innerHTML="<h1>Join Waiting List</h1>",w(e,"slot","title")},m(n,r){O(n,e,r)},p:Ee,d(n){n&&I(e)}}}function y8(t){let e;return{c(){e=C("div"),e.innerHTML='<h2>Thank you!</h2> <p class="svelte-1u7feqe">We have added you to our waiting list. We'll let you know as soon as there's an update.</p>'},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function ffe(t){let e;return{c(){e=oe("Email")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function dfe(t){let e;return{c(){e=oe("Join")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function hfe(t){let e;return{c(){e=oe("Go Back")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function pfe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P=t[2]&&y8();s=new Tr({props:{$$slots:{default:[ffe]},$$scope:{ctx:t}}});function x(q){t[6](q)}let R={focused:!0,type:"email",name:"email",autocomplete:"email",placeholder:"Email"};return t[0]!==void 0&&(R.value=t[0]),a=new Zr({props:R}),Qe.push(()=>En(a,"value",x)),c=new ir({props:{errors:t[3],field:"email"}}),k=new We({props:{$$slots:{default:[dfe]},$$scope:{ctx:t}}}),k.$on("click",t[5]),b=new Ui({props:{to:"/login",$$slots:{default:[hfe]},$$scope:{ctx:t}}}),{c(){e=C("span"),n=C("form"),P&&P.c(),r=N(),i=C("div"),j(s.$$.fragment),o=N(),j(a.$$.fragment),l=N(),j(c.$$.fragment),d=N(),h=C("input"),m=N(),g=C("p"),j(k.$$.fragment),y=N(),j(b.$$.fragment),w(h,"type","submit"),w(h,"class","hide"),w(g,"class","svelte-1u7feqe"),w(e,"slot","content")},m(q,F){O(q,e,F),v(e,n),P&&P.m(n,null),v(n,r),v(n,i),B(s,i,null),v(i,o),B(a,i,null),v(i,l),B(c,i,null),v(n,d),v(n,h),t[7](n),v(e,m),v(e,g),B(k,g,null),v(g,y),B(b,g,null),S=!0,$||(D=Ie(n,"submit",Lr(t[5])),$=!0)},p(q,F){q[2]?P||(P=y8(),P.c(),P.m(n,r)):P&&(P.d(1),P=null);const L={};F&256&&(L.$$scope={dirty:F,ctx:q}),s.$set(L);const M={};!u&&F&1&&(u=!0,M.value=q[0],wn(()=>u=!1)),a.$set(M);const V={};F&8&&(V.errors=q[3]),c.$set(V);const H={};F&256&&(H.$$scope={dirty:F,ctx:q}),k.$set(H);const J={};F&256&&(J.$$scope={dirty:F,ctx:q}),b.$set(J)},i(q){S||(E(s.$$.fragment,q),E(a.$$.fragment,q),E(c.$$.fragment,q),E(k.$$.fragment,q),E(b.$$.fragment,q),S=!0)},o(q){T(s.$$.fragment,q),T(a.$$.fragment,q),T(c.$$.fragment,q),T(k.$$.fragment,q),T(b.$$.fragment,q),S=!1},d(q){q&&I(e),P&&P.d(),z(s),z(a),z(c),t[7](null),z(k),z(b),$=!1,D()}}}function mfe(t){let e,n,r,i,s,o,a,u;return e=new Di({props:{logoOnly:!0}}),r=new Ar({props:{centered:!0,$$slots:{content:[pfe],title:[cfe]},$$scope:{ctx:t}}}),s=new go({props:{visible:!0,animate:!0,horizon:"35vh"}}),a=new Ii({}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment)},m(l,c){B(e,l,c),O(l,n,c),B(r,l,c),O(l,i,c),B(s,l,c),O(l,o,c),B(a,l,c),u=!0},p(l,[c]){const d={};c&271&&(d.$$scope={dirty:c,ctx:l}),r.$set(d)},i(l){u||(E(e.$$.fragment,l),E(r.$$.fragment,l),E(s.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){T(e.$$.fragment,l),T(r.$$.fragment,l),T(s.$$.fragment,l),T(a.$$.fragment,l),u=!1},d(l){l&&(I(n),I(i),I(o)),z(e,l),z(r,l),z(s,l),z(a,l)}}}function gfe(t,e,n){let r,i,s,o=!1;const a=nn([]);Ke(t,a,d=>n(3,r=d));const u=async()=>{const d=await LW({variables:{email:i}});d.data.joinWaitingList.errors.length===0?(n(2,o=!0),s.reset()):a.set(d.data.joinWaitingList.errors)};function l(d){i=d,n(0,i)}function c(d){Qe[d?"unshift":"push"](()=>{s=d,n(1,s)})}return[i,s,o,r,a,u,l,c]}class vfe extends pt{constructor(e){super(),ht(this,e,gfe,mfe,dt,{},lfe)}}var W7={},G7={};
1056(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="circle-info",r=512,i=512,s=["info-circle"],o="f05a",a="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faCircleInfo=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(G7);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=G7;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faInfoCircle=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(W7);var Y7={},Q7={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="triangle-exclamation",r=512,i=512,s=[9888,"exclamation-triangle","warning"],o="f071",a="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";t.definition={prefix:e,iconName:n,icon:[r,i,s,o,a]},t.faTriangleExclamation=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=s,t.unicode=o,t.svgPathData=a,t.aliases=s})(Q7);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Q7;t.definition={prefix:e.prefix,iconName:e.iconName,icon:[e.width,e.height,e.aliases,e.unicode,e.svgPathData]},t.faWarning=t.definition,t.prefix=e.prefix,t.iconName=e.iconName,t.width=e.width,t.height=e.height,t.ligatures=e.aliases,t.unicode=e.unicode,t.svgPathData=e.svgPathData,t.aliases=e.aliases})(Y7);function bfe(t){Et(t,"svelte-4mkmya",".PromptList.svelte-4mkmya{position:fixed;width:300px;bottom:2rem;left:50%;margin-left:-150px;max-height:40%;overflow:auto}.Prompt.svelte-4mkmya{margin-bottom:1rem;padding:1rem;position:relative}.Prompt--ERROR.svelte-4mkmya{background-color:var(--c-danger)}.Prompt--INFO.svelte-4mkmya{background-color:var(--c-space-hover)}.PromptDismiss.svelte-4mkmya{position:absolute;right:0.5rem;top:0.5rem}")}function w8(t,e,n){const r=t.slice();return r[3]=e[n],r}function _fe(t){let e,n;return e=new et({props:{icon:W7.faInfoCircle}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function yfe(t){let e,n;return e=new et({props:{icon:Y7.faWarning}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function wfe(t){let e,n;return e=new et({props:{icon:Sd.faTimes}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function E8(t,e){let n,r,i,s,o,a=e[3].message+"",u,l,c,d,h,m,g,k;const y=[yfe,_fe],b=[];function S(D,P){return D[3].type===Ho.Error?0:D[3].type===Ho.Info?1:-1}~(i=S(e))&&(s=b[i]=y[i](e));function $(){return e[2](e[3])}return d=new We({props:{small:!0,transparent:!0,circle:!0,title:"Dismiss",$$slots:{default:[wfe]},$$scope:{ctx:e}}}),d.$on("click",$),{key:t,first:null,c(){n=C("div"),r=C("div"),s&&s.c(),o=oe(` 1057 Â 1058 `),u=oe(a),l=N(),c=C("div"),j(d.$$.fragment),h=N(),w(r,"class","PromptContent"),w(c,"class","PromptDismiss svelte-4mkmya"),w(n,"class",m="Prompt Prompt--"+e[3].type+" svelte-4mkmya"),this.first=n},m(D,P){O(D,n,P),v(n,r),~i&&b[i].m(r,null),v(r,o),v(r,u),v(n,l),v(n,c),B(d,c,null),v(n,h),k=!0},p(D,P){e=D;let x=i;i=S(e),i!==x&&(s&&($e(),T(b[x],1,1,()=>{b[x]=null}),Ce()),~i?(s=b[i],s||(s=b[i]=y[i](e),s.c()),E(s,1),s.m(r,o)):s=null),(!k||P&1)&&a!==(a=e[3].message+"")&&Wt(u,a);const R={};P&64&&(R.$$scope={dirty:P,ctx:e}),d.$set(R),(!k||P&1&&m!==(m="Prompt Prompt--"+e[3].type+" svelte-4mkmya"))&&w(n,"class",m)},i(D){k||(E(s),E(d.$$.fragment,D),D&&Xn(()=>{k&&(g||(g=Zn(n,Sr,{duration:400,easing:oo},!0)),g.run(1))}),k=!0)},o(D){T(s),T(d.$$.fragment,D),D&&(g||(g=Zn(n,Sr,{duration:400,easing:oo},!1)),g.run(0)),k=!1},d(D){D&&I(n),~i&&b[i].d(),z(d),D&&g&&g.end()}}}function Efe(t){let e,n=[],r=new Map,i,s=Ut(t[0]);const o=a=>a[3].id;for(let a=0;a<s.length;a+=1){let u=w8(t,s,a),l=o(u);r.set(l,n[a]=E8(l,u))}return{c(){e=C("div");for(let a=0;a<n.length;a+=1)n[a].c();w(e,"class","PromptList svelte-4mkmya")},m(a,u){O(a,e,u);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null);i=!0},p(a,[u]){u&3&&(s=Ut(a[0]),$e(),n=fo(n,u,o,1,a,s,r,e,co,E8,null,w8),Ce())},i(a){if(!i){for(let u=0;u<s.length;u+=1)E(n[u]);i=!0}},o(a){for(let u=0;u<n.length;u+=1)T(n[u]);i=!1},d(a){a&&I(e);for(let u=0;u<n.length;u+=1)n[u].d()}}}function kfe(t,e,n){let r;Ke(t,U_,o=>n(0,r=o));const i=o=>{$$(o.id)};return[r,i,o=>i(o)]}class Sfe extends pt{constructor(e){super(),ht(this,e,kfe,Efe,dt,{},bfe)}}function Tfe(t){Et(t,"svelte-ro4rhk",'div.main.svelte-ro4rhk{margin:22vh 4rem;max-width:74rem}a.svelte-ro4rhk{color:var(--c-text);text-decoration:underline;
1058text-decoration-color:var(--underlineColor);text-underline-offset:0.15em}a.svelte-ro4rhk:hover{color:var(--underlineColor)}p.svelte-ro4rhk{font-size:2rem;line-height:1.4em;margin:2rem 0}h1.svelte-ro4rhk{font-family:"Athelas", "Times New Roman", Times, serif;font-size:6.4rem;font-weight:500;line-height:1.25em;margin-bottom:6rem;margin-left:-0.05em;letter-spacing:-0.025em}@media(max-width: 768px){div.main.svelte-ro4rhk{overflow-y:scroll;margin:22vh 2rem}p.svelte-ro4rhk{font-size:1.8rem}}@media(min-width: 1280px){div.main.svelte-ro4rhk{margin:22vh auto}}')}function $fe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V;return e=new Di({props:{fixed:!0,opaque:!0}}),F=new bc({}),M=new Ii({}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("h1"),i.textContent="Hello,",s=N(),o=C("p"),o.textContent=`Iâm Fahri, designer and co-founder of Hyperplace. Hyperplace originated from a personal 1059 experience that I think you can relate to.`,a=N(),u=C("p"),u.textContent=`Back in 2019, I noticed that valuable ideas often get lost in the rush of my daily life. I was 1060 reading a lot, listening to podcasts, and watching videos to gain a deeper understanding of 1061 specific topics. Like many, I was taking notes, but I'd fail to remember them when I needed them 1062 or struggle to see how they connected to my everyday experiences. This sparked my interest in 1063 exploring the nature of learning and remembering. I delved into cognitive science and philosophy 1064 of the mind, wondering if there could be a better way to collect and internalize ideas to enrich 1065 my day-to-day life and professional work.`,l=N(),c=C("p"),c.textContent=`Through these studies, I realized that by taking the time to reflect on why certain information 1066 resonates with us, we begin to understand its connections to our existing knowledge, forming a 1067 personal and meaningful relationship with it. We not only strengthen our ability to remember it 1068 but also create multiple pathways to access that information.`,d=N(),h=C("p"),h.textContent=`Inspired by this realization, we designed Hyperplace as a multi-dimensional space for exploring 1069 and developing ideas. Dedicated places in Hyperplace enable you to collect and organize ideas 1070 both in linear narratives, where thoughts flow from one to the next, and visual, side-by-side 1071 layouts that allow information to expand freely and stay in sight. This flexibility helps you 1072 pick things out of their context, explore them further and put them back together in meaningful 1073 new ways.`,m=N(),g=C("p"),g.textContent=`We believe that by actively exploring your interests with Hyperplace, you will become more aware 1074 of the information and ideas that resonate with you throughout your day. We invite you to give 1075 it a try and discover how Hyperplace can support you and your work.`,k=N(),y=C("p"),b=oe(`We can't wait to see how you'll use Hyperplace and we are looking forward to developing it 1076 further with your input. Please write to us at `),S=C("span"),$=oe(` with your thoughts, 1077 questions, or feedback. We'd love to hear from you.`),D=N(),P=C("p"),P.textContent="Sincerely,",x=N(),R=C("p"),R.innerHTML='<a href="https://linkedin.com/in/fahrio" target="_blank" class="svelte-ro4rhk">Fahri Ãzkaramanlı</a>,<br/> <a href="https://linkedin.com/in/barisgumustas" target="_blank" class="svelte-ro4rhk">BarıŠGümüÅtaÅ</a>,<br/> <a href="https://www.linkedin.com/in/yusean/" target="_blank" class="svelte-ro4rhk">Sean X Yu</a>',q=N(),j(F.$$.fragment),L=N(),j(M.$$.fragment),w(i,"class","svelte-ro4rhk"),w(o,"class","svelte-ro4rhk"),w(u,"class","svelte-ro4rhk"),w(c,"class","svelte-ro4rhk"),w(h,"class","svelte-ro4rhk"),w(g,"class","svelte-ro4rhk"),w(y,"class","svelte-ro4rhk"),w(P,"class","svelte-ro4rhk"),w(R,"class","svelte-ro4rhk"),w(r,"class","main svelte-ro4rhk")},m(H,J){B(e,H,J),O(H,n,J),O(H,r,J),v(r,i),v(r,s),v(r,o),v(r,a),v(r,u),v(r,l),v(r,c),v(r,d),v(r,h),v(r,m),v(r,g),v(r,k),v(r,y),v(y,b),v(y,S),t[1](S),v(y,$),v(r,D),v(r,P),v(r,x),v(r,R),O(H,q,J),B(F,H,J),O(H,L,J),B(M,H,J),V=!0},p:Ee,i(H){V||(E(e.$$.fragment,H),E(F.$$.fragment,H),E(M.$$.fragment,H),V=!0)},o(H){T(e.$$.fragment,H),T(F.$$.fragment,H),T(M.$$.fragment,H),V=!1},d(H){H&&(I(n),I(r),I(q),I(L)),z(e,H),t[1](null),z(F,H),z(M,H)}}}let Cfe="contact",Afe="hyper.place";function Dfe(t,e,n){let r;$r(()=>{n(0,r.innerHTML=Cfe+"@"+Afe,r)});function i(s){Qe[s?"unshift":"push"](()=>{r=s,n(0,r)})}return[r,i]}class Ife extends pt{constructor(e){super(),ht(this,e,Dfe,$fe,dt,{},Tfe)}}
1077function Ofe(t){Et(t,"svelte-qbbycp","header.svelte-qbbycp>section.svelte-qbbycp{box-sizing:border-box;display:flex;flex-direction:column}.wrapper.svelte-qbbycp.svelte-qbbycp{width:100%;height:100vh;overflow:hidden;display:flex;flex-direction:column}h1.svelte-qbbycp.svelte-qbbycp,h2.svelte-qbbycp.svelte-qbbycp{margin-bottom:var(--e-spacing)}label.svelte-qbbycp.svelte-qbbycp{margin-bottom:var(--e-spacing)}textarea.svelte-qbbycp.svelte-qbbycp{margin-bottom:var(--e-spacing);background:rgb(255, 255, 255, 0.1);border:none;border-radius:var(--e-spacing);resize:none;padding:calc(var(--e-spacing) / 2);color:var(--e-color-text)}main.svelte-qbbycp.svelte-qbbycp{flex-grow:1;width:100%;height:100%;display:flex;flex-direction:row;overflow:hidden}main.svelte-qbbycp>section.svelte-qbbycp{box-sizing:border-box;width:50%;display:flex;flex-direction:column}section.svelte-qbbycp.svelte-qbbycp{padding:var(--e-spacing)}.promptField.svelte-qbbycp.svelte-qbbycp{width:100%;font-family:monospace;flex-grow:1}.responseField.svelte-qbbycp.svelte-qbbycp{overflow-y:auto;width:100%;font-family:monospace;flex-grow:1;white-space:pre-wrap}")}function Nfe(t){var G,se;let e,n,r,i,s=((se=(G=t[0].data)==null?void 0:G.agentConversation)==null?void 0:se.title)+"",o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J;k=new We({props:{disabled:t[7],$$slots:{default:[Pfe]},$$scope:{ctx:t}}}),k.$on("click",t[9]),R=new We({props:{disabled:t[8],$$slots:{default:[xfe]},$$scope:{ctx:t}}}),R.$on("click",t[10]);function Z(fe,me){return fe[4]?Ffe:qfe}let Q=Z(t),K=Q(t);return{c(){e=C("header"),n=C("section"),r=C("h1"),i=oe("Conversation Debugger: "),o=oe(s),a=N(),u=C("textarea"),l=N(),c=C("label"),d=C("span"),d.textContent="Recall score threshold (entries scoring below are excluded from context)",h=N(),m=C("input"),g=N(),j(k.$$.fragment),y=N(),b=C("main"),S=C("section"),$=C("h2"),$.textContent="Generated prompt",D=N(),P=C("textarea"),x=N(),j(R.$$.fragment),q=N(),F=C("section"),L=C("h2"),L.textContent="Generated Response",M=N(),K.c(),w(r,"class","svelte-qbbycp"),w(u,"class","promptField svelte-qbbycp"),w(u,"placeholder",Mfe),w(m,"type","number"),w(m,"min","0"),w(m,"max","1"),w(m,"step","0.05"),w(c,"class","svelte-qbbycp"),w(n,"class","svelte-qbbycp"),w(e,"class","svelte-qbbycp"),w($,"class","svelte-qbbycp"),w(P,"class","promptField svelte-qbbycp"),w(S,"class","svelte-qbbycp"),w(L,"class","svelte-qbbycp"),w(F,"class","svelte-qbbycp"),w(b,"class","svelte-qbbycp")},m(fe,me){O(fe,e,me),v(e,n),v(n,r),v(r,i),v(r,o),v(n,a),v(n,u),Yr(u,t[2]),v(n,l),v(n,c),v(c,d),v(c,h),v(c,m),Yr(m,t[5]),v(n,g),B(k,n,null),O(fe,y,me),O(fe,b,me),v(b,S),v(S,$),v(S,D),v(S,P),Yr(P,t[1]),v(S,x),B(R,S,null),v(b,q),v(b,F),v(F,L),v(F,M),K.m(F,null),V=!0,H||(J=[Ie(u,"input",t[16]),Ie(m,"input",t[17]),Ie(P,"input",t[18])],H=!0)},p(fe,me){var ue,ie;(!V||me&1)&&s!==(s=((ie=(ue=fe[0].data)==null?void 0:ue.agentConversation)==null?void 0:ie.title)+"")&&Wt(o,s),me&4&&Yr(u,fe[2]),me&32&&Au(m.value)!==fe[5]&&Yr(m,fe[5]);const Ae={};me&128&&(Ae.disabled=fe[7]),me&524288&&(Ae.$$scope={dirty:me,ctx:fe}),k.$set(Ae),me&2&&Yr(P,fe[1]);const ee={};me&256&&(ee.disabled=fe[8]),me&524288&&(ee.$$scope={dirty:me,ctx:fe}),R.$set(ee),Q===(Q=Z(fe))&&K?K.p(fe,me):(K.d(1),K=Q(fe),K&&(K.c(),K.m(F,null)))},i(fe){V||(E(k.$$.fragment,fe),E(R.$$.fragment,fe),V=!0)},o(fe){T(k.$$.fragment,fe),T(R.$$.fragment,fe),V=!1},d(fe){fe&&(I(e),I(y),I(b)),z(k),z(R),K.d(),H=!1,fn(J)}}}function Rfe(t){let e;return{c(){e=C("div"),e.textContent="Loading..."},m(n,r){O(n,e,r)},p:Ee,i:Ee,o:Ee,d(n){n&&I(e)}}}function Pfe(t){let e;return{c(){e=oe("Generate Prompt")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function xfe(t){let e;return{c(){e=oe("Send Prompt")},m(n,r){O(n,e,r)},d(n){n&&I(e)}}}function qfe(t){let e,n,r,i;return{c(){e=C("pre"),n=oe(" "),r=oe(t[3]),i=oe(` 1078 `),w(e,"class","responseField svelte-qbbycp")},m(s,o){O(s,e,o),v(e,n),v(e,r),v(e,i)},p(s,o){o&8&&Wt(r,s[3])},d(s){s&&I(e)}}}function Ffe(t){let e;return{c(){e=oe(t[4])},m(n,r){O(n,e,r)},p(n,r){r&16&&Wt(e,n[4])},d(n){n&&I(e)}}}function Lfe(t){let e,n,r,i;const s=[Rfe,Nfe],o=[];function a(u,l){return u[0].loading?0:1}return n=a(t),r=o[n]=s[n](t),{c(){e=C("div"),r.c(),w(e,"class","wrapper svelte-qbbyc
1078p")},m(u,l){O(u,e,l),o[n].m(e,null),i=!0},p(u,[l]){let c=n;n=a(u),n===c?o[n].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),r=o[n],r?r.p(u,l):(r=o[n]=s[n](u),r.c()),E(r,1),r.m(e,null))},i(u){i||(E(r),i=!0)},o(u){T(r),i=!1},d(u){u&&I(e),o[n].d()}}}let Mfe="Write here...";function Bfe(t,e,n){let r,i=Ee,s=()=>(i(),i=hd(y,q=>n(0,r=q)),y);t.$$.on_destroy.push(()=>i());var o,a,u,l;let{conversationId:c}=e,d="",h="",m="",g="",k=.85,y,b=!1;const S=async()=>{n(7,b=!0);try{const q=await oG({variables:{agentConversationId:c,content:h,recallScoreThreshold:k}});n(1,d=q.data.llmPromptGenerate.prompt)}finally{n(7,b=!1)}};let $=!1;const D=async()=>{n(8,$=!0);try{const q=await aG({variables:{prompt:d}});n(3,m=q.data.llmPromptSend.response),n(4,g=q.errors.map(F=>F.message).join(` 1079`).trim())}finally{n(8,$=!1)}};function P(){h=this.value,n(2,h)}function x(){k=Au(this.value),n(5,k),n(0,r),n(12,o),n(13,a),n(14,u),n(15,l)}function R(){d=this.value,n(1,d)}return t.$$set=q=>{"conversationId"in q&&n(11,c=q.conversationId)},t.$$.update=()=>{t.$$.dirty&2048&&s(n(6,y=_G({variables:{id:c}}))),t.$$.dirty&61441&&!(n(13,a=n(12,o=r.data)===null||o===void 0?void 0:o.agentConversation)===null||a===void 0)&&a.baseScoreThreshold&&n(5,k=n(15,l=n(14,u=r.data)===null||u===void 0?void 0:u.agentConversation)===null||l===void 0?void 0:l.baseScoreThreshold)},[r,d,h,m,g,k,y,b,$,S,D,c,o,a,u,l,P,x,R]}class zfe extends pt{constructor(e){super(),ht(this,e,Bfe,Lfe,dt,{conversationId:11},Ofe)}}function jfe(t){Et(t,"svelte-1l5ksq6",'div.main.svelte-1l5ksq6.svelte-1l5ksq6{margin:20vh 4rem 20vh;font-size:1.8rem;line-height:1.4em}p.svelte-1l5ksq6.svelte-1l5ksq6{margin-bottom:2rem}.header.svelte-1l5ksq6.svelte-1l5ksq6{margin-top:6rem}.header.svelte-1l5ksq6 h2.svelte-1l5ksq6,.header.svelte-1l5ksq6 h3.svelte-1l5ksq6{font-family:"Athelas", "Times New Roman", Times, serif;font-size:6.4rem;font-weight:500;line-height:1.125em;margin-left:-0.05em;letter-spacing:-0.02em;text-align:center}.header.svelte-1l5ksq6 h3.svelte-1l5ksq6{font-size:4.7rem;text-align:left}.centered.svelte-1l5ksq6.svelte-1l5ksq6{display:flex;flex-direction:column;justify-content:center;align-items:center}.creditInfo.svelte-1l5ksq6.svelte-1l5ksq6{max-width:60rem;margin-top:1rem}.plans.svelte-1l5ksq6.svelte-1l5ksq6{display:flex;flex-direction:row;gap:4rem;justify-content:center;margin:6rem 0 3rem}.plan.svelte-1l5ksq6.svelte-1l5ksq6{flex:1 1 0;padding:3rem 4rem;border-radius:2rem;background-color:var(--c-card);box-shadow:0 0 2rem 0.1rem var(--c-border)}.plan.svelte-1l5ksq6.svelte-1l5ksq6:first-of-type{background-color:transparent;border:2px solid var(--c-border-dark);box-shadow:none}.plan.svelte-1l5ksq6 h3.svelte-1l5ksq6{font-size:2rem;color:var(--underlineColor);font-weight:bold}.plan.svelte-1l5ksq6 .price.svelte-1l5ksq6{border:2px solid var(--bgColor);border-right-width:0;border-left-width:0;margin:0 -4rem 2rem;padding:3rem 4rem}.plan.svelte-1l5ksq6:first-of-type .price.svelte-1l5ksq6{border-color:var(--c-border)}.plan.svelte-1l5ksq6 .price span.svelte-1l5ksq6{font-family:"Athelas", "Times New Roman", Times, serif;font-size:5.2rem;font-weight:500;line-height:3rem;letter-spacing:-0.05em}.plan.svelte-1l5ksq6 ul.svelte-1l5ksq6{list-style:none;padding:0;margin:0}.plan.svelte-1l5ksq6 ul li.svelte-1l5ksq6{margin-bottom:1.5rem}.plan.svelte-1l5ksq6 ul li.svelte-1l5ksq6 svg{margin-left:-2.5rem;margin-right:0.5rem;color:var(--underlineColor)}.accent.svelte-1l5ksq6.svelte-1l5ksq6{color:var(--c-accent)}@media(max-width: 768px){div.main.svelte-1l5ksq6.svelte-1l5ksq6{overflow-y:scroll;padding:0 2rem;margin:20vh 0 20vh}.plans.svelte-1l5ksq6.svelte-1l5ksq6{flex-direction:column;gap:4rem}p.svelte-1l5ksq6.svelte-1l5ksq6{font-size:1.8rem}}')}function Ufe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe,Be,it,mt,Ct,ft,It,Tt,_t,gt,ce,pe,st,vn,Tn,bn,kn,$n,qt,Rn,Hn,Sn,Zt,be,tt,St,an,rn,Mt,Gt,ze,Vt,pn,Vn;return e=new Di({props:{fixed:!0,opaque:t[1]}}),y=new et({props:{icon:ci.faCheck}}),D=new et({props:{icon:ci.faCheck}}),q=new et({props:{icon:ci.faCheck}}),Ae=new et({props:{icon:ci.faCheck}}),de=new et({props:{icon:ci.faCheck}}),we=new et({props:{icon:ci.faCheck}}),ye=new et({props:{icon:ci.faCheck}}),mt=new et({props:{icon:ci.faCheck}}),Tt=new et({props:{icon:ci.faCheck}}),ze=new bc({}),pn=new Ii({}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("div"),i.innerHTML='<h2 class="svelte-1l5ksq6">Our Subscription Plans</h2>',s=N(),o=C("div"),a=C("div"),u=C("h3"),u.textContent="Free",l=N(),c=C("p"),c.innerHTML="<small>Perfect for getting started</small>",d=N(),h=C("p"),h.innerHTML='<span class="svelte-1l5ksq6">Free</span>',m=N(),g=C("ul"),k=C("li"),j(y.$$.fragment),b=oe(" 1 place"),S=N(),$=C("li"),j(D.$$.fragment),P=oe(" 1GB storage"),x=N(),R=C("li"),j(q.$$.fragment),F=oe(" AI Assistant"),L=C("br"),M=C("small"),M.innerHTML="GPT-4o Mini<br/>with limited credits",V=N(),H=C("div"),J=C("h3"),J.textContent="Personal",Z=N(),Q=C("p"),Q.innerHTML="<small>Great for everyday creativity</small>",K=N(),G=C("p"),G.innerHTML='<span class="svelte-1l5ksq6">$10</span> per month',se=N(),fe=C("ul"),me=C("li"),j(Ae.$$.fragment),ee=oe(" 5 places"),ue=N(),ie=C("li"),j(de.$$.fragment),Fe=oe(" 10GB storage"),Ve=N(),Te=C("li"),j(we.$$.fragment),je=oe(" AI Assistant"),Je=C("br"),Ne=C("small"),Ne.innerHTML="GPT-4o Mini and GPT-4o *<br/>with limited credits",Ge=N(),nt=C("small"),nt.textContent="*GPT-4o coming soon",rt=N(),Ze
1079=C("div"),at=C("h3"),at.textContent="Pro",bt=N(),he=C("p"),he.innerHTML="<small>Fit for professional needs</small>",Pe=N(),Se=C("p"),Se.innerHTML='<span class="svelte-1l5ksq6">$50</span> per month',Le=N(),te=C("ul"),X=C("li"),j(ye.$$.fragment),Xe=oe(" Unlimited places"),Be=N(),it=C("li"),j(mt.$$.fragment),Ct=oe(" 100GB storage"),ft=N(),It=C("li"),j(Tt.$$.fragment),_t=oe(" AI Assistant"),gt=C("br"),ce=C("small"),ce.innerHTML="GPT-4o Mini and GPT-4o *<br/>with limited credits",pe=N(),st=C("small"),st.textContent="*GPT-4o coming soon",vn=N(),Tn=C("div"),Tn.innerHTML="<small>*All prices are in USD, excl. VAT</small>",bn=N(),kn=C("div"),kn.innerHTML='<h3 class="svelte-1l5ksq6">Credits for AI Assistants</h3>',$n=N(),qt=C("div"),Rn=C("p"),Rn.textContent=`Our plans include limited free credits for using OpenAI's GPT-4o Mini and GPT-4o language 1080 models. The aim of the free credits is to allow you to try the AI assistant feature.`,Hn=N(),Sn=C("p"),Sn.textContent=`You can purchase additional $10 credits when you run out of your free credits (Only available 1081 with the Personal or Pro plan).`,Zt=N(),be=C("p"),be.textContent="Your credits are directly linked to your OpenAI usage without additional markup.",tt=N(),St=C("p"),St.textContent=`We strive to make our credit system straightforward and accessible, enabling you to focus on 1082 exploring ideas and making meaningful connections with Hyperplace. If you have any questions 1083 or concerns about the credits or usage, please don't hesitate to reach out to us.`,an=N(),rn=C("p"),Mt=C("span"),Gt=N(),j(ze.$$.fragment),Vt=N(),j(pn.$$.fragment),w(i,"class","header svelte-1l5ksq6"),w(u,"class","svelte-1l5ksq6"),w(c,"class","svelte-1l5ksq6"),w(h,"class","price svelte-1l5ksq6"),w(k,"class","svelte-1l5ksq6"),w($,"class","svelte-1l5ksq6"),w(R,"class","svelte-1l5ksq6"),w(g,"class","svelte-1l5ksq6"),w(a,"class","plan svelte-1l5ksq6"),w(J,"class","svelte-1l5ksq6"),w(Q,"class","svelte-1l5ksq6"),w(G,"class","price svelte-1l5ksq6"),w(me,"class","svelte-1l5ksq6"),w(ie,"class","svelte-1l5ksq6"),w(Te,"class","svelte-1l5ksq6"),w(nt,"class","accent svelte-1l5ksq6"),w(fe,"class","svelte-1l5ksq6"),w(H,"class","plan svelte-1l5ksq6"),w(at,"class","svelte-1l5ksq6"),w(he,"class","svelte-1l5ksq6"),w(Se,"class","price svelte-1l5ksq6"),w(X,"class","svelte-1l5ksq6"),w(it,"class","svelte-1l5ksq6"),w(It,"class","svelte-1l5ksq6"),w(st,"class","accent svelte-1l5ksq6"),w(te,"class","svelte-1l5ksq6"),w(Ze,"class","plan svelte-1l5ksq6"),w(o,"class","plans svelte-1l5ksq6"),w(Tn,"class","centered svelte-1l5ksq6"),w(kn,"class","header svelte-1l5ksq6"),w(Rn,"class","svelte-1l5ksq6"),w(Sn,"class","svelte-1l5ksq6"),w(be,"class","svelte-1l5ksq6"),w(St,"class","svelte-1l5ksq6"),w(rn,"class","svelte-1l5ksq6"),w(qt,"class","creditInfo svelte-1l5ksq6"),w(r,"class","main svelte-1l5ksq6")},m(vt,mn){B(e,vt,mn),O(vt,n,mn),O(vt,r,mn),v(r,i),v(r,s),v(r,o),v(o,a),v(a,u),v(a,l),v(a,c),v(a,d),v(a,h),v(a,m),v(a,g),v(g,k),B(y,k,null),v(k,b),v(g,S),v(g,$),B(D,$,null),v($,P),v(g,x),v(g,R),B(q,R,null),v(R,F),v(R,L),v(R,M),v(o,V),v(o,H),v(H,J),v(H,Z),v(H,Q),v(H,K),v(H,G),v(H,se),v(H,fe),v(fe,me),B(Ae,me,null),v(me,ee),v(fe,ue),v(fe,ie),B(de,ie,null),v(ie,Fe),v(fe,Ve),v(fe,Te),B(we,Te,null),v(Te,je),v(Te,Je),v(Te,Ne),v(fe,Ge),v(fe,nt),v(o,rt),v(o,Ze),v(Ze,at),v(Ze,bt),v(Ze,he),v(Ze,Pe),v(Ze,Se),v(Ze,Le),v(Ze,te),v(te,X),B(ye,X,null),v(X,Xe),v(te,Be),v(te,it),B(mt,it,null),v(it,Ct),v(te,ft),v(te,It),B(Tt,It,null),v(It,_t),v(It,gt),v(It,ce),v(te,pe),v(te,st),v(r,vn),v(r,Tn),v(r,bn),v(r,kn),v(r,$n),v(r,qt),v(qt,Rn),v(qt,Hn),v(qt,Sn),v(qt,Zt),v(qt,be),v(qt,tt),v(qt,St),v(qt,an),v(qt,rn),v(rn,Mt),t[2](Mt),O(vt,Gt,mn),B(ze,vt,mn),O(vt,Vt,mn),B(pn,vt,mn),Vn=!0},p:Ee,i(vt){Vn||(E(e.$$.fragment,vt),E(y.$$.fragment,vt),E(D.$$.fragment,vt),E(q.$$.fragment,vt),E(Ae.$$.fragment,vt),E(de.$$.fragment,vt),E(we.$$.fragment,vt),E(ye.$$.fragment,vt),E(mt.$$.fragment,vt),E(Tt.$$.fragment,vt),E(ze.$$.fragment,vt),E(pn.$$.fragment,vt),Vn=!0)},o(vt){T(e.$$.fragment,vt),T(y.$$.fragment,vt),T(D.$$.fragment,vt),T(q.$$.fragment,vt),T(Ae.$$.fragment,vt),T(de.$$.fragment,vt),T(we.$$.fragment,vt),T(ye.$$.fragment,vt),T(mt.$$.fragment,vt),T(Tt.$$.fragment,vt),T(ze.$$.fragment,vt),T(pn.$$.fragment,vt),Vn=!1},d(vt){vt&&(I(n),I(r),I(Gt),I(Vt)),z(e,vt),z(y),z(D),z(q),z(Ae),z(de),z(we),z(ye),z(mt),z(Tt),t[2](null),z(ze,vt),z(pn,vt)}}}let Hfe="contact",Vfe="hyper.place";function Wfe(t,e,n){let r=window.innerWidth<768,i;$r(()=>{n(0,i.innerHTML=Hfe+"@"+Vfe,i)});function s(o){Qe[o?"unshift":"push"](()=>{i=o,n(0,i)})}return[i,r,s]}class Gfe extends pt{constructor(e){super(),ht(this,e,Wfe,Ufe,dt,{},jfe)}}function Yfe(t){Et(t,"svelte-kc25vg",'div.main.svelte-kc25vg{margin:22vh 4rem;max-width:74rem;font-size:2rem;line-height:1.4em}a.svelte-kc25vg{color:var(--c-text);text-decoration:underline;
1083text-decoration-color:var(--underlineColor);text-underline-offset:0.15em}a.svelte-kc25vg:hover{color:var(--underlineColor)}p.svelte-kc25vg,li.svelte-kc25vg{margin-bottom:2rem}h1.svelte-kc25vg{font-family:"Athelas", "Times New Roman", Times, serif;font-size:6.4rem;font-weight:500;line-height:1.25em;margin-bottom:6rem;margin-left:-0.05em;letter-spacing:-0.025em}h2.svelte-kc25vg{font-family:"Athelas", "Times New Roman", Times, serif;font-size:3.8rem;font-weight:500;line-height:1.125em;margin-top:8rem;margin-bottom:2rem;margin-left:-0.05em;letter-spacing:-0.0125em}ol.svelte-kc25vg{list-style-type:lower-alpha}ul.svelte-kc25vg,ol.svelte-kc25vg{padding-left:2.4rem}@media(max-width: 768px){div.main.svelte-kc25vg{overflow-y:scroll;margin:22vh 2rem;font-size:1.8rem}ul.svelte-kc25vg,ol.svelte-kc25vg{padding-left:2rem}}@media(min-width: 1280px){div.main.svelte-kc25vg{margin:22vh auto}}')}function Qfe(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe,Be,it,mt,Ct,ft,It,Tt,_t,gt,ce,pe,st,vn,Tn,bn,kn,$n,qt,Rn,Hn,Sn,Zt,be,tt,St,an,rn;return e=new Di({props:{fixed:!0,opaque:!0}}),tt=new bc({}),an=new Ii({}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("h1"),i.textContent="Privacy Policy",s=N(),o=C("p"),o.textContent=`This Privacy Policy (âPrivacy Policyâ) sets out how we, Hyperplace and its affiliates 1084 (âHyperplaceâ, âweâ, âourâ or âusâ) will treat the personal information which you (âUserâ, 1085 âyouâ) provide to us while using our website, www.hyper.place (âWebsiteâ), and/or our 1086 application(s), browser extension(s) (âExtensionâ) and services (âServicesâ). You are deemed to 1087 accept the terms of this Privacy Policy on your first use of the Website or Services. If you 1088 object to these terms, please do not use the services in any manner.`,a=N(),u=C("p"),u.textContent=`To provide our Services, it is necessary for us to hold and process certain personal 1089 information. We take reasonable care in keeping this information secure and preventing any 1090 unauthorized access or unlawful use of it. All personal information is processed by us in 1091 accordance with data protection legislation.`,l=N(),c=C("p"),c.textContent=`Please read this Privacy Policy carefully, so you can fully understand our practices in relation 1092 to Personal Data. âPersonal Dataâ means any information that can be used, alone or together with 1093 other data, to uniquely identify any living human being.`,d=N(),h=C("p"),h.textContent=`This Privacy Policy may be updated from time to time and such changes shall be effective from 1094 the date and time the revised Privacy Policy is posted on the Website. Therefore, we ask you to 1095 check back periodically for the latest version of the Privacy Policy, as indicated below. If 1096 there will be any significant changes made to the Privacy Policy, we will use our best efforts 1097 to notify you by posting a notice on our Website or by other means.`,m=N(),g=C("h2"),g.textContent="What personal information do we collect, and how it is used",k=N(),y=C("p"),y.textContent="When you create an account and make use of our services as a registered user",b=N(),S=C("p"),S.textContent=`When you create an account and login or when you make use of our services as a registered user, 1098 as appropriate, you may be asked to enter your email address or other details to help you with 1099 your experience. In addition to your email address, we may store your hashed password, location 1100 and your IP Address.`,$=N(),D=C("p"),D.textContent="When you contact us (e.g. customer support, help, submit a request, blog)",P=N(),x=C("p"),x.textContent=`When you contact us with your customer support request or post a question in our discussion 1101 forum, we may collect the information that you have voluntarily provided including your full 1102 name, email address, location, device type, type of your operating system and/or any other 1103 information that you decide to provide/supply us.`,R=N(),q=C("h2"),q.textContent="How do we use your information",F=N(),L=C("p"),L.textContent="We use this information to perform and execute the service and personalize your experience.",M=N(),V=C("h2"),V.textContent="How we protect and store your Personal Data",H=N(),J=C("p"),J.textContent=`Our website is scanned on a regular basis for security holes and known vulnerabilities in order 1104 to make our services as safe as possible. Your personal information is contained behind secured 1105 networks and is only accessible by a limited number of persons who have special access rights to 1106 such systems, and are required to keep the information confidential. In addition, all sensitive 1107 information you supply is encrypted and transferred via Secure Socket Layer (SSL) technology. 1108 However, please note that we cannot guarantee that the information will not be exposed as a 1109 result of unauthorized penetration to our servers. As the security of information depends in 1110 part on the security of the computer, device or network you use to communicate with us and the 1111 security you use to protect your user IDs and passwords, please make sure to take appropriate 1112 measures to protect this information.`,Z=N(),Q=C("p"),Q.textContent=`To maintain the safety of your personal information, we implement a variety of security measures 1113 when a user enters, submits, or accesses their information, or places an order. When you place 1114 an order for our services or make a payment, all transactions are processed through a secure 1115 gateway provider and are not stored or processed on our servers.`,K=N(),G=C("h2"),G.textContent="How we share your Personal Information",se=N(),fe=C("p"),fe.textContent="We may need to share your Personal Information in the ways described below:",me=N(),Ae=C("ol"),Ae.innerHTML=`<li class="svelte-kc25vg">to the extent necessary, with regulators, to comply with all applicable laws, regulations and 1116 rules, and requests of law enforcement, regulatory and other governmental agencies or if 1117 required to do so by court order;</li> <li class="svelte-kc25vg">if, in the future, we sell or transfer some or all of our business or assets to a third party, 1118 we will (to the minimum extent required) disclose information to a potential or actual third 1119 party purchaser of our business or assets. In the event that we are acquired by or merged with 1120 a third party entity, or in the event of bankruptcy or a comparable event, we reserve the 1121 right to transfer or assign Personal Data in connection with the foregoing events;</li> <li class="svelte-kc25vg">where you have provided your consent to us sharing the Personal Data (e.g., where you provide 1122 us with marketing consents);</li> <li class="svelte-kc25vg">where we receive requests for information from law enforcement or regulators, we carefully 1123 validate these requests before any Personal Data is disclosed.</li>`,ee=N(),ue=C("h2"),ue.textContent="What is our legal basis for processing data?",ie=N(),de=C("p"),de.textContent="We collect, use and share the data that we have in the ways described below:",Fe=N(),Ve=C("ol"),Ve.innerHTML='<li class="svelte-kc25vg">as necessary to fulfill our Terms of Service;</li> <li class="svelte-kc25vg">as necessary to comply with our legal obligations;</li> <li class="svelte-kc25vg">consistent with your consent, which you may revoke at any time.</li>',Te=N(),we=C("h2"),we.textContent="Use of Cookies",je=N(),Je=C("p"),Je.textContent=`Our Website and Services may utilize âcookiesâ, anonymous identifiers and other tracking 1124 technologies in order for us to provide our Service and present you with information that is 1125 customized for you. A âcookieâ is a small text file that may be used, for example, to collect 1126 information about activity on the Site. Most browsers allow you to control cookies, including 1127 whether or not to accept them and how to remove them. You may set most browsers to notify you if 1128 you receive a cookie, or you may choose to block cookies with your browser.`,Ne=N(),Ge=C("h2"),Ge.textContent="Processing user requests with OpenAI's API",nt=N(),rt=C("p"),rt.innerHTML=`When you use our Services, we may process your requests, messages, or other content by utilizing 1129 the OpenAI API. By using our Services and submitting requests, you agree to have your 1130 information processed by OpenAI's API. OpenAI's API is developed and maintained by OpenAI Inc., 1131 and any information you provide when using our Services may be transferred and processed by 1132 OpenAI for the purpose of providing their services to us. To learn more about OpenAI's privacy 1133 practices, please visit their Privacy Policy at: 1134 <a target="_blank" href="https://openai.com/policies/privacy-policy" class="svelte-kc25vg">
1134https://openai.com/policies/privacy-policy</a>`,Ze=N(),at=C("h2"),at.textContent="Subprocessors",bt=N(),he=C("p"),he.textContent=`In this section, we provide information about our subprocessors, which are third-party service 1135 providers that we engage to process personal information on our behalf in connection with the 1136 provision of our Services.`,Pe=N(),Se=C("p"),Se.textContent="The following is a list of our subprocessors:",Le=N(),te=C("ul"),te.innerHTML=`<li class="svelte-kc25vg"><b>OpenAI</b> - We use OpenAI to process your requests. OpenAI provides us with artificial intelligence 1137 services, including natural language processing and generation. To provide these services, OpenAI 1138 processes and stores the content you create and any data necessary for the functioning of the AI 1139 models.</li> <li class="svelte-kc25vg"><b>Stripe</b> - We use Stripe to process payments for our Services. Stripe is a third-party payment 1140 processor that handles all aspects of the payment process, including the collection and storage 1141 of your payment information. When you make a payment on our platform, your payment information 1142 is processed and stored by Stripe.</li> <li class="svelte-kc25vg"><b>Google Analytics</b> - We use Google Analytics to collect and analyze data related to the use 1143 of our Website and Services. This includes information about how users interact with our Website, 1144 what pages they visit, and how they found our Website. Google Analytics processes this data to 1145 help us understand user behavior and improve our Services.</li> <li class="svelte-kc25vg"><b>Preset</b> - We use Preset as an additional analytics tool to help us understand how users interact 1146 with our Services. Preset collects and processes data about user behavior, including the pages 1147 visited, time spent on the Website, and other user interactions. This information helps us to improve 1148 the user experience and optimize our Services.</li>`,X=N(),ye=C("h2"),ye.textContent="Use of External Analytics Tools",Xe=N(),Be=C("p"),Be.textContent=`We use analytics tools (e.g. Google Analytics, Preset) to collect data about the use of the 1149 Website and Service. Analytics tools collect data such as on how often users visit the Website 1150 or Services, what pages they visit when they do so and what website they directly came from to 1151 the Website or Service. We use the data we get from these tools to maintain and improve the 1152 Website and Service and our other products.`,it=N(),mt=C("h2"),mt.textContent="Use by children",Ct=N(),ft=C("p"),ft.textContent=`We do not offer our products or services for use by children. If you are under 13, you may not 1153 use the product, or provide any information to the product without involvement of a parent or a 1154 guardian. We do not knowingly collect information from, and/or about children.`,It=N(),Tt=C("h2"),Tt.textContent="How can you exercise your rights provided under the GDPR?",_t=N(),gt=C("p"),gt.textContent=`Under the General Data Protection Regulation, you have the right to access, rectify, port and 1155 erase your data. You also have the right to object to and restrict certain processing of your 1156 data. This includes the right to object to our processing of your data for direct marketing, 1157 which you can exercise by using the "unsubscribe" link in such marketing communications.`,ce=N(),pe=C("p"),pe.textContent=`If youâd like to exercise your rights or ask any questions about privacy, please use the contact 1158 details below.`,st=N(),vn=C("h2"),vn.textContent="Data retention, account deactivation and deletion",Tn=N(),bn=C("p"),bn.textContent=`We store data until it is no longer necessary to provide our Services or until your account is 1159 deleted - whichever comes first. Should you ever decide to delete your Account, you may do so by 1160 contacting us by the means listed below.`,kn=N(),$n=C("h2"),$n.textContent="How to contact us",qt=N(),Rn=C("p"),Hn=oe(`If you have any questions, concerns or complaints regarding our compliance with this notice and 1161 the data protection laws, or if you wish to exercise your rights, or if you do not want us to 1162 retain or use your personal information in any way, we encourage you to contact us at 1163 `),Sn=C("span"),Zt=oe("."),be=N(),j(tt.$$.fragment),St=N(),j(an.$$.fragment),w(i,"class","svelte-kc25vg"),w(o,"class","svelte-kc25vg"),w(u,"class","svelte-kc25vg"),w(c,"class","svelte-kc25vg"),w(h,"class","svelte-kc25vg"),w(g,"class","svelte-kc25vg"),w(y,"class","svelte-kc25vg"),w(S,"class","svelte-kc25vg"),w(D,"class","svelte-kc25vg"),w(x,"class","svelte-kc25vg"),w(q,"class","svelte-kc25vg"),w(L,"class","svelte-kc25vg"),w(V,"class","svelte-kc25vg"),w(J,"class","svelte-kc25vg"),w(Q,"class","svelte-kc25vg"),w(G,"class","svelte-kc25vg"),w(fe,"class","svelte-kc25vg"),w(Ae,"class","svelte-kc25vg"),w(ue,"class","svelte-kc25vg"),w(de,"class","svelte-kc25vg"),w(Ve,"class","svelte-kc25vg"),w(we,"class","svelte-kc25vg"),w(Je,"class","svelte-kc25vg"),w(Ge,"class","svelte-kc25vg"),w(rt,"class","svelte-kc25vg"),w(at,"class","svelte-kc25vg"),w(he,"class","svelte-kc25vg"),w(Se,"class","svelte-kc25vg"),w(te,"class","svelte-kc25vg"),w(ye,"class","svelte-kc25vg"),w(Be,"class","svelte-kc25vg"),w(mt,"class","svelte-kc25vg"),w(ft,"class","svelte-kc25vg"),w(Tt,"class","svelte-kc25vg"),w(gt,"class","svelte-kc25vg"),w(pe,"class","svelte-kc25vg"),w(vn,"class","svelte-kc25vg"),w(bn,"class","svelte-kc25vg"),w($n,"class","svelte-kc25vg"),w(Rn,"class","svelte-kc25vg"),w(r,"class","main svelte-kc25vg")}
1163,m(Mt,Gt){B(e,Mt,Gt),O(Mt,n,Gt),O(Mt,r,Gt),v(r,i),v(r,s),v(r,o),v(r,a),v(r,u),v(r,l),v(r,c),v(r,d),v(r,h),v(r,m),v(r,g),v(r,k),v(r,y),v(r,b),v(r,S),v(r,$),v(r,D),v(r,P),v(r,x),v(r,R),v(r,q),v(r,F),v(r,L),v(r,M),v(r,V),v(r,H),v(r,J),v(r,Z),v(r,Q),v(r,K),v(r,G),v(r,se),v(r,fe),v(r,me),v(r,Ae),v(r,ee),v(r,ue),v(r,ie),v(r,de),v(r,Fe),v(r,Ve),v(r,Te),v(r,we),v(r,je),v(r,Je),v(r,Ne),v(r,Ge),v(r,nt),v(r,rt),v(r,Ze),v(r,at),v(r,bt),v(r,he),v(r,Pe),v(r,Se),v(r,Le),v(r,te),v(r,X),v(r,ye),v(r,Xe),v(r,Be),v(r,it),v(r,mt),v(r,Ct),v(r,ft),v(r,It),v(r,Tt),v(r,_t),v(r,gt),v(r,ce),v(r,pe),v(r,st),v(r,vn),v(r,Tn),v(r,bn),v(r,kn),v(r,$n),v(r,qt),v(r,Rn),v(Rn,Hn),v(Rn,Sn),t[1](Sn),v(Rn,Zt),O(Mt,be,Gt),B(tt,Mt,Gt),O(Mt,St,Gt),B(an,Mt,Gt),rn=!0},p:Ee,i(Mt){rn||(E(e.$$.fragment,Mt),E(tt.$$.fragment,Mt),E(an.$$.fragment,Mt),rn=!0)},o(Mt){T(e.$$.fragment,Mt),T(tt.$$.fragment,Mt),T(an.$$.fragment,Mt),rn=!1},d(Mt){Mt&&(I(n),I(r),I(be),I(St)),z(e,Mt),t[1](null),z(tt,Mt),z(an,Mt)}}}let Zfe="contact",Xfe="hyper.place";function Kfe(t,e,n){let r;$r(()=>{n(0,r.innerHTML=Zfe+"@"+Xfe,r)});function i(s){Qe[s?"unshift":"push"](()=>{r=s,n(0,r)})}return[r,i]}class Jfe extends pt{constructor(e){super(),ht(this,e,Kfe,Qfe,dt,{},Yfe)}}function ede(t){Et(t,"svelte-1look7m",'div.main.svelte-1look7m{margin:22vh 4rem;max-width:74rem;font-size:2rem;line-height:1.4em;counter-reset:section}p.svelte-1look7m{margin-bottom:2rem}h1.svelte-1look7m{font-family:"Athelas", "Times New Roman", Times, serif;font-size:6.4rem;font-weight:500;line-height:1.25em;margin-bottom:6rem;margin-left:-0.05em;letter-spacing:-0.025em}h2.svelte-1look7m{font-family:"Athelas", "Times New Roman", Times, serif;font-size:2.8rem;font-weight:500;line-height:1.125em;margin-top:4rem;margin-bottom:1rem;margin-left:-0.05em}h2.svelte-1look7m::before{counter-increment:section;content:counter(section) ". "}@media(max-width: 768px){div.main.svelte-1look7m{overflow-y:scroll;margin:22vh 2rem;font-size:1.8rem}}@media(min-width: 1280px){div.main.svelte-1look7m{margin:22vh auto}}')}function tde(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae,ee,ue,ie,de,Fe,Ve,Te,we,je,Je,Ne,Ge,nt,rt,Ze,at,bt,he,Pe,Se,Le,te,X,ye,Xe,Be,it,mt,Ct,ft,It,Tt,_t,gt,ce,pe,st,vn,Tn,bn,kn,$n,qt,Rn,Hn,Sn,Zt,be,tt,St,an,rn,Mt,Gt,ze,Vt,pn,Vn;return e=new Di({props:{fixed:!0,opaque:!0}}),ze=new bc({}),pn=new Ii({}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("h1"),i.textContent="Terms of Use",s=N(),o=C("p"),o.textContent="Last Updated: 25 January, 2024",a=N(),u=C("p"),u.textContent=`Welcome to Hyperplace. These Terms of Use ("Terms") govern your access to and use of the 1164 Hyperplace website, https://www.hyper.palce ("Website"), our browser extensions, and any other 1165 related services (collectively, the "Services"). By accessing or using the Services, you agree 1166 to be bound by these Terms. If you do not agree to these Terms, you may not access or use the 1167 Services.`,l=N(),c=C("p"),c.textContent=`These Terms constitute an agreement between you and Wordmark OÃ, a company registered in Estonia 1168 with its registered office at Harju maakond, Tallinn, Kesklinna linnaosa, Viru väljak 2, 10111 1169 ("Wordmark", "we", "us", or "our").`,d=N(),h=C("h2"),h.textContent="Acceptance of Terms",m=N(),g=C("p"),g.textContent=`By accessing or using the Services, you acknowledge that you have read, understood, and agree to 1170 be bound by these Terms and our Privacy Policy, which is incorporated herein by reference. If 1171 you do not agree to these Terms or our Privacy Policy, please do not access or use the Services.`,k=N(),y=C("h2"),y.textContent="Changes to the Terms",b=N(),S=C("p"),S.textContent=`We may revise and update these Terms from time to time in our sole discretion. We will notify 1172 you of any changes by posting the revised Terms on our Website or through other appropriate 1173 means. By continuing to access or use the Services after any revisions become effective, you 1174 agree to be bound by the revised Terms. If you do not agree to the new Terms, you must stop 1175 using the Services.`,$=N(),D=C("h2"),D.textContent="Eligibility",P=N(),x=C("p"),x.textContent=`By accessing or using the Services, you represent and warrant that you are at least 18 years of 1176 age, or if you are under 18 years of age, you have the permission and supervision of a parent or 1177 legal guardian who agrees to be bound by these Terms. You also represent and warrant that you 1178 have the legal capacity to enter into a binding contract and that you are not a person barred 1179 from receiving the Services under the laws of any applicable jurisdiction.`,R=N(),q=C("h2"),q.textContent="Acce
1179ss to Services",F=N(),L=C("p"),L.textContent=`We offer limited, free access to the Services, as well as a paid subscription-based premium 1180 access to the Services. By signing up for a paid subscription, you agree to be bound by the 1181 specific terms and conditions applicable to the subscription plan you choose.`,M=N(),V=C("h2"),V.textContent="Payment Processing",H=N(),J=C("p"),J.textContent=`Our payments are processed by our subprocessor, Stripe. By making a payment through Stripe, you 1182 agree to be bound by Stripe's terms and conditions and privacy policy.`,Z=N(),Q=C("h2"),Q.textContent="Refund Policy",K=N(),G=C("p"),se=oe(`All purchases of Services are final, and no refunds will be granted, except in exceptional 1183 circumstances. If a user has mistakenly upgraded to a premium access subscription plan and has 1184 not utilized any features, they may be eligible for a refund. Additionally, in the unlikely 1185 event that the Services are non-functional or inaccessible due to reasons within our control, a 1186 refund may be issued upon request. To request a refund, users must submit a written refund 1187 request via email to `),fe=C("span"),me=oe(` within 24 hours of the purchase or outage 1188 incident, providing the necessary details and evidence for review. Hyperplace reserves the right 1189 to exercise discretion in granting or denying refund requests.`),Ae=N(),ee=C("h2"),ee.textContent="User Requests Processing",ue=N(),ie=C("p"),ie.textContent=`User requests are processed by our subprocessor, OpenAI. By using the Services, you agree to be 1190 bound by OpenAI's terms and conditions and privacy policy.`,de=N(),Fe=C("h2"),Fe.textContent="Intellectual Property Rights",Ve=N(),Te=C("p"),Te.textContent=`All intellectual property rights in and to the Services, including but not limited to any text, 1191 graphics, logos, trademarks, or other content, are owned by us or our licensors. You may not 1192 copy, reproduce, modify, distribute, transmit, or create derivative works from any part of the 1193 Services without our express written permission.`,we=N(),je=C("h2"),je.textContent="User Conduct",Je=N(),Ne=C("p"),Ne.textContent=`You agree to use the Services only for lawful purposes and in accordance with these Terms. You 1194 agree not to engage in any conduct that could interfere with, disrupt, or negatively affect the 1195 Services or the servers or networks connected to the Services. If your usage significantly 1196 impacts our ability to allocate resources equitably, maintain balanced service, or compromises 1197 service quality for other customers, we reserve the right to suspend, terminate, or restrict 1198 your session. This may include switching you to a more suitable plan or terminating your 1199 service.`,Ge=N(),nt=C("h2"),nt.textContent="Hacking",rt=N(),Ze
1199=C("p"),Ze.textContent=`You agree not to attempt to damage, deny service to, hack, crack, reverse-engineer, or otherwise 1200 interfere (collectively, "Interfere") with the Services in any manner. If you in any way 1201 Interfere with the Services, you agree to pay or refund all damages incurred by Hyperplace. 1202 Hyperplace will cooperate with the authorities in prosecuting any User who Interferes with the 1203 Site or Services or otherwise attempts to defraud Hyperplace or any other parties through User's 1204 use of the Site or services provided via the Site. Hyperplace reserves the right to deny any or 1205 all access or service to any User for any reason, at any time, at our sole discretion. User 1206 agrees that we may block User's IP address or addresses at any time, and at our sole discretion 1207 to disallow User's continued use of the Services without giving you any advance notice. We 1208 reserve the right to take any action we may deem appropriate in our sole discretion with respect 1209 to violations or enforcement of the terms of this Agreement, and we expressly reserve all rights 1210 and remedies available to us at law or in equity.`,at=N(),bt=C("h2"),bt.textContent="Disclaimer of Warranties",he=N(),Pe=C("p"),Pe.textContent=`The Services are provided "as is" and "as available" without any warranties of any kind, express 1211 or implied. We disclaim all warranties, including, but not limited to, warranties of 1212 merchantability, fitness for a particular purpose, and non-infringement.`,Se=N(),Le=C("p"),Le.textContent=`THE SERVICES ARE PROVIDED âAS IS.â EXCEPT TO THE EXTENT PROHIBITED BY LAW, WE AND OUR AFFILIATES 1213 AND LICENSORS MAKE NO WARRANTIES (EXPRESS, IMPLIED, STATUTORY OR OTHERWISE) WITH RESPECT TO THE 1214 SERVICES, AND DISCLAIM ALL WARRANTIES INCLUDING BUT NOT LIMITED TO WARRANTIES OF 1215 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, SATISFACTORY QUALITY, NON-INFRINGEMENT, AN
1215D 1216 QUIET ENJOYMENT, AND ANY WARRANTIES ARISING OUT OF ANY COURSE OF DEALING OR TRADE USAGE. WE DO 1217 NOT WARRANT THAT THE SERVICES WILL BE UNINTERRUPTED, ACCURATE OR ERROR FREE, OR THAT ANY CONTENT 1218 WILL BE SECURE OR NOT LOST OR ALTERED.`,te=N(),X=C("h2"),X.textContent="Limitation of Liability",ye=N(),Xe=C("p"),Xe.textContent=`In no event shall we, our licensors, or any of our respective officers, directors, employees, or 1219 agents be liable for any indirect, incidental, special, consequential, or punitive damages, or 1220 any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, 1221 use, goodwill, or other intangible losses, resulting from (a) your access to or use of, or 1222 inability to access or use, the Services; (b) any conduct or content of any third party on or 1223 through the Services; or (c) any unauthorized access, use, or alteration of your transmissions 1224 or content, even if we have been advised of the possibility of such damages.`,Be=N(),it=C("p"),it.textContent=`NEITHER WE NOR ANY OF OUR AFFILIATES OR LICENSORS WILL BE LIABLE FOR ANY INDIRECT, INCIDENTAL, 1225 SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING DAMAGES FOR LOSS OF PROFITS, GOODWILL, 1226 USE, OR DATA OR OTHER LOSSES, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 1227 OUR AGGREGATE LIABILITY UNDER THESE TERMS SHALL NOT EXCEED ââTHE GREATER OF THE AMOUNT YOU PAID 1228 FOR THE SERVICE THAT GAVE RISE TO THE CLAIM DURING THE 12 MONTHS BEFORE THE LIABILITY AROSE OR 1229 ONE HUNDRED DOLLARS ($100). THE LIMITATIONS IN THIS SECTION APPLY ONLY TO THE MAXIMUM EXTENT 1230 PERMITTED BY APPLICABLE LAW.`,mt=N(),Ct=C("h2"),Ct.textContent="Indemnification",ft=N(),It=C("p"),It.textContent=`You agree to indemnify, defend, and hold harmless us, our licensors, and our respective 1231 officers, directors, employees, and agents from and against any and all claims, liabilities, 1232 damages, losses, costs, expenses, or fees (including reasonable attorneys' fees) that arise from 1233 or relate to your violation of these Terms or your use of the Services, including, but not 1234 limited to, any content you submit, post, or transmit through the Services.`,Tt=N(),_t=C("h2"),_t.textContent="Termination",gt=N(),ce=C("p"),ce.textContent=`We reserve the right, in our sole discretion, to terminate your access to the Services or any 1235 portion thereof at any time, without notice, for any reason, including, but not limited to, 1236 violation of these Terms. In the event of termination, you will no longer be authorized to 1237 access the Services, and we may delete any content or information that you have submitted or 1238 posted through the Services.`,pe=N(),st=C("h2"),st.textContent="Severability",vn=N(),Tn=C("p"),Tn.textContent=`If any provision of these Terms is found to be invalid, illegal, or unenforceable by a court of 1239 competent jurisdiction, such invalidity, illegality, or unenforceability shall not affect any 1240 other provision of these Terms or render the entire Terms invalid, illegal, or unenforceable.`,bn=N(),kn=C("h2"),kn.textContent="Waiver",$n=N(),qt=C("p"),qt.textContent=`No waiver of any provision of these Terms shall be deemed a further or continuing waiver of such 1241 provision or any other provision, and our failure to assert any right or provision under these 1242 Terms shall not constitute a waiver of such right or provision.`,Rn=N(),Hn=C("h2"),Hn.textContent="Entire Agreement",Sn=N(),Zt=C("p"),Zt.textContent=`These Terms, together with our Privacy Policy and any other applicable policies, constitute the 1243 entire agreement between you and us concerning your access to and use of the Services, and 1244 supersede all prior or contemporaneous understandings or agreements, whether written or oral, 1245 regarding such subject matter.`,be=N(),tt=C("h2"),tt.textContent="Contact Information",St=N(),an=C("p"),rn=oe(`If you have any questions, concerns, or comments about these Terms or the Services, please 1246 contact us at `),Mt=C("span"),Gt=N(),j(ze.$$.fragment),Vt=N(),j(pn.$$.fragment),w(i,"class","svelte-1look7m"),w(o,"class","svelte-1look7m"),w(u,"class","svelte-1look7m"),w(c,"class","svelte-1look7m"),w(h,"class","svelte-1look7m"),w(g,"class","svelte-1look7m"),w(y,"class","svelte-1look7m"),w(S,"class","svelte-1look7m"),w(D,"class","svelte-1look7m"),w(x,"class","svelte-1look7m"),w(q,"class","svelte-1look7m"),w(L,"class","svelte-1look7m"),w(V,"class","svelte-1look7m"),w(J,"class","svelte-1look7m"),w(Q,"class","svelte-1look7m"),w(G,"class","svelte-1look7m"),w(ee,"class","svelte-1look7m"),w(ie,"class","svelte-1look7m"),w(Fe,"class","svelte-1look7m"),w(Te,"class","svelte-1look7m"),w(je,"class","svelte-1look7m"),w(Ne,"class","svelte-1look7m"),w(nt,"class","svelte-1look7m"),w(Ze,"class","svelte-1look7m"),w(bt,"class","svelte-1look7m"),w(Pe,"class","svelte-1look7m"),w(Le,"class","svelte-1look7m"),w(X,"class","svelte-1look7m"),w(Xe,"class","svelte-1look7m"),w(it,"class","svelte-1look7m"),w(Ct,"class","svelte-1look7m"),w(It,"class","svelte-1look7m"),w(_t,"class","svelte-1look7m"),w(ce,"class","svelte-1look7m"),w(st,"class","svelte-1look7m"),w(Tn,"class","svelte-1look7m"),w(kn,"class","svelte-1look7m"),w(qt,"class","svelte-1look7m"),w(Hn,"class","svelte-1look7m"),w(Zt,"class","svelte-1look7m"),w(tt,"class","svelte-1look7m"),w(an,"class","svelte-1look7m"),w(r,"class","main svelte-1look7m")},m(vt,mn){B(e,vt,mn),O(vt,n,mn),O(vt,r,mn),v(r,i),v(r,s),v(r,o),v(r,a),v(r,u),v(r,l),v(r,c),v(r,d),v(r,h),v(r,m),v(r,g),v(r,k),v(r,y),v(r,b),v(r,S),v(r,$),v(r,D),v(r,P),v(r,x),v(r,R),v(r,q),v(r,F),v(r,L),v(r,M),v(r,V),v(r,H),v(r,J),v(r,Z),v(r,Q),v(r,K),v(r,G),v(G,se),v(G,fe),t[2](fe),v(G,me),v(r,Ae),v(r,ee),v(r,ue),v(r,ie),v(r,de),v(r,Fe),v(r,Ve),v(r,Te),v(r,we),v(r,je),v(r,Je),v(r,Ne),v(r,Ge),v(r,nt),v(r,rt),v(r,Ze),v(r,at),v(r,bt),v(r,he),v(r,Pe),v(r,Se),v(r,Le),v(r,te),v(r,X),v(r,ye),v(r,Xe),v(r,Be),v(r,it),v(r,mt),v(r,Ct),v(r,ft),v(r,It),v(r,Tt),v(r,_t),v(r,gt),v(r,ce),v(r,pe),v(r,st),v(r,vn),v(r,Tn),v(r,bn),v(r,kn),v(r,$n),v(r,qt),v(r,Rn),v(r,Hn),v(r,Sn),v(r,Zt),v(r,be),v(r,tt),v(r,St),v(r,an),v(an,rn),v(an,Mt),t[3](Mt),O(vt,Gt,mn),B(ze,vt,mn),O(vt,Vt,mn),B(pn,vt,mn),Vn=!0},p:Ee,i(vt){Vn||(E(e.$$.fragment,vt),E(ze.$$.fragment,vt),E(pn.$$.fragment,vt),Vn=!0)},o(vt){T(e.$$.fragment,vt),T(ze.$$.fragment,vt),T(pn.$$.fragment,vt),Vn=!1},d(vt){vt&&(I(n),I(r),I(Gt),I(Vt)),z(e,vt),t[2](null),t[3](null),z(ze,vt),z(pn,vt)}}}let k8="contact",S8="hyper.place";
1246function nde(t,e,n){let r,i;$r(()=>{n(0,r.innerHTML=k8+"@"+S8,r),n(1,i.innerHTML=k8+"@"+S8,i)});function s(a){Qe[a?"unshift":"push"](()=>{r=a,n(0,r)})}function o(a){Qe[a?"unshift":"push"](()=>{i=a,n(1,i)})}return[r,i,s,o]}class rde extends pt{constructor(e){super(),ht(this,e,nde,tde,dt,{},ede)}}function ide(t){Et(t,"svelte-1ilho8",'div.main.svelte-1ilho8{margin:22vh 4rem;max-width:74rem;font-size:2rem;line-height:1.4em}p.svelte-1ilho8,li.svelte-1ilho8{margin-bottom:2rem}ul.svelte-1ilho8{margin-left:2rem}h1.svelte-1ilho8{font-family:"Athelas", "Times New Roman", Times, serif;font-size:6.4rem;font-weight:500;line-height:1.25em;margin-bottom:6rem;margin-left:-0.05em;letter-spacing:-0.025em}h2.svelte-1ilho8{font-family:"Athelas", "Times New Roman", Times, serif;font-size:3.8rem;font-weight:500;line-height:1.125em;margin-top:8rem;margin-bottom:2rem;margin-left:-0.05em;letter-spacing:-0.0125em}@media(max-width: 768px){div.main.svelte-1ilho8{overflow-y:scroll;margin:22vh 2rem;font-size:1.8rem}h1.svelte-1ilho8{font-size:4.6rem}h2.svelte-1ilho8{font-size:2.8rem;margin-top:6rem}ul.svelte-1ilho8{padding-left:2rem}}@media(min-width: 1280px){div.main.svelte-1ilho8{margin:22vh auto}}')}function sde(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H;return e=new Di({props:{fixed:!0,opaque:!0}}),L=new bc({}),V=new Ii({}),{c(){j(e.$$.fragment),n=N(),r=C("div"),i=C("h1"),i.textContent="Notice of Copyright or other Intellectual Property Infringement",s=N(),o=C("h2"),o.textContent="Copyright",a=N(),u=C("p"),l=oe(`If you believe that any content on our website violates copyright law, please provide the 1247 following information to: `),c=C("span"),d=oe("."),h=N(),m=C("ul"),m.innerHTML=`<li class="svelte-1ilho8">Your address, telephone number, and email address;</li> <li class="svelte-1ilho8">A clear description of the work that you believe is being infringed, for easy identification;</li> <li class="svelte-1ilho8">The date and time of the alleged infringement;</li> <li class="svelte-1ilho8">An explanation of your interest or rights in the work that is being infringedâ;</li> <li class="svelte-1ilho8">A description of the material that you believe is infringing and a request for its removal, 1248 along with its location on our website;</li> <li class="svelte-1ilho8">A statement expressing your good faith belief that the use of the material in question is not 1249 authorized by the copyright owner, its agent, or the law;</li> <li class="svelte-1ilho8">An electronic or physical signature of the copyright owner (or an authorized representative);</li> <li class="svelte-1ilho8">A statement from you, under penalty of perjury, that the information you are providing is 1250 accurate and that you are the copyright owner or authorized to act on behalf of the copyright 1251 owner.</li> <li class="svelte-1ilho8">Failure to comply with these requirements may invalidate your notice. Please note that only 1252 notices regarding alleged copyright infringement should be sent to our Copyright Agent.</li>`,g=N(),k=C("h2"),k.textContent="Other Infringement",y=N(),b=C("p"),S=oe(`If you believe that any materials on our website violate other intellectual property rights, 1253 please send the information listed in Section 1(A)(1) through 1(A)(5) to: `),$=C("span"),D=oe("."),P=N(),x=C("h2"),x.textContent="Termination Policy",R=N(),q=C("p"),q.textContent=`If we determine that you are a repeat infringer, we may suspend or terminate your access to our 1254 website, remove or ban you (and any associated accounts), and take any other appropriate action 1255 at our sole discretion.`,F=N(),j(L.$$.fragment),M=N(),j(V.$$.fragment),w(i,"class","svelte-1ilho8"),w(o,"class","svelte-1ilho8"),w(u,"class","svelte-1ilho8"),w(m,"class","svelte-1ilho8"),w(k,"class","svelte-1ilho8"),w(b,"class","svelte-1ilho8"),w(x,"class","svelte-1ilho8"),w(q,"class","svelte-1ilho8"),w(r,"class","main svelte-1ilho8")},m(J,Z){B(e,J,Z),O(J,n,Z),O(J,r,Z),v(r,i),v(r,s),v(r,o),v(r,a),v(r,u),v(u,l),v(u,c),t[2](c),v(u,d),v(r,h),v(r,m),v(r,g),v(r,k),v(r,y),v(r,b),v(b,S),v(b,$),t[3]($),v(b,D),v(r,P),v(r,x),v(r,R),v(r,q),O(J,F,Z),B(L,J,Z),O(J,M,Z),B(V,J,Z),H=!0},p:Ee,i(J){H||(E(e.$$.fragment,J),E(L.$$.fragment,J),E(V.$$.fragment,J),H=!0)},o(J){T(e.$$.fragment,J),T(L.$$.fragment,J),T(V.$$.fragment,J),H=!1},d(J){J&&(I(n),I(r),I(F),I(M)),z(e,J),t[2](null),t[3](null),z(L,J),z(V,J)}}}let T8="contact",$8="hyper.place";function ode(t,e,n){let r,i;$r(()=>{n(0,r.innerHTML=T8+"@"+$8,r),n(1,i.innerHTML=T8+"@"+$8,i)});function s(a){Qe[a?"unshift":"push"](()=>{r=a,n(0,r)})}function o(a){Qe[a?"unshift":"push"](()=>{i=a,n(1,i)})}return[r,i,s,o]}class ade extends pt{constructor(e){super(),ht(this,e,ode,sde,dt,{},ide)}}function ude(t){let e,n;return e=new pm({}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function lde(t){let e,n,r,i;const s=[fde,cde],o=[];function a(u,l){return u[1]?0:1}return e=a(t),n=o[e]=s[e](t),{c(){n.c(),r=Pt()},m(u,l){o[e].m(u,l),O(u,r,l),i=!0},p(u,l){let c=e;e=a(u),e===c?o[e].p(u,l):($e(),T(o[c],1,1,()=>{o[c]=null}),Ce(),n=o[e],n?n.p(u,l):(n=o[e]=s[e](u),n.c()),E(n,1),n.m(r.parentNode,r))},i(u){i||(E(n),i=!0)},o(u){T(n),i=!1},d(u){u&&I(r),o[e].d(u)}}}function cde(t){let e,n;return e=new k5({props:{$$slots:{default:[pde]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&32&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function fde(t){let e,n;return e=new k5({props:{$$slots:{default:[vde]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&34&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function dde(t){let e,n;return e=new Ld({props:{replace:!0,to:"/places/"+t[4].publicId}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&16&&(s.to="/places/"+r[4].publicId),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function hde(t){let e,n;return e=new Ld({props:{replace:!0,to:"/"}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function pde(t){let e,n,r,i,s,o,a,u,l,c,d,h,m,g,k,y,b,S,$,D,P,x,R,q,F,L,M,V,H,J,Z,Q,K,G,se,fe,me,Ae;return e=new ar({props:{path:"/spaces/:publicId/*",component:yb,$$slots:{default:[dde,({params:ee})=>({4:ee}),({params:ee})=>ee?16:0]},$$scope:{ctx:t}}}),r=new ar({props:{path:"/places/:publicId/*",component:yb}}),s=new ar({props:{path:"/",component:vQ}}),a=new ar({props:{path:"/login",component:xY}}),l=new ar({props:{path:"/sign-up",component:GY}}),d=new ar({props:{path:"/join-waiting-list",component:vfe}}),m=new ar({props:{path:"/resend-confirmation-email",component:ufe}}),k=new ar({props:{path:"/confirm-email/:token",component:Jce}}),b=new ar({props:{path:"/activation-instructions",component:JY}}),$=new ar({props:{path:"/forgot-password",component:vce}}),P=new ar({props:{path:"/accept-invitation/:token",component:Mce}}),R=new ar({props:{path:"/reset-password/:token",component:$ce}}),F=new ar({props:{path:"/philosophy",component:Ife}}),M=new ar({props:{path:"/pricing",component:Gfe}}),H=new ar({props:{path:"/privacy",component:Jfe}}),Z=new ar({props:{path:"/terms",component:rde}}),K=new ar({props:{path:"/dmca",component:ade}}),se=new ar({props:{path:"*",$$slots:{default:[hde]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment),u=N(),j(l.$$.fragment),c=N(),j(d.$$.fragment),h=N(),j(m.$$.fragment),g=N(),j(k.$$.fragment),y=N(),j(b.$$.fragment),S=N(),j($.$$.fragment),D=N(),j(P.$$.fragment),x=N(),j(R.$$.fragment),q=N(),j(F.$$.fragment),L=N(),j(M.$$.fragment),V=N(),j(H.$$.fragment),J=N(),j(Z.$$.fragment),Q=N(),j(K.$$.fragment),G=N(),j(se.$$.fragment),fe=N(),me=C("div"),w(me,"class","placeBackgroun
1255d")},m(ee,ue){B(e,ee,ue),O(ee,n,ue),B(r,ee,ue),O(ee,i,ue),B(s,ee,ue),O(ee,o,ue),B(a,ee,ue),O(ee,u,ue),B(l,ee,ue),O(ee,c,ue),B(d,ee,ue),O(ee,h,ue),B(m,ee,ue),O(ee,g,ue),B(k,ee,ue),O(ee,y,ue),B(b,ee,ue),O(ee,S,ue),B($,ee,ue),O(ee,D,ue),B(P,ee,ue),O(ee,x,ue),B(R,ee,ue),O(ee,q,ue),B(F,ee,ue),O(ee,L,ue),B(M,ee,ue),O(ee,V,ue),B(H,ee,ue),O(ee,J,ue),B(Z,ee,ue),O(ee,Q,ue),B(K,ee,ue),O(ee,G,ue),B(se,ee,ue),O(ee,fe,ue),O(ee,me,ue),Ae=!0},p(ee,ue){const ie={};ue&48&&(ie.$$scope={dirty:ue,ctx:ee}),e.$set(ie);const de={};ue&32&&(de.$$scope={dirty:ue,ctx:ee}),se.$set(de)},i(ee){Ae||(E(e.$$.fragment,ee),E(r.$$.fragment,ee),E(s.$$.fragment,ee),E(a.$$.fragment,ee),E(l.$$.fragment,ee),E(d.$$.fragment,ee),E(m.$$.fragment,ee),E(k.$$.fragment,ee),E(b.$$.fragment,ee),E($.$$.fragment,ee),E(P.$$.fragment,ee),E(R.$$.fragment,ee),E(F.$$.fragment,ee),E(M.$$.fragment,ee),E(H.$$.fragment,ee),E(Z.$$.fragment,ee),E(K.$$.fragment,ee),E(se.$$.fragment,ee),Ae=!0)},o(ee){T(e.$$.fragment,ee),T(r.$$.fragment,ee),T(s.$$.fragment,ee),T(a.$$.fragment,ee),T(l.$$.fragment,ee),T(d.$$.fragment,ee),T(m.$$.fragment,ee),T(k.$$.fragment,ee),T(b.$$.fragment,ee),T($.$$.fragment,ee),T(P.$$.fragment,ee),T(R.$$.fragment,ee),T(F.$$.fragment,ee),T(M.$$.fragment,ee),T(H.$$.fragment,ee),T(Z.$$.fragment,ee),T(K.$$.fragment,ee),T(se.$$.fragment,ee),Ae=!1},d(ee){ee&&(I(n),I(i),I(o),I(u),I(c),I(h),I(g),I(y),I(S),I(D),I(x),I(q),I(L),I(V),I(J),I(Q),I(G),I(fe),I(me)),z(e,ee),z(r,ee),z(s,ee),z(a,ee),z(l,ee),z(d,ee),z(m,ee),z(k,ee),z(b,ee),z($,ee),z(P,ee),z(R,ee),z(F,ee),z(M,ee),z(H,ee),z(Z,ee),z(K,ee),z(se,ee)}}}function mde(t){let e,n;return e=new Ld({props:{replace:!0,to:"/places/"+t[4].publicId}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p(r,i){const s={};i&16&&(s.to="/places/"+r[4].publicId),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function C8(t){let e,n;return e=new ar({props:{path:"/debug-conversation/:conversationId",component:zfe}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function gde(t){let e,n;return e=new Ld({props:{replace:!0,to:"/"}}),{c(){j(e.$$.fragment)},m(r,i){B(e,r,i),n=!0},p:Ee,i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){z(e,r)}}}function vde(t){let e,n,r,i,s,o,a,u,l,c,d;e=new ar({props:{path:"/",component:qle}}),r=new ar({props:{path:"/account",component:ace}}),s=new ar({props:{path:"/spaces/:publicId/*",$$slots:{default:[mde,({params:m})=>({4:m}),({params:m})=>m?16:0]},$$scope:{ctx:t}}}),a=new ar({props:{path:"/places/:publicId/*",component:yb}});let h=t[1].canDebugConversations&&C8();return c=new ar({props:{path:"*",$$slots:{default:[gde]},$$scope:{ctx:t}}}),{c(){j(e.$$.fragment),n=N(),j(r.$$.fragment),i=N(),j(s.$$.fragment),o=N(),j(a.$$.fragment),u=N(),h&&h.c(),l=N(),j(c.$$.fragment)},m(m,g){B(e,m,g),O(m,n,g),B(r,m,g),O(m,i,g),B(s,m,g),O(m,o,g),B(a,m,g),O(m,u,g),h&&h.m(m,g),O(m,l,g),B(c,m,g),d=!0},p(m,g){const k={};g&48&&(k.$$scope={dirty:g,ctx:m}),s.$set(k),m[1].canDebugConversations?h?g&2&&E(h,1):(h=C8(),h.c(),E(h,1),h.m(l.parentNode,l)):h&&($e(),T(h,1,1,()=>{h=null}),Ce());const y={};g&32&&(y.$$scope={dirty:g,ctx:m}),c.$set(y)},i(m){d||(E(e.$$.fragment,m),E(r.$$.fragment,m),E(s.$$.fragment,m),E(a.$$.fragment,m),E(h),E(c.$$.fragment,m),d=!0)},o(m){T(e.$$.fragment,m),T(r.$$.fragment,m),T(s.$$.fragment,m),T(a.$$.fragment,m),T(h),T(c.$$.fragment,m),d=!1},d(m){m&&(I(n),I(i),I(o),I(u),I(l)),z(e,m),z(r,m),z(s,m),z(a,m),h&&h.d(m),z(c,m)}}}function bde(t){let e,n,r,i,s;const o=[lde,ude],a=[];function u(l,c){return l[0]?0:1}return e=u(t),n=a[e]=o[e](t),i=new Sfe({}),{c(){n.c(),r=N(),j(i.$$.fragment)},m(l,c){a[e].m(l,c),O(l,r,c),B(i,l,c),s=!0},p(l,[c]){let d=e;e=u(l),e===d?a[e].p(l,c):($e(),T(a[d],1,1,()=>{a[d]=null}),Ce(),n=a[e],n?n.p(l,c):(n=a[e]=o[e](l),n.c()),E(n,1),n.m(r.parentNode,r))},i(l){s||(E(n),E(i.$$.fragment,l),s=!0)},o(l){T(n),T(i.$$.fragment,l),s=!1},d(l){l&&I(r),a[e].d(l),z(i,l)}}}function _de(t,e,n){let r,i,s;Ke(t,ji,a=>
1255n(2,r=a)),Ke(t,v0,a=>n(0,i=a)),Ke(t,vi,a=>n(1,s=a));const o=()=>{const a=document.querySelector("link[rel*='icon']");r.darkMode?(document.body.classList.add("night"),a&&(a.href="/meta/favicon-night.png")):(document.body.classList.remove("night"),a&&(a.href="/meta/favicon-day.png"))};if(o(),ji.subscribe(o),NG(),window.visualViewport){const a=()=>{const u=window.visualViewport.height;document.body.style.height=`${u}px`};a(),window.visualViewport.addEventListener("resize",a),lo(()=>window.visualViewport.removeEventListener("resize",a))}return[i,s]}class yde extends pt{constructor(e){super(),ht(this,e,_de,bde,dt,{})}}const Z7=Object.prototype.toString;function X7(t){switch(Z7.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Yo(t,Error)}}function Tc(t,e){return Z7.call(t)===`[object ${e}]`}function Ny(t){return Tc(t,"ErrorEvent")}function A8(t){return Tc(t,"DOMError")}function wde(t){return Tc(t,"DOMException")}function ja(t){return Tc(t,"String")}function K7(t){return t===null||typeof t!="object"&&typeof t!="function"}function oc(t){return Tc(t,"Object")}function Rm(t){return typeof Event<"u"&&Yo(t,Event)}function Ede(t){return typeof Element<"u"&&Yo(t,Element)}function kde(t){return Tc(t,"RegExp")}function Ry(t){return!!(t&&t.then&&typeof t.then=="function")}function Sde(t){return oc(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function J7(t){return typeof t=="number"&&t!==t}function Yo(t,e){try{return t instanceof e}catch{return!1}}function Rl(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function D8(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Tde(t,e,n=!1){return ja(t)?kde(e)?e.test(t):ja(e)?n?t===e:t.includes(e):!1:!1}function Md(t,e=[],n=!1){return e.some(r=>Tde(t,r,n))}function $de(t,e,n=250,r,i,s,o){if(!s.exception||!s.exception.values||!o||!Yo(o.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=Cde(wb(t,e,i,o.originalException,r,s.exception.values,a,0),n))}function wb(t,e,n,r,i,s,o,a){if(s.length>=n+1)return s;let u=[...s];if(Yo(r[i],Error)){I8(o,a);const l=t(e,r[i]),c=u.length;O8(l,i,c,a),u=wb(t,e,n,r[i],i,[l,...u],l,c)}return Array.isArray(r.errors)&&r.errors.forEach((l,c)=>{if(Yo(l,Error)){I8(o,a);const d=t(e,l),h=u.length;O8(d,`errors[${c}]`,h,a),u=wb(t,e,n,l,i,[d,...u],d,h)}}),u}function I8(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function O8(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Cde(t,e){return t.map(n=>(n.value&&(n.value=Rl(n.value,e)),n))}function gp(t){return t&&t.Math==Math?t:void 0}const as=typeof globalThis=="object"&&gp(globalThis)||typeof window=="object"&&gp(window)||typeof self=="object"&&gp(self)||typeof global=="object"&&gp(global)||function(){return this}()||{};function Bd(){return as}function Py(t,e,n){const r=n||as,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const Wp=Bd(),Ade=80;function ac(t,e={}){try{let n=t;const r=5,i=[];let s=0,o=0;const a=" > ",u=a.length;let l;const c=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||Ade;for(;n&&s++<r&&(l=Dde(n,c),!(l==="html"||s>1&&o+i.length*u+l.length>=d));)i.push(l),o+=l.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Dde(t,e){const n=t,r=[];let i,s,o,a,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(l&&l.length)l.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&ja(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const c=["aria-label","type","name","title","alt"];for(u=0;u<c.length;u++)o=c[u],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function Ide(){try{return Wp.document.location.href}catch{return""}}function eD(t){return Wp.document&&Wp.document.querySelector?Wp.document.querySelector(t):null}const Ode="Sentry Logger ",F0=["debug","info","warn","error","log","assert","trace"];function tD(t){if(!("console"in as))return t();const e=as.console,n={};F0.forEach(r=>{const i=e[r]&&e[r].__sentry_original__;r in e&&i&&(n[r]=e[r],e[r]=i)});try{return t()}
1255finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function N8(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?F0.forEach(n=>{e[n]=(...r)=>{t&&tD(()=>{as.console[n](`${Ode}[${n}]:`,...r)})}}):F0.forEach(n=>{e[n]=()=>{}}),e}let Ye;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Ye=Py("logger",N8):Ye=N8();const Nde=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Rde(t){return t==="http"||t==="https"}function Pm(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function Pde(t){const e=Nde.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}const[n,r,i="",s,o="",a]=e.slice(1);let u="",l=a;const c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return nD({host:s,pass:i,path:u,projectId:l,port:o,protocol:n,publicKey:r})}function nD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function xde(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(Ye.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?Rde(r)?e&&isNaN(parseInt(e,10))?(Ye.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Ye.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ye.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function qde(t){const e=typeof t=="string"?Pde(t):nD(t);if(!(!e||!xde(e)))return e}class Ms extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function ri(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if(typeof i=="function")try{rD(i,r)}catch{}t[e]=i}function xy(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function rD(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,xy(t,"__sentry_original__",e)}function qy(t){return t.__sentry_original__}function Fde(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function iD(t){if(X7(t))return{message:t.message,name:t.name,stack:t.stack,...P8(t)};if(Rm(t)){const e={type:t.type,target:R8(t.target),currentTarget:R8(t.currentTarget),...P8(t)};return typeof CustomEvent<"u"&&Yo(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function R8(t){try{return Ede(t)?ac(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function P8(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function Lde(t,e=40){const n=Object.keys(iD(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Rl(n[0],e);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:Rl(i,e)}return""}function Na(t){return Eb(t,new Map)}function Eb(t,e){if(oc(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.keys(t))typeof t[i]<"u"&&(r[i]=Eb(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(i=>{r.push(Eb(i,e))}),r}return t}const sD=50,x8=/\(error: (.*)\)/;function oD(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],s=n.split(` 1256`);for(let o=r;o<s.length;o++){const a=s[o];if(a.length>1024)continue;const u=x8.test(a)?a.replace(x8,"$1"):a;if(!u.match(/\S*Error: /)){for(const l of e){const c=l(u);
1256if(c){i.push(c);break}}if(i.length>=sD)break}}return Bde(i)}}function Mde(t){return Array.isArray(t)?oD(...t):t}function Bde(t){if(!t.length)return[];const e=t.slice(0,sD),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse();const r=e[e.length-1].function;return r&&/captureMessage|captureException/.test(r)&&e.pop(),e.map(i=>({...i,filename:i.filename||e[e.length-1].filename,function:i.function||"?"}))}const Y1="<anonymous>";function Ua(t){try{return!t||typeof t!="function"?Y1:t.name||Y1}catch{return Y1}}const kb=Bd();function aD(){if(!("fetch"in kb))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Sb(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function zde(){if(!aD())return!1;if(Sb(kb.fetch))return!0;let t=!1;const e=kb.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Sb(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}const vp=Bd();
1256function jde(){const t=vp.chrome,e=t&&t.app&&t.app.runtime,n="history"in vp&&!!vp.history.pushState&&!!vp.history.replaceState;return!e&&n}const ur=Bd(),Sl="__sentry_xhr_v2__",Pf={},q8={};function Ude(t){if(!q8[t])switch(q8[t]=!0,t){case"console":Hde();break;case"dom":Kde();break;case"xhr":Gde();break;case"fetch":Vde();break;case"history":Yde();break;case"error":Jde();break;case"unhandledrejection":ehe();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("unknown instrumentation type:",t);return}}function is(t,e){Pf[t]=Pf[t]||[],Pf[t].push(e),Ude(t)}function js(t,e){if(!(!t||!Pf[t]))for(const n of Pf[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error(`Error while triggering instrumentation handler. 1257Type: ${t} 1258Name: ${Ua(n)} 1259Error:`,r)}}function Hde(){"console"in ur&&F0.forEach(function(t){t in ur.console&&ri(ur.console,t,function(e){return function(...n){js("console",{args:n,level:t}),e&&e.apply(ur.console,n)}})})}function Vde(){zde()&&ri(ur,"fetch",function(t){return function(...e){const{method:n,url:r}=Wde(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return js("fetch",{...i}),t.apply(ur,e).then(s=>(js("fetch",{...i,endTimestamp:Date.now(),response:s}),s),s=>{throw js("fetch",{...i,endTimestamp:Date.now(),error:s}),s})}})}function Tb(t,e){return!!t&&typeof t=="object"&&!!t[e]}function F8(t){return typeof t=="string"?t:t?Tb(t,"url")?t.url:t.toString?t.toString():"":""}function Wde(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:F8(n),method:Tb(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:F8(e),method:Tb(e,"method")?String(e.method).toUpperCase():"GET"}}function Gde(){if(!("XMLHttpRequest"in ur))return;const t=XMLHttpRequest.prototype;ri(t,"open",function(e){return function(...n){const r=n[1],i=this[Sl]={method:ja(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};ja(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Sl];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}js("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ri(this,"onreadystatechange",function(o){return function(...a){return s(),o.apply(this,a)}}):this.addEventListener("readystatechange",s),ri(this,"setRequestHeader",function(o){return function(...a){const[u,l]=a,c=this[Sl];return c&&(c.request_headers[u.toLowerCase()]=l),o.apply(this,a)}}),e.apply(this,n)}}),ri(t,"send",function(e){return function(...n){const r=this[Sl];return r&&n[0]!==void 0&&(r.body=n[0]),js("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}let bp;function Yde(){if(!jde())return;const t=ur.onpopstate;ur.onpopstate=function(...n){const r=ur.location.href,i=bp;if(bp=r,js("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const s=bp,o=String(i);bp=o,js("history",{from:s,to:o})}return n.apply(this,r)}}ri(ur.history,"pushState",e),ri(ur.history,"replaceState",e)}const Qde=1e3;let _p,yp;function Zde(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Xde(t){if(t.type!=="keypress")return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function L8(t,e=!1){return n=>{if(!n||yp===n||Xde(n))return;const r=n.type==="keypress"?"input":n.type;_p===void 0?(t({event:n,name:r,global:e}),yp=n):Zde(yp,n)&&(t({event:n,name:r,global:e}),yp=n),clearTimeout(_p),_p=ur.setTimeout(()=>{_p=void 0},Qde)}}function Kde(){if(!("document"in ur))return;const t=js.bind(null,"dom"),e=L8(t,!0);ur.document.addEventListener("click",e,!1),ur.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=ur[n]&&ur[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ri(r,"addEventListener",function(i){return function(s,o,a){if(s==="click"||s=="keypress")try{const u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=l[s]=l[s]||{refCount:0};if(!c.handler){const d=L8(t);c.handler=d,i.call(this,s,d,a)}c.refCount++}catch{}return i.call(this,s,o,a)}}),ri(r,"removeEventListener",function(i){return function(s,o,a){if(s==="click"||s=="keypress")try{const u=this,l=u.__sentry_instrumentation_handlers__||{},c=l[s];c&&(c.refCount--,c.refCount<=0&&(i.call(this,s,c.handler,a),c.handler=void 0,delete l[s]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,o,a)}}))})}let wp=null;function Jde(){wp=ur.onerror,ur.onerror=function(t,e,n,r,i){return js("error",{column:r,error:i,line:n,msg:t,url:e}),wp&&!wp.__SENTRY_LOADER__?wp.apply(this,arguments):!1},ur.onerror.__SENTRY_INSTRUMENTED__=!0}let Ep=null;function ehe(){Ep=ur.onunhandledrejection,ur.onunhandledrejection=function(t){return js("unhandledrejection",t),Ep&&!Ep.__SENTRY_LOADER__?Ep.apply(this,arguments):!0},ur.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function the(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let s=0;s<e.length;s++)if(e[s]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let s=0;s<e.length;s++)if(e[s]===i){e.splice(s,1);break}}return[n,r]}function zi(){const t=as,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function uD(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function $a(t){const{message:e,event_id:n}=t;if(e)return e;const r=uD(t);return r?r.type&&r.value?`${r.type}: ${r.value}
1259`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function $b(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function id(t,e){const n=uD(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i&&i.data,...e.data};n.mechanism.data=s}}function M8(t){if(t&&t.__sentry_captured__)return!0;try{xy(t,"__sentry_captured__",!0)}catch{}return!1}function lD(t){return Array.isArray(t)?t:[t]}function nhe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function rhe(){return"npm"}function cD(){return!nhe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ia(t,e){return t.require(e)}function ihe(t){let e;try{e=Ia(pr,t)}catch{}try{const{cwd:n}=Ia(pr,"process");e=Ia(pr,`${n()}/node_modules/${t}`)}catch{}return e}function ka(t,e=100,n=1/0){try{return Cb("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function fD(t,e=3,n=100*1024){const r=ka(t,e);return uhe(r)>n?fD(t,e-1,n):r}function Cb(t,e,n=1/0,r=1/0,i=the()){const[s,o]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!J7(e))return e;const a=she(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return a.replace("object ","");if(s(e))return"[Circular ~]";const l=e;if(l&&typeof l.toJSON=="function")try{const m=l.toJSON();return Cb("",m,u-1,r,i)}catch{}const c=Array.isArray(e)?[]:{};let d=0;const h=iD(e);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(d>=r){c[m]="[MaxProperties ~]";break}const g=h[m];c[m]=Cb(m,g,u-1,r,i),d++}return o(e),c}function she(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Sde(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Ua(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=ohe(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ohe(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function ahe(t){return~-encodeURI(t).split(/%..|./).length}function uhe(t){return ahe(JSON.stringify(t))}var Ro;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(Ro||(Ro={}));function Lu(t){return new ki(e=>{e(t)})}function L0(t){return new ki((e,n)=>{n(t)})}class ki{__init(){this._state=Ro.PENDING}__init2(){this._handlers=[]}constructor(e){ki.prototype.__init.call(this),ki.prototype.__init2.call(this),ki.prototype.__init3.call(this),ki.prototype.__init4.call(this),ki.prototype.__init5.call(this),ki.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new ki((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new ki((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,e&&e()},o=>{s=!0,i=o,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}__init3(){this._resolve=e=>{this._setResult(Ro.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(Ro.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===Ro.PENDING){if(Ry(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===Ro.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Ro.RESOLVED&&n[1](this._value),this._state===Ro.REJECTED&&n[2](this._value),n[0]=!0)})}}}function lhe(t){const e=[];function n(){return t===void 0||e.length<t}function r(o){return e.splice(e.indexOf(o),1)[0]}function i(o){if(!n())return L0(new Ms("Not adding Promise because buffer limit was reached."));const a=o();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function s(o){return new ki((a,u)=>{let l=e.length;if(!l)return a(!0);const c=setTimeout(()=>{o&&o>0&&a(!1)},o);e.forEach(d=>{Lu(d).then(()=>{--l||(clearTimeout(c),a(!0))},u)})})}return{$:e,add:i,drain:s}}function Q1(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const che=["fatal","error","warning","log","info","debug"];function fhe(t){return t==="warn"?"warning":che.includes(t)?t:"log"}const dD=Bd(),Ab={nowSeconds:()=>Date.now()/1e3};function dhe(){const{performance:t}=dD;if(!t||!t.now)return;const e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function hhe(){try{return Ia(pr,"perf_hooks").performance}catch{return}}const Z1=cD()?hhe():dhe(),B8=Z1===void 0?Ab:{nowSeconds:()=>(Z1.timeOrigin+Z1.now())/1e3},xm=Ab.nowSeconds.bind(Ab),Mu=B8.nowSeconds.bind(B8),mo=(()=>{const{performance:t}=dD;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i<e,o=t.timing&&t.timing.navigationStart,u=typeof o=="number"?Math.abs(o+n-r):e,l=u<e;return s||l?i<=u?t.timeOrigin:o:r})(),Db="baggage",hD="sentry-",phe=/^sentry-/,mhe=8192;function ghe(t){if(!ja(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,i)=>{const s=z8(i);return{...r,...s}},{});else{if(!t)return;e=z8(t)}
1259const n=Object.entries(e).reduce((r,[i,s])=>{if(i.match(phe)){const o=i.slice(hD.length);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function Ib(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${hD}${r}`]=i),n),{});return vhe(e)}function z8(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function vhe(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?s:`${e},${s}`;return o.length>mhe?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const bhe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _he(t){if(!t)return;const e=t.match(bhe);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function yhe(t,e){const n=_he(t),r=ghe(e),{traceId:i,parentSpanId:s,parentSampled:o}=n||{},a={traceId:i||zi(),spanId:zi().substring(16),sampled:o===void 0?!1:o};return s&&(a.parentSpanId=s),r&&(a.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:a}}function Fy(t=zi(),e=zi().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function zd(t,e=[]){return[t,e]}function whe(t,e){const[n,r]=t;return[n,[...r,e]]}function j8(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function Ob(t,e){return(e||new TextEncoder).encode(t)}function Ehe(t,e){const[n,r]=t;let i=JSON.stringify(n);function s(o){typeof i=="string"?i=typeof o=="string"?i+o:[Ob(i,e),o]:i.push(typeof o=="string"?Ob(o,e):o)}for(const o of r){const[a,u]=o;if(s(` 1260${JSON.stringify(a)} 1261`),typeof u=="string"||u instanceof Uint8Array)s(u);else{let l;try{l=JSON.stringify(u)}catch{l=JSON.stringify(ka(u))}s(l)}}return typeof i=="string"?i:khe(i)}function khe(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function She(t,e){const n=typeof t.data=="string"?Ob(t.data,e):t.data;return[Na({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const The={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function U8(t){return The[t]}function pD(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function $he(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:Pm(r)},...i&&{trace:Na({...i})}}}function Che(t,e,n){const r=[{type:"client_report"},{timestamp:n||xm(),discarded_events:t}];return zd(e?{dsn:e}:{},[r])}const Ahe=60*1e3;function Dhe(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Ahe:r-e}function Ihe(t,e){return t[e]||t.all||0}function Ohe(t,e,n=Date.now()){return Ihe(t,e)>n}function Nhe(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const a of s.trim().split(",")){const[u,l]=a.split(":",2),c=parseInt(u,10),d=(isNaN(c)?60:c)*1e3;if(!l)i.all=r+d;else for(const h of l.split(";"))i[h]=r+d}else o?i.all=r+Dhe(o,r):e===429&&(i.all=r+60*1e3);return i}const Ly="production";function Rhe(t){const e=Mu(),n={sid:zi(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xhe(n)};return t&&uc(n,t),n}function uc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Mu(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:zi()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),t
1261ypeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Phe(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),uc(t,n)}function xhe(t){return Na({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const qhe=100;class Cu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=H8()}static clone(e){const n=new Cu;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...e._contexts},n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata},n._propagationContext={...e._propagationContext}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&uc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){const n=e(this);return n instanceof Cu?n:this}return e instanceof Cu?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):oc(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=H8(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:qhe;if(r<=0)return this;const i={timestamp:xm(),...e};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const r=this._span.transaction;if(r){e.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const i=r.name;i&&(e.tags={transaction:i,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,prop
1261agationContext:this._propagationContext},this._notifyEventProcessors([...mD(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(e,n,r,i=0){return new ki((s,o)=>{const a=e[i];if(n===null||typeof a!="function")s(n);else{const u=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&u===null&&Ye.log(`Event processor "${a.id}" dropped event`),Ry(u)?u.then(l=>this._notifyEventProcessors(e,l,r,i+1).then(s)).then(null,o):this._notifyEventProcessors(e,u,r,i+1).then(s).then(null,o)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?lD(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function mD(){return Py("globalEventProcessors",()=>[])}function My(t){mD().push(t)}function H8(){return{traceId:zi(),spanId:zi().substring(16),sampled:!1}}const gD=4,Fhe=100;class vD{constructor(e,n=new Cu,r=gD){this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Cu.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:zi(),i=new Error("Sentry syntheticException");return this._withClient((s,o)=>{s.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},o)}),r}captureMessage(e,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:zi(),s=new Error(e);return this._withClient((o,a)=>{o.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},a)}),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:zi();return e.type||(this._lastEventId=r),this._withClient((i,s)=>{i.captureEvent(e,{...n,event_id:r},s)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Fhe}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const u={timestamp:xm(),...e},l=s?tD(()=>s(u,n)):u;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,n),r.addBreadcrumb(l,o))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=V8(this);try{e(this)}finally{V8(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 1262Sentry.addTracingExtensions(); 1263Sentry.init({...}); 1264`),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Phe(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:s=Ly}=r&&r.getOptions()||{},{userAgent:o}=as.navigator||{},a=Rhe({release:i,environment:s,user:n.getUser(),...o&&{userAgent:o},...e}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&uc(u,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){const{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){const i=$c().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function $c(){return as.__SENTRY__=as.__SENTRY__||{extensions:{},hub:void 0},as}function V8(t){const e=$c(),n=Nb(e);return bD(e,t),n}function yr(){const t=$c();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Lhe(t)}function Lhe(t=$c()){return(!Mhe(t)||Nb(t).isOlderThan(gD))&&bD(t,new vD),Nb(t)}function Mhe(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Nb(t){return Py("hub",()=>new vD,t)}function bD(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function By(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=yr().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}
1264function jd(t){return(t||yr()).getScope().getTransaction()}let W8=!1;function Bhe(){W8||(W8=!0,is("error",Rb),is("unhandledrejection",Rb))}function Rb(){const t=jd();if(t){const e="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}Rb.tag="sentry_tracingErrorCallback";class qm{__init(){this.spans=[]}constructor(e=1e3){qm.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Po{__init2(){this.traceId=zi()}__init3(){this.spanId=zi().substring(16)}__init4(){this.startTimestamp=Mu()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(Po.prototype.__init2.call(this),Po.prototype.__init3.call(this),Po.prototype.__init4.call(this),Po.prototype.__init5.call(this),Po.prototype.__init6.call(this),Po.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const n=new Po({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n.transaction){const r=e&&e.op||"< unknown op >",i=n.transaction.name||"< unknown name >",s=n.transaction.spanId,o=`[Tracing] Starting '${r}' span on transaction '${i}' (${s}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:o},Ye.log(o)}return n}setTag(e,n){return this.tags={...this.tags,[e]:n},this}setData(e,n){return this.data={...this.data,[e]:n},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const n=zhe(e);return n!=="unknown_error"&&this.setStatus(n),this}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&Ye.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:Mu()}toTraceparent(){return Fy(this.traceId,this.spanId,this.sampled)}toContext(){return Na({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return Na({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Na({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function zhe(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Fm(t,e,n){const r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},o=Na({environment:r.environment||Ly,release:r.release,user_segment:s,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",o),o}class Pl extends Po{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,n){super(e),Pl.prototype.__init.call(this),Pl.prototype.__init2.call(this),Pl.prototype.__init3.call(this),this._hub=n||yr(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}setName(e,n="custom"){this._name=e,this.metadata.source=n}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new qm(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Transaction has no name, falling back to `<unlabeled transaction>
1264`."),this.name="<unlabeled transaction>"),super.finish(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(a=>a!==this&&a.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((a,u)=>a.endTimestamp&&u.endTimestamp?a.endTimestamp>u.endTimestamp?a:u:a).endTimestamp);const i=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(s)}toContext(){const e=super.toContext();return Na({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||yr(),n=e.getClient();if(!n)return{};const r=e.getScope(),i=Fm(this.traceId,n,r),s=this.metadata.sampleRate;s!==void 0&&(i.sample_rate=`${s}`);const o=this.metadata.source;return o&&o!=="url"&&(i.transaction=this.name),this.sampled!==void 0&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}}const Gp={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},jhe="finishReason",dl=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Uhe extends qm{constructor(e,n,r,i){super(i),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){e.spanId!==this.transactionSpanId&&(e.finish=n=>{e.endTimestamp=typeof n=="number"?n:Mu(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}}class Sa extends Pl{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=dl[4]}constructor(e,n,r=Gp.idleTimeout,i=Gp.finalTimeout,s=Gp.heartbeatInterval,o=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=o,Sa.prototype.__init.call(this),Sa.prototype.__init2.call(this),Sa.prototype.__init3.call(this),Sa.prototype.__init4.call(this),Sa.prototype.__init5.call(this),Sa.prototype.__init6.call(this),o&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(a=>a.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=dl[3],this.finish())},this._finalTimeout)}finish(e=Mu()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(jhe,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=e,n.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<e;return r||(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),r}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new Uhe(n,r,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=dl[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=dl[1],this.finish(e))},this._idleTimeout)}
1264_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Mu();this._idleTimeoutCanceledPermanently?(this._finishReason=dl[5],this.finish(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=dl[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Hhe(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function _D(t,e,n){if(!By(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate<"u"?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),Vhe(r)?r?(t.sampled=Math.random()<r,t.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Vhe(t){return J7(t)||!(typeof t=="number"||typeof t=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Whe(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=t.instrumenter||"sentry";i!==s&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter. 1265The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let o=new Pl(t,this);return o=_D(o,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),o.sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function G8(t,e,n,r,i,s,o){const a=t.getClient(),u=a&&a.getOptions()||{};let l=new Sa(e,t,n,r,o,i);return l=_D(l,u,{parentSampled:e.parentSampled,transactionContext:e,...s}),l.sampled&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),a&&a.emit&&a.emit("startTransaction",l),l}function yD(){const t=$c();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Whe),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Hhe),Bhe())}function Ghe(t,e){return yr().captureException(t,{captureContext:e})}function Yhe(t){yr().withScope(t)}const Qhe="7";function Zhe(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Xhe(t){return`${Zhe(t)}${t.projectId}/envelope/`}function Khe(t,e){return Fde({sentry_key:t.publicKey,sentry_version:Qhe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Jhe(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${Xhe(t)}?${Khe(t,r)}`}function epe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function tpe(t,e,n,r){const i=pD(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Pm(e)}},o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return zd(s,[o])}function npe(t,e,n,r){const i=pD(n),s=t.type&&t.type!=="replay_event"?t.type:"event";epe(t,n&&n.sdk);const o=$he(t,i,r,e);return delete t.sdkProcessingMetadata,zd(o,[[{type:s},t]])}const Y8=[];function rpe(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function ipe(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=lD(n(e)):r=e;const i=rpe(r),s=ope(i,o=>o.name==="Debug");if(s!==-1){const[o]=i.splice(s,1);i.push(o)}return i}function spe(t){const e={};return t.forEach(n=>
1265{n&&wD(n,e)}),e}function wD(t,e){e[t.name]=t,Y8.indexOf(t.name)===-1&&(t.setupOnce(My,yr),Y8.push(t.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`Integration installed: ${t.name}`))}function ope(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function ape(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,o={...e,event_id:e.event_id||n.event_id||zi(),timestamp:e.timestamp||xm()},a=n.integrations||t.integrations.map(c=>c.name);upe(o,t),fpe(o,a),e.type===void 0&&lpe(o,t.stackParser);let u=r;n.captureContext&&(u=Cu.clone(u).update(n.captureContext));let l=Lu(o);if(u){if(u.getAttachments){const c=[...n.attachments||[],...u.getAttachments()];c.length&&(n.attachments=c)}l=u.applyToEvent(o,n)}return l.then(c=>(c&&cpe(c),typeof i=="number"&&i>0?dpe(c,i,s):c))}function upe(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:Ly),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=Rl(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=Rl(o.value,s));const a=t.request;a&&a.url&&(a.url=Rl(a.url,s))}const Q8=new WeakMap;function lpe(t,e){const n=as._sentryDebugIds;if(!n)return;let r;const i=Q8.get(e);i?r=i:(r=new Map,Q8.set(e,r));const s=Object.keys(n).reduce((o,a)=>{let u;const l=r.get(a);l?u=l:(u=e(a),r.set(a,u));for(let c=u.length-1;c>=0;c--){const d=u[c];if(d.filename){o[d.filename]=n[a];break}}return o},{});try{t.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=s[a.filename])})})}catch{}}function cpe(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function fpe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function dpe(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:ka(i.data,e,n)}}))},...t.user&&{user:ka(t.user,e,n)},...t.contexts&&{contexts:ka(t.contexts,e,n)},...t.extra&&{extra:ka(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ka(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>(i.data&&(i.data=ka(i.data,e,n)),i))),r}const Z8="Not capturing exception because it's already been captured.";class pu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(pu.prototype.__init.call(this),pu.prototype.__init2.call(this),pu.prototype.__init3.call(this),pu.prototype.__init4.call(this),pu.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=qde(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("No DSN provided, client will not do anything."),this._dsn){const n=Jhe(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(M8(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(Z8);return}let i=n&&n.event_id;return this._process(this.eventFromException(e,n).then(s=>this._captureEvent(s,n,r)).then(s=>{i=s})),i}captureMessage(e,n,r,i){let s=r&&r.event_id;const o=K7(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(o.then(a=>this._captureEvent(a,r,i)).then(a=>{s=a})),s}captureEvent(e,n,r){if(n&&n.originalException&&M8(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(Z8);return}let i=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(s=>{i=s})),i}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),uc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;
1265return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i)):Lu(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=spe(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){wD(e,this._integrations)}sendEvent(e,n={}){if(this._dsn){let r=npe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=whe(r,She(s,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",e,s),null)}}sendSession(e){if(this._dsn){const n=tpe(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const i=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_updateSessionFromEvent(e,n){let r=!1,i=!1;const s=n.exception&&n.exception.values;if(s){i=!0;for(const u of s){const l=u.mechanism;if(l&&l.handled===!1){r=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&(uc(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ki(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,e&&r>=e&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),ape(i,e,n,r).then(o=>{if(o===null)return o;const{propagationContext:a}=o.sdkProcessingMetadata||{};if(!(o.contexts&&o.contexts.trace)&&a){const{traceId:l,spanId:c,parentSpanId:d,dsc:h}=a;o.contexts={trace:{trace_id:l,span_id:c,parent_span_id:d},...o.contexts};const m=h||Fm(l,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:m,...o.sdkProcessingMetadata}}return o})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const s=i;s.logLevel==="log"?Ye.log(s.message):Ye.warn(s)}})}_processEvent(e,n,r){const i=this.getOptions(),{sampleRate:s}=i;if(!this._isEnabled())return L0(new Ms("SDK not enabled, will not capture event.","log"));const o=kD(e),a=ED(e),u=e.type||"error",l=`before send for type \`${u}\``;if(a&&typeof s=="number"&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),L0(new Ms(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const c=u==="replay_event"?"replay":u;return this._prepareEvent(e,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",c,e),new Ms("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const m=ppe(i,d,n);return hpe(m,l)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",c,e),new Ms(`${l} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!o&&h&&this._updateSessionFromEvent(h,d);const m=d.transaction_info;if(o&&m&&d.transaction!==e.transaction){const g="custom";d.transaction_info={...m,source:g}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof Ms?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Ms(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 1266Reason: ${d}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}
1266_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:e[n]}})}}function hpe(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Ry(t))return t.then(r=>{if(!oc(r)&&r!==null)throw new Ms(n);return r},r=>{throw new Ms(`${e} rejected with ${r}`)});if(!oc(t)&&t!==null)throw new Ms(n);return t}function ppe(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return ED(e)&&r?r(e,n):kD(e)&&i?i(e,n):e}function ED(t){return t.type===void 0}function kD(t){return t.type==="transaction"}function mpe(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Ye.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=yr();n.getScope().update(e.initialScope);const i=new t(e);n.bindClient(i)}const gpe=30;function SD(t,e,n=lhe(t.bufferSize||gpe)){let r={};const i=o=>n.drain(o);function s(o){const a=[];if(j8(o,(d,h)=>{const m=U8(h);if(Ohe(r,m)){const g=X8(d,h);t.recordDroppedEvent("ratelimit_backoff",m,g)}else a.push(d)}),a.length===0)return Lu();const u=zd(o[0],a),l=d=>{j8(u,(h,m)=>{const g=X8(h,m);t.recordDroppedEvent(d,U8(m),g)})},c=()=>e({body:Ehe(u,t.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Nhe(r,d),d),d=>{throw l("network_error"),d});return n.add(c).then(d=>d,d=>{if(d instanceof Ms)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error("Skipped sending event because buffer is full."),l("queue_overflow"),Lu();throw d})}return s.__sentry__baseTransport__=!0,{send:s,flush:i}}function X8(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const M0="7.60.0";let K8;class sd{constructor(){sd.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=sd.id}setupOnce(){K8=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=qy(this)||this;return K8.apply(n,e)}}catch{}}}sd.__initStatic();const vpe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],bpe=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class xl{static __initStatic(){this.id="InboundFilters"}__init(){this.name=xl.id}constructor(e={}){this._options=e,xl.prototype.__init.call(this)}setupOnce(e,n){const r=i=>{const s=n();if(s){const o=s.getIntegration(xl);if(o){const a=s.getClient(),u=a?a.getOptions():{},l=_pe(o._options,u);return ype(i,l)?null:i}}return i};r.id=this.name,e(r)}}xl.__initStatic();function _pe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:vpe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:bpe],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ype(t,e){return e.ignoreInternal&&$pe(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Event dropped due to being internal Sentry Error. 1267Event: ${$a(t)}`),!0):wpe(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 1268Event: ${$a(t)}`),!0):Epe(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 1269Event: ${$a(t)}`),!0):kpe(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Event dropped due to being matched by \`denyUrls\` option. 1270Event: ${$a(t)}. 1271Url: ${B0(t)}`),!0):Spe(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`Event dropped due to not being matched by \`allowUrls\` option. 1272Event: ${$a(t)}. 1273Url: ${B0(t)}`),!0)}function wpe(t,e){return t.type||!e||!e.length?!1:Tpe(t).some(n=>Md(n,e))}function Epe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Md(n,e):!1}function kpe(t,e){if(!e||!e.length)return!1;const n=B0(t);return n?Md(n,e):!1}function Spe(t,e){if(!e||!e.length)return!0;const n=B0(t);return n?Md(n,e):!0}function Tpe(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:n="",value:r=""}=e&&e[e.length-1]||{};return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error(`Cannot extract message for event ${$a(t)}`),[]}}return[]}function $pe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Cpe(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function B0(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Cpe(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.error(`Cannot extract url for event ${$a(t)}`),null}}const jn=as;let Pb=0;function TD(){return Pb>0}function Ape(){Pb++,setTimeout(()=>{Pb--})}function lc(t,e={}
1273,n){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(qy(t))return t}catch{return t}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const s=i.map(o=>lc(o,e));return t.apply(this,s)}catch(s){throw Ape(),Yhe(o=>{o.addEventProcessor(a=>(e.mechanism&&($b(a,void 0,void 0),id(a,e.mechanism)),a.extra={...a.extra,arguments:i},a)),Ghe(s)}),s}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}rD(r,t),xy(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function $D(t,e){const n=zy(t,e),r={type:e&&e.name,value:Npe(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Dpe(t,e,n,r){const s=yr().getClient(),o=s&&s.getOptions().normalizeDepth,a={exception:{values:[{type:Rm(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:xpe(e,{isUnhandledRejection:r})}]},extra:{__serialized__:fD(e,o)}};if(n){const u=zy(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function X1(t,e){return{exception:{values:[$D(t,e)]}}}function zy(t,e){const n=e.stacktrace||e.stack||"",r=Ope(e);try{return t(n,r)}catch{}return[]}const Ipe=/Minified React error #\d+;/i;function Ope(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Ipe.test(t.message))return 1}return 0}function Npe(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Rpe(t,e,n,r){const i=n&&n.syntheticException||void 0,s=jy(t,e,i,r);return id(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Lu(s)}function Ppe(t,e,n="info",r,i){const s=r&&r.syntheticException||void 0,o=xb(t,e,s,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Lu(o)}function jy(t,e,n,r,i){let s;if(Ny(e)&&e.error)return X1(t,e.error);if(A8(e)||wde(e)){const o=e;if("stack"in e)s=X1(t,e);else{const a=o.name||(A8(o)?"DOMError":"DOMException"),u=o.message?`${a}: ${o.message}`:a;s=xb(t,u,n,r),$b(s,u)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return X7(e)?X1(t,e):oc(e)||Rm(e)?(s=Dpe(t,e,n,i),id(s,{synthetic:!0}),s):(s=xb(t,e,n,r),$b(s,`${e}`,void 0),id(s,{synthetic:!0}),s)}function xb(t,e,n,r){const i={message:e};if(r&&n){const s=zy(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}return i}function xpe(t,{isUnhandledRejection:e}){const n=Lde(t),r=e?"promise rejection":"exception";return Ny(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Rm(t)?`Event \`${qpe(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qpe(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}const kp=1024,CD="Breadcrumbs";class od{static __initStatic(){this.id=CD}__init(){this.name=od.id}constructor(e){od.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&is("console",Lpe),this.options.dom&&is("dom",Fpe(this.options.dom)),this.options.xhr&&is("xhr",Mpe),this.options.fetch&&is("fetch",Bpe),this.options.history&&is("history",zpe)}addSentryBreadcrumb(e){this.options.sentry&&yr().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:$a(e)},{event:e})}}od.__initStatic();function Fpe(t){function e(n){let r,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>kp&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`\`dom.maxStringLength\` cannot exceed ${kp}, but a value of ${s} was configured. Sentry will use ${kp} instead.`),s=kp),typeof i=="string"&&(i=[i]);try{const o=n.event;r=jpe(o)?ac(o.target,{keyAttrs:i,maxStringLength:s}):ac(o,{keyAttrs:i,maxStringLength:s})}catch{r="<unknown>"}r.length!==0&&yr().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function Lpe(t){for(let n=0;n<t.args.length;n++)if(t.args[n]==="ref=Ref<"){t.args[n+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:fhe(t.level),message:D8(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${D8(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;
1273yr().addBreadcrumb(e,{input:t.args,level:t.level})}function Mpe(t){const{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[Sl];if(!e||!n||!r)return;const{method:i,url:s,status_code:o,body:a}=r,u={method:i,url:s,status_code:o},l={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n};yr().addBreadcrumb({category:"xhr",data:u,type:"http"},l)}function Bpe(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};yr().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};yr().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function zpe(t){let e=t.from,n=t.to;const r=Q1(jn.location.href);let i=Q1(e);const s=Q1(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),yr().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function jpe(t){return!!t&&!!t.target}function Upe(t,{metadata:e,tunnel:n,dsn:r}){const i={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Pm(r)}},s=Hpe(t);return zd(i,[s])}function Hpe(t){return[{type:"user_report"},t]}class Vpe extends pu{constructor(e){const n=jn.SENTRY_SDK_SOURCE||rhe();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:M0}],version:M0},super(e),e.sendClientReports&&jn.document&&jn.document.addEventListener("visibilitychange",()=>{jn.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Rpe(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Ppe(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){const r=this.getIntegrationById(CD);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(e),super.sendEvent(e,n)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("SDK not enabled, will not capture user feedback.");return}const n=Upe(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("Sending outcomes:",e);const n=Che(e,this._options.tunnel&&Pm(this._dsn));this._sendEnvelope(n)}}let kf;function Wpe(){if(kf)return kf;if(Sb(jn.fetch))return kf=jn.fetch.bind(jn);const t=jn.document;let e=jn.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return kf=e.bind(jn)}function Gpe(){kf=void 0}function Ype(t,e=Wpe()){let n=0,r=0;function i(s){const o=s.body.length;n+=o,r++;const a={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(u=>(n-=o,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Gpe(),n-=o,r--,L0(u)}}return SD(t,i)}const Qpe=4;function Zpe(t){function e(n){return new ki((r,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===Qpe&&r({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const o in t.headers)Object.prototype.hasOwnProperty.call(t.headers,o)&&s.setRequestHeader(o,t.headers[o]);s.send(n.body)})}return SD(t,e)}const Lm="?",Xpe=30,Kpe=40,Jpe=50;function Uy(t,e,n,r){const i={filename:t,function:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const e0e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t0e=/\((\S*)(?::(\d+))(?::(\d+))\)/,n0e=t=>{const e=e0e.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const s=t0e.exec(e[2]);s&&(e[2]=s[1],e[3]=s[2],e[4]=s[3])}const[r,i]=AD(e[1]||Lm,e[2]);return Uy(i,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},r0e=[Xpe,n0e],i0e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s0e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,o0e=t=>{const e=i0e.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=s0e.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||Lm;return[i,r]=AD(i,r),Uy(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},a0e=[Jpe,o0e],u0e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l0e=t=>{const e=u0e.exec(t);return e?Uy(e[2],e[1]||Lm,+e[3],e[4]?+e[4]:void 0):void 0},c0e=[Kpe,l0e],f0e=[r0e,a0e,c0e],d0e=oD(...f0e),AD=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Lm,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class Ra{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Ra.id}__init2(){this._installFunc={onerror:h0e,onunhandledrejection:p0e}}constructor(e){Ra.prototype.__init.call(this),Ra.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(v0e(n),r(),this._installFunc[n]=void 0)}}}Ra.__initStatic();function h0e(){is("error",t=>{const[e,n,r]=OD();if(!e.getIntegration(Ra))return;const{msg:i,url:s,line:o,column:a,error:u}=t;if(TD()||u&&u.__sentry_own_request__)return;const l=u===void 0&&ja(i)?g0e(i,s,o,a):DD(jy(n,u||i,void 0,r,!1),s,o,a);l.level="error",ID(e,u,l,"onerror")})}function p0e(){is("unhandledrejection",t=>{const[e,n,r]=OD();if(!e.getIntegration(Ra))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch{}if(TD()||i&&i.__sentry_own_request__)return!0;const s=K7(i)?m0e(i):jy(n,i,void 0,r,!0);s.level="error",ID(e,i,s,"onunhandledrejection")})}function m0e(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function g0e(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=Ny(t)?t.message:t,o="Error";const a=s.match(i);return a&&(o=a[1],s=a[2]),DD({exception:{values:[{type:o,value:s}]}},e,n,r)}function DD(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},u=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=ja(e)&&e.length>0?e:Ide();return u.length===0&&u.push({colno:l,filename:d,function:"?",in_app:!0,lineno:c}),t}function v0e(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`Global Handler attached: ${t}`)}function ID(t,e,n,r){id(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function OD(){const t=yr(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}const b0e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ad{static __initStatic(){this.id="TryCatch"}__init(){this.name=ad.id}constructor(e){ad.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&ri(jn,"setTimeout",J8),this._options.setInterval&&ri(jn,"setInterval",J8),this._options.requestAnimationFrame&&ri(jn,"requestAnimationFrame",_0e),this._options.XMLHttpRequest&&"XMLHttpRequest"in jn&&ri(XMLHttpRequest.prototype,"send",y0e);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:b0e).forEach(w0e)}}ad.__initStatic();function J8(t){return function(...e){const n=e[0];return e[0]=lc(n,{mechanism:{data:{function:Ua(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function _0e(t){return function(e){return t.apply(this,[lc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ua(t)},handled:!0,type:"instrument"}})])}}function y0e(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>
1273{i in n&&typeof n[i]=="function"&&ri(n,i,function(s){const o={mechanism:{data:{function:i,handler:Ua(s)},handled:!0,type:"instrument"}},a=qy(s);return a&&(o.mechanism.data.handler=Ua(a)),lc(s,o)})}),t.apply(this,e)}}function w0e(t){const e=jn,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ri(n,"addEventListener",function(r){return function(i,s,o){try{typeof s.handleEvent=="function"&&(s.handleEvent=lc(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ua(s),target:t},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,lc(s,{mechanism:{data:{function:"addEventListener",handler:Ua(s),target:t},handled:!0,type:"instrument"}}),o])}}),ri(n,"removeEventListener",function(r){return function(i,s,o){const a=s;try{const u=a&&a.__sentry_wrapped__;u&&r.call(this,i,u,o)}catch{}return r.call(this,i,a,o)}}))}const E0e="cause",k0e=5;class ql{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ql.id}constructor(e={}){ql.prototype.__init.call(this),this._key=e.key||E0e,this._limit=e.limit||k0e}setupOnce(e,n){e((r,i)=>{const s=n(),o=s.getClient(),a=s.getIntegration(ql);if(!o||!a)return r;const u=o.getOptions();return $de($D,u.stackParser,u.maxValueLength,a._key,a._limit,r,i),r})}}ql.__initStatic();class Fl{constructor(){Fl.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Fl.id}setupOnce(){My(e=>{if(yr().getIntegration(Fl)){if(!jn.navigator&&!jn.location&&!jn.document)return e;const n=e.request&&e.request.url||jn.location&&jn.location.href,{referrer:r}=jn.document||{},{userAgent:i}=jn.navigator||{},s={...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},o={...e.request,...n&&{url:n},headers:s};return{...e,request:o}}return e})}}Fl.__initStatic();class Ll{constructor(){Ll.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Ll.id}setupOnce(e,n){const r=i=>{if(i.type)return i;const s=n().getIntegration(Ll);if(s){try{if(S0e(i,s._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return s._previousEvent=i}return s._previousEvent=i}return i};r.id=this.name,e(r)}}Ll.__initStatic();function S0e(t,e){return e?!!(T0e(t,e)||$0e(t,e)):!1}function T0e(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!RD(t,e)||!ND(t,e))}function $0e(t,e){const n=e5(e),r=e5(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!RD(t,e)||!ND(t,e))}function ND(t,e){let n=t5(t),r=t5(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function RD(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function e5(t){return t.exception&&t.exception.values&&t.exception.values[0]}function t5(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}const C0e=[new xl,new sd,new ad,new od,new Ra,new ql,new Ll,new Fl];function A0e(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=C0e),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),jn.SENTRY_RELEASE&&jn.SENTRY_RELEASE.id&&(t.release=jn.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:Mde(t.stackParser||d0e),integrations:ipe(t),transport:t.transport||(aD()?Ype:Zpe)};mpe(Vpe,e),t.autoSessionTracking&&D0e()}function n5(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function D0e(){if(typeof jn.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const t=yr();t.captureSession&&(n5(t),is("history",({from:e,to:n})=>{e===void 0||e===n||n5(yr())}))}const Un=as;function I0e(){Un&&Un.document?Un.document.addEventListener("visibilitychange",()=>{const t=jd();if(Un.document.hidden&&t){const e="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Hy=(t,e,n)=>{let r,i;return s=>{e.value>=0&&(s||n)&&(i=e.value-(r||0),(i||r===void 0)&&(r=e.value,e.delta=i,t(e)))}},O0e=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,N0e=()=>{const t=Un.performance.timing,e=Un.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},PD=()=>Un.__WEB_VITALS_POLYFILL__?Un.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||N0e()):Un.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],xD=()=>{const t=PD();return t&&t.activationStart||0},Vy=(t,e)=>{const n=PD();let r="navigate";return n&&(Un.document.prerendering||xD()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:O0e(),navigationType:r}},Ud=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{e(i.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Mm=(t,e)=>{const n=r=>{(r.type==="pagehide"||Un.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},R0e=t=>{const e=Vy("CLS",0);let n,r=0,i=[];const s=a=>{a.forEach(u=>{if(!u.hadRecentInput){const l=i[0],c=i[i.length-1];r&&i.length!==0&&u.startTime-c.startTime<1e3&&u.startTime-l.startTime<5e3?(r+=u.value,i.push(u)):(r=u.value,i=[u]),r>e.value&&(e.value=r,e.entries=i,n&&n())}})},o=Ud("layout-shift",s);if(o){n=Hy(t,e);const a=()=>{s(o.takeRecords()),n(!0)};return Mm(a),a}};let Yp=-1;const P0e=()=>Un.document.visibilityState==="hidden"&&!Un.document.prerendering?0:1/0,x0e=()=>{Mm(({timeStamp:t})=>{Yp=t},!0)},Wy=()=>(Yp<0&&(Yp=P0e(),x0e()),{get firstHiddenTime(){return Yp}}),q0e=t=>{const e=Wy(),n=Vy("FID");let r;const i=a=>{a.startTime<e.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entr
1273ies.push(a),r(!0))},s=a=>{a.forEach(i)},o=Ud("first-input",s);r=Hy(t,n),o&&Mm(()=>{s(o.takeRecords()),o.disconnect()},!0)},r5={},F0e=t=>{const e=Wy(),n=Vy("LCP");let r;const i=o=>{const a=o[o.length-1];if(a){const u=Math.max(a.startTime-xD(),0);u<e.firstHiddenTime&&(n.value=u,n.entries=[a],r())}},s=Ud("largest-contentful-paint",i);if(s){r=Hy(t,n);const o=()=>{r5[n.id]||(i(s.takeRecords()),s.disconnect(),r5[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{addEventListener(a,o,{once:!0,capture:!0})}),Mm(o,!0),o}};function K1(t){return typeof t=="number"&&isFinite(t)}function cc(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function Br(t){return t/1e3}function qD(){return Un&&Un.addEventListener&&Un.performance}let i5=0,br={},eo,xf;function L0e(){const t=qD();if(t&&mo){t.mark&&Un.performance.mark("sentry-tracing-init"),U0e();const e=z0e(),n=j0e();return()=>{e&&e(),n&&n()}}return()=>{}}function M0e(){Ud("longtask",e=>{for(const n of e){const r=jd();if(!r)return;const i=Br(mo+n.startTime),s=Br(n.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+s})}})}function B0e(){Ud("event",e=>{for(const n of e){const r=jd();if(!r)return;if(n.name==="click"){const i=Br(mo+n.startTime),s=Br(n.duration);r.startChild({description:ac(n.target),op:`ui.interaction.${n.name}`,startTimestamp:i,endTimestamp:i+s})}}},{durationThreshold:0})}function z0e(){return R0e(t=>{const e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding CLS"),br.cls={value:t.value,unit:""},xf=e)})}function j0e(){return F0e(t=>{const e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding LCP"),br.lcp={value:t.value,unit:"millisecond"},eo=e)})}function U0e(){q0e(t=>{const e=t.entries.pop();if(!e)return;const n=Br(mo),r=Br(e.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding FID"),br.fid={value:t.value,unit:"millisecond"},br["mark.fid"]={value:n+r,unit:"second"}})}function H0e(t){const e=qD();if(!e||!Un.performance.getEntries||!mo)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Tracing] Adding & adjusting spans using Performance API");const n=Br(mo),r=e.getEntries();let i,s;if(r.slice(i5).forEach(o=>{const a=Br(o.startTime),u=Br(o.duration);if(!(t.op==="navigation"&&n+a<t.startTimestamp))switch(o.entryType){case"navigation":{W0e(t,o,n),i=n+Br(o.responseStart),s=n+Br(o.requestStart);break}case"mark":case"paint":case"measure":{V0e(t,o,a,u,n);const l=Wy(),c=o.startTime<l.firstHiddenTime;o.name==="first-paint"&&c&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding FP"),br.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&c&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding FCP"),br.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{const l=o.name.replace(Un.location.origin,"");Y0e(t,o,l,a,u,n);break}}}),i5=Math.max(r.length-1,0),Q0e(t),t.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding TTFB"),br.ttfb={value:(i-t.startTimestamp)*1e3,unit:"millisecond"},typeof s=="number"&&s<=i&&(br["ttfb.requestTime"]={value:(i-s)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(a=>{if(!br[a]||n>=t.startTimestamp)return;const u=br[a].value,l=n+Br(u),c=Math.abs((l-t.startTimestamp)*1e3),d=c-u;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Measurements] Normalized ${a} from ${u} to ${c} (${d})`),br[a].value=c});const o=br["mark.fid"];o&&br.fid&&(cc(t,{description:"first input delay",endTimestamp:o.value+Br(br.fid.value),op:"ui.action",startTimestamp:o.value}),delete br["mark.fid"]),"fcp"in br||delete br.cls,Object.keys(br).forEach(a=>{t.setMeasurement(a,br[a].value,br[a].unit)}),Z0e(t)}eo=void 0,xf=void 0,br={}}function V0e(t,e,n,r,i){const s=i+n,o=s+r;return cc(t,{description:e.name,endTimestamp:o,op:e.entryType,startTimestamp:s}),s}function W0e(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Sp(t,e,r,n)}),Sp(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Sp(t,e,"fetch",n,"cache","domainLookupStart"),Sp(t,e,"domainLookup",n,"DNS"),G0e(t,e,n)}function Sp(t,e,n,r,i,s){const o=s?e[s]:e[`${n}End`],a=e[`${n}Start`];!a||!o||cc(t,{op:"browser",description:i||n,startTimestamp:r+Br(a),endTimestamp:r+Br(o)})}function G0e(t,e,n){cc(t,{op:"browser",description:"request",startTimestamp:n+Br(e.requestStart),endTimestamp:n+Br(e.responseEnd)}),cc(t,{op:"browser",description:"response",startTimestamp:n+Br(e.responseStart),endTimestamp:n+Br(e.responseEnd)})}function Y0e(t,e,n,r,i,s){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const o={};"transferSize"in e&&(o["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(o["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(o["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(o["resource.render_blocking_status"]=e.renderBlockingStatus);const a=s+r,u=a+i;cc(t,{description:n,endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:a,data:o})}function Q0e(t){const e=Un.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),K1(n.rtt)&&(br["connection.rtt"]={value:n.rtt,unit:"millisecond"})),K1(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),K1(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function Z0e(t){eo&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding LCP Data"),eo.element&&t.setTag("lcp.element",ac(eo.element)),eo.id&&t.setTag("lcp.id",eo.id),eo.url&&t.setTag("lcp.url",eo.url.trim().slice(0,200)),t.setTag("lcp.size",eo.size)),xf&&xf.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log("[Measurements] Adding CLS Data"),xf.sources.forEac
1273h((e,n)=>t.setTag(`cls.source.${n+1}`,ac(e.node))))}const qb=["localhost",/^\/(?!\/)/],Fb={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:qb,tracePropagationTargets:qb};function X0e(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:Fb.traceFetch,traceXHR:Fb.traceXHR,...t},a=typeof s=="function"?s:c=>!0,u=c=>eme(c,r||i),l={};e&&is("fetch",c=>{const d=tme(c,a,u,l);o&&d&&s5(d)}),n&&is("xhr",c=>{const d=rme(c,a,u,l);o&&d&&s5(d)})}function s5(t){const e=t.data.url,n=new PerformanceObserver(r=>{r.getEntries().forEach(s=>{(s.initiatorType==="fetch"||s.initiatorType==="xmlhttprequest")&&s.name.endsWith(e)&&(J0e(s).forEach(a=>t.setData(...a)),n.disconnect())})});n.observe({entryTypes:["resource"]})}function K0e(t){let e="unknown",n="unknown",r="";for(const i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function Ks(t){return((mo||performance.timeOrigin)+t)/1e3}function J0e(t){const{name:e,version:n}=K0e(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),mo?[...r,["http.request.redirect_start",Ks(t.redirectStart)],["http.request.fetch_start",Ks(t.fetchStart)],["http.request.domain_lookup_start",Ks(t.domainLookupStart)],["http.request.domain_lookup_end",Ks(t.domainLookupEnd)],["http.request.connect_start",Ks(t.connectStart)],["http.request.secure_connection_start",Ks(t.secureConnectionStart)],["http.request.connection_end",Ks(t.connectEnd)],["http.request.request_start",Ks(t.requestStart)],["http.request.response_start",Ks(t.responseStart)],["http.request.response_end",Ks(t.responseEnd)]]:r}function eme(t,e){return Md(t,e||qb)}function tme(t,e,n,r){if(!By()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const h=t.fetchData.__span;if(!h)return;const m=r[h];if(m){if(t.response){m.setHttpStatus(t.response.status);const g=t.response&&t.response.headers&&t.response.headers.get("content-length"),k=parseInt(g);k>0&&m.setData("http.response_content_length",k)}else t.error&&m.setStatus("internal_error");m.finish(),delete r[h]}return}const s=yr(),o=s.getScope(),a=s.getClient(),u=o.getSpan(),{method:l,url:c}=t.fetchData,d=i&&u?u.startChild({data:{url:c,type:"fetch","http.method":l},description:`${l} ${c}`,op:"http.client"}):void 0;if(d&&(t.fetchData.__span=d.spanId,r[d.spanId]=d),n(t.fetchData.url)&&a){const h=t.args[0];t.args[1]=t.args[1]||{};const m=t.args[1];m.headers=nme(h,a,o,m)}return d}function nme(t,e,n,r){const i=n.getSpan(),s=i&&i.transaction,{traceId:o,sampled:a,dsc:u}=n.getPropagationContext(),l=i?i.toTraceparent():Fy(o,void 0,a),c=s?s.getDynamicSamplingContext():u||Fm(o,e,n),d=Ib(c),h=typeof Request<"u"&&Yo(t,Request)?t.headers:r.headers;if(h)if(typeof Headers<"u"&&Yo(h,Headers)){const m=new Headers(h);return m.append("sentry-trace",l),d&&m.append(Db,d),m}else if(Array.isArray(h)){const m=[...h,["sentry-trace",l]];return d&&m.push([Db,d]),m}else{const m="baggage"in h?h.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),d&&g.push(d),{...h,"sentry-trace":l,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":l,baggage:d}}function rme(t,e,n,r){const i=t.xhr,s=i&&i[Sl];if(!By()||i&&i.__sentry_own_request__||!i||!s)return;const o=e(s.url);if(t.endTimestamp&&o){const d=i.__sentry_xhr_span_id__;if(!d)return;const h=r[d];h&&(h.setHttpStatus(s.status_code),h.finish(),delete r[d]);return}const a=yr(),u=a.getScope(),l=u.getSpan(),c=o&&l?l.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client"}):void 0;if(c&&(i.__sentry_xhr_span_id__=c.spanId,r[i.__sentry_xhr_span_id__]=c),i.setRequestHeader&&n(s.url))if(c){const d=c&&c.transaction,h=d&&d.getDynamicSamplingContext(),m=Ib(h);o5(i,c.toTraceparent(),m)}else{const d=a.getClient(),{traceId:h,sampled:m,dsc:g}=u.getPropagationContext(),k=Fy(h,void 0,m),y=g||(d?Fm(h,d,u):void 0),b=Ib(y);o5(i,k,b)}return c}function o5(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(Db,n)}catch{}}function ime(t,e=!0,n=!0){if(!Un||!Un.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn("Could not initialize routing instrumentation due to invali
1273d location");return}let r=Un.location.href,i;e&&(i=t({name:Un.location.pathname,startTimestamp:mo?mo/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&is("history",({to:s,from:o})=>{if(o===void 0&&r&&r.indexOf(s)!==-1){r=void 0;return}o!==s&&(r=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:Un.location.pathname,op:"navigation",metadata:{source:"url"}}))})}const sme="BrowserTracing",ome={...Gp,markBackgroundTransactions:!0,routingInstrumentation:ime,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Fb};let ame=class Lb{__init(){this.name=sme}__init2(){this._hasSetTracePropagationTargets=!1}constructor(e){Lb.prototype.__init.call(this),Lb.prototype.__init2.call(this),yD(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...ome,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=L0e(),this.options.enableLongTask&&M0e(),this.options._experiments.enableInteractions&&B0e()}setupOnce(e,n){this._getCurrentHub=n;const i=n().getClient(),s=i&&i.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:a,startTransactionOnPageLoad:u,markBackgroundTransactions:l,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:h,enableHTTPTimings:m,_experiments:g}=this.options,k=s&&s.tracePropagationTargets,y=k||this.options.tracePropagationTargets;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&k&&Ye.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o(b=>{const S=this._createRouteTransaction(b);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(S,b,n),S},u,a),l&&I0e(),g.enableInteractions&&this._registerInteractionListener(),X0e({traceFetch:c,traceXHR:d,tracePropagationTargets:y,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:s,heartbeatInterval:o}=this.options,a=e.op==="pageload",u=a?a5("sentry-trace"):"",l=a?a5("baggage"):"",{traceparentData:c,dynamicSamplingContext:d,propagationContext:h}=yhe(u,l),m={...e,...c,metadata:{...e.metadata,dynamicSamplingContext:c&&!d?{}:d},trimEnd:!0},g=typeof r=="function"?r(m):m,k=g===void 0?{...m,sampled:!1}:g;k.metadata=k.name!==m.name?{...k.metadata,source:"custom"}:k.metadata,this._latestRouteName=k.name,this._latestRouteSource=k.metadata&&k.metadata.source,k.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Will not send ${k.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.log(`[Tracing] Starting ${k.op} transaction on scope`);const{location:y}=Un,b=G8(n,k,i,s,!0,{location:y},o),S=n.getScope();return a&&c?S.setPropagationContext(h):S.setPropagationContext({traceId:b.traceId,spanId:b.spanId,parentSpanId:b.parentSpanId,sampled:!!b.sampled}),b.registerBeforeFinishCallback($=>{this._collectWebVitals(),H0e($)}),b}_registerInteractionListener(){let e;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,o="ui.action.click",a=jd();if(a&&a.op&&["navigation","pageload"].includes(a.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Did not create ${o}
1273 transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Ye.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:l}=Un,c={name:this._latestRouteName,op:o,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=G8(u,c,r,i,!0,{location:l},s)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}};function a5(t){const e=eD(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function ume(){const t=$c();if(!t.__SENTRY__)return;const e={mongodb(){const r=Ia(pr,"./node/integrations/mongo");return new r.Mongo},mongoose(){const r=Ia(pr,"./node/integrations/mongo");return new r.Mongo},mysql(){const r=Ia(pr,"./node/integrations/mysql");return new r.Mysql},pg(){const r=Ia(pr,"./node/integrations/postgres");return new r.Postgres}},n=Object.keys(e).filter(r=>!!ihe(r)).map(r=>{try{return e[r]()}catch{return}}).filter(r=>r);n.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...n])}function lme(){yD(),cD()&&ume()}function cme(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.svelte",packages:[{name:"npm:@sentry/svelte",version:M0}],version:M0},A0e(t),fme()}function fme(){let t;const e=n=>(t===void 0&&(t=dme()),t&&(n.modules={svelteKit:"latest",...n.modules}),n);e.id="svelteKitProcessor",My(e)}function dme(){return eD("div#svelte-announcer")!==null}const hme=ame;(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&lme();cme({environment:"production",dsn:"https://[email protected]/6773076",integrations:[new hme],tracesSampleRate:.2});new yde({target:document.getElementById("app")})});export default pme();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.