PageSourceSearch

https://gg.givingcompass.org/_nuxt/CzuCJjyz.js

js givingcompass.org collected 2026-09-24 09:17:11 UTC 6,607 bytes, 1 lines download raw bytes

1import{e as t,r as e,m as o,t as s,c as n,i,a as c,b as r,d as a,g as h,o as f,w as u,n as l,f as p,h as d,j as _}from"./nX7w3--X.js";function k(t,e={},o){for(const s in t){const n=t[s],i=o?`${o}:${s}`:s;"object"==typeof n&&null!==n?k(n,e,i):"function"==typeof n&&(e[i]=n)}return e}const b={run:t=>t()},y=void 0!==console.createTask?console.createTask:()=>b;function v(t,e){const o=e.shift(),s=y(o);return t.reduce(((t,o)=>t.then((()=>s.run((()=>o(...e)))))),Promise.resolve())}function m(t,e){const o=e.shift(),s=y(o);return Promise.all(t.map((t=>s.run((()=>t(...e))))))}function g(t,e){for(const o of[...t])o(e)}class H{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,e,o={}){if(!t||"function"!=typeof e)return()=>{};const s=t;let n;for(;this._deprecatedHooks[t];)n=this._deprecatedHooks[t],t=n.to;if(n&&!o.allowDeprecated){let t=n.message;t||(t=`${s} hook has been deprecated`+(n.to?`, please use ${n.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(t)||(console.warn(t),this._deprecatedMessages.add(t))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let o,s=(...t)=>("function"==typeof o&&o(),o=void 0,s=void 0,e(...t));return o=this.hook(t,s),o}removeHook(t,e){if(this._hooks[t]){const o=this._hooks[t].indexOf(e);-1!==o&&this._hooks[t].splice(o,1),0===this._hooks[t].length&&delete this._hooks[t]}}deprecateHook(t,e){this._deprecatedHooks[t]="string"==typeof e?{to:e}:e;const o=this._hooks[t]||[];delete this._hooks[t];for(const s of o)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=k(t),o=Object.keys(e).map((t=>this.hook(t,e[t])));return()=>{for(const t of o.splice(0,o.length))t()}}removeHooks(t){const e=k(t);for(const o in e)this.removeHook(o,e[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...e){return e.unshift(t),this.callHookWith(v,t,...e)}callHookParallel(t,...e){return e.unshift(t),this.callHookWith(m,t,...e)}callHookWith(t,e,...o){const s=this._before||this._after?{name:e,args:o,context:{}}:void 0;this._before&&g(this._before,s);const n=t(e in this._hooks?[...this._hooks[e]]:[],o);return n instanceof Promise?n.finally((()=>{this._after&&s&&g(this._after,s)})):(this._after&&s&&g(this._after,s),n)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(void 0!==this._before){const e=this._before.indexOf(t);-1!==e&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(void 0!==this._after){const e=this._after.indexOf(t);-1!==e&&this._after.splice(e,1)}}}}function O(){return new H}let j;const $=t=>j=t,P=Symbol();function w(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var S,E;function M(){const s=t(!0),n=s.run((()=>e({})));let i=[],c=[];const r=o({install(t){$(r),r._a=t,t.provide(P,r),t.config.globalProperties.$pinia=r,c.forEach((t=>i.push(t))),c=[]},use(t){return this._a?i.push(t):c.push(t),this},_p:i,_a:null,_e:s,_s:new Map,state:n});return r}(E=S||(S={})).direct="direct",E.patchObject="patch object",E.patchFunction="patch function";const x=()=>{};function W(t,e,o,s=x){t.push(e);const n=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),s())};return!o&&h()&&f(n),n}function A(t,...e){t.slice().forEach((t=>{t(...e)}))}const I=t=>t(),F=Symbol(),T=Symbol();function C(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,o)=>t.set(o,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const s=e[o],n=t[o];w(n)&&w(s)&&t.hasOwnProperty(o)&&!i(s)&&!c(s)?t[o]=C(n,s):t[o]=s}return t}const D=Symbol(),{assign:J}=Object;function N(o,n,r={},h,f,p){let d;const _=J({actions:{}},r),k={deep:!0};let b,y,v,m=[],g=[];const H=h.state.value[o];let O;function j(t){let e;b=y=!1,"function"==typeof t?(t(h.state.value[o]),e={type:S.patchFunction,storeId:o,events:v}):(C(h.state.value[o],t),e={type:S.patchObject,payload:t,storeId:o,events:v});const s=O=Symbol();l().then((()=>{O===s&&(b=!0)})),y=!0,A(m,e,h.state.value[o])}p||H||(h.state.value[o]={}),e({});const P=p?function(){const{state:t}=r,e=t?t():{};this.$patch((t=>{J(t,e)}))}:x,E=(t,e="")=>{if(F in t)return t[T]=e,t;const s=function(){$(h);const e=Array.from(arguments),n=[],i=[];let c;A(g,{args:e,name:s[T],store:N,after:function(t){n.push(t)},onError:function(t){i.push(t)}});try{c=t.apply(this&&this.$id===o?this:N,e)}catch(r){throw A(i,r),r}return c instanceof Promise?c.then((t=>(A(n,t),t))).catch((t=>(A(i,t),Promise.reject(t)))):(A(n,c),c)};return s[F]=!0,s[T]=e,s},M={_p:h,$id:o,$onAction:W.bind(null,g),$patch:j,$reset:P,$subscribe(t,e={}){const s=W(m,t,e.detached,(()=>n())),n=d.run((()=>u((()=>h.state.value[o]),(s=>
1{("sync"===e.flush?y:b)&&t({storeId:o,type:S.direct,events:v},s)}),J({},k,e))));return s},$dispose:function(){d.stop(),m=[],g=[],h._s.delete(o)}},N=a(M);h._s.set(o,N);const q=(h._a&&h._a.runWithContext||I)((()=>h._e.run((()=>(d=t()).run((()=>n({action:E})))))));for(const t in q){const e=q[t];if(i(e)&&(!i(B=e)||!B.effect)||c(e))p||(!H||w(z=e)&&Object.prototype.hasOwnProperty.call(z,D)||(i(e)?e.value=H[t]:C(e,H[t])),h.state.value[o][t]=e);else if("function"==typeof e){const o=E(e,t);q[t]=o,_.actions[t]=e}}var z,B;return J(N,q),J(s(N),q),Object.defineProperty(N,"$state",{get:()=>h.state.value[o],set:t=>{j((e=>{J(e,t)}))}}),h._p.forEach((t=>{J(N,d.run((()=>t({store:N,app:h._a,pinia:h,options:_}))))})),H&&p&&r.hydrate&&r.hydrate(N.$state,H),b=!0,y=!0,N}function q(t,e,s){let i;const c="function"==typeof e;function r(s,r){const a=_();return(s=s||(a?d(P,null):null))&&$(s),(s=j)._s.has(t)||(c?N(t,e,i,s):function(t,e,s){const{state:i,actions:c,getters:r}=e,a=s.state.value[t];let h;h=N(t,(function(){a||(s.state.value[t]=i?i():{});const e=p(s.state.value[t]);return J(e,c,Object.keys(r||{}).reduce(((e,i)=>(e[i]=o(n((()=>{$(s);const e=s._s.get(t);return r[i].call(e,e)}))),e)),{}))}),e,s,0,!0)}(t,i,s)),s._s.get(t)}return i=c?s:e,r.$id=t,r}function z(t){const e=s(t),o={};for(const s in e){const a=e[s];a.effect?o[s]=n({get:()=>t[s],set(e){t[s]=e}}):(i(a)||c(a))&&(o[s]=r(t,s))}return o}export{M as a,z as b,O as c,q as d,$ as s};

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.