UNPKG

vag_tools

Version:

api and cli for managing sub-git-repositories

2 lines (1 loc) 3.93 kB
import{w as b,x as L,y as H,z as w,A as q,B as F,C as U,D as Y,E as R,F as x,T as G,G as $,q as p,H as f,v as V,I as N,J as A,K as O,L as j,M as z,N as M,O as T,P as J,Q as K,R as Q,S as X,U as Z,V as ee,W as re,p as te,c as ae,o as ne}from"./BE7tr7jY.js";const ie=["touchstart","touchmove"];function se(e){return ie.includes(e)}function oe(e){var r=H,t=w;b(null),L(null);try{return e()}finally{b(r),L(t)}}const ue=new Set,P=new Set;function fe(e,r,t,o={}){function n(a){if(o.capture||g.call(r,a),!a.cancelBubble)return oe(()=>t==null?void 0:t.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?F(()=>{r.addEventListener(e,n,o)}):r.addEventListener(e,n,o),n}function ve(e,r,t,o,n){var a={capture:o,passive:n},i=fe(e,r,t,a);(r===document.body||r===window||r===document||r instanceof HTMLMediaElement)&&q(()=>{r.removeEventListener(e,i,a)})}function g(e){var I;var r=this,t=r.ownerDocument,o=e.type,n=((I=e.composedPath)==null?void 0:I.call(e))||[],a=n[0]||e.target,i=0,_=e.__root;if(_){var l=n.indexOf(_);if(l!==-1&&(r===document||r===window)){e.__root=r;return}var y=n.indexOf(r);if(y===-1)return;l<=y&&(i=l)}if(a=n[i]||e.target,a!==r){U(e,"currentTarget",{configurable:!0,get(){return a||t}});var S=H,c=w;b(null),L(null);try{for(var s,u=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var h=a["__"+o];if(h!=null&&(!a.disabled||e.target===a))if(Y(h)){var[k,...B]=h;k.apply(a,[e,...B])}else h.call(a,e)}catch(E){s?u.push(E):s=E}if(e.cancelBubble||d===r||d===null)break;a=d}if(s){for(let E of u)queueMicrotask(()=>{throw E});throw s}}finally{e.__root=r,delete e.currentTarget,b(S),L(c)}}}function ce(e){var r=document.createElement("template");return r.innerHTML=e.replaceAll("<!>","<!---->"),r.content}function v(e,r){var t=w;t.nodes_start===null&&(t.nodes_start=e,t.nodes_end=r)}function he(e,r){var t=(r&G)!==0,o=(r&$)!==0,n,a=!e.startsWith("<!>");return()=>{if(p)return v(f,null),f;n===void 0&&(n=ce(a?e:"<!>"+e),t||(n=R(n)));var i=o||x?document.importNode(n,!0):n.cloneNode(!0);if(t){var _=R(i),l=i.lastChild;v(_,l)}else v(i,i);return i}}function pe(e=""){if(!p){var r=N(e+"");return v(r,r),r}var t=f;return t.nodeType!==3&&(t.before(t=N()),A(t)),v(t,t),t}function ye(){if(p)return v(f,null),f;var e=document.createDocumentFragment(),r=document.createComment(""),t=N();return e.append(r,t),v(r,t),e}function me(e,r){if(p){w.nodes_end=f,V();return}e!==null&&e.before(r)}function ge(e,r){var t=r==null?"":typeof r=="object"?r+"":r;t!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=t,e.nodeValue=t+"")}function le(e,r){return W(e,r)}function we(e,r){O(),r.intro=r.intro??!1;const t=r.target,o=p,n=f;try{for(var a=R(t);a&&(a.nodeType!==8||a.data!==j);)a=z(a);if(!a)throw M;T(!0),A(a),V();const i=W(e,{...r,anchor:a});if(f===null||f.nodeType!==8||f.data!==J)throw K(),M;return T(!1),i}catch(i){if(i===M)return r.recover===!1&&Q(),O(),X(t),T(!1),le(e,r);throw i}finally{T(o),A(n)}}const m=new Map;function W(e,{target:r,anchor:t,props:o={},events:n,context:a,intro:i=!0}){O();var _=new Set,l=c=>{for(var s=0;s<c.length;s++){var u=c[s];if(!_.has(u)){_.add(u);var d=se(u);r.addEventListener(u,g,{passive:d});var h=m.get(u);h===void 0?(document.addEventListener(u,g,{passive:d}),m.set(u,1)):m.set(u,h+1)}}};l(Z(ue)),P.add(l);var y=void 0,S=ee(()=>{var c=t??r.appendChild(N());return re(()=>{if(a){te({});var s=ae;s.c=a}n&&(o.$$events=n),p&&v(c,null),y=e(c,o)||{},p&&(w.nodes_end=f),a&&ne()}),()=>{var d;for(var s of _){r.removeEventListener(s,g);var u=m.get(s);--u===0?(document.removeEventListener(s,g),m.delete(s)):m.set(s,u)}P.delete(l),c!==t&&((d=c.parentNode)==null||d.removeChild(c))}});return D.set(y,S),y}let D=new WeakMap;function Ee(e,r){const t=D.get(e);return t?(D.delete(e),t(r)):Promise.resolve()}const de="5";var C;typeof window<"u"&&((C=window.__svelte??(window.__svelte={})).v??(C.v=new Set)).add(de);export{me as a,ye as c,ve as e,he as f,we as h,le as m,ge as s,pe as t,Ee as u};