vag_tools
Version:
api and cli for managing sub-git-repositories
3 lines (2 loc) • 6.68 kB
JavaScript
import{x as z,g as U,y as $,z as J,b as K,A as H,B as I,C as f,v as c,D as v,E as Q,F as p,G as S,H as L,I as w,J as O,K as m,L as V,M as Z,N as M,c as j,O as ee,P as te,Q as F,R as N,S as re,T as ne,U as W,V as se,W as ie,w as G,X as B,Y as ae,Z as oe,_ as le,$ as ue,a0 as fe,a1 as he,a2 as ce,a3 as C,a4 as de,a5 as _e,a6 as pe,a7 as ve,a8 as ge,a9 as k,aa as ye,ab as Ee,ac as x,ad as A,ae as me,af as Te,ag as be,ah as we,p as Ne,ai as Re,aj as Se,q as Ae}from"./A9QBkv6k.js";function Oe(t){let e=0,r=$(0),i;return()=>{z()&&(U(r),J(()=>(e===0&&(i=K(()=>t(()=>H(r)))),e+=1,()=>{I(()=>{e-=1,e===0&&(i?.(),i=void 0,H(r))})})))}}var De=oe|le|ue;function Le(t,e,r){new Fe(t,e,r)}class Fe{parent;#r=!1;#t;#v=c?f:null;#s;#h;#i;#n=null;#e=null;#a=null;#o=null;#l=null;#c=0;#u=0;#d=!1;#f=null;#E=Oe(()=>(this.#f=$(this.#c),()=>{this.#f=null}));constructor(e,r,i){this.#t=e,this.#s=r,this.#h=i,this.parent=v.b,this.#r=!!this.#s.pending,this.#i=Q(()=>{if(v.b=this,c){const n=this.#v;G(),n.nodeType===B&&n.data===ae?this.#T():this.#m()}else{var s=this.#g();try{this.#n=p(()=>i(s))}catch(n){this.error(n)}this.#u>0?this.#p():this.#r=!1}return()=>{this.#l?.remove()}},De),c&&(this.#t=f)}#m(){try{this.#n=p(()=>this.#h(this.#t))}catch(e){this.error(e)}this.#r=!1}#T(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),S.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(S.ensure(),p(()=>this.#h(r)))),this.#u>0?this.#p():(L(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#l=w(),this.#t.before(this.#l),e=this.#l),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,i=M,s=j;O(this.#i),m(this.#i),V(this.#i.ctx);try{return e()}catch(n){return Z(n),null}finally{O(r),m(i),V(s)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#l),ee(this.#n,this.#o)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}this.#u+=e,this.#u===0&&(this.#r=!1,this.#e&&L(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e){this.#y(e),this.#c+=e,this.#f&&te(this.#f,this.#c)}get_effect_pending(){return this.#E(),U(this.#f)}error(e){var r=this.#s.onerror;let i=this.#s.failed;if(this.#d||!r&&!i)throw e;this.#n&&(F(this.#n),this.#n=null),this.#e&&(F(this.#e),this.#e=null),this.#a&&(F(this.#a),this.#a=null),c&&(N(this.#v),re(),N(ne()));var s=!1,n=!1;const a=()=>{if(s){ie();return}s=!0,n&&se(),S.ensure(),this.#c=0,this.#a!==null&&L(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#h(this.#t)))),this.#u>0?this.#p():this.#r=!1};var h=M;try{m(null),n=!0,r?.(e,a),n=!1}catch(u){W(u,this.#i&&this.#i.parent)}finally{m(h)}i&&I(()=>{this.#a=this.#_(()=>{S.ensure(),this.#d=!0;try{return p(()=>{i(this.#t,()=>e,()=>a)})}catch(u){return W(u,this.#i.parent),null}finally{this.#d=!1}})})}}const Me=["touchstart","touchmove"];function Ce(t){return Me.includes(t)}const ke=new Set,Y=new Set;function xe(t,e,r,i={}){function s(n){if(i.capture||b.call(e,n),!n.cancelBubble)return he(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?I(()=>{e.addEventListener(t,s,i)}):e.addEventListener(t,s,i),s}function Ve(t,e,r,i,s){var n={capture:i,passive:s},a=xe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fe(()=>{e.removeEventListener(t,a,n)})}let q=null;function b(t){var e=this,r=e.ownerDocument,i=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;q=t;var a=0,h=q===t&&t.__root;if(h){var u=s.indexOf(h);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;u<=g&&(a=u)}if(n=s[a]||t.target,n!==e){ce(t,"currentTarget",{configurable:!0,get(){return n||r}});var D=M,d=v;m(null),O(null);try{for(var o,l=[];n!==null;){var y=n.assignedSlot||n.parentNode||n.host||null;try{var T=n["__"+i];T!=null&&(!n.disabled||t.target===n)&&T.call(n,t)}catch(R){o?l.push(R):o=R}if(t.cancelBubble||y===e||y===null)break;n=y}if(o){for(let R of l)queueMicrotask(()=>{throw R});throw o}}finally{t.__root=e,delete t.currentTarget,m(D),O(d)}}}function Pe(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function We(t,e){var r=(e&_e)!==0,i=(e&pe)!==0,s,n=!t.startsWith("<!>");return()=>{if(c)return _(f,null),f;s===void 0&&(s=Pe(n?t:"<!>"+t),r||(s=C(s)));var a=i||de?document.importNode(s,!0):s.cloneNode(!0);if(r){var h=C(a),u=a.lastChild;_(h,u)}else _(a,a);return a}}function Ye(t=""){if(!c){var e=w(t+"");return _(e,e),e}var r=f;return r.nodeType!==ge&&(r.before(r=w()),N(r)),_(r,r),r}function qe(){if(c)return _(f,null),f;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),_(e,r),t}function Ue(t,e){if(c){var r=v;((r.f&ve)===0||r.nodes.end===null)&&(r.nodes.end=f),G();return}t!==null&&t.before(e)}function $e(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Ie(t,e){return X(t,e)}function je(t,e){k(),e.intro=e.intro??!1;const r=e.target,i=c,s=f;try{for(var n=C(r);n&&(n.nodeType!==B||n.data!==ye);)n=Ee(n);if(!n)throw x;A(!0),N(n);const a=X(t,{...e,anchor:n});return A(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),e.recover===!1&&me(),k(),Te(r),A(!1),Ie(t,e)}finally{A(i),N(s)}}const E=new Map;function X(t,{target:e,anchor:r,props:i={},events:s,context:n,intro:a=!0}){k();var h=new Set,u=d=>{for(var o=0;o<d.length;o++){var l=d[o];if(!h.has(l)){h.add(l);var y=Ce(l);e.addEventListener(l,b,{passive:y});var T=E.get(l);T===void 0?(document.addEventListener(l,b,{passive:y}),E.set(l,1)):E.set(l,T+1)}}};u(be(ke)),Y.add(u);var g=void 0,D=we(()=>{var d=r??e.appendChild(w());return Le(d,{pending:()=>{}},o=>{if(n){Ne({});var l=j;l.c=n}if(s&&(i.$$events=s),c&&_(o,null),g=t(o,i)||{},c&&(v.nodes.end=f,f===null||f.nodeType!==B||f.data!==Re))throw Se(),x;n&&Ae()}),()=>{for(var o of h){e.removeEventListener(o,b);var l=E.get(o);--l===0?(document.removeEventListener(o,b),E.delete(o)):E.set(o,l)}Y.delete(u),d!==r&&d.parentNode?.removeChild(d)}});return P.set(g,D),g}let P=new WeakMap;function Ge(t,e){const r=P.get(t);return r?(P.delete(t),r(e)):Promise.resolve()}const Be="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Be);export{Ue as a,qe as c,Ve as e,We as f,je as h,Ie as m,$e as s,Ye as t,Ge as u};