PageSourceSearch

https://www.theglobeandmail.com/files/edt-uploads/interactive/components/gi-callout-form/gi-callout-form.js

js theglobeandmail.com collected 2026-10-01 07:14:33 UTC 49,696 bytes, 24 lines download raw bytes

1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const bn=!1;var Jt=Array.isArray,xr=Array.prototype.indexOf,Er=Array.from,$t=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,kr=Object.prototype,Cr=Array.prototype,Qt=Object.getPrototypeOf,wn=Object.isExtensible;function Tr(e){return typeof e=="function"}const et=()=>{};function Sr(e){return e()}function Ut(e){for(var t=0;t<e.length;t++)e[t]()}function jr(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const G=2,Xt=4,xt=8,Ve=16,de=32,We=64,On=128,V=256,mt=512,N=1024,W=2048,Ie=4096,ye=8192,Ge=16384,Et=32768,kt=65536,gn=1<<17,Ar=1<<18,en=1<<19,tn=1<<20,Vt=1<<21,nn=1<<22,Te=1<<23,He=Symbol("$state"),rn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Ir(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Bn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Dr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Nr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Or(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Rr=4,qr=1,Hr=2,M=Symbol(),$r="http://www.w3.org/1999/xhtml";function Rn(e){return e===this.v}function Ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qn(e){return!Ur(e,this.v)}let ft=!1,Vr=!1;function Wr(){ft=!0}let S=null;function ht(e){S=e}function sn(e,t=!1,n){S={p:S,c:null,e:null,s:e,x:null,l:ft&&!t?{s:null,u:null,$:[]}:null}}function on(e){var t=S,n=t.e;if(n!==null){t.e=null;for(var r of n)Jn(r)}return S=t.p,{}}function Ye(){return!ft||S!==null&&S.l===null}const Gr=new WeakMap;function Yr(e){var t=w;if(t===null)return y.f|=Te,e;if((t.f&Et)===0){if((t.f&On)===0)throw!t.parent&&e instanceof Error&&Hn(e),e;t.b.error(e)}else an(e,t)}function an(e,t){for(;t!==null;){if((t.f&On)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e instanceof Error&&Hn(e),e}function Hn(e){const t=Gr.get(e);t&&($t(e,"message",{value:t.message}),$t(e,"stack",{value:t.stack}))}let _t=[];function Zr(){var e=_t;_t=[],Ut(e)}function ln(e){_t.length===0&&queueMicrotask(Zr),_t.push(e)}function Kr(){for(var e=w.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&Ir(),e}function Ct(e){var t=G|W,n=y!==null&&(y.f&G)!==0?y:null;return w===null||n!==null&&(n.f&V)!==0?t|=V:w.f|=en,{ctx:S,deps:null,effects:null,equals:Rn,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??w,ac:null}}function zr(e,t){let n=w;n===null&&Dr();var r=n.b,s=void 0,i=fn(M),o=null,u=!y;return di(()=>{try{var a=e()}catch(f){a=Promise.reject(f)}var l=()=>a;s=o?.then(l,l)??Promise.resolve(a),o=s;var d=F,v=r.pending;u&&(r.update_pending_count(1),v||d.increment());const c=(f,m=void 0)=>{o=null,v||d.activate(),m?m!==rn&&(i.f|=Te,Gt(i,m)):((i.f&Te)!==0&&(i.f^=Te),Gt(i,f)),u&&(r.update_pending_count(-1),v||d.decrement()),Vn()};if(s.then(c,f=>c(null,f||"unknown")),d)return()=>{queueMicrotask(()=>d.neuter())}}),new Promise(a=>{function l(d){function v(){d===s?a(i):l(s)}d.then(v,v)}l(s)})}function Jr(e){const t=Ct(e);return or(t),t}function Qr(e){const t=Ct(e);return t.equals=qn,t}function $n(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ae(t[n])}}function Xr(e){for(var t=e.parent;t!==null;){if((t.f&G)===0)return t;t=t.parent}return null}function un(e){var t,n=w;xe(Xr(e));try{$n(e),t=ur(e)}finally{xe(n)}return t}function Un(e){var t=un(e);
1if(e.equals(t)||(e.v=t,e.wv=ar()),!Ze)if(Ue!==null)Ue.set(e,e.v);else{var n=(we||(e.f&V)!==0)&&e.deps!==null?Ie:N;L(e,n)}}function ei(e,t,n){const r=Ye()?Ct:Qr;if(t.length===0){n(e.map(r));return}var s=F,i=w,o=ti(),u=Kr();Promise.all(t.map(a=>zr(a))).then(a=>{s?.activate(),o();try{n([...e.map(r),...a])}catch(l){(i.f&Ge)===0&&an(l,i)}s?.deactivate(),Vn()}).catch(a=>{u.error(a)})}function ti(){var e=w,t=y,n=S;return function(){xe(e),ne(t),ht(n)}}function Vn(){xe(null),ne(null),ht(null)}const pt=new Set;let F=null,Ue=null;let rt=[],bt=null,Wt=!1;class Tt{#l=new Map;#s=new Map;#o=new Set;#t=0;#u=null;#f=!1;#r=[];#a=[];#n=[];#e=[];#i=[];skipped_effects=new Set;#d(t){rt=[];var n=null;if(pt.size>1){n=new Map,Ue=new Map;for(const[i,o]of this.#l)n.set(i,{v:i.v,wv:i.wv}),i.v=o;for(const i of pt)if(i!==this)for(const[o,u]of i.#s)n.has(o)||(n.set(o,{v:o.v,wv:o.wv}),o.v=u)}for(const i of t)this.#v(i);if(this.#r.length===0&&this.#t===0){var r=this.#n,s=this.#e;this.#n=[],this.#e=[],this.#i=[],this.#c(),yn(r),yn(s),this.#u?.resolve()}else{for(const i of this.#n)L(i,N);for(const i of this.#e)L(i,N);for(const i of this.#i)L(i,N)}if(n){for(const[i,{v:o,wv:u}]of n)i.wv<=u&&(i.v=o);Ue=null}for(const i of this.#r)at(i);for(const i of this.#a)at(i);this.#r=[],this.#a=[]}#v(t){t.f^=N;for(var n=t.first;n!==null;){var r=n.f,s=(r&(de|We))!==0,i=s&&(r&N)!==0,o=i||(r&ye)!==0||this.skipped_effects.has(n);if(!o&&n.fn!==null){if(s)n.f^=N;else if((r&Xt)!==0)this.#e.push(n);else if(St(n))if((r&nn)!==0){var u=n.b?.pending?this.#a:this.#r;u.push(n)}else(n.f&Ve)!==0&&this.#i.push(n),at(n);var a=n.first;if(a!==null){n=a;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}capture(t,n){this.#s.has(t)||this.#s.set(t,n),this.#l.set(t,t.v)}activate(){F=this}deactivate(){F=null}neuter(){this.#f=!0}flush(){rt.length>0?this.flush_effects():this.#c(),F===this&&(this.#t===0&&pt.delete(this),F=null)}flush_effects(){var t=$e;Wt=!0;try{var n=0;for(En(!0);rt.length>0;)n++>1e3&&ni(),this.#d(rt),Se.clear()}finally{Wt=!1,En(t),bt=null}}#c(){if(!this.#f)for(const t of this.#o)t();this.#o.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const t of this.#n)L(t,W),ge(t);for(const t of this.#e)L(t,W),ge(t);for(const t of this.#i)L(t,W),ge(t);this.#n=[],this.#e=[],this.flush()}}add_callback(t){this.#o.add(t)}settled(){return(this.#u??=jr()).promise}static ensure(){if(F===null){const t=F=new Tt;pt.add(F),queueMicrotask(()=>{F===t&&t.flush()})}return F}}function ni(){try{Lr()}catch(e){if(bt!==null)an(e,bt);else throw e}}function yn(e){var t=e.length;if(t!==0){for(var n=0;n<t;n++){var r=e[n];if((r.f&(Ge|ye))===0&&St(r)){var s=gt;if(at(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?nr(r):r.fn=null),gt>s&&(r.f&tn)!==0)break}}for(;n<t;n+=1)ge(e[n])}}function ge(e){for(var t=bt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Wt&&t===w&&(n&Ve)!==0)return;if((n&(We|de))!==0){if((n&N)===0)return;t.f^=N}}rt.push(t)}const Se=new Map;function fn(e,t){var n={f:0,v:e,reactions:null,equals:Rn,rv:0,wv:0};return n}function P(e,t){const n=fn(e);return or(n),n}function ri(e,t=!1,n=!0){const r=fn(e);return t||(r.equals=qn),ft&&n&&S!==null&&S.l!==null&&(S.l.s??=[]).push(r),r}function ii(e,t){return k(e,De(()=>_(e))),t}function k(e,t,n=!1){y!==null&&(!te||(y.f&gn)!==0)&&Ye()&&(y.f&(G|Ve|nn|gn))!==0&&!ce?.includes(e)&&Br();let r=n?it(t):t;return Gt(e,r)}function Gt(e,t){if(!e.equals(t)){var n=e.v;Ze?Se.set(e,t):Se.set(e,n),e.v=t,Tt.ensure().capture(e,n),(e.f&G)!==0&&((e.f&W)!==0&&un(e),L(e,(e.f&V)===0?N:Ie)),e.wv=ar(),Wn(e,W),Ye()&&w!==null&&(w.f&N)!==0&&(w.f&(de|We))===0&&(K===null?_i([e]):K.push(e))}return t}function Rt(e){k(e,e.v+1)}function Wn(e,t){var n=e.reactions;if(n!==null)for(var r=Ye(),s=n.length,i=0;i<s;i++){var o=n[i],u=o.f;(u&W)===0&&(!r&&o===w||(L(o,t),(u&(N|V))!==0&&((u&G)!==0?Wn(o,Ie):ge(o))))}}function it(e){if(typeof e!="object"||e===null||He in e)return e;const t=Qt(e);if(t!==kr&&t!==Cr)return e;var n=new Map,r=Jt(e),s=P(0),i=je,o=u=>{if(je===i)return u();var a=y,l=je;ne(null),Cn(i);var d=u();return ne(a),Cn(l),d};return r&&n.set("length",P(e.length)),new Proxy(e,{defineProperty(u,a,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Pr();var d=n.get(a);return d===void 0?d=o(()=>{var v=P(l.value);return n.set(a,v),v}):k(d,l.value,!0),!0},deleteProperty(u,a){var l=n.get(a);if(l===void 0){if(a in u){const c=o(()=>P(M));n.set(a,c),Rt(s)}}
1else{if(r&&typeof a=="string"){var d=n.get("length"),v=Number(a);Number.isInteger(v)&&v<d.v&&k(d,v)}k(l,M),Rt(s)}return!0},get(u,a,l){if(a===He)return e;var d=n.get(a),v=a in u;if(d===void 0&&(!v||ot(u,a)?.writable)&&(d=o(()=>{var f=it(v?u[a]:M),m=P(f);return m}),n.set(a,d)),d!==void 0){var c=_(d);return c===M?void 0:c}return Reflect.get(u,a,l)},getOwnPropertyDescriptor(u,a){var l=Reflect.getOwnPropertyDescriptor(u,a);if(l&&"value"in l){var d=n.get(a);d&&(l.value=_(d))}else if(l===void 0){var v=n.get(a),c=v?.v;if(v!==void 0&&c!==M)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,a){if(a===He)return!0;var l=n.get(a),d=l!==void 0&&l.v!==M||Reflect.has(u,a);if(l!==void 0||w!==null&&(!d||ot(u,a)?.writable)){l===void 0&&(l=o(()=>{var c=d?it(u[a]):M,f=P(c);return f}),n.set(a,l));var v=_(l);if(v===M)return!1}return d},set(u,a,l,d){var v=n.get(a),c=a in u;if(r&&a==="length")for(var f=l;f<v.v;f+=1){var m=n.get(f+"");m!==void 0?k(m,M):f in u&&(m=o(()=>P(M)),n.set(f+"",m))}if(v===void 0)(!c||ot(u,a)?.writable)&&(v=o(()=>P(void 0)),k(v,it(l)),n.set(a,v));else{c=v.v!==M;var x=o(()=>it(l));k(v,x)}var I=Reflect.getOwnPropertyDescriptor(u,a);if(I?.set&&I.set.call(d,l),!c){if(r&&typeof a=="string"){var T=n.get("length"),E=Number(a);Number.isInteger(E)&&E>=T.v&&k(T,E+1)}Rt(s)}return!0},ownKeys(u){_(s);var a=Reflect.ownKeys(u).filter(v=>{var c=n.get(v);return c===void 0||c.v!==M});for(var[l,d]of n)d.v!==M&&!(l in u)&&a.push(l);return a},setPrototypeOf(){Or()}})}var xn,Gn,Yn,Zn;function si(){if(xn===void 0){xn=window,Gn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yn=ot(t,"firstChild").get,Zn=ot(t,"nextSibling").get,wn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wn(n)&&(n.__t=void 0)}}function Kn(e=""){return document.createTextNode(e)}function be(e){return Yn.call(e)}function cn(e){return Zn.call(e)}function h(e,t){return be(e)}function oi(e,t){{var n=be(e);return n instanceof Comment&&n.data===""?cn(n):n}}function p(e,t=1,n=!1){let r=e;for(;t--;)r=cn(r);return r}function ai(){return!1}function zn(e){w===null&&y===null&&Fr(),y!==null&&(y.f&V)!==0&&w===null&&Mr(),Ze&&Nr()}function li(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function re(e,t,n,r=!0){var s=w;s!==null&&(s.f&ye)!==0&&(e|=ye);var i={ctx:S,deps:null,nodes_start:null,nodes_end:null,f:e|W,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{at(i),i.f|=Et}catch(a){throw Ae(i),a}else t!==null&&ge(i);var o=n&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&en)===0;if(!o&&r&&(s!==null&&li(i,s),y!==null&&(y.f&G)!==0)){var u=y;(u.effects??=[]).push(i)}return i}function ui(e){const t=re(xt,null,!1);return L(t,N),t.teardown=e,t}function lt(e){zn();var t=w.f,n=!y&&(t&de)!==0&&(t&Et)===0;if(n){var r=S;(r.e??=[]).push(e)}else return Jn(e)}function Jn(e){return re(Xt|tn,e,!1)}function fi(e){return zn(),re(xt|tn,e,!0)}function ci(e){Tt.ensure();const t=re(We,e,!0);return(n={})=>new Promise(r=>{n.outro?rr(t,()=>{Ae(t),r(void 0)}):(Ae(t),r(void 0))})}function Qn(e){return re(Xt,e,!1)}function di(e){return re(nn|en,e,!0)}function dn(e,t=0){return re(xt|t,e,!0)}function wt(e,t=[],n=[]){ei(t,n,r=>{re(xt,()=>e(...r.map(_)),!0)})}function vi(e,t=0){var n=re(Ve|t,e,!0);return n}function Yt(e,t=!0){return re(de,e,!0,t)}function Xn(e){var t=e.teardown;
1if(t!==null){const n=Ze,r=y;kn(!0),ne(null);try{t.call(null)}finally{kn(n),ne(r)}}}function er(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){n.ac?.abort(rn);var r=n.next;(n.f&We)!==0?n.parent=null:Ae(n,t),n=r}}function pi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&de)===0&&Ae(t),t=n}}function Ae(e,t=!0){var n=!1;(t||(e.f&Ar)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(tr(e.nodes_start,e.nodes_end),n=!0),er(e,t&&!n),yt(e,0),L(e,Ge);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Xn(e);var s=e.parent;s!==null&&s.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function tr(e,t){for(;e!==null;){var n=e===t?null:cn(e);e.remove(),e=n}}function nr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function rr(e,t){var n=[];ir(e,n,!0),mi(n,()=>{Ae(e),t&&t()})}function mi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function ir(e,t,n){if((e.f&ye)===0){if(e.f^=ye,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&kt)!==0||(r.f&de)!==0;ir(r,t,i?n:!1),r=s}}}function hi(e){sr(e,!0)}function sr(e,t){if((e.f&ye)!==0){e.f^=ye,(e.f&N)===0&&(L(e,W),ge(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&kt)!==0||(n.f&de)!==0;sr(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let $e=!1;function En(e){$e=e}let Ze=!1;function kn(e){Ze=e}let y=null,te=!1;function ne(e){y=e}let w=null;function xe(e){w=e}let ce=null;function or(e){y!==null&&(ce===null?ce=[e]:ce.push(e))}let R=null,U=0,K=null;function _i(e){K=e}let gt=1,ut=0,je=ut;function Cn(e){je=e}let we=!1;function ar(){return++gt}function St(e){var t=e.f;if((t&W)!==0)return!0;if((t&Ie)!==0){var n=e.deps,r=(t&V)!==0;if(n!==null){var s,i,o=(t&mt)!==0,u=r&&w!==null&&!we,a=n.length;if((o||u)&&(w===null||(w.f&Ge)===0)){var l=e,d=l.parent;for(s=0;s<a;s++)i=n[s],(o||!i?.reactions?.includes(l))&&(i.reactions??=[]).push(l);o&&(l.f^=mt),u&&d!==null&&(d.f&V)===0&&(l.f^=V)}for(s=0;s<a;s++)if(i=n[s],St(i)&&Un(i),i.wv>e.wv)return!0}(!r||w!==null&&!we)&&L(e,N)}return!1}function lr(e,t,n=!0){var r=e.reactions;if(r!==null&&!ce?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&G)!==0?lr(i,t,!1):t===i&&(n?L(i,W):(i.f&N)!==0&&L(i,Ie),ge(i))}}function ur(e){var t=R,n=U,r=K,s=y,i=we,o=ce,u=S,a=te,l=je,d=e.f;R=null,U=0,K=null,we=(d&V)!==0&&(te||!$e||y===null),y=(d&(de|We))===0?e:null,ce=null,ht(e.ctx),te=!1,je=++ut,e.ac!==null&&(e.ac.abort(rn),e.ac=null);try{e.f|=Vt;var v=(0,e.fn)(),c=e.deps;if(R!==null){var f;if(yt(e,U),c!==null&&U>0)for(c.length=U+R.length,f=0;f<R.length;f++)c[U+f]=R[f];else e.deps=c=R;if(!we||(d&G)!==0&&e.reactions!==null)for(f=U;f<c.length;f++)(c[f].reactions??=[]).push(e)}else c!==null&&U<c.length&&(yt(e,U),c.length=U);if(Ye()&&K!==null&&!te&&c!==null&&(e.f&(G|Ie|W))===0)for(f=0;f<K.length;f++)lr(K[f],e);return s!==null&&s!==e&&(ut++,K!==null&&(r===null?r=K:r.push(...K))),(e.f&Te)!==0&&(e.f^=Te),v}catch(m){return Yr(m)}finally{e.f^=Vt,R=t,U=n,K=r,y=s,we=i,ce=o,ht(u),te=a,je=l}}function bi(e,t){let n=t.reactions;if(n!==null){var r=xr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&G)!==0&&(R===null||!R.includes(t))&&(L(t,Ie),(t.f&(V|mt))===0&&(t.f^=mt),$n(t),yt(t,0))}function yt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)bi(e,n[r])}function at(e){var t=e.f;if((t&Ge)===0){L(e,N);var n=w,r=$e;w=e,$e=!0;try{(t&Ve)!==0?pi(e):er(e),Xn(e);var s=ur(e);e.teardown=typeof s=="function"?s:null,e.wv=gt;var i;bn&&Vr&&(e.f&W)!==0&&e.deps}finally{$e=r,w=n}}}function _(e){var t=e.f,n=(t&G)!==0;if(y!==null&&!te){var r=w!==null&&(w.f&Ge)!==0;if(!r&&!ce?.includes(e)){var s=y.deps;if((y.f&Vt)!==0)e.rv<ut&&(e.rv=ut,R===null&&s!==null&&s[U]===e?U++:R===null?R=[e]:(!we||!R.includes(e))&&R.push(e));else{(y.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[y]:i.includes(y)||i.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var o=e,u=o.parent;u!==null&&(u.f&V)===0&&(o.f^=V)}if(Ze){if(Se.has(e))return Se.get(e);if(n){o=e;var a=o.v;return((o.f&N)!==0||fr(o))&&(a=un(o)),Se.set(o,a),a}}else if(n){if(o=e,Ue?.has(o))return Ue.get(o);St(o)&&Un(o)}if((e.f&Te)!==0)throw e.v;return e.v}function fr(e){if(e.v===M)return!0;
1if(e.deps===null)return!1;for(const t of e.deps)if(Se.has(t)||(t.f&G)!==0&&fr(t))return!0;return!1}function De(e){var t=te;try{return te=!0,e()}finally{te=t}}const wi=-7169;function L(e,t){e.f=e.f&wi|t}function gi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(He in e)Zt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&He in n&&Zt(n)}}}function Zt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Zt(e[r],t)}catch{}const n=Qt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Pn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const yi=["touchstart","touchmove"];function xi(e){return yi.includes(e)}let Tn=!1;function Ei(){Tn||(Tn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function jt(e){var t=y,n=w;ne(null),xe(null);try{return e()}finally{ne(t),xe(n)}}function cr(e,t,n,r=n){e.addEventListener(t,()=>jt(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Ei()}const ki=new Set,Sn=new Set;function Ci(e,t,n,r={}){function s(i){if(r.capture||st.call(t,i),!i.cancelBubble)return jt(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ln(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function le(e,t,n,r,s){var i={capture:r,passive:s},o=Ci(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ui(()=>{t.removeEventListener(e,o,i)})}function st(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target,o=0,u=e.__root;if(u){var a=s.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var l=s.indexOf(t);if(l===-1)return;a<=l&&(o=a)}if(i=s[o]||e.target,i!==t){$t(e,"currentTarget",{configurable:!0,get(){return i||n}});var d=y,v=w;ne(null),xe(null);try{for(var c,f=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i["__"+r];if(x!=null&&(!i.disabled||e.target===i))if(Jt(x)){var[I,...T]=x;I.apply(i,[e,...T])}else x.call(i,e)}catch(E){c?f.push(E):c=E}if(e.cancelBubble||m===t||m===null)break;i=m}if(c){for(let E of f)queueMicrotask(()=>{throw E});throw c}}finally{e.__root=t,delete e.currentTarget,ne(d),xe(v)}}}function dr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Kt(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ve(e,t){var n=(t&qr)!==0,r=(t&Hr)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=dr(i?e:"<!>"+e),n||(s=be(s)));var o=r||Gn?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=be(o),a=o.lastChild;Kt(u,a)}else Kt(o,o);return o}}function ue(e,t){e!==null&&e.before(t)}let zt=!0;function Re(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Ti(e,t){return Si(e,t)}const Be=new Map;function Si(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){si();var u=new Set,a=v=>{for(var c=0;c<v.length;c++){var f=v[c];if(!u.has(f)){u.add(f);var m=xi(f);t.addEventListener(f,st,{passive:m});var x=Be.get(f);x===void 0?(document.addEventListener(f,st,{passive:m}),Be.set(f,1)):Be.set(f,x+1)}}};a(Er(ki)),Sn.add(a);var l=void 0,d=ci(()=>{var v=n??t.appendChild(Kn());return Yt(()=>{if(i){sn({});var c=S;c.c=i}s&&(r.$$events=s),zt=o,l=e(v,r)||{},zt=!0,i&&on()}),()=>{for(var c of u){t.removeEventListener(c,st);var f=Be.get(c);--f===0?(document.removeEventListener(c,st),Be.delete(c)):Be.set(c,f)}Sn.delete(a),v!==n&&v.parentNode?.removeChild(v)}});return ji.set(l,d),l}let ji=new WeakMap;function qe(e,t,n=!1){var r=e,s=null,i=null,o=M,u=n?kt:0,a=!1;const l=(f,m=!0)=>{a=!0,c(m,f)};var d=null;function v(){d!==null&&(d.lastChild.remove(),r.before(d),d=null);var f=o?s:i,m=o?i:s;f&&hi(f),m&&rr(m,()=>{o?i=null:s=null})}const c=(f,m)=>{if(o!==(o=f)){var x=ai(),I=r;if(x&&(d=document.createDocumentFragment(),d.append(I=Kn())),o?s??=m&&Yt(()=>m(I)):i??=m&&Yt(()=>m(I)),x){var T=F,E=o?s:i,z=o?i:s;E&&T.skipped_effects.delete(E),z&&T.skipped_effects.add(z),T.add_callback(v)}else v()}};vi(()=>{a=!1,t(l),a||c(null,null)},u)}function jn(e,t,n=!1,r=!1,s=!1){var i=e,o="";wt(()=>{var u=w;if(o!==(o=t()??"")&&(u.nodes_start!==null&&(tr(u.nodes_start,u.nodes_end),u.nodes_start=u.nodes_end=null),o!=="")){var a=o+"";n?a=`<svg>${a}</svg>`:r&&(a=`<math>${a}</math>`);var l=dr(a);if((n||r)&&(l=be(l)),Kt(be(l),l.lastChild),n||r)for(;be(l);)i.before(be(l));else i.before(l)}})}
1function Ai(e,t,n){var r=e==null?"":""+e;return r=r?r+" "+t:t,r===""?null:r}function Ii(e,t){return e==null?null:String(e)}function Di(e,t,n,r,s,i){var o=e.__className;if(o!==n||o===void 0){var u=Ai(n,r);u==null?e.removeAttribute("class"):e.className=u,e.__className=n}return i}function Ni(e,t,n,r){var s=e.__style;if(s!==t){var i=Ii(t);i==null?e.removeAttribute("style"):e.style.cssText=i,e.__style=t}return r}const Mi=Symbol("is custom element"),Fi=Symbol("is html");function Li(e,t,n,r){var s=Pi(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Oi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Pi(e){return e.__attributes??={[Mi]:e.nodeName.includes("-"),[Fi]:e.namespaceURI===$r}}var An=new Map;function Oi(e){var t=An.get(e.nodeName);if(t)return t;An.set(e.nodeName,t=[]);for(var n,r=e,s=Element.prototype;s!==r;){n=Pn(r);for(var i in n)n[i].set&&t.push(i);r=Qt(r)}return t}const Bi=()=>performance.now(),fe={tick:e=>requestAnimationFrame(e),now:()=>Bi(),tasks:new Set};function vr(){const e=fe.now();fe.tasks.forEach(t=>{t.c(e)||(fe.tasks.delete(t),t.f())}),fe.tasks.size!==0&&fe.tick(vr)}function Ri(e){let t;return fe.tasks.size===0&&fe.tick(vr),{promise:new Promise(n=>{fe.tasks.add(t={c:e,f:n})}),abort(){fe.tasks.delete(t)}}}function In(e,t){jt(()=>{e.dispatchEvent(new CustomEvent(t))})}function qi(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function Dn(e){const t={},n=e.split(";");for(const r of n){const[s,i]=r.split(":");if(!s||i===void 0)break;const o=qi(s.trim());t[o]=i.trim()}return t}const Hi=e=>e;function $i(e,t,n,r){var s=(e&Rr)!==0,i="in",o,u=t.inert,a=t.style.overflow,l,d;function v(){return jt(()=>o??=n()(t,r?.()??{},{direction:i}))}var c={is_global:s,in(){t.inert=u,l?.abort(),In(t,"introstart"),l=pr(t,v(),d,1,()=>{In(t,"introend"),l?.abort(),l=o=void 0,t.style.overflow=a})},out(I){{I?.(),o=void 0;return}},stop:()=>{l?.abort()}},f=w;if((f.transitions??=[]).push(c),zt){var m=s;if(!m){for(var x=f.parent;x&&(x.f&kt)!==0;)for(;(x=x.parent)&&(x.f&Ve)===0;);m=!x||(x.f&Et)!==0}m&&Qn(()=>{De(()=>c.in())})}}function pr(e,t,n,r,s){if(Tr(t)){var i,o=!1;return ln(()=>{if(!o){var x=t({direction:"in"});i=pr(e,x,n,r,s)}}),{abort:()=>{o=!0,i?.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(!t?.duration)return s(),{abort:et,deactivate:et,reset:et,t:()=>r};const{delay:u=0,css:a,tick:l,easing:d=Hi}=t;var v=[];if(l&&l(0,1),a){var c=Dn(a(0,1));v.push(c,c)}var f=()=>1-r,m=e.animate(v,{duration:u,fill:"forwards"});return m.onfinish=()=>{m.cancel();var x=1-r,I=r-x,T=t.duration*Math.abs(I),E=[];if(T>0){var z=!1;if(a)for(var ie=Math.ceil(T/16.666666666666668),X=0;X<=ie;X+=1){var J=x+I*d(X/ie),ee=Dn(a(J,1-J));E.push(ee),z||=ee.overflow==="hidden"}z&&(e.style.overflow="hidden"),f=()=>{var $=m.currentTime;return x+I*d($/T)},l&&Ri(()=>{if(m.playState!=="running")return!1;var $=f();return l($,1-$),!0})}m=e.animate(E,{duration:T,fill:"forwards"}),m.onfinish=()=>{f=()=>r,l?.(r,1-r),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=et)},deactivate:()=>{s=et},reset:()=>{},t:()=>f()}}function tt(e,t,n=t){var r=Ye(),s=new WeakSet;cr(e,"input",i=>{var o=i?e.defaultValue:e.value;if(o=qt(e)?Ht(o):o,n(o),F!==null&&s.add(F),r&&o!==(o=t())){var u=e.selectionStart,a=e.selectionEnd;e.value=o??"",a!==null&&(e.selectionStart=u,e.selectionEnd=Math.min(a,e.value.length))}}),De(t)==null&&e.value&&(n(qt(e)?Ht(e.value):e.value),F!==null&&s.add(F)),dn(()=>{var i=t();e===document.activeElement&&s.has(F)||qt(e)&&i===Ht(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Nn(e,t,n=t){cr(e,"change",r=>{var s=r?e.defaultChecked:e.checked;n(s)}),De(t)==null&&n(e.checked),dn(()=>{var r=t();e.checked=!!r})}function qt(e){var t=e.type;return t==="number"||t==="range"}function Ht(e){return e===""?null:+e}function Mn(e,t){return e===t||e?.[He]===t}function nt(e={},t,n,r){return Qn(()=>{var s,i;return dn(()=>{s=i,i=[],De(()=>{e!==n(...i)&&(t(e,...i),s&&Mn(n(...s),e)&&t(null,...s))})}),()=>{ln(()=>{i&&Mn(n(...i),e)&&t(null,...i)})}}),e}function Ui(e){return function(...t){var n=t[0];return n.preventDefault(),e?.apply(this,t)}}function Vi(e=!1){const t=S,n=t.l.u;if(!n)return;let r=()=>gi(t.s);if(e){let s=0,i={};const o=Ct(()=>{let u=!1;const a=t.s;for(const l in a)a[l]!==i[l]&&(i[l]=a[l],u=!0);return u&&s++,s});r=()=>_(o)}n.b.length&&fi(()=>{Fn(t,r),Ut(n.b)}),lt(()=>{const s=De(()=>n.m.map(Sr));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&lt(()=>{Fn(t,r),Ut(n.a)})}function Fn(e,t){if(e.l.s)for(const n of e.l.s)_(n);t()}function Z(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),u;u=e[t],u===void 0&&r!==void 0&&(u=o());var a;return a=()=>{var l=e[t];return l===void 0?o():(i=!0,l)},a}function mr(e){S===null&&Bn(),ft&&S.l!==null?Yi(S).m.push(e):lt(()=>{const t=De(e);if(typeof t=="function")return t})}function Wi(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Gi(){const e=S;return e===null&&Bn(),(t,n,r)=>{const s=e.s.$$events?.[t];
1if(s){const i=Jt(s)?s.slice():[s],o=Wi(t,n,r);for(const u of i)u.call(e.x,o);return!o.defaultPrevented}return!0}}function Yi(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Zi="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Zi);function Ln(e){const t=e-1;return t*t*t+1}Wr();var Ki=ve('<div class="spinner svelte-ear4ni"></div>');function zi(e){var t=Ki();ue(e,t)}var Ji=ve('<div class="gi-form-item row svelte-bxnwmp"><input id="reader-submission-photo" name="photo" type="checkbox" required class="svelte-bxnwmp"/> <label for="reader-submission-photo" class="svelte-bxnwmp">I submitted a photo with <a href="https://form.jotform.com/251755164981061" target="_blank" class="svelte-bxnwmp">this form</a>.</label></div>'),Qi=ve('<p class="svelte-bxnwmp"><!></p> <form class="gi-form svelte-bxnwmp" novalidate=""><div class="gi-form-grp-1col svelte-bxnwmp"><div class="gi-form-item svelte-bxnwmp"><label for="reader-submission-description" class="svelte-bxnwmp">Description</label> <textarea id="reader-submission-description" name="description" type="text" required class="svelte-bxnwmp"></textarea></div></div> <div class="gi-form-grp-1col svelte-bxnwmp"><div class="col-2 svelte-bxnwmp"><div class="gi-form-item svelte-bxnwmp"><label for="reader-submission-firstname" class="svelte-bxnwmp">First Name</label> <input id="reader-submission-firstname" name="firstname" type="text" required class="svelte-bxnwmp"/></div> <div class="gi-form-item svelte-bxnwmp"><label for="reader-submission-lastname" class="svelte-bxnwmp">Last Name</label> <input id="reader-submission-lastname" name="lastname" type="text" required class="svelte-bxnwmp"/></div></div> <div class="gi-form-item svelte-bxnwmp"><label for="reader-submission-email" class="svelte-bxnwmp">Email</label> <input id="reader-submission-email" name="email" type="email" required class="svelte-bxnwmp"/></div> <div class="gi-form-item svelte-bxnwmp"><label for="reader-submission-location" class="svelte-bxnwmp">Location</label> <input id="reader-submission-location" name="location" type="text" required class="svelte-bxnwmp"/></div> <!></div> <div class="gi-small-print svelte-bxnwmp"><div class="col-2 svelte-bxnwmp"><p class="svelte-bxnwmp">The information from this form will only be used for journalistic purposes, though not all responses will necessarily be published. The Globe and Mail may contact you in regards to this submission, for instance, if someone would like to interview you for a story and/or to let you know how user submissions were used by The Globe and Mail.</p> <div class="svelte-bxnwmp"><input type="checkbox" name="consent" id="reader-submission-checkbox" required class="svelte-bxnwmp"/> <label for="reader-submission-checkbox" class="svelte-bxnwmp">By checking this box, I confirm the information I submitted is truthful and that artificial intelligence was not used to generate or enhance my submission, and I consent to its publication by The Globe and Mail.</label></div> <p class="gi-form-required-note svelte-bxnwmp">Note: All fields are required.</p></div> <div class="submit-container svelte-bxnwmp"><button type="submit" class="svelte-bxnwmp">Submit</button> <div style="display:none;" class="svelte-bxnwmp"><!></div></div></div></form>',1),Xi=ve('<div id="reader-submission-form"><div class="gi-form-icon svelte-bxnwmp"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-bxnwmp"><path d="M12 1.45776C5.37188 1.45776 0.0421877 5.82276 0.0421877 11.2078C0.0421877 13.5337 1.04297 15.66 2.71266 17.3343C2.12672 19.6954 0.16875 21.8001 0.145313 21.8235C0.0398439 21.929 0.0105471 22.0923 0.0750002 22.233C0.133547 22.3736 0.263485 22.4564 0.415828 22.4564C3.5213 22.4564 5.81114 20.9676 7.00645 20.0475C8.53598 20.6217 10.2418 20.9564 12.0408 20.9564C18.669 20.9564 23.9986 16.5909 23.9986 11.2485C23.9986 5.9062 18.6281 1.45776 12 1.45776ZM5.95781 12.7078C5.12578 12.7078 4.45781 12.0398 4.45781 11.25C4.45781 10.4601 5.12578 9.74995 5.95781 9.74995C6.78984 9.74995 7.45781 10.4179 7.45781 11.25C7.45781 12.082 6.82969 12.7078 5.95781 12.7078ZM12 12.7078C11.168 12.7078 10.5422 12.0398 10.5422 11.25C10.5422 10.4601 11.2102 9.74995 12 9.74995C12.7898 9.74995 13.4578 10.4179 13.4578 11.25C13.4578 12.082 12.8344 12.7078 12 12.7078ZM17.9578 12.7078C17.1258 12.7078 16.4578 12.0398 16.4578 11.25C16.4578 10.4601 17.1258 9.74995 17.9578 9.74995C18.7898 9.74995 19.4578 10.4179 19.4578 11.25C19.4578 12.082 18.8297 12.7078 17.9578 12.7078Z" class="svelte-bxnwmp"></path></svg></div> <h3 class="svelte-bxnwmp"> </h3> <p class="svelte-bxnwmp"><!></p> <button class="gi-form-toggle-button svelte-bxnwmp" type="button" aria-expanded="false" aria-controls="reader-submission-form"> </button> <!> <div class="gi-form-submit-message svelte-bxnwmp"><p style="display:none;" class="svelte-bxnwmp"></p></div></div>');function es(e,t){sn(t,!0);let n=Z(t,"title",3,"Reader submission form title"),r=Z(t,"description",3,"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptatem nulla veniam explicabo accusantium eaque esse ducimus commodi anim
1i debitis dolor minima unde similique fugit impedit cum sunt rem, temporibus quia!"),s=Z(t,"descriptionInner",3,""),i=Z(t,"optClose",3,""),o=Z(t,"optPhoto",3,!1),u=Z(t,"cta",3,"Share your details yo");Z(t,"icon",3,"");let a=Z(t,"theme",3,"sky"),l=Z(t,"calloutID",3,""),d=Z(t,"received",3,""),v=Z(t,"scriptID",3,""),c=Z(t,"folded",3,!0),f="#191919";const m=["https://arc-dev.theglobeandmail.com","https://www.theglobeandmail.com","https://sandbox.tgam.arcpublishing.com","https://secure.tgam.arcpublishing.com","https://int-assets.theglobeandmail.com"];mr(()=>{if((!c()||c()===!1)&&(k(Q,!0),X.style.display="none"),i()){const b=new Date(i());if(!isNaN(b.getTime())){const C=new Date,q=b.getTime()-C.getTime();q<0&&setTimeout(()=>{k(Q,!1),X.style.display="none",E&&(E.innerText="This form is now closed. Thank you for your interest.",E.style.display="block")},q)}}});function x(b,C=1,q=!0){const Y={burgundy:["#852e57","#E1D2DA"],salmon:["#d56161","#F1CACA"],purple:["#40016f","#C6B3D4"],sky:["#69a8b1","#D8EDF0"],olive:["#5b6a57","#CAD1C7"],grey:["#595959","#D1D1D1"],white:["#ffffff","#000000"],black:["#000000","#ffffff"]};if(Y[b.toLowerCase()]&&(b=Y[b.toLowerCase()][q?1:0]),b.toLowerCase()==="#000000"?f="#ffffff":f="#191919",C<1){const H=parseInt(b.slice(1,3),16),he=parseInt(b.slice(3,5),16),g=parseInt(b.slice(5,7),16);return`rgba(${H}, ${he}, ${g}, ${C})`}else return C===1&&b==="#ffffff"?"#000":C===1&&b==="#000000"?"#fff":C!=1&&b.toLowerCase()==="#000000"?"rgb(0, 0, 0 )":b}const I=Gi();let T,E,z,ie,X,J=P(""),ee=P(""),$=P(""),Ee=P(""),pe=P(""),Ne=P(!1),ke=P(!1),Q=P(!1),At=Jr(()=>_(J).trim()!==""&&_(ee).trim()!==""&&_($).trim()!==""&&_(Ee).trim()!==""&&_(pe).trim()!==""&&_(ke)===!0);lt(()=>{}),lt(()=>{});function It(b){Nt(b),I("submit",{readerSubmissionDescription:_(J),readerSubmissionFirstName:_(ee),readerSubmissionLastName:_($),readerSubmissionEmail:_(Ee),readerSubmissionLocation:_(pe),readerSubmissionPhoto:_(Ne),readerSubmissionCheckbox:_(ke),calloutID:l()})}function Dt(b){const C=b.currentTarget;k(Q,!0),C.setAttribute("aria-expanded",_(Q).toString()),_(Q)?(C.setAttribute("tabindex","-1"),C.style.position="absolute",C.style.left="-9999px"):(C.removeAttribute("tabindex"),C.style.position="",C.style.left="")}function ct(b,{slideDuration:C=400,fadeDuration:q=300,delay:Y=0}={}){const H=getComputedStyle(b),he=+H.opacity,g=b.offsetHeight,O=parseFloat(H.paddingTop),se=parseFloat(H.paddingBottom),j=parseFloat(H.marginTop),D=parseFloat(H.marginBottom),_e=C+q;return{duration:_e,delay:Y,css:oe=>{const B=oe*_e,Pe=Math.min(B/C,1),ae=Ln(Pe),Oe=Math.max(0,(B-C)/q);return`
2        overflow: hidden;
3        opacity: ${Ln(Oe)*he};
4        height: ${ae*g}px;
5        padding-top: ${ae*O}px;
6        padding-bottom: ${ae*se}px;
7        margin-top: ${ae*j}px;
8        margin-bottom: ${ae*D}px;
9      `}}}function Nt(b){if(!m.includes(window.location.origin)){console.warn("Form submission blocked: unauthorized origin");return}const q=`https://script.google.com/macros/s/${v().includes("script.google.com")?v().match(/\/s\/([^/]+)\//)?.[1]??v():v()}/exec`,Y=new FormData(b.target);Y.append("calloutID",l()),T&&(T.style.display="block"),ie&&(ie.disabled=!0),Y.append("calloutURL",window.location.href),fetch(q,{method:"POST",body:Y}).then(()=>{T&&(T.style.display="none"),k(J,""),k(ee,""),k($,""),k(Ee,""),k(pe,""),k(Ne,!1),k(ke,!1),E?(E.innerText=d()||"Thank you for your submission!",k(Q,!1),E.style.display="block"):E.style.display="none"}).catch(()=>{E&&(E.innerText="Something went wrong. Please try again.")})}var Ce=Xi(),Me=h(Ce),Mt=h(Me),Ft=h(Mt),dt=p(Me,2),vt=h(dt),Fe=p(dt,2),Ke=h(Fe);jn(Ke,r);var me=p(Fe,2),ze=h(me);nt(me,b=>X=b,()=>X);var Le=p(me,2);{var Je=b=>{var C=Qi(),q=oi(C),Y=h(q);jn(Y,s);var H=p(q,2),he=h(H),g=h(he),O=p(h(g),2),se=p(he,2),j=h(se),D=h(j),_e=p(h(D),2),oe=p(D,2),B=p(h(oe),2),Pe=p(j,2),ae=p(h(Pe),2),Oe=p(Pe,2),Lt=p(h(Oe),2),pn=p(Oe,2);{var Pt=A=>{var _n=Ji(),Bt=h(_n);Bt.value=Bt.__value="yes",Nn(Bt,()=>_(Ne),yr=>k(Ne,yr)),ue(A,_n)};qe(pn,A=>{(o()||o()!==!1)&&A(Pt)})}var hr=p(se,2),mn=h(hr),_r=p(h(mn),2),br=h(_r),wr=p(mn,2),Ot=h(wr);nt(Ot,A=>ie=A,()=>ie);var hn=p(Ot,2),gr=h(hn);zi(gr),nt(hn,A=>T=A,()=>T),wt(()=>Ot.disabled=!_(At)),tt(O,()=>_(J),A=>k(J,A)),tt(_e,()=>_(ee),A=>
9k(ee,A)),tt(B,()=>_($),A=>k($,A)),tt(ae,()=>_(Ee),A=>k(Ee,A)),tt(Lt,()=>_(pe),A=>k(pe,A)),Nn(br,()=>_(ke),A=>k(ke,A)),$i(1,H,()=>ct,()=>({slideDuration:200,fadeDuration:600,delay:0})),le("submit",H,Ui(It)),le("input",H,()=>{E&&(E.innerText="")}),ue(b,C)};qe(Le,b=>{_(Q)&&b(Je)})}var Qe=p(Le,2),Xe=h(Qe);nt(Xe,b=>E=b,()=>E),nt(Ce,b=>z=b,()=>z),wt((b,C)=>{Di(Ce,1,`gi-form-container ${a()??""}`,"svelte-bxnwmp"),Ni(Ce,`background-color: ${b??""}; color: ${f??""};`),Li(Ft,"fill",C),Re(vt,n()),Re(ze,u())},[()=>x(a(),1,!0),()=>x(a(),1,!1)]),le("click",me,Dt),ue(e,Ce),on()}var ts=ve(`<span class="note svelte-wtfj5x">Whatever you add here will be added to the 'calloutID' column of the tracking sheet. This is useful for tracking which callout form is being used if tracking multiple forms from one sheet.</span>`),ns=ve(`<div class="note svelte-wtfj5x"><h3>Instructions for Google Sheets Callout Forms</h3> <ol><li>Make a copy of <a href="https://docs.google.com/spreadsheets/d/1Zc_fcaTMINdo-wH2YRsbmAWITa9m_d9wN3dC-5rehDg/edit?gid=0#gid=0" target="_blank" class="svelte-wtfj5x">this spreadsheet</a>, give it an appropriate name</li> <ul><li>Update the privacy settings of your sheet, so that it is not visible to anyone with the link. This spreadsheet is visible to anyone with the link so that copies can be made, but it’s not advised when creating one that will capture reader content.</li></ul> <li>Remove all but the header row in your new copied spreadsheet</li> <li>Go to Extensions > Apps Script</li> <ul><li>Click Run</li> <li>Agree to the permissions checks. You may need to select a Google account and then get a warning saying Google hasn’t verified the app - click “advanced” to proceed in this case.</li> <li>Create a trigger by clicking on the alarm clock icon on the far left</li> <li>Click “Add Trigger”</li> <li>Fill out the form so it looks like this:</li> <img src="https://int-assets.theglobeandmail.com/tools/callout-form/trigger-screenshot.jpg" alt="Trigger setup screenshot"/> <li>Press save, which may require another permissions approval</li> <li>Click on the blue deploy button in the top right, select “new deployment”</li> <li>Click “select type” and select “web app”</li> <li>The description field can be whatever you want, “execute as” needs to be set as “me”, and “who has access” needs to be “anyone”</li> <li>Deploy and copy the ID (appears as a 72-character string of letters and numbers) that is shown after deployment. That ID needs to be added in the above 'Script ID' field</li> <li>Test out your form to ensure it’s working as expected - use your HTML code in a Globe article. Try submitting an entry using the form and ensure it shows up in your sheet as expected.</li></ul></ol></div>`),rs=ve('<span class="note svelte-wtfj5x">Set a future date to automatically close the form, or enter a past date to close it immediately. If no date is set, the form will remain open indefinitely.</span>'),is=ve('<span class="note svelte-wtfj5x">Adds an optional photo attachment checkbox to indicate that a photo has been submitted separately</span>'),ss=ve('<article class="callout-form-editor svelte-wtfj5x"><div class="column svelte-wtfj5x"><section class="editor svelte-wtfj5x"><h2 class="svelte-wtfj5x">Edit Callout Form</h2> <form class="svelte-wtfj5x"><div class="input-group svelte-wtfj5x"><label for="callout-id" class="svelte-wtfj5x">Callout ID:</label> <div class="svelte-wtfj5x"><input type="text" id="callout-id" name="callout-id" class="svelte-wtfj5x"/> <div class="note-container svelte-wtfj5x"><!> <button type="button" class="note-toggle svelte-wtfj5x"> </button></div></div></div> <div class="input-group svelte-wtfj5x"><label for="script-id" class="svelte-wtfj5x">Script ID:</label> <div class="svelte-wtfj5x"><input type="text" id="script-id" name="script-id" class="svelte-wtfj5x"/> <div class="note-container svelte-wtfj5x"><!> <button type="button" class="note-toggle svelte-wtfj5x"> </button></div></div></div> <hr class="svelte-wtfj5x"/> <div class="input-group svelte-wtfj5x"><label for="title" class="svelte-wtfj5x">Title:</label> <input type="text" id="title" name="title" value="Add title here" class="svelte-wtfj5x"/></div> <div class="input-group svelte-wtfj5x"><label for="description" class="svelte-wtfj5x">Description:</label> <textarea id="description" name="description" class="svelte-wtfj5x"></textarea></div> <hr class="svelte-wtfj5x"/> <div class="input-group svelte-wtfj5x"><label for="folded" class="svelte-wtfj5x">Folded:</label> <div class="svelte-wtfj5x"><input type="checkbox" id="folded" name="folded" class="svelte-wtfj5x"/> <span class="note svelte-wtfj5x">Set whether the form is initially visible or not.</span></div></div> <div class="input-group svelte-wtfj5x"><label for="cta" class="svelte-wtfj5x">Call to action to reveal form (if form is folded):</label> <div class="svelte-wtfj5x"><input type="text" id="cta" name="cta" value="Share your details" class="svelte-wtfj5x"/> <span class="note svelte-wtfj5x">Set the call to action text that will be displayed when the form is folded.</span></div></div> <div class="input-group svelte-wtfj5x"><label for="description-inner" class="svelte-wtfj5x">Description Inner:</label> <div class="svelte-wtfj5x"><textarea id="description-inner" name="description-inner" class="svelte-wtfj5x"></textarea> <span class="note svelte-wtfj5x">If folded, this description will be shown only when the form is expanded.</span></div></div> <hr class="svelte-wtfj5x"/> <div class="input-group svelte-wtfj5x"><label for="received" class="svelte-wtfj5x">Received Message:</label> <input type="text" id="received" name="received" value="Thank y
9ou for your submission!" class="svelte-wtfj5x"/></div> <div class="input-group svelte-wtfj5x"><label for="opt-close" class="svelte-wtfj5x">Close Date (optional):</label> <div class="svelte-wtfj5x"><input type="date" id="opt-close" name="opt-close" class="svelte-wtfj5x"/> <div class="note-container svelte-wtfj5x"><button type="button" class="note-toggle svelte-wtfj5x"> </button> <!></div></div></div> <div class="input-group svelte-wtfj5x"><label for="opt-photo" class="svelte-wtfj5x">Photo submission checkbox (optional):</label> <div class="svelte-wtfj5x"><input type="checkbox" id="opt-photo" name="opt-photo" class="svelte-wtfj5x"/> <div class="note-container svelte-wtfj5x"><button type="button" class="note-toggle svelte-wtfj5x"> </button> <!></div></div></div> <div class="input-group svelte-wtfj5x"><label for="theme" class="svelte-wtfj5x">Theme:</label> <select id="theme" name="theme" class="svelte-wtfj5x"><option>Black</option><option>White</option><option>Grey</option><option>Burgundy</option><option>Salmon</option><option>Purple</option><option>Sky</option><option>Olive</option></select></div> <button type="button" class="svelte-wtfj5x">Generate Embed Code</button></form></section></div> <div class="column svelte-wtfj5x"><section class="preview svelte-wtfj5x"><div class="callout-preview"></div></section> <section class="embed-code svelte-wtfj5x"><div class="inline svelte-wtfj5x"><h2 class="svelte-wtfj5x">Embed Code</h2> <button type="button" class="svelte-wtfj5x">Copy to Clipboard</button></div> <textarea id="embed-code" class="svelte-wtfj5x"></textarea> <span class="note svelte-wtfj5x"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-wtfj5x"><path d="M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 4C8.55219 4 9 4.44781 9 5C9 5.55219 8.55219 6 8 6C7.44781 6 7 5.55312 7 5C7 4.44688 7.44688 4 8 4ZM9.25 12H6.75C6.3375 12 6 11.6656 6 11.25C6 10.8344 6.33594 10.5 6.75 10.5H7.25V8.5H7C6.58594 8.5 6.25 8.16406 6.25 7.75C6.25 7.33594 6.5875 7 7 7H8C8.41406 7 8.75 7.33594 8.75 7.75V10.5H9.25C9.66406 10.5 10 10.8359 10 11.25C10 11.6641 9.66562 12 9.25 12Z" fill="#595959" class="svelte-wtfj5x"></path></svg> Note: You can paste an existing embed code here to edit the form and generate a new one.</span></section></div></article>');function os(e,t){sn(t,!1);let n=ri({});function r(g){ii(n,_(n)[g]=!_(n)[g]),k(n,_(n))}mr(()=>{s(),document.querySelectorAll("input, select, textarea:not(#embed-code), button").forEach(se=>{se.addEventListener("input",s)}),document.getElementById("embed-code").addEventListener("input",i)});function s(){const g=document.getElementById("callout-id").value,O=document.getElementById("script-id").value,se=document.getElementById("title").value,j=document.getElementById("description").value,D=document.getElementById("description-inner").value,_e=document.getElementById("cta").value,oe=document.getElementById("theme").value,B=document.getElementById("folded").checked,Pe=document.getElementById("received").value,ae=document.getElementById("opt-close").value,Oe=document.getElementById("opt-photo").checked,Pt=`${`${`<div 
10        class="gi-app gi-callout-form"
11        data-callout-id="${g}"
12        data-script-id="${O}"
13        data-title="${se}"
14        data-description="${j}"
15        data-description-inner="${D}"
16        data-cta="${_e}"
17        data-theme="${oe}"
18        data-folded="${B}"
19        data-received="${Pe}"
20        data-opt-close="${ae}"
21        data-opt-photo="${Oe}"
22      ></div><style>html, body { margin: 0; padding: 0; }</style>`}
23<script type="module" src="https://www.theglobeandmail.com/files/edt-uploads/interactive/components/gi-callout-form/gi-callout-form.js"><\/script>`}
24<link rel="stylesheet" href="https://www.theglobeandmail.com/files/edt-uploads/interactive/components/gi-callout-form/gi-callout-form.css">`;document.getElementById("embed-code").value=Pt,u()}function i(){const g=document.getElementById("embed-code").value,j=new DOMParser().parseFromString(g,"text/html").querySelector(".gi-callout-form");if(!j)return;const D=(_e,oe)=>{if(oe===null)return;const B=document.getElementById(_e);B&&(B instanceof HTMLInputElement&&B.type==="checkbox"?B.checked=oe==="true":(B instanceof HTMLInputElement||B instanceof HTMLTextAreaElement||B instanceof HTMLSelectElement)&&(B.value=oe))};D("callout-id",j.getAttribute("data-callout-id")),D("script-id",j.getAttribute("data-script-id")),D("title",j.getAttribute("data-title")),D("description",j.getAttribute("data-description")),D("description-inner",j.getAttribute("data-description-inner")),D("cta",j.getAttribute("data-cta")),D("theme",j.getAttribute("data-theme")),D("folded",j.getAttribute("data-folded")),D("received",j.getAttribute("data-received")),D("opt-close",j.getAttribute("data-opt-close")),D("opt-photo",j.getAttribute("data-opt-photo")),u()}function o(){document.getElementById("embed-code").select(),document.execCommand("copy")}function u(){const g=document.querySelector(".callout-preview");g&&(g.innerHTML=`<iframe srcdoc="${document.getElementById("embed-code").value.replace(/"/g,"&quot;")}" style="width: 100%; min-height: 700px; height: 100%; border: none;"></iframe>`)}Vi();var a=ss(),l=h(a),d=h(l),v=p(h(d),2),c=h(v),f=p(h(c),2),m=p(h(f),2),x=h(m);{var I=g=>{var O=ts();ue(g,O)};qe(x,g=>{_(n)["callout-id"]&&g(I)})}var T=p(x,2),E=h(T),z=p(c,2),ie=p(h(z),2),X=p(h(ie),2),J=h(X);{var ee=g=>{var O=ns();ue(g,O)};qe(J,g=>{_(n)["script-id"]&&g(ee)})}var $=p(J,2),Ee=h($),pe=p(z,20),Ne=p(h(pe),2),ke=p(h(Ne),2),Q=h(ke),At=h(Q),It=p(Q,2);{var Dt=g=>{var O=rs();ue(g,O)};qe(It,g=>{_(n)["opt-close"]&&g(Dt)})}var ct=p(pe,2),Nt=p(h(ct),2),Ce=p(h(Nt),2),Me=h(Ce),Mt=h(Me),Ft=p(Me,2);{var dt=g=>{var O=is();ue(g,O)};qe(Ft,g=>{_(n)["opt-photo"]&&g(dt)})}var vt=p(ct,2),Fe=p(h(vt),2),Ke=h(Fe);Ke.value=Ke.__value="black";var me=p(Ke);me.value=me.__value="white";var ze=p(me);ze.value=ze.__value="grey";var Le=p(ze);Le.value=Le.__value="burgundy";var Je=p(Le);Je.value=Je.__value="salmon";var Qe=p(Je);Qe.value=Qe.__value="purple";var Xe=p(Qe);Xe.value=Xe.__value="sky";var b=p(Xe);b.value=b.__value="olive",Fe.value=Fe.__value="white";var C=p(vt,2),q=p(l,2),Y=p(h(q),2),H=h(Y),he=p(h(H),2);wt(()=>{Re(E,_(n)["callout-id"]?"Hide":"What is this?"),Re(Ee,_(n)["script-id"]?"Hide":"Instructions for generating an ID"),Re(At,_(n)["opt-close"]?"Hide":"What is this?"),Re(Mt,_(n)["opt-photo"]?"Hide":"What is this?")}),le("click",T,()=>r("callout-id")),le("click",$,()=>r("script-id")),le("click",Q,()=>r("opt-close")),le("click",Me,()=>r("opt-photo")),le("click",C,s),le("click",he,o),ue(e,a),on()}let vn=[],as=document.querySelectorAll(".gi-callout-form"),ls=document.querySelectorAll(".gi-callout-form-editor");as.forEach(function(e,t){e.id=`gi-app-${t}`;const n=e,r={title:n.getAttribute("data-title")||"",description:n.getAttribute("data-description")||"",descriptionInner:n.getAttribute("data-description-inner")||"",cta:n.getAttribute("data-cta")||"",icon:n.getAttribute("data-icon")||"",theme:n.getAttribute("data-theme")||"",calloutID:n.getAttribute("data-callout-id")||"",received:n.getAttribute("data-received")||"",scriptID:n.getAttribute("data-script-id")||"AKfycbyLUoMFhk
24h5Ae_u6WJosGTxwR5spR97tFLHVScw_SoW-ovfNOLW9f-trq5S9Ulf86I",folded:n.getAttribute("data-folded")==="true",optClose:n.getAttribute("data-opt-close")||"",optPhoto:n.getAttribute("data-opt-photo")==="true"};vn.push({id:`gi-app-${t}`,Component:es,props:{...r}})});ls.forEach(function(e,t){e.id=`gi-editor-${t}`;const n=e,r={calloutID:n.getAttribute("data-callout-id")||"",scriptID:n.getAttribute("data-script-id")||"AKfycbw5SZC2U3M7p598wPoFdwLGUJQub6TOTEx6CjYlilCIH9bJlVwhELBjGLRnlvIB1hc"};vn.push({id:`gi-editor-${t}`,Component:os,props:{...r}})});vn.forEach(e=>{const{id:t,Component:n,props:r}=e,s=document.getElementById(t);s&&Ti(n,{target:s,props:r})});

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.