Current File : /home/pacjaorg/wpt.pacja.org/2024/wp-content/plugins/civist/civist-wordpress-blocks-embed.js |
!function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=291)}({0:function(n,t,e){"use strict";e(11);function r(n,t,e){for(var r=new Array(e),i=0,o=t;i<e;)r[i]=n[o],i=i+1|0,o=o+1|0;return r}function i(n,t){for(;;){var e=t,o=n,u=o.length,a=0===u?1:u,c=a-e.length|0;if(0===c)return o.apply(null,e);if(!(c<0))return function(n,t){return function(e){return i(n,t.concat([e]))}}(o,e);t=r(e,a,0|-c),n=o.apply(null,r(e,0,a))}}function o(n,t){var e=n.length;return 1===e?n(t):function(n,t,e){switch(e){case 1:return n(t);case 2:return function(e){return n(t,e)};case 3:return function(e,r){return n(t,e,r)};case 4:return function(e,r,i){return n(t,e,r,i)};case 5:return function(e,r,i,o){return n(t,e,r,i,o)};case 6:return function(e,r,i,o,u){return n(t,e,r,i,o,u)};case 7:return function(e,r,i,o,u,a){return n(t,e,r,i,o,u,a)};default:return i(n,[t])}}(n,t,e)}function u(n){return 1===n.length?n:function(t){return o(n,t)}}function a(n,t,e){var r=n.length;return 2===r?n(t,e):function(n,t,e,r){switch(r){case 1:return i(n(t),[e]);case 2:return n(t,e);case 3:return function(r){return n(t,e,r)};case 4:return function(r,i){return n(t,e,r,i)};case 5:return function(r,i,o){return n(t,e,r,i,o)};case 6:return function(r,i,o,u){return n(t,e,r,i,o,u)};case 7:return function(r,i,o,u,a){return n(t,e,r,i,o,u,a)};default:return i(n,[t,e])}}(n,t,e,r)}function c(n){return 2===n.length?n:function(t,e){return a(n,t,e)}}function s(n,t,e,r){var o=n.length;return 3===o?n(t,e,r):function(n,t,e,r,o){switch(o){case 1:return i(n(t),[e,r]);case 2:return i(n(t,e),[r]);case 3:return n(t,e,r);case 4:return function(i){return n(t,e,r,i)};case 5:return function(i,o){return n(t,e,r,i,o)};case 6:return function(i,o,u){return n(t,e,r,i,o,u)};case 7:return function(i,o,u,a){return n(t,e,r,i,o,u,a)};default:return i(n,[t,e,r])}}(n,t,e,r,o)}function f(n){return 3===n.length?n:function(t,e,r){return s(n,t,e,r)}}function d(n,t,e,r,o){var u=n.length;return 4===u?n(t,e,r,o):function(n,t,e,r,o,u){switch(u){case 1:return i(n(t),[e,r,o]);case 2:return i(n(t,e),[r,o]);case 3:return i(n(t,e,r),[o]);case 4:return n(t,e,r,o);case 5:return function(i){return n(t,e,r,o,i)};case 6:return function(i,u){return n(t,e,r,o,i,u)};case 7:return function(i,u,a){return n(t,e,r,o,i,u,a)};default:return i(n,[t,e,r,o])}}(n,t,e,r,o,u)}function l(n,t,e,r,o,u,a){var c=n.length;return 6===c?n(t,e,r,o,u,a):function(n,t,e,r,o,u,a,c){switch(c){case 1:return i(n(t),[e,r,o,u,a]);case 2:return i(n(t,e),[r,o,u,a]);case 3:return i(n(t,e,r),[o,u,a]);case 4:return i(n(t,e,r,o),[u,a]);case 5:return i(n(t,e,r,o,u),[a]);case 6:return n(t,e,r,o,u,a);case 7:return function(i){return n(t,e,r,o,u,a,i)};default:return i(n,[t,e,r,o,u,a])}}(n,t,e,r,o,u,a,c)}e.d(t,"a",function(){return o}),e.d(t,"f",function(){return u}),e.d(t,"b",function(){return a}),e.d(t,"g",function(){return c}),e.d(t,"c",function(){return s}),e.d(t,"h",function(){return f}),e.d(t,"d",function(){return d}),e.d(t,"e",function(){return l})},1:function(n,t,e){"use strict";e.d(t,"b",function(){return o}),e.d(t,"a",function(){return u}),e.d(t,"d",function(){return a}),e.d(t,"c",function(){return i});var r=[];function i(n){if(void 0===n){var t=[r,0];return t.tag=256,t}if(null!==n&&n[0]===r){var e=n[1]+1|0,i=[r,e];return i.tag=256,i}return n}function o(n){return null==n?void 0:i(n)}function u(n){return null===n?void 0:i(n)}function a(n){if(null!==n&&n[0]===r){var t=n[1];return 0===t?void 0:[r,t-1|0]}return n}},10:function(n,t,e){"use strict";e.d(t,"b",function(){return o}),e.d(t,"e",function(){return u}),e.d(t,"a",function(){return a}),e.d(t,"c",function(){return c}),e.d(t,"d",function(){return s});var r=e(0),i=e(1);function o(n){if(void 0!==n)return i.d(n);throw new Error("getExn")}function u(n,t){return function(n,t){if(void 0!==n)return i.c(t(i.d(n)))}(n,r.f(t))}function a(n,t){return function(n,t){if(void 0!==n)return t(i.d(n))}(n,r.f(t))}function c(n,t){return void 0!==n?i.d(n):t}function s(n){return void 0===n}},101:function(n,t,e){"use strict";var r=e(0),i=e(5),o=e(7),u=e(4),a=e(32),c=e(10),s=e(1),f=e(57),d=e(119),l=e(38);var v=[function(n){return n},function(n){return n}],g=e(37),p=e(8),h=e(43),b=e(85),y=e(12),m=e(53);function w(n,t){return b.a(n[1],t[1])}function _(n,t){return y.h(t,p.a(0,[n]),function(n,t){return function n(t,e){if(e.tag){var r=e[0];return w(r,t)>0?p.a(1,[t,e]):p.a(1,[r,n(t,e[1])])}var i=e[0];return w(i,t)>0?p.a(1,[t,e]):p.a(1,[i,p.a(0,[t])])}(t,n)})}function S(n,t){for(;;){var e=n;if(!e.tag)return e[0][0];var r=e[0];if(r[1]<t)return r[0];n=e[1]}}var C=_([10,100],[[100,1e3],[1e3,25e3],[5e3,55e3],[1e4,1/0]]);var x="petitionGoal";function E(n){return x+":"+n}function T(n){return o.a([["name",x],["input",o.a([["petitionId",n]])]])}function O(n,t){var e=u.d(t);if(void 0!==e){var r=s.d(e),a=c.a(o.c(r,"petitionId"),u.e),f=c.e(c.a(o.c(r,"goal"),u.c),function(n){return 0|n});return void 0!==a&&void 0!==f?a===n?f:void 0:i.a("Civist__SSE: Failed decoding event payload")}return i.a("Civist__SSE: Failed decoding event payload")}var A="petitionSigningCount";function P(n){return A+":"+n}function j(n){return o.a([["name",A],["input",o.a([["petitionId",n]])]])}function q(n,t){var e=u.d(t);if(void 0!==e){var r=s.d(e),a=c.a(o.c(r,"petitionId"),u.e),f=c.e(c.a(o.c(r,"signingCount"),u.c),function(n){return 0|n});return void 0!==a&&void 0!==f?a===n?f:void 0:i.a("Civist__SSE: Failed decoding event payload")}return i.a("Civist__SSE: Failed decoding event payload")}function N(n){var t=u.d(n);if(void 0!==t){var e,r=s.d(t),a=o.c(r,"embedding");if(void 0!==a){var f=s.d(a);if(void 0!==u.b(f))e=void 0;else{var d,l=u.d(f);if(void 0!==l){var g,p=o.c(s.d(l),"content");if(void 0!==p){var h=s.d(p),b=u.d(h);if(void 0!==b){var y=o.c(s.d(b),"__typename");if(void 0!==y){var m=u.e(s.d(y));if(void 0!==m)if("Petition"===m){var w,_=u.d(h);if(void 0!==_){var S,C=s.d(_),x=o.c(C,"id");if(void 0!==x){var E=s.d(x),T=u.e(E);S=void 0!==T?T:i.a("graphql_ppx: Expected string, got "+JSON.stringify(E))}else S=i.a("graphql_ppx: Field id on type Petition is missing");var O,A=o.c(C,"signingCount");if(void 0!==A){var P=s.d(A);if(void 0!==u.b(P))O=void 0;else{var j=u.c(P);O=void 0!==j?0|j:i.a("graphql_ppx: Expected int, got "+JSON.stringify(P))}}else O=void 0;var q,N=o.c(C,"goal");if(void 0!==N){var L=s.d(N);if(void 0!==u.b(L))q=void 0;else{var R=u.c(L);q=void 0!==R?0|R:i.a("graphql_ppx: Expected int, got "+JSON.stringify(L))}}else q=void 0;var k,I=o.c(C,"locale");if(void 0!==I){var H,M=s.d(I);if(void 0!==u.b(M))H=void 0;else{var J=u.e(M);H=void 0!==J?J:i.a("graphql_ppx: Expected string, got "+JSON.stringify(M))}k=function(n){return c.a(n,function(n){if(0!==n.length)return s.c(v[0](n))})}(H)}else k=i.a("graphql_ppx: Field locale on type Petition is missing");var D,F=o.c(C,"theme");if(void 0!==F){var G=s.d(F);if(void 0!==u.b(G))D=void 0;else{var U,X=u.d(G);if(void 0!==X){var W,Q=o.c(s.d(X),"accent");if(void 0!==Q){var B=s.d(Q);if(void 0!==u.b(B))W=void 0;else{var V=u.e(B);W=void 0!==V?V:i.a("graphql_ppx: Expected string, got "+JSON.stringify(B))}}else W=void 0;U=[W]}else U=i.a("graphql_ppx: Expected object of type Theme, got "+JSON.stringify(G));D=U}}else D=void 0;w=[S,O,q,D,k]}else w=i.a("graphql_ppx: Expected object of type Petition, got "+JSON.stringify(h));g=[-349104738,w]}else g=716602267;else g=i.a("graphql_ppx: Union EmbeddingContent has a __typename field that is not a string")}else g=i.a("graphql_ppx: Union EmbeddingContent is missing the __typename field")}else g=i.a("graphql_ppx: Expected union EmbeddingContent to be an object, got "+JSON.stringify(h))}else g=i.a("graphql_ppx: Field content on type Embedding is missing");d={content:g}}else d=i.a("graphql_ppx: Object is not a value");e=s.c(d)}}else e=void 0;var $,z=o.c(r,"tenant");if(void 0!==z){var Z=s.d(z);if(void 0!==u.b(Z))$=void 0;else{var K,Y=u.d(Z);if(void 0!==Y){var nn,tn=o.c(s.d(Y),"settings");if(void 0!==tn){var en=s.d(tn);if(void 0!==u.b(en))nn=void 0;else{var rn,on=u.d(en);if(void 0!==on){var un,an=o.c(s.d(on),"theme");if(void 0!==an){var cn=s.d(an);if(void 0!==u.b(cn))un=void 0;else{var sn,fn=u.d(cn);if(void 0!==fn){var dn,ln=o.c(s.d(fn),"widgetContainer");if(void 0!==ln){var vn=s.d(ln),gn=u.e(vn);if(void 0!==gn){var pn=gn;switch(pn){case"BORDER":dn=379386092;break;case"SHADOW":dn=-811371552;break;default:dn=i.a("graphql_ppx: Unknown enum variant for TenantSettingsWidgetContainer: "+pn)}}else dn=i.a("graphql_ppx: Expected enum value for TenantSettingsWidgetContainer, got "+JSON.stringify(vn))}else dn=i.a("graphql_ppx: Field widgetContainer on type TenantThemeSettings is missing");sn=[dn]}else sn=i.a("graphql_ppx: Expected object of type TenantThemeSettings, got "+JSON.stringify(cn));un=sn}}else un=void 0;rn=[un]}else rn=i.a("graphql_ppx: Expected object of type TenantSettings, got "+JSON.stringify(en));nn=rn}}else nn=void 0;K=[nn]}else K=i.a("graphql_ppx: Expected object of type Tenant, got "+JSON.stringify(Z));$=K}}else $=void 0;return{embedding:e,tenant:$}}return i.a("graphql_ppx: Object is not a value")}function L(n,t){return t>0?function(n,t,e){if(t<=e)return e;var r=S(n,t),i=h.a(t/r);return m.a(r,i)}(C,n,t):t}function R(n,t){var e=n.querySelector(".civist-progress > .civist-progress__civist-progress-counters > .civist-progress-counters__civist-progress-counters-signings > .civist-progress-counters-signings > .civist-progress-counters-signings__value");return null==e?0:(e.textContent=t,0)}function k(n,t,e){var r=t.goal,i=t.signingCount;if(r>0){R(n,e(i)),function(n,t){var e=n.querySelector(".civist-progress > .civist-progress__civist-progress-counters > .civist-progress-counters__civist-progress-counters-goal > .civist-progress-counters-goal > .civist-progress-counters-goal__value");null==e||(e.textContent=t)}(n,e(r));var o=n,u=c.b(function(n){var t=n.goal,e=n.signingCount;if(t>0)return 100*Math.min(1,e/t)}(t)),f=t.themeAccent,d=o.querySelector(".civist-progress-bar"),l=c.a(null==d?void 0:s.c(d),a.b);if(void 0!==l){var v=s.d(l);return v.style.setProperty("width",u.toString()+"%",""),v.style.setProperty("background-color",f,""),0}return null==d?0:(d.setAttribute("fill",f),0)}return R(n,e(i))}function I(n,t,e,r){var i=t.goal>0,o=t.isShadow,u=c.a(s.b(n.querySelector(".civist-progress.civist-progress--loading")),a.b);if(void 0!==u){var f=s.d(u);i||f.classList.add("civist-progress--no-goal"),o&&f.classList.add("civist-progress--shadow");var d=c.a(s.b(n.querySelector(".civist-progress-counters-signings__heading")),a.b),l=c.a(s.b(n.querySelector(".civist-progress-counters-goal__heading")),a.b);return void 0!==d&&void 0!==l&&(s.d(d).textContent=e,s.d(l).textContent=r),f.classList.remove("civist-progress--loading"),0}return 0}function H(n){var t=c.a(s.b(n.querySelector(".civist-progress")),a.b);if(void 0!==t){var e=s.d(t);return e.classList.add("civist-progress--loading"),e.classList.remove("civist-progress--no-goal"),0}return 0}e.d(t,"a",function(){return D});var M={id:"widget.embed.progress.signings",defaultMessage:"Signings"},J={id:"widget.embed.progress.goal",defaultMessage:"Goal"};function D(n,t,e,u,a){return g.b(n,function(n,t){return{query:"query ($embeddingId: ID!) {\nembedding(id: $embeddingId) {\ncontent {\n__typename\n...on Petition {\nid \nsigningCount \ngoal \nlocale \ntheme {\naccent \n}\n\n}\n\n}\n\n}\n\ntenant {\nsettings {\ntheme {\nwidgetContainer \n}\n\n}\n\n}\n\n}\n",variables:o.a([["embeddingId",n]]),parse:N}}(u)).then(function(n){var u=function(n){var t=n.embedding,e=n.tenant;if(void 0===t||void 0===e)var r;else{var i=s.d(t).content;if("number"==typeof i||-349104738!==i[0])return;var o=i[1],u=o[1];if(void 0!==u){var a=o[2];if(void 0!==a){var c=o[3];if(void 0!==c){var f=c[0];if(void 0!==f){var d=e[0];if(void 0!==d){var l=d[0];if(void 0!==l){var v=u;return{id:o[0],signingCount:v,goal:L(v,a),themeAccent:f,isShadow:(r=l[0],-811371552===r),locale:o[4]}}return}return}return}return}return}}}(n);if(void 0!==u){var g,p=s.d(u),h=[p],b=function(n){return h[0]=function(n,t){return{id:n.id,signingCount:t,goal:L(t,n.goal),themeAccent:n.themeAccent,isShadow:n.isShadow,locale:n.locale}}(h[0],n),0},y=function(n){var t=h[0],e=function(n,t){return{id:n.id,signingCount:n.signingCount,goal:L(n.signingCount,t),themeAccent:n.themeAccent,isShadow:n.isShadow,locale:n.locale}}(t,n),r=t.goal,i=e.goal;return h[0]=e,r<=0&&i>0||r>0&&i<=0},m=c.c(p.locale,f.a({availableLocales:a})),w=f.b({translations:d,locale:m}),_=function(n){return c.c(o.c(w,n.id),n.defaultMessage)},S="eu"===v[1](m)?v[0]("es"):m;if(null==Intl)g=function(n){return String(n)};else{var C=new Intl.NumberFormat(S);g=function(n){return C.format(n)}}var N=_(M),R=_(J);k(e,h[0],g),I(e,h[0],N,R);var D=r.c(l.b(t),[A,P,j,q],h[0].id,function(n){return b(n),k(e,h[0],g)}),F=r.c(l.b(t),[x,E,T,O],function(n){return n}(h[0].id),function(n){return y(n)?(H(e),k(e,h[0],g),I(e,h[0],N,R)):k(e,h[0],g)});return Promise.resolve(function(){return D(),F(),H(e)})}return Promise.reject(i.a("failed to get petition"))})}},11:function(n,t,e){"use strict";e.d(t,"b",function(){return r}),e.d(t,"c",function(){return i}),e.d(t,"a",function(){return o});var r=["Failure",-2],i=["Invalid_argument",-3],o=["Division_by_zero",-5];r.tag=248,i.tag=248,o.tag=248},119:function(n){n.exports={ca:{"widget.embed.progress.signings":"Signatures","widget.embed.progress.goal":"Objectiu"},cs:{"widget.embed.progress.signings":"Podpisy","widget.embed.progress.goal":"Cíl"},de:{"widget.embed.progress.signings":"Unterschriften","widget.embed.progress.goal":"Ziel"},"en-US":{"widget.embed.progress.signings":"Signings","widget.embed.progress.goal":"Goal"},en:{"widget.embed.progress.signings":"Signings","widget.embed.progress.goal":"Goal"},es:{"widget.embed.progress.signings":"Firmas","widget.embed.progress.goal":"Objetivo"},eu:{"widget.embed.progress.signings":"Sinadurak","widget.embed.progress.goal":"Helbidea"},fr:{"widget.embed.progress.signings":"Signatures","widget.embed.progress.goal":"Objectif"},hr:{"widget.embed.progress.signings":"Potpisi","widget.embed.progress.goal":"Cilj"},it:{"widget.embed.progress.signings":"Firme","widget.embed.progress.goal":"Obiettivo"},ko:{"widget.embed.progress.signings":"서명 수","widget.embed.progress.goal":"목표"},"nl-NL-x-formal":{"widget.embed.progress.signings":"Handtekeningen","widget.embed.progress.goal":"Doel"},nl:{"widget.embed.progress.signings":"Handtekeningen","widget.embed.progress.goal":"Doel"},pl:{"widget.embed.progress.signings":"Podpisy","widget.embed.progress.goal":"Cel"},pt:{"widget.embed.progress.signings":"Assinaturas","widget.embed.progress.goal":"Objetivo"},ro:{"widget.embed.progress.signings":"Semnat","widget.embed.progress.goal":"Țel"},sk:{"widget.embed.progress.signings":"Podpisy","widget.embed.progress.goal":"Cieľ"}}},12:function(n,t,e){"use strict";e.d(t,"i",function(){return c}),e.d(t,"b",function(){return s}),e.d(t,"a",function(){return f}),e.d(t,"c",function(){return d}),e.d(t,"e",function(){return l}),e.d(t,"d",function(){return v}),e.d(t,"h",function(){return g}),e.d(t,"g",function(){return p}),e.d(t,"f",function(){return h});var r=e(0),i=e(43),o=e(1),u=e(13);function a(n,t,e){var r=n[t];return n[t]=n[e],n[e]=r,0}function c(n){for(var t=n.length,e=0,r=t-1|0;e<=r;++e)a(n,e,i.b(e,t));return 0}function s(n,t){for(var e=n.length,r=t.length,i=new Array(e+r|0),o=0,u=e-1|0;o<=u;++o)i[o]=n[o];for(var a=0,c=r-1|0;a<=c;++a)i[e+a|0]=t[a];return i}function f(n,t,e,r,i){if(r<=t){for(var o=0,u=i-1|0;o<=u;++o)e[o+r|0]=n[o+t|0];return 0}for(var a=i-1|0;a>=0;--a)e[a+r|0]=n[a+t|0];return 0}function d(n,t){return function(n,t){for(var e=0,r=n.length-1|0;e<=r;++e)t(n[e]);return 0}(n,r.f(t))}function l(n,t){return function(n,t){for(var e=n.length,r=new Array(e),i=0,o=e-1|0;i<=o;++i)r[i]=t(n[i]);return r}(n,r.f(t))}function v(n,t){return function(n,t){for(var e=n.length,r=0,i=void 0;void 0===i&&r<e;){var u=n[r];t(u)&&(i=o.c(u)),r=r+1|0}return i}(n,r.f(t))}function g(n,t,e){for(var r=t,i=0,o=n.length-1|0;i<=o;++i)r=e(r,n[i]);return r}function p(n,t,e){for(var r=t,i=n.length-1|0;i>=0;--i)r=e(r,n[i]);return r}function h(n,t,e,r){for(var i=e,o=u.d(n.length,t.length)-1|0;o>=0;--o)i=r(i,n[o],t[o]);return i}},13:function(n,t,e){"use strict";function r(n,t){return n<t?-1:n===t?0:1}function i(n,t){return n?t?0:1:t?-1:0}function o(n,t){return n===t?0:n<t?-1:1}function u(n,t){return n<t?n:t}function a(n,t){return n>t?n:t}e.d(t,"b",function(){return r}),e.d(t,"a",function(){return i}),e.d(t,"e",function(){return o}),e.d(t,"d",function(){return u}),e.d(t,"c",function(){return a})},16:function(n,t,e){"use strict";e.d(t,"e",function(){return r}),e.d(t,"a",function(){return i}),e.d(t,"f",function(){return o}),e.d(t,"b",function(){return u}),e.d(t,"c",function(){return a}),e.d(t,"g",function(){return c}),e.d(t,"d",function(){return s});e(11);function r(n){switch(n){case 0:return"true";case 1:return"false";case 2:return"inherit";case 3:return""}}function i(n){switch(n){case"false":return 1;case"inherit":return 2;case"true":return 0;default:return 3}}function o(n){switch(n){case 0:return"ltr";case 1:return"rtl";case 2:return""}}function u(n){switch(n){case"ltr":return 0;case"rtl":return 1;default:return 2}}function a(n){return n>3||n<0?4:n}function c(n){switch(n){case 0:return"beforebegin";case 1:return"afterbegin";case 2:return"beforeend";case 3:return"afterend"}}function s(n){var t=n-1|0;return t>11||t<0?12:t}},277:function(n,t){n.exports=wp.domReady},278:function(n,t,e){},291:function(n,t,e){n.exports=e(292)},292:function(n,t,e){"use strict";e.r(t),e.d(t,"_css",function(){return v}),e.d(t,"makeGQLClient",function(){return g}),e.d(t,"makeSSEClient",function(){return p}),e.d(t,"gqlClient",function(){return w}),e.d(t,"sseClient",function(){return m}),e.d(t,"init",function(){return _});var r=e(32),i=e(12),o=e(1),u=e(277),a=e.n(u),c=e(38),s=e(37),f=e(278),d=e.n(f),l=e(101),v=d.a;function g(n){return s.a(civist_public.apiUrl,"SigningsCountEmbed",civist_public.version)}function p(n){return c.a(civist_public.apiUrl,"SigningsCountEmbed",civist_public.version)}var h=civist_public.gqlClient,b=civist_public.sseClient,y=null==h?null==b?[g(),p()]:[g(),b]:null==b?[h,p()]:[h,b],m=y[1],w=y[0];function _(n){var t=n.getAttribute("data-embedding-id");return null==t?0:(l.a(w,m,n,t,civist_public.widgetSupportedLanguages),0)}a.a(function(){return i.c(i.e(Array.prototype.slice.call(document.querySelectorAll(".wp-block-civist-progress:not(.edit)")),r.c),function(n){return void 0!==n?_(o.d(n)):0})})},31:function(n,t,e){"use strict";e.d(t,"b",function(){return i}),e.d(t,"a",function(){return o});var r=[0];function i(n){var t=[n,(r[0]+=1,r[0])];return t.tag=248,t}function o(n){if(void 0===n)return!1;if(248===n.tag)return!0;var t=n[0];return void 0!==t&&248===t.tag}},32:function(n,t,e){"use strict";var r=e(0),i=e(64),o=e(16);var u=e(1);var a=e(36);function c(n){if(0===i.b(n))return u.c(n)}function s(n){var t=function(n){return void 0!==n.contentEditable?n:null};return[function(n){return u.a(r.a(t,n))},c,function(n,t,e){return e.insertAdjacentElement(o.g(n),t),0},function(n,t,e){return e.insertAdjacentHTML(o.g(n),t),0},function(n,t,e){return e.insertAdjacentText(o.g(n),t),0}]}e.d(t,"a",function(){return s}),e.d(t,"b",function(){return l}),e.d(t,"c",function(){return c});var f=i.a([]);a.a([]);var d=function(n){return void 0!==n.contentEditable?n:null};function l(n){return u.a(r.a(d,n))}f[0]},36:function(n,t,e){"use strict";function r(n){return[]}e.d(t,"a",function(){return r})},37:function(n,t,e){"use strict";e.d(t,"a",function(){return d}),e.d(t,"b",function(){return l});var r=e(0),i=e(54),o=e(7),u=e(4),a=e(1),c=e(31),s=c.b("Civist__GraphQL-CivistWordpressPlugin.NetworkError"),f=c.b("Civist__GraphQL-CivistWordpressPlugin.GraphQLErrors");function d(n,t,e){return[n,t,e]}function l(n,t){return fetch(n[0]+"graphql",i.a[0](2,[["content-type","application/json"],["X-Civist-Client",n[1]],["X-Civist-ClientVersion",n[2]]],a.c(JSON.stringify(o.b([["query",t.query],[["variables",t.variables],0]]))),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then(function(n){return n.ok?n.json().then(function(n){var e=u.d(n);if(void 0!==e){var i=a.d(e),o=u.a(i.errors);if(void 0!==o){var c=o;return 0!==c.length?Promise.reject([f,c]):Promise.resolve(r.a(t.parse,i.data))}return Promise.resolve(r.a(t.parse,i.data))}return Promise.reject([s,"Response is not an object"])}):Promise.reject([s,"Request failed: "+n.statusText])})}},38:function(n,t,e){"use strict";var r=e(8),i=e(0);function o(n){var t=n[0];return[i.g(t)]}var u=e(1);e(83);function a(n,t,e){var r=null!==n?n.height:0,i=null!==e?e.height:0;return{value:t,height:r>=i?r+1|0:i+1|0,left:n,right:e}}function c(n){return{value:n,height:1,left:null,right:null}}function s(n,t){return null===t||null!==n&&n.height>=t.height}function f(n,t,e){var r=null!==n?n.height:0,i=null!==e?e.height:0;if(r>(i+2|0)){var o=n.left,u=n.value,c=n.right;if(s(o,c))return a(o,u,a(c,t,e));var f=c.left,d=c.value,l=c.right;return a(a(o,u,f),d,a(l,t,e))}if(i>(r+2|0)){var v=e.left,g=e.value,p=e.right;if(s(p,v))return a(a(n,t,v),g,p);var h=v.left,b=v.value,y=v.right;return a(a(n,t,h),b,a(y,g,p))}return{value:t,height:r>=i?r+1|0:i+1|0,left:n,right:e}}function d(n,t){var e=n.left,r=n.right,i=n.value;return null!==e?f(d(e,t),i,r):(t[0]=i,r)}function l(n,t){for(;;){var e=n;if(null===e)return 0;l(e.left,t),t(e.value),n=e.right}}function v(n,t,e){for(;;){var r=t,i=n;if(null===i)return r;var o=i.left,u=i.value,a=i.right;t=e(v(o,r,e),u),n=a}}function g(n,t,e){if(null!==n){if(null!==e){var r=n.height,i=e.height;return r>(i+2|0)?f(n.left,n.value,g(n.right,t,e)):i>(r+2|0)?f(g(n,t,e.left),e.value,e.right):a(n,t,e)}return function n(t,e){return null!==t?f(t.left,t.value,n(t.right,e)):c(e)}(n,t)}return function n(t,e){return null!==t?f(n(t.left,e),t.value,t.right):c(e)}(e,t)}function p(n,t){if(null!==n){if(null!==t){var e=[t.value],r=d(t,e);return g(n,e[0],r)}return n}return t}function h(n){var t=n.left,e=n.right;return(1+(null!==t?h(t):0)|0)+(null!==e?h(e):0)|0}var b=null;function y(n,t,e){if(null!==n){var r=n.value,i=e(t,r);if(0===i)return n;var o=n.left,u=n.right;if(i<0){var a=y(o,t,e);return a===o?n:f(a,r,u)}var s=y(u,t,e);return s===u?n:f(o,r,s)}return c(t)}function m(n,t,e){if(null!==n){var r=n.left,i=n.value,o=n.right,u=e(t,i);if(0===u){if(null!==r){if(null!==o){var a=[o.value],c=d(o,a);return f(r,a[0],c)}return r}return o}if(u<0){var s=m(r,t,e);return s===r?n:f(s,i,o)}var l=m(o,t,e);return l===o?n:f(r,i,l)}return n}function w(n,t,e,r){var i=t.left,o=t.value,u=t.right,a=n(e,o);if(0===a)return r[0]=!0,[i,u];if(a<0){if(null!==i){var c=w(n,i,e,r);return[c[0],g(c[1],o,u)]}return[b,t]}if(null!==u){var s=w(n,u,e,r);return[g(i,o,s[0]),s[1]]}return[t,b]}function _(n,t,e){if(null!==n&&null!==t){var r=n.left,i=n.value,o=n.right,u=[!1],a=w(e,t,i,u),c=_(r,a[0],e),s=_(o,a[1],e);return u[0]?p(c,s):g(c,i,s)}return n}var S=b,C=function(n){return null===n},x=l,E=v,T=function(n){if(null!==n){var t=h(n),e=new Array(t);return function n(t,e,r){for(;;){var i=e,o=t,u=o.left,a=o.value,c=o.right,s=null!==u?n(u,i,r):i;r[s]=a;var f=s+1|0;if(null===c)return f;e=f,t=c}}(n,0,e),e}return[]};function O(n,t){var e=n.cmp,r=n.data,i=m(r,t,e);return i===r?n:{cmp:e,data:i}}function A(n,t){var e=n.cmp,r=n.data,i=y(r,t,e);return i===r?n:{cmp:e,data:i}}function P(n,t){var e=n.cmp;return{cmp:e,data:_(n.data,t.data,e)}}function j(n){return{cmp:n[0],data:S}}function q(n){return C(n.data)}function N(n,t){return x(n.data,i.f(t))}function L(n,t,e){return function(n,t,e){return E(n.data,t,e)}(n,t,i.g(e))}var R=e(12),k=e(13),I=e(31),H=e(43),M=e(53);function J(n,t,e,r,i){return k.d(M.a(M.a(i?H.b(1,2):1,e),Math.pow(t,n)),r)}function D(n){var t,e=[void 0];return void 0!==(t=e[0])&&clearTimeout(u.d(t)),new Promise(function(t,r){return e[0]=u.c(setTimeout(function(n){return e[0]=void 0,t(!0)},n)),0})}var F=e(84),G=e(36),U=e(50),X=e(65);F.a([])[0];G.a([]);var W=e(54),Q=e(5),B=e(7),V=e(4),$=e(10);var z=I.b("Civist__SSE__Client-CivistWordpressPlugin.EventStreamError");var Z=o([function(n,t){return k.b(n[0],t[0])}]);var K=o([function(n,t){return k.e(n[2],t[2])}]);function Y(n,t,e){return function(n,t,e){return fetch(n,W.a[0](2,[["Accept","application/json"],["X-Civist-Client",t],["X-Civist-ClientVersion",e]],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then(function(n){return n.ok?n.json():Promise.reject(Q.a("Request failed: "+n.statusText))}).then(function(n){var t=$.a($.a(V.d(n),function(n){return B.c(n,"url")}),V.e);return void 0!==t?Promise.resolve(t):Promise.reject(Q.a("Failed to decode json"))})}(n,e,t).then(function(n){return Promise.resolve([n,t,e])})}function nn(n,t){var e,r,o,a,c=R.e(T(t.data),function(n){return i.a(n[3],0)});return e=n[0],r=c,o=n[2],a=n[1],fetch(e+"/subscribe",W.a[0](2,[["Accept","application/json"],["Content-type","application/json"],["X-Civist-Client",o],["X-Civist-ClientVersion",a]],u.c(JSON.stringify(r)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then(function(n){return n.ok?Promise.resolve(0):Promise.reject(Q.a("Request failed: "+n.statusText))})}function tn(n,t){return n[0].removeEventListener(t[1],t[4]),0}function en(n){return n[0].close(),0}e.d(t,"a",function(){return rn}),e.d(t,"b",function(){return on});var rn=function(n,t,e){var o=[j(Z),j(Z),j(K),0],a=function(n){switch(n){case 0:return function(n){return o[0]=A(o[0],n),0};case 1:return function(n){return o[1]=A(o[1],n),0};case 2:return function(n){return o[2]=A(o[2],n),0}}},c=function(n){switch(n){case 0:return function(n){return o[0]=O(o[0],n),0};case 1:return function(n){return o[1]=O(o[1],n),0};case 2:return function(n){return o[2]=O(o[2],n),0}}},s=function(n){return P(L(o[0],j(K),A),o[2])},f=r.a(0,[n+"events/"]),d=function(n){return J(n,2,1e3,6e4,!0)},l=function(n,o,u,a){return Y(a,e,t).then(function(n){return i.a(u,r.a(2,[n,a])),i.a(o,0),Promise.resolve(0)}).catch(function(t){return i.a(u,r.a(1,[n,[z,t],a])),i.a(o,0),Promise.resolve(0)}),0},v=function(n,t,e,u,f,d){var l,v,g=P(o[0],o[1]),p=s();return q(p)&&q(g)?i.a(e,r.a(5,[u,f,d])):(l=g,v=u[0],N(l,function(n){return v.addEventListener(n[1],n[4]),0}),N(g,a(1)),N(p,a(2)),nn(f,p).then(function(n){return i.a(e,r.a(3,[u,f,d])),i.a(t,0),Promise.resolve(0)}).catch(function(o){return i.a(e,r.a(4,[n,[z,o],u,f,d])),N(p,c(2)),i.a(t,0),Promise.resolve(0)}),0)},g=function(n){var t=[0],e=[n[0]],r=function(n){return e[0]=n,0},o=function(e){var r=i.a(n[1],t[0]);return t[0]=r[1],r[0]},a=function t(a,c){var s=o();return void 0!==s?(i.d(n[3],u.d(s),e[0],a,r),requestAnimationFrame(function(n){return t(a,c)}),0):i.a(c,0)},c=[!1];return[t,e,r,o,a,c,function e(r){return t[0]=i.b(n[2],r,t[0]),c[0]?0:(c[0]=!0,a(e,function(n){return c[0]=!1,0}))}]}([f,function(n){return n?[u.c(n[0]),n[1]]:[void 0,0]},function n(t,e){if("number"==typeof t){if(e){var r=e[0];return"number"!=typeof r||e[1]?[r,n(0,e[1])]:[0,0]}return[0,0]}if(e){var i=e[1],o=e[0];return i?[o,n(t,i)]:[o,[t,0]]}return[t,0]},function(n,t,e,u){if("number"==typeof n)switch(0|t.tag){case 0:var s=t[0];return i.a(u,r.a(1,[1,void 0,s])),l(1,e,u,s);case 1:if(void 0!==t[1]){var f=t[2],g=t[0]+1|0;return i.a(u,r.a(1,[g,void 0,f])),D(d(g)).then(function(n){return Promise.resolve(l(g,e,u,f))}),0}return i.a(e,n);case 2:var p=t[1],h=t[0],b=function(n){return[(t=void 0,r=n,e=r[0],null==X.NativeEventSource?new X.EventSourcePolyfill(e,U.a(t)):new X.NativeEventSource(e,U.a(t)))];var t,e,r}(h);return(H=b[0],function(n){return H.onopen=n,0})(function(n){return i.a(u,r.a(3,[b,h,p])),i.a(e,0)}),function(n){var t=n[0];return function(n){return t.onerror=n,0}}(b)(function(n){return b[0].readyState>=2?(i.a(u,r.a(0,[p])),i.a(e,0)):0});case 3:var y=t[2],m=t[1],w=t[0];return i.a(u,r.a(4,[1,void 0,w,m,y])),v(1,e,u,w,m,y);case 4:var _=t[0];if(void 0!==t[1]){var S=t[4],C=t[3],x=t[2];if(_<=3){var E=_+1|0;return i.a(u,r.a(4,[E,void 0,x,C,S])),D(d(E)).then(function(n){return Promise.resolve(v(E,e,u,x,C,S))}),0}return o[2]=j(K),N(o[1],function(n){return tn(x,n)}),o[1]=j(Z),en(x),i.a(u,r.a(0,[S])),i.a(e,0)}return i.a(e,0);case 5:return 0}else if(n.tag){var T=n[0],O=0;switch(0|t.tag){case 3:case 5:O=1;break;default:return c(0)(T)}if(1===O){var A=t[0];return c(0)(T),tn(A,T),c(1)(T),q(o[0])?(en(A),c(2)(T),i.a(u,r.a(2,[t[1],t[2]]))):0}}else{a(0)(n[0]);var P=0;switch(0|t.tag){case 0:var L=t[0];return i.a(u,r.a(1,[1,void 0,L])),l(1,e,u,L);case 2:return i.a(e,0);case 1:case 4:return 0;case 3:case 5:P=1}if(1===P){var R=t[2],k=t[1],I=t[0];return i.a(u,r.a(4,[1,void 0,I,k,R])),v(1,e,u,I,k,R)}}var H}]);return[function(n,t,e){var a=[(o[3]=o[3]+1|0,o[3]),n[0],i.a(n[1],t),function(e){return n[2](t)},function(r){var i=n[3](t,JSON.parse(r.data));return void 0!==i?e(u.d(i)):0}];return i.a(g[6],r.a(0,[a])),function(){return i.a(g[6],r.a(1,[a]))}}]},on=function(n){return n[0]}},4:function(n,t,e){"use strict";e.d(t,"e",function(){return i}),e.d(t,"c",function(){return o}),e.d(t,"d",function(){return u}),e.d(t,"a",function(){return a}),e.d(t,"b",function(){return c});e(8);var r=e(1);function i(n){if("string"==typeof n)return n}function o(n){if("number"==typeof n)return n}function u(n){if("object"==typeof n&&!Array.isArray(n)&&null!==n)return r.c(n)}function a(n){if(Array.isArray(n))return n}function c(n){if(null===n)return null}},43:function(n,t,e){"use strict";var r=2147483647,i=-2147483648;function o(n){return n>r?r:n<i?i:Math.ceil(n)}function u(n){return n>r?r:n<i?i:Math.floor(n)}function a(n,t){return u(Math.random()*(t-n|0))+n|0}e.d(t,"a",function(){return o}),e.d(t,"b",function(){return a})},44:function(n,t,e){"use strict";e.d(t,"d",function(){return r}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return u}),e.d(t,"c",function(){return a});var r=function(n){return n.split("_").join("-")},i=function n(t,e,r){if(t.indexOf(e)>-1)return e;var i=e.split("-");return 1===i.length?r:n(t,i.slice(0,-1).join("-"),r)},o=function(n,t){if(n.indexOf(t)>-1)return t;var e=t.split("-");return 1!==e.length?i(n,e.slice(0,-1).join("-")):void 0},u=function(n){var t=n.availableLocales,e=n.defaultLocale,r=void 0===e?"en":e,u="";if(Array.isArray(window.navigator.languages)){var a=window.navigator.languages.find(function(n){return o(t,n)});a&&(u=o(t,a))}return u||(u=i(t,window.navigator.language||window.navigator.userLanguage||"",r)),u},a=function(n){var t=n.translations,e=void 0===t?{}:t,r=n.locale,o=n.defaultLocale,u=void 0===o?"en":o,a=n.getLocale;return e[(void 0===a?i:a)(Object.keys(e),r,u)]}},5:function(n,t,e){"use strict";e(1);var r=e(31);r.b("Caml_js_exceptions.Error");function i(n){throw new Error(n)}e.d(t,"a",function(){return i})},50:function(n,t,e){"use strict";e.d(t,"a",function(){return i});var r=e(1);function i(n){if(void 0!==n)return r.d(n)}},53:function(n,t,e){"use strict";e.d(t,"a",function(){return r});e(11);var r=Math.imul||function(n,t){return((n>>16)*(t|=0)<<16)+(65535&n)*t|0}},54:function(n,t,e){"use strict";e.d(t,"a",function(){return d});var r=e(0),i=e(1);e(11);function o(n){if("number"!=typeof n)return n[0];switch(n){case 0:return"GET";case 1:return"HEAD";case 2:return"POST";case 3:return"PUT";case 4:return"DELETE";case 5:return"CONNECT";case 6:return"OPTIONS";case 7:return"TRACE";case 8:return"PATCH"}}function u(n){switch(n){case 0:return"navigate";case 1:return"same-origin";case 2:return"no-cors";case 3:return"cors"}}function a(n){switch(n){case 0:return"omit";case 1:return"same-origin";case 2:return"include"}}function c(n){switch(n){case 0:return"default";case 1:return"no-store";case 2:return"reload";case 3:return"no-cache";case 4:return"force-cache";case 5:return"only-if-cached"}}function s(n){switch(n){case 0:return"follow";case 1:return"error";case 2:return"manual"}}function f(n,t){if(void 0!==t)return i.c(r.a(n,i.d(t)))}var d=[function(n,t,e,r,d,l,v,g,p,h,b){var y=void 0!==d?d:0,m=void 0!==h?h:"",w=f(s,p),_=f(c,g),S=f(a,v),C=f(u,l),x=function(n){switch(n){case 0:return"";case 1:return"no-referrer";case 2:return"no-referrer-when-downgrade";case 3:return"same-origin";case 4:return"origin";case 5:return"strict-origin";case 6:return"origin-when-cross-origin";case 7:return"strict-origin-when-cross-origin";case 8:return"unsafe-url"}}(y),E=f(o,n);return function(n){var o={};return void 0!==E&&(o.method=i.d(E)),void 0!==t&&(o.headers=i.d(t)),void 0!==e&&(o.body=i.d(e)),void 0!==r&&(o.referrer=i.d(r)),void 0!==x&&(o.referrerPolicy=i.d(x)),void 0!==C&&(o.mode=i.d(C)),void 0!==S&&(o.credentials=i.d(S)),void 0!==_&&(o.cache=i.d(_)),void 0!==w&&(o.redirect=i.d(w)),void 0!==m&&(o.integrity=i.d(m)),void 0!==b&&(o.keepalive=i.d(b)),o}}]},57:function(n,t,e){"use strict";e.d(t,"c",function(){return i}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return u});var r=e(44);function i(n){return r.d(n)}function o(n){return r.c(n)}function u(n){return r.a(n)}},64:function(n,t,e){"use strict";e.d(t,"a",function(){return i}),e.d(t,"b",function(){return o});var r=e(16);function i(n){return[function(n){return r.d(n.nodeType)}]}function o(n){return r.d(n.nodeType)}e(36).a([])},65:function(n,t,e){var r,i,o;
/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/
/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/
!function(e){"use strict";var u=e.setTimeout,a=e.clearTimeout,c=e.XMLHttpRequest,s=e.XDomainRequest,f=e.EventSource,d=e.document,l=e.Promise,v=e.fetch,g=e.Response,p=e.TextDecoder,h=e.TextEncoder,b=e.AbortController;if(null==Object.create&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),null!=l&&null==l.prototype.finally&&(l.prototype.finally=function(n){return this.then(function(t){return l.resolve(n()).then(function(){return t})},function(t){return l.resolve(n()).then(function(){throw t})})}),null!=v){var y=v;v=function(n,t){return l.resolve(y(n,t))}}function m(){this.bitsNeeded=0,this.codePoint=0}null==b&&(b=function(){this.signal=null,this.abort=function(){}}),m.prototype.decode=function(n){function t(n,t,e){if(1===e)return n>=128>>t&&n<<t<=2047;if(2===e)return n>=2048>>t&&n<<t<=55295||n>=57344>>t&&n<<t<=65535;if(3===e)return n>=65536>>t&&n<<t<=1114111;throw new Error}function e(n,t){if(6===n)return t>>6>15?3:t>31?2:1;if(12===n)return t>15?3:2;if(18===n)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,u=0;u<n.length;u+=1){var a=n[u];0!==i&&(a<128||a>191||!t(o<<6|63&a,i-6,e(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(a>=0&&a<=127?(i=0,o=a):a>=192&&a<=223?(i=6,o=31&a):a>=224&&a<=239?(i=12,o=15&a):a>=240&&a<=247?(i=18,o=7&a):(i=0,o=65533),0===i||t(o,i,e(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=o,r};null!=p&&null!=h&&function(){try{return"test"===(new p).decode((new h).encode("test"),{stream:!0})}catch(n){console.log(n)}return!1}()||(p=m);var w=function(){};function _(n){this.withCredentials=!1,this.responseType="",this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onreadystatechange=w,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=w}function S(n){return n.replace(/[A-Z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)+32)})}function C(n){for(var t=Object.create(null),e=n.split("\r\n"),r=0;r<e.length;r+=1){var i=e[r].split(": "),o=i.shift(),u=i.join(": ");t[S(o)]=u}this._map=t}function x(){}function E(n){this._headers=n}function T(){}function O(){this._listeners=Object.create(null)}function A(n){u(function(){throw n},0)}function P(n){this.type=n,this.target=void 0}function j(n,t){P.call(this,n),this.data=t.data,this.lastEventId=t.lastEventId}function q(n,t){P.call(this,n),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}_.prototype.open=function(n,t){this._abort(!0);var e=this,r=this._xhr,i=1,o=0;this._abort=function(n){0!==e._sendTimeout&&(a(e._sendTimeout),e._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=w,r.onerror=w,r.onabort=w,r.onprogress=w,r.onreadystatechange=w,r.abort(),0!==o&&(a(o),o=0),n||(e.readyState=4,e.onreadystatechange())),i=0};var s=function(){if(1===i){var n=0,t="",o=void 0;if("contentType"in r)n=200,t="OK",o=r.contentType;else try{n=r.status,t=r.statusText,o=r.getResponseHeader("Content-Type")}catch(e){n=0,t="",o=void 0}0!==n&&(i=2,e.readyState=2,e.status=n,e.statusText=t,e._contentType=o,e.onreadystatechange())}},f=function(){if(s(),2===i||3===i){i=3;var n="";try{n=r.responseText}catch(n){}e.readyState=3,e.responseText=n,e.onprogress()}},d=function(){f(),1!==i&&2!==i&&3!==i||(i=4,0!==o&&(a(o),o=0),e.readyState=4,e.onreadystatechange())},l=function(){o=u(function(){l()},500),3===r.readyState&&f()};r.onload=d,r.onerror=d,r.onabort=d,"sendAsBinary"in c.prototype||"mozAnon"in c.prototype||(r.onprogress=f),r.onreadystatechange=function(){null!=r&&(4===r.readyState?d():3===r.readyState?f():2===r.readyState&&s())},"contentType"in r&&(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(n,t,!0),"readyState"in r&&(o=u(function(){l()},0))},_.prototype.abort=function(){this._abort(!1)},_.prototype.getResponseHeader=function(n){return this._contentType},_.prototype.setRequestHeader=function(n,t){var e=this._xhr;"setRequestHeader"in e&&e.setRequestHeader(n,t)},_.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders?this._xhr.getAllResponseHeaders():""},_.prototype.send=function(){if("ontimeout"in c.prototype||null==d||null==d.readyState||"complete"===d.readyState){var n=this._xhr;n.withCredentials=this.withCredentials,n.responseType=this.responseType;try{n.send(void 0)}catch(n){throw n}}else{var t=this;t._sendTimeout=u(function(){t._sendTimeout=0,t.send()},4)}},C.prototype.get=function(n){return this._map[S(n)]},x.prototype.open=function(n,t,e,r,i,o,u){n.open("GET",i);var a=0;for(var c in n.onprogress=function(){var t=n.responseText.slice(a);a+=t.length,e(t)},n.onreadystatechange=function(){if(2===n.readyState){var e=n.status,i=n.statusText,o=n.getResponseHeader("Content-Type"),u=n.getAllResponseHeaders();t(e,i,o,new C(u),function(){n.abort()})}else 4===n.readyState&&r()},n.withCredentials=o,n.responseType="text",u)Object.prototype.hasOwnProperty.call(u,c)&&n.setRequestHeader(c,u[c]);n.send()},E.prototype.get=function(n){return this._headers.get(n)},T.prototype.open=function(n,t,e,r,i,o,u){var a=new b,c=a.signal,s=new p;v(i,{headers:u,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then(function(n){var r=n.body.getReader();return t(n.status,n.statusText,n.headers.get("Content-Type"),new E(n.headers),function(){a.abort(),r.cancel()}),new l(function(n,t){var i=function(){r.read().then(function(t){if(t.done)n(void 0);else{var r=s.decode(t.value,{stream:!0});e(r),i()}}).catch(function(n){t(n)})};i()})}).finally(function(){r()})},O.prototype.dispatchEvent=function(n){n.target=this;var t=this._listeners[n.type];if(null!=t)for(var e=t.length,r=0;r<e;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(n):i.call(this,n)}catch(n){A(n)}}},O.prototype.addEventListener=function(n,t){n=String(n);var e=this._listeners,r=e[n];null==r&&(r=[],e[n]=r);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},O.prototype.removeEventListener=function(n,t){n=String(n);var e=this._listeners,r=e[n];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete e[n]:e[n]=i}},j.prototype=Object.create(P.prototype),q.prototype=Object.create(P.prototype);var N=-1,L=0,R=1,k=2,I=-1,H=0,M=1,J=2,D=3,F=/^text\/event\-stream;?(\s*charset\=utf\-8)?$/i,G=function(n,t){var e=parseInt(n,10);return e!=e&&(e=t),U(e)},U=function(n){return Math.min(Math.max(n,1e3),18e6)},X=function(n,t,e){try{"function"==typeof t&&t.call(n,e)}catch(n){A(n)}};function W(n,t){O.call(this),this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this._close=void 0,function(n,t,e){t=String(t);var r=null!=e&&Boolean(e.withCredentials),i=U(1e3),o=null!=e&&null!=e.heartbeatTimeout?G(e.heartbeatTimeout,45e3):U(45e3),f="",d=i,l=!1,v=null!=e&&null!=e.headers?JSON.parse(JSON.stringify(e.headers)):void 0,g=null!=e&&null!=e.Transport?e.Transport:null!=c&&"withCredentials"in c.prototype||null==s?c:s,p=!Q||null!=e&&null!=e.Transport?new _(new g):void 0,h=null==p?new T:new x,b=void 0,y=0,m=N,w="",S="",C="",E="",O=H,W=0,B=0,V=function(t,e,r,o,u){if(m===L)if(b=u,200===t&&null!=r&&F.test(r)){m=R,l=!0,d=i,n.readyState=R;var a=new q("open",{status:t,statusText:e,headers:o});n.dispatchEvent(a),X(n,n.onopen,a)}else{var c="";200!==t?(e&&(e=e.replace(/\s+/g," ")),c="EventSource's response has a status "+t+" "+e+" that is not 200. Aborting the connection."):c="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",A(new Error(c)),Z();var a=new q("error",{status:t,statusText:e,headers:o});n.dispatchEvent(a),X(n,n.onerror,a)}},$=function(t){if(m===R){for(var e=-1,r=0;r<t.length;r+=1){var c=t.charCodeAt(r);c!=="\n".charCodeAt(0)&&c!=="\r".charCodeAt(0)||(e=r)}var s=(-1!==e?E:"")+t.slice(0,e+1);E=(-1===e?E:"")+t.slice(e+1),""!==s&&(l=!0);for(var v=0;v<s.length;v+=1){var c=s.charCodeAt(v);if(O===I&&c==="\n".charCodeAt(0))O=H;else if(O===I&&(O=H),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(O!==H){O===M&&(B=v+1);var g=s.slice(W,B-1),p=s.slice(B+(B<v&&s.charCodeAt(B)===" ".charCodeAt(0)?1:0),v);"data"===g?(w+="\n",w+=p):"id"===g?S=p:"event"===g?C=p:"retry"===g?(i=G(p,i),d=i):"heartbeatTimeout"===g&&(o=G(p,o),0!==y&&(a(y),y=u(function(){K()},o)))}if(O===H){if(""!==w){f=S,""===C&&(C="message");var h=new j(C,{data:w.slice(1),lastEventId:S});if(n.dispatchEvent(h),"message"===C&&X(n,n.onmessage,h),m===k)return}w="",C=""}O=c==="\r".charCodeAt(0)?I:H}else O===H&&(W=v,O=M),O===M?c===":".charCodeAt(0)&&(B=v+1,O=J):O===J&&(O=D)}}},z=function(){if(m===R||m===L){m=N,0!==y&&(a(y),y=0),y=u(function(){K()},d),d=U(Math.min(16*i,2*d)),n.readyState=L;var t=new P("error");n.dispatchEvent(t),X(n,n.onerror,t)}},Z=function(){m=k,null!=b&&(b(),b=void 0),0!==y&&(a(y),y=0),n.readyState=k},K=function(){if(y=0,m===N){l=!1,y=u(function(){K()},o),m=L,w="",C="",S=f,E="",W=0,B=0,O=H;var n=t;"data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==f&&(n+=(-1===t.indexOf("?")?"?":"&")+"lastEventId="+encodeURIComponent(f));var e={Accept:"text/event-stream"};if(null!=v)for(var i in v)Object.prototype.hasOwnProperty.call(v,i)&&(e[i]=v[i]);try{h.open(p,V,$,z,n,r,e)}catch(n){throw Z(),n}}else l||null==b?(l=!1,y=u(function(){K()},o)):(A(new Error("No activity within "+o+" milliseconds. Reconnecting.")),b(),b=void 0)};n.url=t,n.readyState=L,n.withCredentials=r,n._close=Z,K()}(this,n,t)}var Q=null!=v&&null!=g&&"body"in g.prototype;W.prototype=Object.create(O.prototype),W.prototype.CONNECTING=L,W.prototype.OPEN=R,W.prototype.CLOSED=k,W.prototype.close=function(){this._close()},W.CONNECTING=L,W.OPEN=R,W.CLOSED=k,W.prototype.withCredentials=void 0,function(e){if("object"==typeof n.exports){var u=e(t);void 0!==u&&(n.exports=u)}else i=[t],void 0===(o="function"==typeof(r=e)?r.apply(t,i):r)||(n.exports=o)}(function(n){n.EventSourcePolyfill=W,n.NativeEventSource=f,null==c||null!=f&&"withCredentials"in f.prototype||(n.EventSource=W)})}("undefined"!=typeof window?window:this)},7:function(n,t,e){"use strict";e.d(t,"c",function(){return i}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return u});var r=e(1);function i(n,t){if(t in n)return r.c(n[t])}function o(n){for(var t={},e=n;;){var r=e;if(!r)return t;var i=r[0];t[i[0]]=i[1],e=r[1]}}function u(n){for(var t={},e=0,r=n.length-1|0;e<=r;++e){var i=n[e];t[i[0]]=i[1]}return t}},8:function(n,t,e){"use strict";function r(n,t){return t.tag=n,t}e.d(t,"a",function(){return r})},83:function(n,t,e){"use strict";e.d(t,"b",function(){return i}),e.d(t,"a",function(){return c});e(0);var r=e(12);function i(n,t){var e=n.length;if(0===e||1===e)return e;var r=n[0],i=n[1];if(!t(r,i))return t(i,r)?0|-function(n,t,e,r,i){for(;;){var o=e,u=t;if(o>=r)return o;var a=n[o];if(!i(a,u))return o;e=o+1|0,t=a}}(n,i,2,e,t):1;for(var o=n,u=i,a=2,c=e,s=t;;){var f=a,d=u;if(f>=c)return f;var l=o[f];if(!s(d,l))return f;a=f+1|0,u=l}}function o(n,t,e,i,o,u,a,c,s){for(var f=t+e|0,d=o+u|0,l=t,v=n[t],g=o,p=i[o],h=c;;){var b=h,y=p,m=g,w=v,_=l;if(s(w,y)<=0){a[b]=w;var S=_+1|0;if(S<f){h=b+1|0,v=n[S],l=S;continue}return r.a(i,m,a,b+1|0,d-m|0)}a[b]=y;var C=m+1|0;if(!(C<d))return r.a(n,_,a,b+1|0,f-_|0);h=b+1|0,p=i[C],g=C}}function u(n,t,e,r,i,o){for(var u=0,a=i-1|0;u<=a;++u){for(var c=n[t+u|0],s=(r+u|0)-1|0;s>=r&&o(e[s],c)>0;)e[s+1|0]=e[s],s=s-1|0;e[s+1|0]=c}return 0}function a(n,t,e,r,i,c){if(i<=5)return u(n,t,e,r,i,c);var s=i/2|0,f=i-s|0;return a(n,t+s|0,e,r+s|0,f,c),a(n,t,n,t+f|0,s,c),o(n,t+f|0,s,e,r+s|0,f,e,r,c)}function c(n,t){var e=n.length;if(e<=5)return u(n,0,n,0,e,t);var r=e/2|0,i=e-r|0,c=new Array(i);return a(n,r,c,0,i,t),a(n,0,n,i,r,t),o(n,i,r,c,0,i,n,0,t)}},84:function(n,t,e){"use strict";e.d(t,"a",function(){return i});var r=e(16);function i(n){return[function(n){return r.c(n.eventPhase)}]}},85:function(n,t,e){"use strict";e.d(t,"a",function(){return u}),e.d(t,"b",function(){return a});e(8);var r=e(13),i=e(11);function o(n,t){for(var e in n)t(e)}function u(n,t){for(;;){var e=t,a=n;if(a===e)return 0;var c=typeof a,s=typeof e,f=0;switch(c){case"boolean":if("boolean"===s)return r.a(a,e);f=1;break;case"function":if("function"===s)throw[i.c,"compare: functional value"];f=1;break;case"number":if("number"===s)return r.b(a,e);f=1;break;case"string":return"string"===s?r.e(a,e):1;case"undefined":return-1;default:f=1}if(1===f)switch(s){case"string":return-1;case"undefined":return 1;default:if("boolean"===c)return 1;if("boolean"===s)return-1;if("function"===c)return 1;if("function"===s)return-1;if("number"===c)return null===e||256===e.tag?1:-1;if("number"===s)return null===a||256===a.tag?-1:1;if(null===a)return 256===e.tag?1:-1;if(null===e)return 256===a.tag?-1:1;var d=0|a.tag,l=0|e.tag;if(250===d){n=a[0];continue}if(250===l){t=e[0];continue}if(256===d)return 256===l?r.b(a[1],e[1]):-1;if(248===d)return r.b(a[1],e[1]);if(251===d)throw[i.c,"equal: abstract value"];if(d!==l)return d<l?-1:1;var v=0|a.length,g=0|e.length;if(v===g){if(!Array.isArray(a)){if(a instanceof Date&&e instanceof Date)return a-e;var p=a,h=e,b=[void 0],y=[void 0],m=function(n,t){var e=n[2],r=n[1];if(!r.hasOwnProperty(t)||u(n[0][t],r[t])>0){var i=e[0];return void 0!==i&&t>=i?0:(e[0]=t,0)}return 0},w=function(n){return function(t){return m(n,t)}}([p,h,y]),_=function(n){return function(t){return m(n,t)}}([h,p,b]);o(p,w),o(h,_);var S=b[0],C=y[0];return void 0!==S?void 0!==C?r.e(S,C):-1:void 0!==C?1:0}for(var x=a,E=e,T=0,O=v;;){var A=T;if(A===O)return 0;var P=u(x[A],E[A]);if(0!==P)return P;T=A+1|0}}else if(v<g)for(var j=a,q=e,N=0,L=v;;){var R=N;if(R===L)return-1;var k=u(j[R],q[R]);if(0!==k)return k;N=R+1|0}else for(var I=a,H=e,M=0,J=g;;){var D=M;if(D===J)return 1;var F=u(I[D],H[D]);if(0!==F)return F;M=D+1|0}}}}function a(n,t){for(;;){var e=t,r=n;if(r===e)return!0;var u=typeof r;if("string"===u||"number"===u||"boolean"===u||"undefined"===u||null===r)return!1;var c=typeof e;if("function"===u||"function"===c)throw[i.c,"equal: functional value"];if("number"===c||"undefined"===c||null===e)return!1;var s=0|r.tag,f=0|e.tag;if(250!==s)if(250!==f){if(248===s)return r[1]===e[1];if(251===s)throw[i.c,"equal: abstract value"];if(s!==f)return!1;if(256===s)return r[1]===e[1];var d=0|r.length;if(d!==(0|e.length))return!1;if(!Array.isArray(r)){if(r instanceof Date&&e instanceof Date)return!(r>e||r<e);var l=r,v=e,g=[!0],p=function(n,t){return function(e){return n.hasOwnProperty(e)?0:(t[0]=!1,0)}}(v,g),h=function(n,t,e){return function(r){return n.hasOwnProperty(r)&&a(t[r],n[r])?0:(e[0]=!1,0)}}(l,v,g);return o(l,p),g[0]&&o(v,h),g[0]}for(var b=r,y=e,m=0,w=d;;){var _=m;if(_===w)return!0;if(!a(b[_],y[_]))return!1;m=_+1|0}}else t=e[0];else n=r[0]}}}});