Files
campaign-manager/web/build/_app/immutable/chunks/Db9w--lA.js

3 lines
7.5 KiB
JavaScript

var Fe=Object.defineProperty;var le=r=>{throw TypeError(r)};var ke=(r,e,t)=>e in r?Fe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var q=(r,e,t)=>ke(r,typeof e!="symbol"?e+"":e,t),re=(r,e,t)=>e.has(r)||le("Cannot "+t);var s=(r,e,t)=>(re(r,e,"read from private field"),t?t.call(r):e.get(r)),d=(r,e,t)=>e.has(r)?le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),n=(r,e,t,i)=>(re(r,e,"write to private field"),i?i.call(r,t):e.set(r,t),t),p=(r,e,t)=>(re(r,e,"access private method"),t);import{L as Ye,g as be,M as Ie,N as Ee,j as Me,O as de,P as J,E as Y,D as I,z as P,Q as ce,S as Ce,U as k,y as Te,V as se,W as _e,X as He,Y as ue,Z as Pe,_ as Ve,$ as Be,a0 as Z,a1 as G,a2 as pe,a3 as Le,a4 as $e,a5 as we,h as Se,a6 as je,a7 as ie,H as K,v as qe,a8 as xe,a9 as x,aa as We,F as ze,ab as Ue,ac as ge,ad as Je,ae as Qe,af as Xe,d as Ze,ag as ae,A as Ge,ah as Re,ai as Ke,aj as et,ak as ne,al as W,am as tt,an as rt,ao as st,ap as it,p as at,aq as nt,ar as ht,a as ft}from"./CUCwB180.js";import{b as ot}from"./pTMRHjpX.js";function lt(r){let e=0,t=Ee(0),i;return()=>{Ye()&&(be(t),Ie(()=>(e===0&&(i=Me(()=>r(()=>de(t)))),e+=1,()=>{J(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(t))})})))}}var dt=Qe|Xe;function ct(r,e,t,i){new _t(r,e,t,i)}var b,j,w,M,g,S,E,T,R,C,A,V,B,L,D,ee,f,De,Ne,Ae,he,Q,X,fe;class _t{constructor(e,t,i,o){d(this,f);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");d(this,b);d(this,j,I?Y:null);d(this,w);d(this,M);d(this,g);d(this,S,null);d(this,E,null);d(this,T,null);d(this,R,null);d(this,C,0);d(this,A,0);d(this,V,!1);d(this,B,new Set);d(this,L,new Set);d(this,D,null);d(this,ee,lt(()=>(n(this,D,Ee(s(this,C))),()=>{n(this,D,null)})));var a;n(this,b,e),n(this,w,t),n(this,M,h=>{var _=P;_.b=this,_.f|=ce,i(h)}),this.parent=P.b,this.transform_error=o??((a=this.parent)==null?void 0:a.transform_error)??(h=>h),n(this,g,Ce(()=>{if(I){const h=s(this,j);ze();const _=h.data===Ue;if(h.data.startsWith(ge)){const c=JSON.parse(h.data.slice(ge.length));p(this,f,Ne).call(this,c)}else _?p(this,f,Ae).call(this):p(this,f,De).call(this)}else p(this,f,he).call(this)},dt)),I&&n(this,b,Y)}defer_effect(e){Be(e,s(this,B),s(this,L))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(e,t){p(this,f,fe).call(this,e,t),n(this,C,s(this,C)+e),!(!s(this,D)||s(this,V))&&(n(this,V,!0),J(()=>{n(this,V,!1),s(this,D)&&je(s(this,D),s(this,C))}))}get_effect_pending(){return s(this,ee).call(this),be(s(this,D))}error(e){var t=s(this,w).onerror;let i=s(this,w).failed;if(!t&&!i)throw e;s(this,S)&&(ie(s(this,S)),n(this,S,null)),s(this,E)&&(ie(s(this,E)),n(this,E,null)),s(this,T)&&(ie(s(this,T)),n(this,T,null)),I&&(K(s(this,j)),qe(),K(xe()));var o=!1,a=!1;const h=()=>{if(o){Je();return}o=!0,a&&We(),s(this,T)!==null&&se(s(this,T),()=>{n(this,T,null)}),p(this,f,X).call(this,()=>{p(this,f,he).call(this)})},_=l=>{try{a=!0,t==null||t(l,h),a=!1}catch(c){x(c,s(this,g)&&s(this,g).parent)}i&&n(this,T,p(this,f,X).call(this,()=>{try{return k(()=>{var c=P;c.b=this,c.f|=ce,i(s(this,b),()=>l,()=>h)})}catch(c){return x(c,s(this,g).parent),null}}))};J(()=>{var l;try{l=this.transform_error(e)}catch(c){x(c,s(this,g)&&s(this,g).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(_,c=>x(c,s(this,g)&&s(this,g).parent)):_(l)})}}b=new WeakMap,j=new WeakMap,w=new WeakMap,M=new WeakMap,g=new WeakMap,S=new WeakMap,E=new WeakMap,T=new WeakMap,R=new WeakMap,C=new WeakMap,A=new WeakMap,V=new WeakMap,B=new WeakMap,L=new WeakMap,D=new WeakMap,ee=new WeakMap,f=new WeakSet,De=function(){try{n(this,S,k(()=>s(this,M).call(this,s(this,b))))}catch(e){this.error(e)}},Ne=function(e){const t=s(this,w).failed;t&&n(this,T,k(()=>{t(s(this,b),()=>e,()=>()=>{})}))},Ae=function(){const e=s(this,w).pending;if(e){this.is_pending=!0,n(this,E,k(()=>e(s(this,b))));var t=_e;J(()=>{var i=n(this,R,document.createDocumentFragment()),o=Te();i.append(o),n(this,S,p(this,f,X).call(this,()=>k(()=>s(this,M).call(this,o)))),s(this,A)===0&&(s(this,b).before(i),n(this,R,null),se(s(this,E),()=>{n(this,E,null)}),p(this,f,Q).call(this,t))})}},he=function(){var e=_e;try{if(this.is_pending=this.has_pending_snippet(),n(this,A,0),n(this,C,0),n(this,S,k(()=>{s(this,M).call(this,s(this,b))})),s(this,A)>0){var t=n(this,R,document.createDocumentFragment());He(s(this,S),t);const i=s(this,w).pending;n(this,E,k(()=>i(s(this,b))))}else p(this,f,Q).call(this,e)}catch(i){this.error(i)}},Q=function(e){this.is_pending=!1;for(const t of s(this,B))ue(t,Pe),e.schedule(t);for(const t of s(this,L))ue(t,Ve),e.schedule(t);s(this,B).clear(),s(this,L).clear()},X=function(e){var t=P,i=we,o=Se;Z(s(this,g)),G(s(this,g)),pe(s(this,g).ctx);try{return Le.ensure(),e()}catch(a){return $e(a),null}finally{Z(t),G(i),pe(o)}},fe=function(e,t){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,f,fe).call(i,e,t);return}n(this,A,s(this,A)+e),s(this,A)===0&&(p(this,f,Q).call(this,t),s(this,E)&&se(s(this,E),()=>{n(this,E,null)}),s(this,R)&&(s(this,b).before(s(this,R)),n(this,R,null)))};const ut=["touchstart","touchmove"];function pt(r){return ut.includes(r)}const z=Symbol("events"),gt=new Set,ve=new Set;let ye=null;function me(r){var O,m;var e=this,t=e.ownerDocument,i=r.type,o=((O=r.composedPath)==null?void 0:O.call(r))||[],a=o[0]||r.target;ye=r;var h=0,_=ye===r&&r[z];if(_){var l=o.indexOf(_);if(l!==-1&&(e===document||e===window)){r[z]=e;return}var c=o.indexOf(e);if(c===-1)return;l<=c&&(h=l)}if(a=o[h]||r.target,a!==e){Ze(r,"currentTarget",{configurable:!0,get(){return a||t}});var H=we,$=P;G(null),Z(null);try{for(var N,v=[];a!==null;){var u=a.assignedSlot||a.parentNode||a.host||null;try{var y=(m=a[z])==null?void 0:m[i];y!=null&&(!a.disabled||r.target===a)&&y.call(a,r)}catch(F){N?v.push(F):N=F}if(r.cancelBubble||u===e||u===null)break;a=u}if(N){for(let F of v)queueMicrotask(()=>{throw F});throw N}}finally{r[z]=e,delete r.currentTarget,G(H),Z($)}}}function Et(r,e){var t=e==null?"":typeof e=="object"?`${e}`:e;t!==(r.__t??(r.__t=r.nodeValue))&&(r.__t=t,r.nodeValue=`${t}`)}function vt(r,e){return Oe(r,e)}function Tt(r,e){ae(),e.intro=e.intro??!1;const t=e.target,i=I,o=Y;try{for(var a=Ge(t);a&&(a.nodeType!==Re||a.data!==Ke);)a=et(a);if(!a)throw ne;W(!0),K(a);const h=Oe(r,{...e,anchor:a});return W(!1),h}catch(h){if(h instanceof Error&&h.message.split(`
`).some(_=>_.startsWith("https://svelte.dev/e/")))throw h;return h!==ne&&console.warn("Failed to hydrate: ",h),e.recover===!1&&tt(),ae(),rt(t),W(!1),vt(r,e)}finally{W(i),K(o)}}const U=new Map;function Oe(r,{target:e,anchor:t,props:i={},events:o,context:a,intro:h=!0,transformError:_}){ae();var l=void 0,c=st(()=>{var H=t??e.appendChild(Te());ct(H,{pending:()=>{}},v=>{at({});var u=Se;if(a&&(u.c=a),o&&(i.$$events=o),I&&ot(v,null),l=r(v,i)||{},I&&(P.nodes.end=Y,Y===null||Y.nodeType!==Re||Y.data!==nt))throw ht(),ne;ft()},_);var $=new Set,N=v=>{for(var u=0;u<v.length;u++){var y=v[u];if(!$.has(y)){$.add(y);var O=pt(y);for(const te of[e,document]){var m=U.get(te);m===void 0&&(m=new Map,U.set(te,m));var F=m.get(y);F===void 0?(te.addEventListener(y,me,{passive:O}),m.set(y,1)):m.set(y,F+1)}}}};return N(it(gt)),ve.add(N),()=>{var O;for(var v of $)for(const m of[e,document]){var u=U.get(m),y=u.get(v);--y==0?(m.removeEventListener(v,me),u.delete(v),u.size===0&&U.delete(m)):u.set(v,y)}ve.delete(N),H!==t&&((O=H.parentNode)==null||O.removeChild(H))}});return oe.set(l,c),l}let oe=new WeakMap;function wt(r,e){const t=oe.get(r);return t?(oe.delete(r),t(e)):Promise.resolve()}export{Tt as h,vt as m,Et as s,wt as u};