Gravity PDF - Version 6.4.3

Version Description

  • Bug: Open PDF "view" link in a new browser tab on Entry List page
  • Bug: Only hide Select field in Core/Universal templates if the saved value is an empty string, not a falsey value
  • Bug: Prevent PHP notice when displaying Repeater field in PDFs with a Number sub-field
  • Bug: Prevent HTML attribute content from having their entities decoded if they were previously encoded
  • Bug: Fix Core/Universal template image display issues on servers running Windows
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 6.4.3
Comparing to
See all releases

Code changes from version 6.4.2 to 6.4.3

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://gravitypdf.com/donate-to-plugin/
5
  Tags: gravityforms, gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 5.3
7
  Tested up to: 6.0
8
- Stable tag: 6.4.2
9
  Requires PHP: 7.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl.txt
@@ -107,6 +107,13 @@ If you aren't able to meet the v6 minimum requirements [you can download v5 whic
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
 
 
110
  = 6.4.2 =
111
  * Bug: Allow `data` protocol so Base 64-encoded images can be correctly displayed in Core/Universal templates
112
  * Bug: Fix Core Font Installer problem when running older versions of WordPress (5.3 to 5.8)
5
  Tags: gravityforms, gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 5.3
7
  Tested up to: 6.0
8
+ Stable tag: 6.4.3
9
  Requires PHP: 7.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl.txt
107
 
108
  == Changelog ==
109
 
110
+ = 6.4.3 =
111
+ * Bug: Open PDF "view" link in a new browser tab on Entry List page
112
+ * Bug: Only hide Select field in Core/Universal templates if the saved value is an empty string, not a falsey value
113
+ * Bug: Prevent PHP notice when displaying Repeater field in PDFs with a Number sub-field
114
+ * Bug: Prevent HTML attribute content from having their entities decoded if they were previously encoded
115
+ * Bug: Fix Core/Universal template image display issues on servers running Windows
116
+
117
  = 6.4.2 =
118
  * Bug: Allow `data` protocol so Base 64-encoded images can be correctly displayed in Core/Universal templates
119
  * Bug: Fix Core Font Installer problem when running older versions of WordPress (5.3 to 5.8)
dist/assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t={9662:(t,e,n)=>{var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:(t,e,n)=>{var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},1318:(t,e,n)=>{var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,c=r(e),f=o(c),u=i(a,f);if(t&&n!=n){for(;f>u;)if((s=c[u++])!=s)return!0}else for(;f>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1589:(t,e,n)=>{var r=n(1400),i=n(6244),o=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var c=i(t),f=r(e,c),u=r(void 0===n?c:n,c),p=a(s(u-f,0)),l=0;f<u;f++,l++)o(p,l,t[f]);return p.length=l,p}},4326:(t,e,n)=>{var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s=Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},9920:(t,e,n)=>{var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),c=a.f,f=o.f,u=0;u<s.length;u++){var p=s[u];r(t,p)||n&&r(n,p)||c(t,p,f(e,p))}}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},7045:(t,e,n)=>{var r=n(6339),i=n(3070);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},8052:(t,e,n)=>{var r=n(614),i=n(3070),o=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,f=void 0!==s.name?s.name:e;if(r(n)&&o(n,f,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:(t,e,n)=>{var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),s=o.process,c=o.Deno,f=s&&s.versions||c&&c.version,u=f&&f.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),c=n(9920),f=n(4705);t.exports=function(t,e){var n,u,p,l,d,g=t.target,v=t.global,h=t.stat;if(n=v?r:h?r[g]||s(g,{}):(r[g]||{}).prototype)for(u in e){if(l=e[u],p=t.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!f(v?u:g+(h?".":"#")+u,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&o(l,"sham",!0),a(n,u,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1702),i=n(8052),o=n(2261),a=n(7293),s=n(5112),c=n(8880),f=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,p){var l=s(t),d=!a((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),g=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[f]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!d||!g||n){var v=r(/./[l]),h=e(l,""[t],(function(t,e,n,i,a){var s=r(t),c=e.exec;return c===o||c===u.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,h[0]),i(u,l,h[1])}p&&c(u[l],"sham",!0)}},2104:(t,e,n)=>{var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},4374:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,e,n)=>{var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:(t,e,n)=>{var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,f=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:f}},1702:(t,e,n)=>{var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,p,l){var d=n+t.length,g=r.length,v=u;return void 0!==p&&(p=i(p),v=f),s(l,v,(function(i,s){var f;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,d);case"<":f=p[c(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>g){var l=o(u/10);return 0===l?i:l<=g?void 0===r[l-1]?a(s,1):r[l-1]+a(s,1):i}f=r[u-1]}return void 0===f?"":f}))}},7854:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(t,e,n)=>{var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:t=>{t.exports={}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:(t,e,n)=>{var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9909:(t,e,n)=>{var r,i,o,a=n(8536),s=n(7854),c=n(1702),f=n(111),u=n(8880),p=n(2597),l=n(5465),d=n(6200),g=n(3501),v="Object already initialized",h=s.TypeError,m=s.WeakMap;if(a||l.state){var _=l.state||(l.state=new m),y=c(_.get),b=c(_.has),x=c(_.set);r=function(t,e){if(b(_,t))throw new h(v);return e.facade=t,x(_,t,e),e},i=function(t){return y(_,t)||{}},o=function(t){return b(_,t)}}else{var w=d("state");g[w]=!0,r=function(t,e){if(p(t,w))throw new h(v);return e.facade=t,u(t,w,e),e},i=function(t){return p(t,w)?t[w]:{}},o=function(t){return p(t,w)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=i(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),c=n(2788),f=function(){},u=[],p=s("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=r(l.exec),g=!l.exec(f),v=function(t){if(!o(t))return!1;try{return p(f,u,t),!0}catch(t){return!1}},h=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(l,c(t))}catch(t){return!0}};h.sham=!0,t.exports=!p||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?h:v},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=f&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},f=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},6244:(t,e,n)=>{var r=n(7466);t.exports=function(t){return r(t.length)}},6339:(t,e,n)=>{var r=n(7293),i=n(614),o=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,c=n(2788),f=n(9909),u=f.enforce,p=f.get,l=Object.defineProperty,d=a&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),g=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=u(t);return o(r,"source")||(r.source=g.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&p(this).source||c(this)}),"toString")},4758:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),c=n(490),f=n(317),u=n(6200),p=u("IE_PROTO"),l=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&r?g(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(r);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=i(t),n=new l,l.prototype=null,n[p]=t):n=v(),void 0===e?n:o.f(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),c=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=c(e),f=i.length,u=0;f>u;)o.f(t,n=i[u++],r[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),c=TypeError,f=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n.writable){var r=u(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:l in n?n.configurable:r.configurable,enumerable:p in n?n.enumerable:r.enumerable,writable:!1})}return f(t,e,n)}:f:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),c=n(4948),f=n(2597),u=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(t){}if(f(t,e))return a(!i(o.f,t,e),t[e])}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},7976:(t,e,n)=>{var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:(t,e,n)=>{var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);t.exports=function(t,e){var n,r=o(t),f=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;e.length>f;)i(r,n=e[f++])&&(~a(u,n)||c(u,n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},2140:(t,e,n)=>{var r=n(6916),i=n(614),o=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},2626:(t,e,n)=>{var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},7651:(t,e,n)=>{var r=n(6916),i=n(9670),o=n(614),a=n(4326),s=n(2261),c=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var f=r(n,t,e);return null!==f&&i(f),f}if("RegExp"===a(t))return r(s,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),c=n(7066),f=n(2999),u=n(2309),p=n(30),l=n(9909).get,d=n(9441),g=n(7168),v=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,_=a("".charAt),y=a("".indexOf),b=a("".replace),x=a("".slice),w=(i=/b*/g,o(h,r=/a/,"a"),o(h,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=f.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(w||O||S||d||g)&&(m=function(t){var e,n,r,i,a,f,u,d=this,g=l(d),E=s(t),j=g.raw;if(j)return j.lastIndex=d.lastIndex,e=o(m,j,E),d.lastIndex=j.lastIndex,e;var C=g.groups,P=S&&d.sticky,F=o(c,d),A=d.source,I=0,R=E;if(P&&(F=b(F,"y",""),-1===y(F,"g")&&(F+="g"),R=x(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==_(E,d.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,I++),n=new RegExp("^(?:"+A+")",F)),O&&(n=new RegExp("^"+A+"$(?!\\s)",F)),w&&(r=d.lastIndex),i=o(h,P?n:d,R),P?i?(i.input=x(i.input,I),i[0]=x(i[0],I),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&C)for(i.groups=f=p(null),a=0;a<C.length;a++)f[(u=C[a])[0]]=i[u[1]];return i}),t.exports=m},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:(t,e,n)=>{var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(1702),i=n(9303),o=n(1340),a=n(4488),s=r("".charAt),c=r("".charCodeAt),f=r("".slice),u=function(t){return function(e,n){var r,u,p=o(a(e)),l=i(n),d=p.length;return l<0||l>=d?t?"":void 0:(r=c(p,l))<55296||r>56319||l+1===d||(u=c(p,l+1))<56320||u>57343?t?s(p,l):r:t?f(p,l,l+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},1400:(t,e,n)=>{var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:(t,e,n)=>{var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:(t,e,n)=>{var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:(t,e,n)=>{var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),c=n(5112),f=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:(t,e,n)=>{var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,e,n)=>{var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),c=n(3307),f=i("wks"),u=r.Symbol,p=u&&u.for,l=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!o(f,t)||!s&&"string"!=typeof f[t]){var e="Symbol."+t;s&&o(u,t)?f[t]=u[t]:f[t]=c&&p?p(e):l(e)}return f[t]}},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),c=n(8880),f=n(8006).f,u=n(7976),p=n(7850),l=n(1340),d=n(4706),g=n(2999),v=n(2626),h=n(8052),m=n(7293),_=n(2597),y=n(9909).enforce,b=n(6340),x=n(5112),w=n(9441),S=n(7168),O=x("match"),E=i.RegExp,j=E.prototype,C=i.SyntaxError,P=o(j.exec),F=o("".charAt),A=o("".replace),I=o("".indexOf),R=o("".slice),k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,M=/a/g,D=new E(T)!==T,L=g.MISSED_STICKY,N=g.UNSUPPORTED_Y,U=r&&(!D||L||w||S||m((function(){return M[O]=!1,E(T)!=T||E(M)==M||"/a/i"!=E(T,"i")})));if(a("RegExp",U)){for(var G=function(t,e){var n,r,i,o,a,f,g=u(j,this),v=p(t),h=void 0===e,m=[],b=t;if(!g&&v&&h&&t.constructor===G)return t;if((v||u(j,t))&&(t=t.source,h&&(e=d(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,w&&"dotAll"in T&&(r=!!e&&I(e,"s")>-1)&&(e=A(e,/s/g,"")),n=e,L&&"sticky"in T&&(i=!!e&&I(e,"y")>-1)&&N&&(e=A(e,/y/g,"")),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,c=!1,f=0,u="";r<=n;r++){if("\\"===(e=F(t,r)))e+=F(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:P(k,R(t,r+1))&&(r+=2,c=!0),i+=e,f++;continue;case">"===e&&c:if(""===u||_(a,u))throw new C("Invalid capture group name");a[u]=!0,o[o.length]=[u,f],c=!1,u="";continue}c?u+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),a=s(E(t,e),g?this:j,G),(r||i||m.length)&&(f=y(a),r&&(f.dotAll=!0,f.raw=G(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=F(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+F(t,++r);return i}(t),n)),i&&(f.sticky=!0),m.length&&(f.groups=m)),t!==b)try{c(a,"source",""===b?"(?:)":b)}catch(t){}return a},$=f(E),z=0;$.length>z;)v(G,E,$[z++]);j.constructor=G,G.prototype=j,h(i,"RegExp",G,{constructor:!0})}b("RegExp")},8450:(t,e,n)=>{var r=n(9781),i=n(9441),o=n(4326),a=n(7045),s=n(9909).get,c=RegExp.prototype,f=TypeError;r&&i&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!s(this).dotAll;throw f("Incompatible receiver, RegExp required")}}})},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(8052),o=n(9670),a=n(1340),s=n(7293),c=n(4706),f="toString",u=RegExp.prototype.toString,p=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l=r&&u.name!=f;(p||l)&&i(RegExp.prototype,f,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(c(t))}),{unsafe:!0})},5306:(t,e,n)=>{"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),c=n(9670),f=n(614),u=n(9303),p=n(7466),l=n(1340),d=n(4488),g=n(1530),v=n(8173),h=n(647),m=n(7651),_=n(5112)("replace"),y=Math.max,b=Math.min,x=o([].concat),w=o([].push),S=o("".indexOf),O=o("".slice),E="$0"==="a".replace(/./,"$0"),j=!!/./[_]&&""===/./[_]("a","$0");a("replace",(function(t,e,n){var o=j?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:v(t,_);return o?i(o,t,r,n):i(e,l(r),t,n)},function(t,i){var a=c(this),s=l(t);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var v=f(i);v||(i=l(i));var _=a.global;if(_){var E=a.unicode;a.lastIndex=0}for(var j=[];;){var C=m(a,s);if(null===C)break;if(w(j,C),!_)break;""===l(C[0])&&(a.lastIndex=g(s,p(a.lastIndex),E))}for(var P,F="",A=0,I=0;I<j.length;I++){for(var R=l((C=j[I])[0]),k=y(b(u(C.index),s.length),0),T=[],M=1;M<C.length;M++)w(T,void 0===(P=C[M])?P:String(P));var D=C.groups;if(v){var L=x([R],T,k,s);void 0!==D&&w(L,D);var N=l(r(i,void 0,L))}else N=h(R,s,k,T,D,i);k>=A&&(F+=O(s,A,k)+N,A=k+R.length)}return F+O(s,A)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||j)},3123:(t,e,n)=>{"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7850),c=n(9670),f=n(4488),u=n(6707),p=n(1530),l=n(7466),d=n(1340),g=n(8173),v=n(1589),h=n(7651),m=n(2261),_=n(2999),y=n(7293),b=_.UNSUPPORTED_Y,x=4294967295,w=Math.min,S=[].push,O=o(/./.exec),E=o(S),j=o("".slice);a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=d(f(this)),a=void 0===n?x:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);for(var c,u,p,l=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,_=new RegExp(t.source,g+"g");(c=i(m,_,o))&&!((u=_.lastIndex)>h&&(E(l,j(o,h,c.index)),c.length>1&&c.index<o.length&&r(S,l,v(c,1)),p=c[0].length,h=u,l.length>=a));)_.lastIndex===c.index&&_.lastIndex++;return h===o.length?!p&&O(_,"")||E(l,""):E(l,j(o,h)),l.length>a?v(l,0,a):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=f(this),a=null==e?void 0:g(e,t);return a?i(a,e,r,n):i(o,d(r),e,n)},function(t,r){var i=c(this),a=d(t),s=n(o,i,a,r,o!==e);if(s.done)return s.value;var f=u(i,RegExp),g=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),m=new f(b?"^(?:"+i.source+")":i,v),_=void 0===r?x:r>>>0;if(0===_)return[];if(0===a.length)return null===h(m,a)?[a]:[];for(var y=0,S=0,O=[];S<a.length;){m.lastIndex=b?0:S;var C,P=h(m,b?j(a,S):a);if(null===P||(C=w(l(m.lastIndex+(b?S:0)),a.length))===y)S=p(a,S,g);else{if(E(O,j(a,y,S)),O.length===_)return O;for(var F=1;F<=P.length-1;F++)if(E(O,P[F]),O.length===_)return O;S=y=C}}return E(O,j(a,y)),O}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),b)},3753:(t,e,n)=>{"use strict";var r=n(2109),i=n(6916);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=jQuery;var e=n.n(t);n(3753);function r(t,n){return e().ajax({type:"post",dataType:"json",url:GFPDF.ajaxUrl,data:t,success:n,error:n})}function i(t){return e()("<img alt="+GFPDF.spinnerAlt+" src="+GFPDF.spinnerUrl+" class="+t+" />")}function o(t){var n=e()("#gfpdf-settings-field-wrapper-font, #gfpdf-settings-field-wrapper-font_size, #gfpdf-settings-field-wrapper-font_colour");"legacy"===t?n.hide():n.show()}function a(t,e,n,r){var i="submit-container-"+n;if(!t.classList.contains("gform-settings-panel--collapsed")){var o=e.querySelector("#submit").cloneNode(!0);o.setAttribute("id","submit_"+n);var a=document.createElement("div");return a.setAttribute("class",i),a.innerHTML=o.outerHTML,t.parentNode.insertBefore(a,t.nextSibling)}r||document.querySelector(".".concat(i)).remove()}function s(){e()("#gfpdf_settings\\[template\\]").off("change").on("change",(function(){var t=i("gfpdf-spinner-template");e()(this).next().after(t),r({action:"gfpdf_get_template_fields",nonce:GFPDF.ajaxNonce,template:e()(this).val(),type:e()(this).attr("id"),id:e()("#gform_id").val(),gform_pdf_id:e()("#gform_pdf_id").val()},(function(n){var r,i,s=e()(".submit-container-2")[0];t.remove(),e()('input[name="gfpdf_settings[advanced_template]"][value="No"]').prop("checked",!0).trigger("change"),n.fields?(e().each(n.editors,(function(t,e){var n=tinyMCE.get(e);if(null!==n)try{tinyMCE.remove(n)}catch(t){}})),s||a(e()("#gfpdf-fieldset-gfpdf_form_settings_template")[0],e()("#gfpdf_pdf_form")[0],"2"),e()("#gfpdf-fieldset-gfpdf_form_settings_template").show().find(".gform-settings-panel__content").html(n.fields),r=n.editors,null!=(i=n.editor_init)&&(i.body_class="id post-type-post post-status-publish post-format-standard",i.formats={alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},i.content_style='body#tinymce { max-width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;}'),e().each(r,(function(t,e){i.selector="#"+e,tinyMCE.init(i),tinyMCE.execCommand("mceAddEditor",!1,e),"function"==typeof QTags&&(QTags({id:e}),QTags._buttonsInit(),"function"==typeof switchEditors.switchto&&switchEditors.switchto(jQuery("#wp-"+e+"-wrap").find(".wp-switch-editor.switch-"+("html"===getUserSetting("editor")?"html":"tmce"))[0]))})),c.runElements(),window.gfMergeTags&&"undefined"!=typeof form&&e()("#gfpdf-fieldset-gfpdf_form_settings_template .merge-tag-support").length>=0&&(e()("#gfpdf-fieldset-gfpdf_form_settings_template .merge-tag-support").each((function(){new gfMergeTagsObj(form,e()(this))})),e()("#gfpdf-fieldset-gfpdf_form_settings_template .gform-settings-field").each((function(){e()(this).find(".merge-tag-support, .merge-tag-support + span").wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag"></div>'),e()(this).find(".all-merge-tags.textarea").parent().wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag gfpdf-merge-tag-container"></div>')}))),gform_initialize_tooltips()):(s&&s.remove(),e()("#gfpdf-fieldset-gfpdf_form_settings_template").hide().find(".gform-settings-panel__content").html("")),n.template_type&&o(n.template_type),e()(document).trigger("gfpdf_template_loaded",[n])}))}))}var c=new class{runElements(){var t;"undefined"!=typeof gf_vars&&(gf_vars.thisFormButton=GFPDF.conditionalText,gf_vars.show=GFPDF.enable,gf_vars.hide=GFPDF.disable),window.formfield="",e()("body").off("click",".gfpdf_settings_upload_button").on("click",".gfpdf_settings_upload_button",(function(n){n.preventDefault();var r=e()(this);window.formfield=e()(this).prev(),t||(t=wp.media.frames.file_frame=wp.media({title:r.data("uploader-title"),button:{text:r.data("uploader-button-text")},multiple:!1})).on("select",(function(){t.state().get("selection").each((function(t){t=t.toJSON(),window.formfield.val(t.url).trigger("change")}))})),t.open()})),e()(".gfpdf-color-picker").each((function(){e()(this).wpColorPicker({width:300}),e()(this).parents(".wp-picker-container").find(".wp-color-result").addClass("ed_button")})),e()(".gfpdf_paper_size").each((function(){var t=e()(this).nextAll(".gfpdf_paper_size_other").first();e()(this).find("select").off("change").on("change",(function(){"CUSTOM"===e()(this).val()?t.fadeIn():t.fadeOut()})).trigger("change")})),e()("form").off("change",".gfpdf-input-toggle").on("change",".gfpdf-input-toggle",(function(){var t=e()(this).parent().next();e()(this).prop("checked")?t.slideDown("slow"):(t.slideUp("slow"),t.find(".wp-editor-area").each((function(){var t=tinyMCE.get(e()(this).attr("id"));null!==t&&t.setContent("")})),t.find("textarea").each((function(){e()(this).val("")})))})),s(),e()(".gfpdf-deactivate-license").on("click",(function(){var t=e()(this).parent(),n=i("gfpdf-spinner");e()(this).append(n);var o=e()(this).data("addon-name");return r({action:"gfpdf_deactivate_license",addon_name:o,nonce:e()(this).data("nonce")},(function(r){n.remove(),r.success?(e()("#gfpdf_settings\\[license_"+o+"\\]").val(""),e()("#gfpdf_settings\\[license_"+o+"_message\\]").val(""),e()("#gfpdf_settings\\[license_"+o+"_status\\]").val(""),t.find("button").remove(),t.find("#message").removeClass("error").addClass("success").html(r.success)):t.find("#message").removeClass("success").addClass("error").html(r.error)})),!1}))}};n(4603),n(8450),n(4916),n(9714),n(5306);function f(t){t.attr("novalidate","novalidate"),t.find('input[type="submit"]').on("click",(function(){t.addClass("formSubmitted")})),t.find(':input[required=""], :input[required]').each((function(){var t=e()(this).parent();t.find(".gform-settings-panel__title a").length?t.find(".gform-settings-panel__title a").before('<span class="gfield_required">(required)</span>'):t.find(".gform-settings-panel__title").append('<span class="gfield_required">(required)</span>')}))}function u(t,n,r){n=void 0!==n?n:4500,r=void 0!==r&&r;var i=e()('<div id="message">').html("<p>"+t+"</p>");!0===r?i.addClass("error"):i.addClass("updated"),e()(".wrap > h2").after(i),setTimeout((function(){i.slideUp()}),n)}function p(){function t(t){t.append(i("gfpdf-spinner gfpdf-spinner-small")).closest(".row-actions").attr("style","position:static; visibility: visible;"),r({action:"gfpdf_list_delete",nonce:t.data("nonce"),fid:t.data("fid"),pid:t.data("id")},(function(n){n.msg&&(t.closest(".row-actions").attr("style","").find(".gfpdf-spinner").remove(),u(n.msg),t.parents("tr").css("background","#ffb8b8").fadeOut(400,(function(){this.remove(),function(){var t=e()("#gfpdf_list_form tbody");if(0===t.find("tr").length){var n=e()("<tr>").addClass("no-items"),r=e()("<td>").attr("colspan","5").addClass("colspanchange"),i=e()("<a>").attr("href",e()("#gfpdf_list_form a.button:first").attr("href")).append(GFPDF.letsGoCreateOne+".");r.append(GFPDF.thisFormHasNoPdfs).append(" ").append(i),n.append(r),t.append(n)}}()})))}))}e()("#gfpdf_list_form").on("click","a.submitdelete",(function(){String(e()(this).data("id")).length>0&&window.confirm(GFPDF.pdfDeleteWarning)&&t(e()(this));return!1}))}n(3123);var l=new class{setupAJAXListListener(){p(),e()("#gfpdf_list_form").on("click","a.submitduplicate",(function(t){t.preventDefault();var n=String(e()(this).data("id")),o=this;e()(this).after(i("gfpdf-spinner gfpdf-spinner-small")).parent().parent().attr("style","position:static; visibility: visible;"),n.length>0&&r({action:"gfpdf_list_duplicate",nonce:e()(this).data("nonce"),fid:e()(this).data("fid"),pid:e()(this).data("id")},(function(t){if(t.msg){e()(o).parent().parent().attr("style","").find(".gfpdf-spinner").remove(),u(t.msg);var r=e()(o).parents("tr"),i=r.clone();i.find(".column-name > a, .edit a").each((function(){var n=e()(this).attr("href");n=function(t,e,n){var r="",i=t.split("?"),o=i[0],a=i[1],s="";if(a){i=a.split("&");for(var c=0;c<i.length;c++)i[c].split("=")[0]!==e&&(r+=s+i[c],s="&")}return o+"?"+r+s+e+"="+n}(n,"pid",t.pid),e()(this).attr("href",n)})),i.find(".column-name > a").html(t.name);var a=i.find(".duplicate a"),s=i.find(".delete a"),c=i.find(".check-column button"),f=i.find(".column-shortcode");a.data("id",t.pid),a.data("nonce",t.dup_nonce),s.data("id",t.pid),s.data("nonce",t.del_nonce),c.data("id",t.pid),c.data("nonce",t.state_nonce),c[0].setAttribute("data-status","inactive");var p=f.find("button").attr("data-clipboard-text");p=p.replace(n,t.pid),f.find("button").attr("data-clipboard-text",p),f.find("input").attr("id",t.pid).attr("value",p),c.removeClass("gform-status--active").addClass("gform-status--inactive").find(".gform-status-indicator-status").html(t.status),i.hide().insertAfter(r).fadeIn()}}))})),e()("#gfpdf_list_form").on("click",".check-column button",(function(){var t=String(e()(this).data("id")),n=e()(this),i=n.find("span.gform-status-indicator-status");t.length>0&&(n.addClass("gform_status--pending").removeClass("gform-status--active gform-status--inactive"),r({action:"gfpdf_change_state",nonce:e()(this).data("nonce"),fid:e()(this).data("fid"),pid:e()(this).data("id")},(function(t){i.html(t.state),"active"===n.data("status")?(n[0].setAttribute("data-status","inactive"),n.data("status","inactive").removeClass("gform_status--pending").addClass("gform-status--inactive")):(n[0].setAttribute("data-status","active"),n.data("status","active").removeClass("gform_status--pending").addClass("gform-status--active"))})))}))}};function d(){var t,n,r,i,a,s,c,u;f(e()("#gfpdf_pdf_form")),t=e()("#gfpdf-fieldset-gfpdf_form_settings_advanced"),n=t.find('input[name="gfpdf_settings[security]"]'),r=t.find('input[name="gfpdf_settings[format]"]'),i=t.find("#gfpdf-settings-field-wrapper-security"),a=t.find("#gfpdf-settings-field-wrapper-password,#gfpdf-settings-field-wrapper-privileges,#gfpdf-settings-field-wrapper-master_password:not(.gfpdf-hidden)"),n.on("change",(function(){var t=r.filter(":checked").val();"No"===e()(this).val()||"Standard"!==t?a.hide():e()(this).is(":checked")?a.show():a.hide(),"Standard"!==t?i.hide():i.show()})).trigger("change"),r.on("change",(function(){e()(this).is(":checked")&&n.trigger("change")})).trigger("change"),gform.addFilter("gform_conditional_object",(function(t,e){return"gfpdf"===e?window.gfpdf_current_pdf:t})),e()("#gfpdf_conditional_logic").on("change",(function(){void 0===window.gfpdf_current_pdf.conditionalLogic&&e()(this).prop("checked")?window.gfpdf_current_pdf.conditionalLogic=new ConditionalLogic:e()(this).prop("checked")||(window.gfpdf_current_pdf.conditionalLogic=null),ToggleConditionalLogic(!1,"gfpdf")})).trigger("change"),s=e()("#gfpdf-fieldset-gfpdf_form_settings_advanced").find('input[name="gfpdf_settings[public_access]"]'),c=e()("#gfpdf-settings-field-wrapper-restrict_owner"),s.on("change",(function(){e()(this).is(":checked")?c.hide():c.show()})).trigger("change"),o(e()("#gfpdf_settings\\[template\\]").data("template_group")),u=e()("#gfpdf-fieldset-gfpdf_form_settings_appearance"),e()('input[name="gfpdf_settings[advanced_template]"]').on("change",(function(){"Yes"===e()(this).val()?u.hide():u.show()})),e()('input[name="gfpdf_settings[advanced_template]"]:checked').trigger("change"),e()(".gform-settings-field").each((function(){e()(this).find(".merge-tag-support, .merge-tag-support + span").wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag"></div>'),e()(this).find(".all-merge-tags.textarea").parent().wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag gfpdf-merge-tag-container"></div>')}));var p=e()("#gfpdf-fieldset-gfpdf_form_settings_template");0===p.find(".gform-settings-panel__content").children().length&&p.hide(),e()(".gform-settings__wrapper > .alert").detach().prependTo("#tab_PDF"),e()("#gfpdf_pdf_form").on("submit",(function(){try{tinyMCE.triggerSave()}catch(t){}})),e()("#gfpdf_pdf_form").on("submit",(function(){e()("#gfpdf_settings\\[conditionalLogic\\]").val(e().toJSON(window.gfpdf_current_pdf.conditionalLogic))}))}var g=new class{isSettings(){return e()("#pdfextended-settings").length}isFormSettings(){return e()(".gforms_edit_form").length}isFormSettingsList(){return e()("#gfpdf_list_form").length}isFormSettingsEdit(){return e()("#gfpdf_pdf_form").length}};var v=new class{init(){c.runElements(),g.isSettings()&&this.processSettings(),g.isFormSettings()&&this.processFormSettings()}getCurrentSettingsPage(){return g.isSettings()?e()(".gform-settings-tabs__navigation a.active:first").data("id"):""}processSettings(){if(e()("#gform_tabs a").each((function(){var t=e()(this).attr("href"),n=new RegExp("&tab=[^&;]*","g");e()(this).attr("href",t.replace(n,""))})),"general"===this.getCurrentSettingsPage())!function(){f(e()("#pdfextended-settings > form"));var t=e()("#pdf-general-security");t.find('input[name="gfpdf_settings[default_restrict_owner]"]').on("change",(function(){e()(this).is(":checked")&&("Yes"===e()(this).val()?t.find("tr:nth-child(3)").hide():t.find("tr:nth-child(3)").show())})).trigger("change")}()}processFormSettings(){g.isFormSettingsList()&&l.setupAJAXListListener(),g.isFormSettingsEdit()&&d()}};e()((function(){v.init()}))})()})();
1
+ (()=>{var t={9662:(t,e,n)=>{var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:(t,e,n)=>{var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},1318:(t,e,n)=>{var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,c=r(e),f=o(c),u=i(a,f);if(t&&n!=n){for(;f>u;)if((s=c[u++])!=s)return!0}else for(;f>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1589:(t,e,n)=>{var r=n(1400),i=n(6244),o=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var c=i(t),f=r(e,c),u=r(void 0===n?c:n,c),p=a(s(u-f,0)),l=0;f<u;f++,l++)o(p,l,t[f]);return p.length=l,p}},4326:(t,e,n)=>{var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s=Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},9920:(t,e,n)=>{var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),c=a.f,f=o.f,u=0;u<s.length;u++){var p=s[u];r(t,p)||n&&r(n,p)||c(t,p,f(e,p))}}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},7045:(t,e,n)=>{var r=n(6339),i=n(3070);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},8052:(t,e,n)=>{var r=n(614),i=n(3070),o=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,f=void 0!==s.name?s.name:e;if(r(n)&&o(n,f,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:(t,e,n)=>{var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),s=o.process,c=o.Deno,f=s&&s.versions||c&&c.version,u=f&&f.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),c=n(9920),f=n(4705);t.exports=function(t,e){var n,u,p,l,d,g=t.target,v=t.global,h=t.stat;if(n=v?r:h?r[g]||s(g,{}):(r[g]||{}).prototype)for(u in e){if(l=e[u],p=t.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!f(v?u:g+(h?".":"#")+u,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&o(l,"sham",!0),a(n,u,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1702),i=n(8052),o=n(2261),a=n(7293),s=n(5112),c=n(8880),f=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,p){var l=s(t),d=!a((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),g=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[f]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!d||!g||n){var v=r(/./[l]),h=e(l,""[t],(function(t,e,n,i,a){var s=r(t),c=e.exec;return c===o||c===u.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,h[0]),i(u,l,h[1])}p&&c(u[l],"sham",!0)}},2104:(t,e,n)=>{var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},4374:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,e,n)=>{var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:(t,e,n)=>{var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,f=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:f}},1702:(t,e,n)=>{var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,p,l){var d=n+t.length,g=r.length,v=u;return void 0!==p&&(p=i(p),v=f),s(l,v,(function(i,s){var f;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,d);case"<":f=p[c(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>g){var l=o(u/10);return 0===l?i:l<=g?void 0===r[l-1]?a(s,1):r[l-1]+a(s,1):i}f=r[u-1]}return void 0===f?"":f}))}},7854:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(t,e,n)=>{var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:t=>{t.exports={}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:(t,e,n)=>{var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9909:(t,e,n)=>{var r,i,o,a=n(8536),s=n(7854),c=n(1702),f=n(111),u=n(8880),p=n(2597),l=n(5465),d=n(6200),g=n(3501),v="Object already initialized",h=s.TypeError,m=s.WeakMap;if(a||l.state){var _=l.state||(l.state=new m),y=c(_.get),b=c(_.has),x=c(_.set);r=function(t,e){if(b(_,t))throw new h(v);return e.facade=t,x(_,t,e),e},i=function(t){return y(_,t)||{}},o=function(t){return b(_,t)}}else{var w=d("state");g[w]=!0,r=function(t,e){if(p(t,w))throw new h(v);return e.facade=t,u(t,w,e),e},i=function(t){return p(t,w)?t[w]:{}},o=function(t){return p(t,w)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=i(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),c=n(2788),f=function(){},u=[],p=s("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=r(l.exec),g=!l.exec(f),v=function(t){if(!o(t))return!1;try{return p(f,u,t),!0}catch(t){return!1}},h=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(l,c(t))}catch(t){return!0}};h.sham=!0,t.exports=!p||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?h:v},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=f&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},f=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},6244:(t,e,n)=>{var r=n(7466);t.exports=function(t){return r(t.length)}},6339:(t,e,n)=>{var r=n(7293),i=n(614),o=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,c=n(2788),f=n(9909),u=f.enforce,p=f.get,l=Object.defineProperty,d=a&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),g=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=u(t);return o(r,"source")||(r.source=g.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&p(this).source||c(this)}),"toString")},4758:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),c=n(490),f=n(317),u=n(6200),p=u("IE_PROTO"),l=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&r?g(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(r);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=i(t),n=new l,l.prototype=null,n[p]=t):n=v(),void 0===e?n:o.f(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),c=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=c(e),f=i.length,u=0;f>u;)o.f(t,n=i[u++],r[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),c=TypeError,f=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n.writable){var r=u(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:l in n?n.configurable:r.configurable,enumerable:p in n?n.enumerable:r.enumerable,writable:!1})}return f(t,e,n)}:f:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),c=n(4948),f=n(2597),u=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(t){}if(f(t,e))return a(!i(o.f,t,e),t[e])}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},7976:(t,e,n)=>{var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:(t,e,n)=>{var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),c=r([].push);t.exports=function(t,e){var n,r=o(t),f=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;e.length>f;)i(r,n=e[f++])&&(~a(u,n)||c(u,n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},2140:(t,e,n)=>{var r=n(6916),i=n(614),o=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},2626:(t,e,n)=>{var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},7651:(t,e,n)=>{var r=n(6916),i=n(9670),o=n(614),a=n(4326),s=n(2261),c=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var f=r(n,t,e);return null!==f&&i(f),f}if("RegExp"===a(t))return r(s,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),c=n(7066),f=n(2999),u=n(2309),p=n(30),l=n(9909).get,d=n(9441),g=n(7168),v=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,_=a("".charAt),y=a("".indexOf),b=a("".replace),x=a("".slice),w=(i=/b*/g,o(h,r=/a/,"a"),o(h,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=f.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(w||O||S||d||g)&&(m=function(t){var e,n,r,i,a,f,u,d=this,g=l(d),E=s(t),j=g.raw;if(j)return j.lastIndex=d.lastIndex,e=o(m,j,E),d.lastIndex=j.lastIndex,e;var C=g.groups,P=S&&d.sticky,F=o(c,d),A=d.source,I=0,R=E;if(P&&(F=b(F,"y",""),-1===y(F,"g")&&(F+="g"),R=x(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==_(E,d.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,I++),n=new RegExp("^(?:"+A+")",F)),O&&(n=new RegExp("^"+A+"$(?!\\s)",F)),w&&(r=d.lastIndex),i=o(h,P?n:d,R),P?i?(i.input=x(i.input,I),i[0]=x(i[0],I),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&C)for(i.groups=f=p(null),a=0;a<C.length;a++)f[(u=C[a])[0]]=i[u[1]];return i}),t.exports=m},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:(t,e,n)=>{var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(1702),i=n(9303),o=n(1340),a=n(4488),s=r("".charAt),c=r("".charCodeAt),f=r("".slice),u=function(t){return function(e,n){var r,u,p=o(a(e)),l=i(n),d=p.length;return l<0||l>=d?t?"":void 0:(r=c(p,l))<55296||r>56319||l+1===d||(u=c(p,l+1))<56320||u>57343?t?s(p,l):r:t?f(p,l,l+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},1400:(t,e,n)=>{var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:(t,e,n)=>{var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:(t,e,n)=>{var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:(t,e,n)=>{var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),c=n(5112),f=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:(t,e,n)=>{var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,e,n)=>{var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),c=n(3307),f=i("wks"),u=r.Symbol,p=u&&u.for,l=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!o(f,t)||!s&&"string"!=typeof f[t]){var e="Symbol."+t;s&&o(u,t)?f[t]=u[t]:f[t]=c&&p?p(e):l(e)}return f[t]}},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),c=n(8880),f=n(8006).f,u=n(7976),p=n(7850),l=n(1340),d=n(4706),g=n(2999),v=n(2626),h=n(8052),m=n(7293),_=n(2597),y=n(9909).enforce,b=n(6340),x=n(5112),w=n(9441),S=n(7168),O=x("match"),E=i.RegExp,j=E.prototype,C=i.SyntaxError,P=o(j.exec),F=o("".charAt),A=o("".replace),I=o("".indexOf),R=o("".slice),k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,M=/a/g,D=new E(T)!==T,L=g.MISSED_STICKY,N=g.UNSUPPORTED_Y,U=r&&(!D||L||w||S||m((function(){return M[O]=!1,E(T)!=T||E(M)==M||"/a/i"!=E(T,"i")})));if(a("RegExp",U)){for(var G=function(t,e){var n,r,i,o,a,f,g=u(j,this),v=p(t),h=void 0===e,m=[],b=t;if(!g&&v&&h&&t.constructor===G)return t;if((v||u(j,t))&&(t=t.source,h&&(e=d(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,w&&"dotAll"in T&&(r=!!e&&I(e,"s")>-1)&&(e=A(e,/s/g,"")),n=e,L&&"sticky"in T&&(i=!!e&&I(e,"y")>-1)&&N&&(e=A(e,/y/g,"")),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,c=!1,f=0,u="";r<=n;r++){if("\\"===(e=F(t,r)))e+=F(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:P(k,R(t,r+1))&&(r+=2,c=!0),i+=e,f++;continue;case">"===e&&c:if(""===u||_(a,u))throw new C("Invalid capture group name");a[u]=!0,o[o.length]=[u,f],c=!1,u="";continue}c?u+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),a=s(E(t,e),g?this:j,G),(r||i||m.length)&&(f=y(a),r&&(f.dotAll=!0,f.raw=G(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=F(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+F(t,++r);return i}(t),n)),i&&(f.sticky=!0),m.length&&(f.groups=m)),t!==b)try{c(a,"source",""===b?"(?:)":b)}catch(t){}return a},$=f(E),z=0;$.length>z;)v(G,E,$[z++]);j.constructor=G,G.prototype=j,h(i,"RegExp",G,{constructor:!0})}b("RegExp")},8450:(t,e,n)=>{var r=n(9781),i=n(9441),o=n(4326),a=n(7045),s=n(9909).get,c=RegExp.prototype,f=TypeError;r&&i&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!s(this).dotAll;throw f("Incompatible receiver, RegExp required")}}})},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(8052),o=n(9670),a=n(1340),s=n(7293),c=n(4706),f="toString",u=RegExp.prototype.toString,p=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l=r&&u.name!=f;(p||l)&&i(RegExp.prototype,f,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(c(t))}),{unsafe:!0})},5306:(t,e,n)=>{"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),c=n(9670),f=n(614),u=n(9303),p=n(7466),l=n(1340),d=n(4488),g=n(1530),v=n(8173),h=n(647),m=n(7651),_=n(5112)("replace"),y=Math.max,b=Math.min,x=o([].concat),w=o([].push),S=o("".indexOf),O=o("".slice),E="$0"==="a".replace(/./,"$0"),j=!!/./[_]&&""===/./[_]("a","$0");a("replace",(function(t,e,n){var o=j?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:v(t,_);return o?i(o,t,r,n):i(e,l(r),t,n)},function(t,i){var a=c(this),s=l(t);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var v=f(i);v||(i=l(i));var _=a.global;if(_){var E=a.unicode;a.lastIndex=0}for(var j=[];;){var C=m(a,s);if(null===C)break;if(w(j,C),!_)break;""===l(C[0])&&(a.lastIndex=g(s,p(a.lastIndex),E))}for(var P,F="",A=0,I=0;I<j.length;I++){for(var R=l((C=j[I])[0]),k=y(b(u(C.index),s.length),0),T=[],M=1;M<C.length;M++)w(T,void 0===(P=C[M])?P:String(P));var D=C.groups;if(v){var L=x([R],T,k,s);void 0!==D&&w(L,D);var N=l(r(i,void 0,L))}else N=h(R,s,k,T,D,i);k>=A&&(F+=O(s,A,k)+N,A=k+R.length)}return F+O(s,A)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||j)},3123:(t,e,n)=>{"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7850),c=n(9670),f=n(4488),u=n(6707),p=n(1530),l=n(7466),d=n(1340),g=n(8173),v=n(1589),h=n(7651),m=n(2261),_=n(2999),y=n(7293),b=_.UNSUPPORTED_Y,x=4294967295,w=Math.min,S=[].push,O=o(/./.exec),E=o(S),j=o("".slice);a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=d(f(this)),a=void 0===n?x:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);for(var c,u,p,l=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,_=new RegExp(t.source,g+"g");(c=i(m,_,o))&&!((u=_.lastIndex)>h&&(E(l,j(o,h,c.index)),c.length>1&&c.index<o.length&&r(S,l,v(c,1)),p=c[0].length,h=u,l.length>=a));)_.lastIndex===c.index&&_.lastIndex++;return h===o.length?!p&&O(_,"")||E(l,""):E(l,j(o,h)),l.length>a?v(l,0,a):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=f(this),a=null==e?void 0:g(e,t);return a?i(a,e,r,n):i(o,d(r),e,n)},function(t,r){var i=c(this),a=d(t),s=n(o,i,a,r,o!==e);if(s.done)return s.value;var f=u(i,RegExp),g=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),m=new f(b?"^(?:"+i.source+")":i,v),_=void 0===r?x:r>>>0;if(0===_)return[];if(0===a.length)return null===h(m,a)?[a]:[];for(var y=0,S=0,O=[];S<a.length;){m.lastIndex=b?0:S;var C,P=h(m,b?j(a,S):a);if(null===P||(C=w(l(m.lastIndex+(b?S:0)),a.length))===y)S=p(a,S,g);else{if(E(O,j(a,y,S)),O.length===_)return O;for(var F=1;F<=P.length-1;F++)if(E(O,P[F]),O.length===_)return O;S=y=C}}return E(O,j(a,y)),O}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),b)},3753:(t,e,n)=>{"use strict";var r=n(2109),i=n(6916);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=jQuery;var e=n.n(t);n(3753);function r(t,n){return e().ajax({type:"post",dataType:"json",url:GFPDF.ajaxUrl,data:t,success:n,error:n})}function i(t){return e()("<img alt="+GFPDF.spinnerAlt+" src="+GFPDF.spinnerUrl+" class="+t+" />")}function o(t){var n=e()("#gfpdf-settings-field-wrapper-font, #gfpdf-settings-field-wrapper-font_size, #gfpdf-settings-field-wrapper-font_colour");"legacy"===t?n.hide():n.show()}function a(t,e,n,r){var i="submit-container-"+n;if(!t.classList.contains("gform-settings-panel--collapsed")){var o=e.querySelector("#submit").cloneNode(!0);o.setAttribute("id","submit_"+n);var a=document.createElement("div");return a.setAttribute("class",i),a.innerHTML=o.outerHTML,t.parentNode.insertBefore(a,t.nextSibling)}r||document.querySelector(".".concat(i)).remove()}function s(){e()("#gfpdf_settings\\[template\\]").off("change").on("change",(function(){var t=i("gfpdf-spinner-template");e()(this).next().after(t),r({action:"gfpdf_get_template_fields",nonce:GFPDF.ajaxNonce,template:e()(this).val(),type:e()(this).attr("id"),id:e()("#gform_id").val(),gform_pdf_id:e()("#gform_pdf_id").val()},(function(n){var r,i,s=e()(".submit-container-2")[0];t.remove(),e()('input[name="gfpdf_settings[advanced_template]"][value="No"]').prop("checked",!0).trigger("change"),n.fields?(e().each(n.editors,(function(t,e){var n=tinyMCE.get(e);if(null!==n)try{tinyMCE.remove(n)}catch(t){}})),s||a(e()("#gfpdf-fieldset-gfpdf_form_settings_template")[0],e()("#gfpdf_pdf_form")[0],"2"),e()("#gfpdf-fieldset-gfpdf_form_settings_template").show().find(".gform-settings-panel__content").html(n.fields),r=n.editors,null!=(i=n.editor_init)&&(i.body_class="id post-type-post post-status-publish post-format-standard",i.formats={alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},i.content_style='body#tinymce { max-width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;}'),e().each(r,(function(t,e){i.selector="#"+e,tinyMCE.init(i),tinyMCE.execCommand("mceAddEditor",!1,e),"function"==typeof QTags&&(QTags({id:e}),QTags._buttonsInit(),"function"==typeof switchEditors.switchto&&switchEditors.switchto(jQuery("#wp-"+e+"-wrap").find(".wp-switch-editor.switch-"+("html"===getUserSetting("editor")?"html":"tmce"))[0]))})),c.runElements(),window.gfMergeTags&&"undefined"!=typeof form&&e()("#gfpdf-fieldset-gfpdf_form_settings_template .merge-tag-support").length>=0&&(e()("#gfpdf-fieldset-gfpdf_form_settings_template .merge-tag-support").each((function(){new gfMergeTagsObj(form,e()(this))})),e()("#gfpdf-fieldset-gfpdf_form_settings_template .gform-settings-field").each((function(){e()(this).find(".merge-tag-support, .merge-tag-support + span").wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag"></div>'),e()(this).find(".all-merge-tags.textarea").parent().wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag gfpdf-merge-tag-container"></div>')}))),gform_initialize_tooltips()):(s&&s.remove(),e()("#gfpdf-fieldset-gfpdf_form_settings_template").hide().find(".gform-settings-panel__content").html("")),n.template_type&&o(n.template_type),e()(document).trigger("gfpdf_template_loaded",[n])}))}))}var c=new class{runElements(){var t;"undefined"!=typeof gf_vars&&(gf_vars.thisFormButton=GFPDF.conditionalText,gf_vars.show=GFPDF.enable,gf_vars.hide=GFPDF.disable),window.formfield="",e()("body").off("click",".gfpdf_settings_upload_button").on("click",".gfpdf_settings_upload_button",(function(n){n.preventDefault();var r=e()(this);window.formfield=e()(this).prev(),t||(t=wp.media.frames.file_frame=wp.media({title:r.data("uploader-title"),button:{text:r.data("uploader-button-text")},multiple:!1})).on("select",(function(){t.state().get("selection").each((function(t){t=t.toJSON(),window.formfield.val(t.url).trigger("change")}))})),t.open()})),e()(".gfpdf-color-picker").each((function(){e()(this).wpColorPicker({width:300}),e()(this).parents(".wp-picker-container").find(".wp-color-result").addClass("ed_button")})),e()(".gfpdf_paper_size").each((function(){var t=e()(this).nextAll(".gfpdf_paper_size_other").first();e()(this).find("select").off("change").on("change",(function(){"CUSTOM"===e()(this).val()?t.fadeIn():t.fadeOut()})).trigger("change")})),e()("form").off("change",".gfpdf-input-toggle").on("change",".gfpdf-input-toggle",(function(){var t=e()(this).parent().next();e()(this).prop("checked")?t.slideDown("slow"):(t.slideUp("slow"),t.find(".wp-editor-area").each((function(){var t=tinyMCE.get(e()(this).attr("id"));null!==t&&t.setContent("")})),t.find("textarea").each((function(){e()(this).val("")})))})),s(),e()(".gfpdf-deactivate-license").on("click",(function(){var t=e()(this).parent(),n=i("gfpdf-spinner");e()(this).append(n);var o=e()(this).data("addon-name");return r({action:"gfpdf_deactivate_license",addon_name:o,nonce:e()(this).data("nonce")},(function(r){n.remove(),r.success?(e()("#gfpdf_settings\\[license_"+o+"\\]").val(""),e()("#gfpdf_settings\\[license_"+o+"_message\\]").val(""),e()("#gfpdf_settings\\[license_"+o+"_status\\]").val(""),t.find("button").remove(),t.find("#message").removeClass("error").addClass("success").html(r.success)):t.find("#message").removeClass("success").addClass("error").html(r.error)})),!1}))}};n(4603),n(8450),n(4916),n(9714),n(5306);function f(t){t.attr("novalidate","novalidate"),t.find('input[type="submit"]').on("click",(function(){t.addClass("formSubmitted")})),t.find(':input[required=""], :input[required]').each((function(){var t=e()(this).parent();t.find(".gform-settings-panel__title a").length?t.find(".gform-settings-panel__title a").before('<span class="gfield_required">(required)</span>'):t.find(".gform-settings-panel__title").append('<span class="gfield_required">(required)</span>')}))}function u(t,n,r){n=void 0!==n?n:4500,r=void 0!==r&&r;var i=e()('<div id="message">').html("<p>"+t+"</p>");!0===r?i.addClass("error"):i.addClass("updated"),e()(".wrap > h2").after(i),setTimeout((function(){i.slideUp()}),n)}function p(){function t(t){t.append(i("gfpdf-spinner gfpdf-spinner-small")).closest(".row-actions").attr("style","position:static; visibility: visible;"),r({action:"gfpdf_list_delete",nonce:t.data("nonce"),fid:t.data("fid"),pid:t.data("id")},(function(n){n.msg&&(t.closest(".row-actions").attr("style","").find(".gfpdf-spinner").remove(),u(n.msg),t.parents("tr").css("background","#ffb8b8").fadeOut(400,(function(){this.remove(),function(){var t=e()("#gfpdf_list_form tbody");if(0===t.find("tr").length){var n=e()("<tr>").addClass("no-items"),r=e()("<td>").attr("colspan","5").addClass("colspanchange"),i=e()("<a>").attr("href",e()("#gfpdf_list_form a.button:first").attr("href")).append(GFPDF.letsGoCreateOne+".");r.append(GFPDF.thisFormHasNoPdfs).append(" ").append(i),n.append(r),t.append(n)}}()})))}))}e()("#gfpdf_list_form").on("click","a.submitdelete",(function(){String(e()(this).data("id")).length>0&&window.confirm(GFPDF.pdfDeleteWarning)&&t(e()(this));return!1}))}n(3123);var l=new class{setupAJAXListListener(){p(),e()("#gfpdf_list_form").on("click","a.submitduplicate",(function(t){t.preventDefault();var n=String(e()(this).data("id")),o=this;e()(this).after(i("gfpdf-spinner gfpdf-spinner-small")).parent().parent().attr("style","position:static; visibility: visible;"),n.length>0&&r({action:"gfpdf_list_duplicate",nonce:e()(this).data("nonce"),fid:e()(this).data("fid"),pid:e()(this).data("id")},(function(t){if(t.msg){e()(o).parent().parent().attr("style","").find(".gfpdf-spinner").remove(),u(t.msg);var r=e()(o).parents("tr"),i=r.clone();i.find(".column-name > a, .edit a").each((function(){var n=e()(this).attr("href");n=function(t,e,n){var r="",i=t.split("?"),o=i[0],a=i[1],s="";if(a){i=a.split("&");for(var c=0;c<i.length;c++)i[c].split("=")[0]!==e&&(r+=s+i[c],s="&")}return o+"?"+r+s+e+"="+n}(n,"pid",t.pid),e()(this).attr("href",n)})),i.find(".column-name > a").html(t.name);var a=i.find(".duplicate a"),s=i.find(".delete a"),c=i.find(".check-column button"),f=i.find(".column-shortcode");a.data("id",t.pid),a.data("nonce",t.dup_nonce),s.data("id",t.pid),s.data("nonce",t.del_nonce),c.data("id",t.pid),c.data("nonce",t.state_nonce),c[0].setAttribute("data-status","inactive");var p=f.find("button").attr("data-clipboard-text");p=p.replace(n,t.pid),f.find("button").attr("data-clipboard-text",p),f.find("input").attr("id",t.pid).attr("value",p),c.removeClass("gform-status--active").addClass("gform-status--inactive").find(".gform-status-indicator-status").html(t.status),i.hide().insertAfter(r).fadeIn()}}))})),e()("#gfpdf_list_form").on("click",".check-column button",(function(){var t=String(e()(this).data("id")),n=e()(this),i=n.find("span.gform-status-indicator-status");t.length>0&&(n.addClass("gform_status--pending").removeClass("gform-status--active gform-status--inactive"),r({action:"gfpdf_change_state",nonce:e()(this).data("nonce"),fid:e()(this).data("fid"),pid:e()(this).data("id")},(function(t){i.html(t.state),"active"===n.data("status")?(n[0].setAttribute("data-status","inactive"),n.data("status","inactive").removeClass("gform_status--pending").addClass("gform-status--inactive")):(n[0].setAttribute("data-status","active"),n.data("status","active").removeClass("gform_status--pending").addClass("gform-status--active"))})))}))}};function d(){var t,n,r,i,a,s,c,u;f(e()("#gfpdf_pdf_form")),t=e()("#gfpdf-fieldset-gfpdf_form_settings_advanced"),n=t.find('input[name="gfpdf_settings[security]"]'),r=t.find('input[name="gfpdf_settings[format]"]'),i=t.find("#gfpdf-settings-field-wrapper-security"),a=t.find("#gfpdf-settings-field-wrapper-password,#gfpdf-settings-field-wrapper-privileges,#gfpdf-settings-field-wrapper-master_password:not(.gfpdf-hidden)"),n.on("change",(function(){var t=r.filter(":checked").val();"No"===e()(this).val()||"Standard"!==t?a.hide():e()(this).is(":checked")?a.show():a.hide(),"Standard"!==t?i.hide():i.show()})).trigger("change"),r.on("change",(function(){e()(this).is(":checked")&&n.trigger("change")})).trigger("change"),gform.addFilter("gform_conditional_object",(function(t,e){return"gfpdf"===e?window.gfpdf_current_pdf:t})),e()("#gfpdf_conditional_logic").on("change",(function(){void 0===window.gfpdf_current_pdf.conditionalLogic&&e()(this).prop("checked")?window.gfpdf_current_pdf.conditionalLogic=new ConditionalLogic:e()(this).prop("checked")||(window.gfpdf_current_pdf.conditionalLogic=null),ToggleConditionalLogic(!1,"gfpdf")})).trigger("change"),s=e()("#gfpdf-fieldset-gfpdf_form_settings_advanced").find('input[name="gfpdf_settings[public_access]"]'),c=e()("#gfpdf-settings-field-wrapper-restrict_owner"),s.on("change",(function(){e()(this).is(":checked")?c.hide():c.show()})).trigger("change"),o(e()("#gfpdf_settings\\[template\\]").data("template_group")),u=e()("#gfpdf-fieldset-gfpdf_form_settings_appearance"),e()('input[name="gfpdf_settings[advanced_template]"]').on("change",(function(){"Yes"===e()(this).val()?u.hide():u.show()})),e()('input[name="gfpdf_settings[advanced_template]"]:checked').trigger("change"),e()(".gform-settings-field").each((function(){e()(this).find(".merge-tag-support, .merge-tag-support + span").wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag"></div>'),e()(this).find(".all-merge-tags.textarea").parent().wrapAll('<div class="gform-settings-input__container gform-settings-input__container--with-merge-tag gfpdf-merge-tag-container"></div>')}));var p=e()("#gfpdf-fieldset-gfpdf_form_settings_template");0===p.find(".gform-settings-panel__content").children().length&&p.hide(),e()(".gform-settings__wrapper > .alert").detach().prependTo("#tab_PDF"),e()("#gfpdf_pdf_form").on("submit",(function(){try{tinyMCE.triggerSave()}catch(t){}})),e()("#gfpdf_pdf_form").on("submit",(function(){e()("#gfpdf_settings\\[conditionalLogic\\]").val(e().toJSON(window.gfpdf_current_pdf.conditionalLogic))}))}var g=new class{isSettings(){return e()("#pdfextended-settings").length}isFormSettings(){return e()(".gforms_edit_form").length}isFormSettingsList(){return e()("#gfpdf_list_form").length}isFormSettingsEdit(){return e()("#gfpdf_pdf_form").length}};var v=new class{init(){c.runElements(),g.isSettings()&&this.processSettings(),g.isFormSettings()&&this.processFormSettings()}getCurrentSettingsPage(){return g.isSettings()?e()(".gform-settings-tabs__navigation a.active:first").data("id"):""}processSettings(){if(e()("#gform_tabs a").each((function(){var t=e()(this).attr("href"),n=new RegExp("&tab=[^&;]*","g");e()(this).attr("href",t.replace(n,""))})),"general"===this.getCurrentSettingsPage())!function(){f(e()("#pdfextended-settings > form"));var t=e()("#pdf-general-security");t.find('input[name="gfpdf_settings[default_restrict_owner]"]').on("change",(function(){e()(this).is(":checked")&&("Yes"===e()(this).val()?t.find("tr:nth-child(3)").hide():t.find("tr:nth-child(3)").show())})).trigger("change")}()}processFormSettings(){g.isFormSettingsList()&&l.setupAJAXListListener(),g.isFormSettingsEdit()&&d()}};e()((function(){v.init()}))})()})();
dist/assets/js/app.bundle.min.js CHANGED
@@ -18,7 +18,7 @@ return function(e,t){var n=document.querySelector(".gfpdf-font-manager select"),
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  * @since 6.0
20
  */
21
- function r(e,t){var n=document.querySelector(".update-font");if(t){var r=e.location.pathname;return r.substr(r.lastIndexOf("/")+1)===t?o(n,e):a(n,e,t)}return o(n,e)}function o(e,t){if(e.classList.remove("show"),"/fontmanager/"!==t.location.pathname)return t.push("/fontmanager/")}function a(e,t,n){return e.classList.add("show"),t.push("/fontmanager/"+n)}n.d(t,{cn:()=>a,kv:()=>r})},9662:(e,t,n)=>{var r=n(614),o=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(4411),o=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(614),o=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),a=n(3070).f,i=r("unscopables"),l=Array.prototype;null==l[i]&&a(l,i,{configurable:!0,value:o(null)}),e.exports=function(e){l[i][e]=!0}},1530:(e,t,n)=>{"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:(e,t,n)=>{var r=n(7976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(111),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},1318:(e,t,n)=>{var r=n(5656),o=n(1400),a=n(6244),i=function(e){return function(t,n,i){var l,u=r(t),s=a(u),c=o(i,s);if(e&&n!=n){for(;s>c;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},9341:(e,t,n)=>{"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},1589:(e,t,n)=>{var r=n(1400),o=n(6244),a=n(6135),i=Array,l=Math.max;e.exports=function(e,t,n){for(var u=o(e),s=r(t,u),c=r(void 0===n?u:n,u),f=i(l(c-s,0)),d=0;s<c;s++,d++)a(f,d,e[s]);return f.length=d,f}},206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},4362:(e,t,n)=>{var r=n(1589),o=Math.floor,a=function(e,t){var n=e.length,u=o(n/2);return n<8?i(e,t):l(e,a(r(e,0,u),t),a(r(e,u),t),t)},i=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},l=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,l=0;i<o||l<a;)e[i+l]=i<o&&l<a?r(t[i],n[l])<=0?t[i++]:n[l++]:i<o?t[i++]:n[l++];return e};e.exports=a},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},4326:(e,t,n)=>{var r=n(1702),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},648:(e,t,n)=>{var r=n(1694),o=n(614),a=n(4326),i=n(5112)("toStringTag"),l=Object,u="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?n:u?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),a=n(1236),i=n(3070);e.exports=function(e,t,n){for(var l=o(t),u=i.f,s=a.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||u(e,f,s(t,f))}}},4964:(e,t,n)=>{var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),a=n(9114),i=n(8003),l=n(7497),u=function(){return this};e.exports=function(e,t,n,s){var c=t+" Iterator";return e.prototype=o(r,{next:a(+!s,n)}),i(e,c,!1,!0),l[c]=u,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),a=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(4948),o=n(3070),a=n(9114);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},8052:(e,t,n)=>{var r=n(614),o=n(3070),a=n(6339),i=n(3072);e.exports=function(e,t,n,l){l||(l={});var u=l.enumerable,s=void 0!==l.name?l.name:t;if(r(n)&&a(n,s,l),l.global)u?e[t]=n:i(t,n);else{try{l.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},3072:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(1913),i=n(6530),l=n(614),u=n(4994),s=n(9518),c=n(7674),f=n(8003),d=n(8880),p=n(8052),h=n(5112),y=n(7497),m=n(3383),v=i.PROPER,g=i.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,E=h("iterator"),S="keys",x="values",k="entries",O=function(){return this};e.exports=function(e,t,n,i,h,m,F){u(n,t,i);var P,_,T,C=function(e){if(e===h&&L)return L;if(!w&&e in D)return D[e];switch(e){case S:case x:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",R=!1,D=e.prototype,A=D[E]||D["@@iterator"]||h&&D[h],L=!w&&A||C(h),N="Array"==t&&D.entries||A;if(N&&(P=s(N.call(new e)))!==Object.prototype&&P.next&&(a||s(P)===b||(c?c(P,b):l(P[E])||p(P,E,O)),f(P,j,!0,!0),a&&(y[j]=O)),v&&h==x&&A&&A.name!==x&&(!a&&g?d(D,"name",x):(R=!0,L=function(){return o(A,this)})),h)if(_={values:C(x),keys:m?L:C(S),entries:C(k)},F)for(T in _)(w||R||!(T in D))&&p(D,T,_[T]);else r({target:t,proto:!0,forced:w||R},_);return a&&!F||D[E]===L||p(D,E,L,{name:h}),y[t]=L,_}},5117:(e,t,n)=>{"use strict";var r=n(6330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,t,n)=>{var r=n(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,t,n)=>{var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},3823:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},256:(e,t,n)=>{var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,a=n(7854),i=n(8113),l=a.process,u=a.Deno,s=l&&l.versions||u&&u.version,c=s&&s.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,t,n)=>{var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,a=n(8880),i=n(8052),l=n(3072),u=n(9920),s=n(4705);e.exports=function(e,t){var n,c,f,d,p,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||l(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!s(y?c:h+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),i(n,c,d,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,t,n)=>{"use strict";n(4916);var r=n(1702),o=n(8052),a=n(2261),i=n(7293),l=n(5112),u=n(8880),s=l("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=l(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var y=r(/./[d]),m=t(d,""[e],(function(e,t,n,o,i){var l=r(e),u=t.exec;return u===a||u===c.exec?p&&!i?{done:!0,value:y(t,n,o)}:{done:!0,value:l(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,d,m[1])}f&&u(c[d],"sham",!0)}},2104:(e,t,n)=>{var r=n(4374),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),a=n(4374),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},4374:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:(e,t,n)=>{var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,l=o(a,"name"),u=l&&"something"===function(){}.name,s=l&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:l,PROPER:u,CONFIGURABLE:s}},1702:(e,t,n)=>{var r=n(4374),o=Function.prototype,a=o.bind,i=o.call,l=r&&a.bind(i,i);e.exports=r?function(e){return e&&l(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),a=n(7497),i=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,i)||o(e,"@@iterator")||a[r(e)]}},8554:(e,t,n)=>{var r=n(6916),o=n(9662),a=n(9670),i=n(6330),l=n(1246),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return a(r(n,e));throw u(i(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:(e,t,n)=>{var r=n(1702),o=n(7908),a=Math.floor,i=r("".charAt),l=r("".replace),u=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,y=c;return void 0!==f&&(f=o(f),y=s),l(d,y,(function(o,l){var s;switch(i(l,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":s=f[u(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>h){var d=a(c/10);return 0===d?o:d<=h?void 0===r[d-1]?i(l,1):r[d-1]+i(l,1):o}s=r[c-1]}return void 0===s?"":s}))}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),a=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(1702),o=n(7293),a=n(4326),i=Object,l=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):i(e)}:i},2788:(e,t,n)=>{var r=n(1702),o=n(614),a=n(5465),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},9909:(e,t,n)=>{var r,o,a,i=n(8536),l=n(7854),u=n(1702),s=n(111),c=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),y="Object already initialized",m=l.TypeError,v=l.WeakMap;if(i||d.state){var g=d.state||(d.state=new v),b=u(g.get),w=u(g.has),E=u(g.set);r=function(e,t){if(w(g,e))throw new m(y);return t.facade=e,E(g,e,t),t},o=function(e){return b(g,e)||{}},a=function(e){return w(g,e)}}else{var S=p("state");h[S]=!0,r=function(e,t){if(f(e,S))throw new m(y);return t.facade=e,c(e,S,t),t},o=function(e){return f(e,S)?e[S]:{}},a=function(e){return f(e,S)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),a=n(614),i=n(648),l=n(5005),u=n(2788),s=function(){},c=[],f=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(s),y=function(e){if(!a(e))return!1;try{return f(s,c,e),!0}catch(e){return!1}},m=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},4705:(e,t,n)=>{var r=n(7293),o=n(614),a=/#|\.prototype\./,i=function(e,t){var n=u[l(e)];return n==c||n!=s&&(o(t)?r(t):!!t)},l=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,t,n)=>{var r=n(111),o=n(4326),a=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},2190:(e,t,n)=>{var r=n(5005),o=n(614),a=n(7976),i=n(3307),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,l(e))}},408:(e,t,n)=>{var r=n(9974),o=n(6916),a=n(9670),i=n(6330),l=n(7659),u=n(6244),s=n(7976),c=n(8554),f=n(1246),d=n(9212),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;e.exports=function(e,t,n){var m,v,g,b,w,E,S,x=n&&n.that,k=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),F=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),_=r(t,x),T=function(e){return m&&d(m,"normal",e),new h(!0,e)},C=function(e){return k?(a(e),P?_(e[0],e[1],T):_(e[0],e[1])):P?_(e,T):_(e)};if(O)m=e.iterator;else if(F)m=e;else{if(!(v=f(e)))throw p(i(e)+" is not iterable");if(l(v)){for(g=0,b=u(e);b>g;g++)if((w=C(e[g]))&&s(y,w))return w;return new h(!1)}m=c(e,v)}for(E=O?e.next:m.next;!(S=o(E,m)).done;){try{w=C(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&s(y,w))return w}return new h(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),a=n(8173);e.exports=function(e,t,n){var i,l;o(e);try{if(!(i=a(e,"return"))){if("throw"===t)throw n;return n}i=r(i,e)}catch(e){l=!0,i=e}if("throw"===t)throw n;if(l)throw i;return o(i),n}},3383:(e,t,n)=>{"use strict";var r,o,a,i=n(7293),l=n(614),u=n(30),s=n(9518),c=n(8052),f=n(5112),d=n(1913),p=f("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(o=s(s(a)))!==Object.prototype&&(r=o):h=!0),null==r||i((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=u(r)),l(r[p])||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},6339:(e,t,n)=>{var r=n(7293),o=n(614),a=n(2597),i=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),s=n(9909),c=s.enforce,f=s.get,d=Object.defineProperty,p=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return a(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5948:(e,t,n)=>{var r,o,a,i,l,u,s,c,f=n(7854),d=n(9974),p=n(1236).f,h=n(261).set,y=n(6833),m=n(1528),v=n(1036),g=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,E=f.process,S=f.Promise,x=p(f,"queueMicrotask"),k=x&&x.value;k||(r=function(){var e,t;for(g&&(e=E.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},y||g||v||!b||!w?!m&&S&&S.resolve?((s=S.resolve(void 0)).constructor=S,c=d(s.then,s),i=function(){c(r)}):g?i=function(){E.nextTick(r)}:(h=d(h,f),i=function(){h(r)}):(l=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),i=function(){u.data=l=!l})),e.exports=k||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),a=n(2788),i=r.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},8523:(e,t,n)=>{"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},3929:(e,t,n)=>{var r=n(7850),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),a=n(6916),i=n(7293),l=n(1956),u=n(5181),s=n(5296),c=n(7908),f=n(8361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||i((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||l(d({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,i=1,d=u.f,p=s.f;o>i;)for(var y,m=f(arguments[i++]),v=d?h(l(m),d(m)):l(m),g=v.length,b=0;g>b;)y=v[b++],r&&!a(p,m,y)||(n[y]=m[y]);return n}:d},30:(e,t,n)=>{var r,o=n(9670),a=n(6048),i=n(748),l=n(3501),u=n(490),s=n(317),c=n(6200),f=c("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?h(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=i.length;n--;)delete y.prototype[i[n]];return y()};l[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:a.f(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3353),a=n(3070),i=n(9670),l=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){i(e);for(var n,r=l(t),o=u(t),s=o.length,c=0;s>c;)a.f(e,n=o[c++],r[n]);return e}},3070:(e,t,n)=>{var r=n(9781),o=n(4664),a=n(3353),i=n(9670),l=n(4948),u=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?a?function(e,t,n){if(i(e),t=l(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:d in n?n.configurable:r.configurable,enumerable:f in n?n.enumerable:r.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(i(e),t=l(t),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),o=n(6916),a=n(5296),i=n(9114),l=n(5656),u=n(4948),s=n(2597),c=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=u(t),c)try{return f(e,t)}catch(e){}if(s(e,t))return i(!o(a.f,e,t),e[t])}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(2597),o=n(614),a=n(7908),i=n(6200),l=n(8544),u=i("IE_PROTO"),s=Object,c=s.prototype;e.exports=l?s.getPrototypeOf:function(e){var t=a(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof s?c:null}},7976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{var r=n(1702),o=n(2597),a=n(5656),i=n(1318).indexOf,l=n(3501),u=r([].push);e.exports=function(e,t){var n,r=a(e),s=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&u(c,n);for(;t.length>s;)o(r,n=t[s++])&&(~i(c,n)||u(c,n));return c}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(1702),o=n(9670),a=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:(e,t,n)=>{var r=n(6916),o=n(614),a=n(111),i=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!a(l=r(n,e)))return l;if(o(n=e.valueOf)&&!a(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!a(l=r(n,e)))return l;throw i("Can't convert object to primitive value")}},3887:(e,t,n)=>{var r=n(5005),o=n(1702),a=n(8006),i=n(5181),l=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(l(e)),n=i.f;return n?u(t,n(e)):t}},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},3702:(e,t,n)=>{var r=n(7854),o=n(2492),a=n(614),i=n(4705),l=n(2788),u=n(5112),s=n(7871),c=n(3823),f=n(1913),d=n(7392),p=o&&o.prototype,h=u("species"),y=!1,m=a(r.PromiseRejectionEvent),v=i("Promise",(function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(d<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(y=n.then((function(){}))instanceof r))return!0}return!t&&(s||c)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:y}},2492:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},9478:(e,t,n)=>{var r=n(9670),o=n(111),a=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},612:(e,t,n)=>{var r=n(2492),o=n(7072),a=n(3702).CONSTRUCTOR;e.exports=a||!o((function(e){r.all(e).then(void 0,(function(){}))}))},8572:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},7651:(e,t,n)=>{var r=n(6916),o=n(9670),a=n(614),i=n(4326),l=n(2261),u=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var s=r(n,e,t);return null!==s&&o(s),s}if("RegExp"===i(e))return r(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},2261:(e,t,n)=>{"use strict";var r,o,a=n(6916),i=n(1702),l=n(1340),u=n(7066),s=n(2999),c=n(2309),f=n(30),d=n(9909).get,p=n(9441),h=n(7168),y=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=i("".charAt),b=i("".indexOf),w=i("".replace),E=i("".slice),S=(o=/b*/g,a(m,r=/a/,"a"),a(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),x=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||x||p||h)&&(v=function(e){var t,n,r,o,i,s,c,p=this,h=d(p),O=l(e),F=h.raw;if(F)return F.lastIndex=p.lastIndex,t=a(v,F,O),p.lastIndex=F.lastIndex,t;var P=h.groups,_=x&&p.sticky,T=a(u,p),C=p.source,j=0,R=O;if(_&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),R=E(O,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(O,p.lastIndex-1))&&(C="(?: "+C+")",R=" "+R,j++),n=new RegExp("^(?:"+C+")",T)),k&&(n=new RegExp("^"+C+"$(?!\\s)",T)),S&&(r=p.lastIndex),o=a(m,_?n:p,R),_?o?(o.input=E(o.input,j),o[0]=E(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),k&&o&&o.length>1&&a(y,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&P)for(o.groups=s=f(null),i=0;i<P.length;i++)s[(c=P[i])[0]]=o[c[1]];return o}),e.exports=v},7066:(e,t,n)=>{"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2999:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),i=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:i,UNSUPPORTED_Y:a}},9441:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},1150:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),a=n(5112),i=n(9781),l=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(2597),a=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,a)&&r(e,a,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3072),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.0",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(e,t,n)=>{var r=n(9670),o=n(9483),a=n(5112)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},8710:(e,t,n)=>{var r=n(1702),o=n(9303),a=n(1340),i=n(4488),l=r("".charAt),u=r("".charCodeAt),s=r("".slice),c=function(e){return function(t,n){var r,c,f=a(i(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(c=u(f,d+1))<56320||c>57343?e?l(f,d):r:e?s(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},261:(e,t,n)=>{var r,o,a,i,l=n(7854),u=n(2104),s=n(9974),c=n(614),f=n(2597),d=n(7293),p=n(490),h=n(206),y=n(317),m=n(8053),v=n(6833),g=n(5268),b=l.setImmediate,w=l.clearImmediate,E=l.process,S=l.Dispatch,x=l.Function,k=l.MessageChannel,O=l.String,F=0,P={},_="onreadystatechange";try{r=l.location}catch(e){}var T=function(e){if(f(P,e)){var t=P[e];delete P[e],t()}},C=function(e){return function(){T(e)}},j=function(e){T(e.data)},R=function(e){l.postMessage(O(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:x(e),n=h(arguments,1);return P[++F]=function(){u(t,void 0,n)},o(F),F},w=function(e){delete P[e]},g?o=function(e){E.nextTick(C(e))}:S&&S.now?o=function(e){S.now(C(e))}:k&&!v?(i=(a=new k).port2,a.port1.onmessage=j,o=s(i.postMessage,i)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&r&&"file:"!==r.protocol&&!d(R)?(o=R,l.addEventListener("message",j,!1)):o=_ in y("script")?function(e){p.appendChild(y("script")).onreadystatechange=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:b,clear:w}},1400:(e,t,n)=>{var r=n(9303),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:(e,t,n)=>{var r=n(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},7466:(e,t,n)=>{var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:(e,t,n)=>{var r=n(6916),o=n(111),a=n(2190),i=n(8173),l=n(2140),u=n(5112),s=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,u=i(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||a(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:(e,t,n)=>{var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{var r=n(648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{var r=n(1702),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},5112:(e,t,n)=>{var r=n(7854),o=n(2309),a=n(2597),i=n(9711),l=n(133),u=n(3307),s=o("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||i;e.exports=function(e){if(!a(s,e)||!l&&"string"!=typeof s[e]){var t="Symbol."+e;l&&a(c,e)?s[e]=c[e]:s[e]=u&&f?f(t):d(t)}return s[e]}},6699:(e,t,n)=>{"use strict";var r=n(2109),o=n(1318).includes,a=n(7293),i=n(1223);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),a=n(7497),i=n(9909),l=n(3070).f,u=n(654),s=n(1913),c=n(9781),f="Array Iterator",d=i.set,p=i.getterFor(f);e.exports=u(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!s&&c&&"values"!==h.name)try{l(h,"name",{value:"values"})}catch(e){}},2707:(e,t,n)=>{"use strict";var r=n(2109),o=n(1702),a=n(9662),i=n(7908),l=n(6244),u=n(5117),s=n(1340),c=n(7293),f=n(4362),d=n(9341),p=n(8886),h=n(256),y=n(7392),m=n(8008),v=[],g=o(v.sort),b=o(v.push),w=c((function(){v.sort(void 0)})),E=c((function(){v.sort(null)})),S=d("sort"),x=!c((function(){if(y)return y<70;if(!(p&&p>3)){if(h)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!E||!S||!x},{sort:function(e){void 0!==e&&a(e);var t=i(this);if(x)return void 0===e?g(t):g(t,e);var n,r,o=[],c=l(t);for(r=0;r<c;r++)r in t&&b(o,t[r]);for(f(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<c;)u(t,r++);return t}})},8862:(e,t,n)=>{var r=n(2109),o=n(5005),a=n(2104),i=n(6916),l=n(1702),u=n(7293),s=n(3157),c=n(614),f=n(111),d=n(2190),p=n(206),h=n(133),y=o("JSON","stringify"),m=l(/./.exec),v=l("".charAt),g=l("".charCodeAt),b=l("".replace),w=l(1..toString),E=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,k=!h||u((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),F=function(e,t){var n=p(arguments),r=t;if((f(t)||void 0!==e)&&!d(e))return s(t)||(t=function(e,t){if(c(r)&&(t=i(r,this,e,t)),!d(t))return t}),n[1]=t,a(y,null,n)},P=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(S,e)&&!m(x,o)||m(x,e)&&!m(S,r)?"\\u"+w(g(e,0),16):e};y&&r({target:"JSON",stat:!0,arity:3,forced:k||O},{stringify:function(e,t,n){var r=p(arguments),o=a(k?F:y,null,r);return O&&"string"==typeof o?b(o,E,P):o}})},9601:(e,t,n)=>{var r=n(2109),o=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},821:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(9662),i=n(8523),l=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,c=l((function(){var n=a(t.resolve),i=[],l=0,c=1;u(e,(function(e){var a=l++,u=!1;c++,o(n,t,e).then((function(e){u||(u=!0,i[a]=e,--c||r(i))}),s)})),--c||r(i)}));return c.error&&s(c.value),n.promise}})},4164:(e,t,n)=>{"use strict";var r=n(2109),o=n(1913),a=n(3702).CONSTRUCTOR,i=n(2492),l=n(5005),u=n(614),s=n(8052),c=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(i)){var f=l("Promise").prototype.catch;c.catch!==f&&s(c,"catch",f,{unsafe:!0})}},3401:(e,t,n)=>{"use strict";var r,o,a,i=n(2109),l=n(1913),u=n(5268),s=n(7854),c=n(6916),f=n(8052),d=n(7674),p=n(8003),h=n(6340),y=n(9662),m=n(614),v=n(111),g=n(5787),b=n(6707),w=n(261).set,E=n(5948),S=n(842),x=n(2534),k=n(8572),O=n(9909),F=n(2492),P=n(3702),_=n(8523),T="Promise",C=P.CONSTRUCTOR,j=P.REJECTION_EVENT,R=P.SUBCLASSING,D=O.getterFor(T),A=O.set,L=F&&F.prototype,N=F,I=L,M=s.TypeError,U=s.document,z=s.process,q=_.f,G=q,B=!!(U&&U.createEvent&&s.dispatchEvent),H="unhandledrejection",$=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},V=function(e,t){var n,r,o,a=t.value,i=1==t.state,l=i?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{l?(i||(2===t.rejection&&X(t),t.rejection=1),!0===l?n=a:(f&&f.enter(),n=l(a),f&&(f.exit(),o=!0)),n===e.promise?s(M("Promise-chain cycle")):(r=$(n))?c(r,n,u,s):u(n)):s(a)}catch(e){f&&!o&&f.exit(),s(e)}},W=function(e,t){e.notified||(e.notified=!0,E((function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&Q(e)})))},K=function(e,t,n){var r,o;B?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!j&&(o=s["on"+e])?o(r):e===H&&S("Unhandled promise rejection",n)},Q=function(e){c(w,s,(function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=x((function(){u?z.emit("unhandledRejection",r,n):K(H,n,r)})),e.rejection=u||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,s,(function(){var t=e.facade;u?z.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},Y=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw M("Promise can't be resolved itself");var r=$(t);r?E((function(){var n={done:!1};try{c(r,t,Y(ee,n,e),Y(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){J({done:!1},t,e)}}};if(C&&(I=(N=function(e){g(this,I),y(e),c(r,this);var t=D(this);try{e(Y(ee,t),Y(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){A(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=f(I,"then",(function(e,t){var n=D(this),r=q(b(this,N));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=u?z.domain:void 0,0==n.state?n.reactions.add(r):E((function(){V(r,n)})),r.promise})),o=function(){var e=new r,t=D(e);this.promise=e,this.resolve=Y(ee,t),this.reject=Y(J,t)},_.f=q=function(e){return e===N||undefined===e?new o(e):G(e)},!l&&m(F)&&L!==Object.prototype)){a=L.then,R||f(L,"then",(function(e,t){var n=this;return new N((function(e,t){c(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,I)}i({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:N}),p(N,T,!1,!0),h(T)},8674:(e,t,n)=>{n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(9662),i=n(8523),l=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(e){var t=this,n=i.f(t),r=n.reject,s=l((function(){var i=a(t.resolve);u(e,(function(e){o(i,t,e).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},683:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return o(t.reject,void 0,e),t.promise}})},6294:(e,t,n)=>{"use strict";var r=n(2109),o=n(5005),a=n(1913),i=n(2492),l=n(3702).CONSTRUCTOR,u=n(9478),s=o("Promise"),c=a&&!l;r({target:"Promise",stat:!0,forced:a||l},{resolve:function(e){return u(c&&this===s?i:this,e)}})},4916:(e,t,n)=>{"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7601:(e,t,n)=>{"use strict";n(4916);var r,o,a=n(2109),i=n(6916),l=n(1702),u=n(614),s=n(111),c=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=TypeError,d=l(/./.test);a({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!u(t))return d(this,e);var n=i(t,this,e);if(null!==n&&!s(n))throw new f("RegExp exec method returned something other than an Object or null");return!!n}})},2023:(e,t,n)=>{"use strict";var r=n(2109),o=n(1702),a=n(3929),i=n(4488),l=n(1340),u=n(4964),s=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~s(l(i(this)),l(a(e)),arguments.length>1?arguments[1]:void 0)}})},4723:(e,t,n)=>{"use strict";var r=n(6916),o=n(7007),a=n(9670),i=n(7466),l=n(1340),u=n(4488),s=n(8173),c=n(1530),f=n(7651);o("match",(function(e,t,n){return[function(t){var n=u(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=a(this),o=l(e),u=n(t,r,o);if(u.done)return u.value;if(!r.global)return f(r,o);var s=r.unicode;r.lastIndex=0;for(var d,p=[],h=0;null!==(d=f(r,o));){var y=l(d[0]);p[h]=y,""===y&&(r.lastIndex=c(o,i(r.lastIndex),s)),h++}return 0===h?null:p}]}))},5306:(e,t,n)=>{"use strict";var r=n(2104),o=n(6916),a=n(1702),i=n(7007),l=n(7293),u=n(9670),s=n(614),c=n(9303),f=n(7466),d=n(1340),p=n(4488),h=n(1530),y=n(8173),m=n(647),v=n(7651),g=n(5112)("replace"),b=Math.max,w=Math.min,E=a([].concat),S=a([].push),x=a("".indexOf),k=a("".slice),O="$0"==="a".replace(/./,"$0"),F=!!/./[g]&&""===/./[g]("a","$0");i("replace",(function(e,t,n){var a=F?"$":"$0";return[function(e,n){var r=p(this),a=null==e?void 0:y(e,g);return a?o(a,e,r,n):o(t,d(r),e,n)},function(e,o){var i=u(this),l=d(e);if("string"==typeof o&&-1===x(o,a)&&-1===x(o,"$<")){var p=n(t,i,l,o);if(p.done)return p.value}var y=s(o);y||(o=d(o));var g=i.global;if(g){var O=i.unicode;i.lastIndex=0}for(var F=[];;){var P=v(i,l);if(null===P)break;if(S(F,P),!g)break;""===d(P[0])&&(i.lastIndex=h(l,f(i.lastIndex),O))}for(var _,T="",C=0,j=0;j<F.length;j++){for(var R=d((P=F[j])[0]),D=b(w(c(P.index),l.length),0),A=[],L=1;L<P.length;L++)S(A,void 0===(_=P[L])?_:String(_));var N=P.groups;if(y){var I=E([R],A,D,l);void 0!==N&&S(I,N);var M=d(r(o,void 0,I))}else M=m(R,l,D,A,N,o);D>=C&&(T+=k(l,C,D)+M,C=D+R.length)}return T+k(l,C)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||F)},4765:(e,t,n)=>{"use strict";var r=n(6916),o=n(7007),a=n(9670),i=n(4488),l=n(1150),u=n(1340),s=n(8173),c=n(7651);o("search",(function(e,t,n){return[function(t){var n=i(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=a(this),o=u(e),i=n(t,r,o);if(i.done)return i.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var f=c(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===f?-1:f.index}]}))},3948:(e,t,n)=>{var r=n(7854),o=n(8324),a=n(8509),i=n(6992),l=n(8880),u=n(5112),s=u("iterator"),c=u("toStringTag"),f=i.values,d=function(e,t){if(e){if(e[s]!==f)try{l(e,s,f)}catch(t){e[s]=f}if(e[c]||l(e,c,t),o[t])for(var n in i)if(e[n]!==i[n])try{l(e,n,i[n])}catch(t){e[n]=i[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(a,"DOMTokenList")},7531:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>F,ob:()=>p,PP:()=>_,Ep:()=>d});var r=n(7462);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&o(e),u=t&&o(t),s=l||u;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,d=i.length;d>=0;d--){var p=i[d];"."===p?a(i,d):".."===p?(a(i,d),f++):f&&(a(i,d),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var l=n(2177);function u(e){return"/"===e.charAt(0)?e:"/"+e}function s(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.Z)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function m(e,t){t(window.confirm(e))}var v="popstate",g="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||(0,l.Z)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,w=void 0!==s&&s,E=i.getUserConfirmation,S=void 0===E?m:E,x=i.keyLength,k=void 0===x?6:x,O=e.basename?f(u(e.basename)):"";function F(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return O&&(a=c(a,O)),p(a,r,n)}function P(){return Math.random().toString(36).substr(2,k)}var _=h();function T(e){(0,r.Z)(q,e),q.length=n.length,_.notifyListeners(q.location,q.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(F(e.state))}function j(){D(F(b()))}var R=!1;function D(e){if(R)R=!1,T();else{_.confirmTransitionTo(e,"POP",S,(function(t){t?T({action:"POP",location:e}):function(e){var t=q.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,I(o))}(e)}))}}var A=F(b()),L=[A.key];function N(e){return O+d(e)}function I(e){n.go(e)}var M=0;function U(e){1===(M+=e)&&1===e?(window.addEventListener(v,C),a&&window.addEventListener(g,j)):0===M&&(window.removeEventListener(v,C),a&&window.removeEventListener(g,j))}var z=!1;var q={length:n.length,action:"POP",location:A,createHref:N,push:function(e,t){var r="PUSH",a=p(e,t,P(),q.location);_.confirmTransitionTo(a,r,S,(function(e){if(e){var t=N(a),i=a.key,l=a.state;if(o)if(n.pushState({key:i,state:l},null,t),w)window.location.href=t;else{var u=L.indexOf(q.location.key),s=L.slice(0,u+1);s.push(a.key),L=s,T({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,P(),q.location);_.confirmTransitionTo(a,r,S,(function(e){if(e){var t=N(a),i=a.key,l=a.state;if(o)if(n.replaceState({key:i,state:l},null,t),w)window.location.replace(t);else{var u=L.indexOf(q.location.key);-1!==u&&(L[u]=a.key),T({action:r,location:a})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return z||(U(1),z=!0),function(){return z&&(z=!1,U(-1)),t()}},listen:function(e){var t=_.appendListener(e);return U(1),function(){U(-1),t()}}};return q}var E="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+s(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s,decodePath:u},slash:{encodePath:u,decodePath:u}};function x(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(x(window.location.href)+"#"+e)}function F(e){void 0===e&&(e={}),y||(0,l.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?m:o,i=n.hashType,s=void 0===i?"slash":i,v=e.basename?f(u(e.basename)):"",g=S[s],b=g.encodePath,w=g.decodePath;function F(){var e=w(k());return v&&(e=c(e,v)),p(e)}var P=h();function _(e){(0,r.Z)(z,e),z.length=t.length,P.notifyListeners(z.location,z.action)}var T=!1,C=null;function j(){var e,t,n=k(),r=b(n);if(n!==r)O(r);else{var o=F(),i=z.location;if(!T&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(C===d(o))return;C=null,function(e){if(T)T=!1,_();else{var t="POP";P.confirmTransitionTo(e,t,a,(function(n){n?_({action:t,location:e}):function(e){var t=z.location,n=L.lastIndexOf(d(t));-1===n&&(n=0);var r=L.lastIndexOf(d(e));-1===r&&(r=0);var o=n-r;o&&(T=!0,N(o))}(e)}))}}(o)}}var R=k(),D=b(R);R!==D&&O(D);var A=F(),L=[d(A)];function N(e){t.go(e)}var I=0;function M(e){1===(I+=e)&&1===e?window.addEventListener(E,j):0===I&&window.removeEventListener(E,j)}var U=!1;var z={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=x(window.location.href)),n+"#"+b(v+d(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,z.location);P.confirmTransitionTo(r,n,a,(function(e){if(e){var t=d(r),o=b(v+t);if(k()!==o){C=t,function(e){window.location.hash=e}(o);var a=L.lastIndexOf(d(z.location)),i=L.slice(0,a+1);i.push(t),L=i,_({action:n,location:r})}else _()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,z.location);P.confirmTransitionTo(r,n,a,(function(e){if(e){var t=d(r),o=b(v+t);k()!==o&&(C=t,O(o));var a=L.indexOf(d(z.location));-1!==a&&(L[a]=t),_({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return U||(M(1),U=!0),function(){return U&&(U=!1,M(-1)),t()}},listen:function(e){var t=P.appendListener(e);return M(1),function(){M(-1),t()}}};return z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,l=void 0===i?0:i,u=t.keyLength,s=void 0===u?6:u,c=h();function f(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function y(){return Math.random().toString(36).substr(2,s)}var m=P(l,0,a.length-1),v=a.map((function(e){return p(e,void 0,"string"==typeof e?y():e.key||y())})),g=d;function b(e){var t=P(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:v.length,action:"POP",location:v[m],index:m,entries:v,createHref:g,push:function(e,t){var r="PUSH",o=p(e,t,y(),w.location);c.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,y(),w.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=u(t),y=u(n),m=0;m<i.length;++m){var v=i[m];if(!(a[v]||r&&r[v]||y&&y[v]||l&&l[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},7418:e=>{"use strict";
22
  /*
23
  object-assign
24
  (c) Sindre Sorhus
@@ -82,7 +82,7 @@ object-assign
82
  *
83
  * This source code is licensed under the MIT license found in the
84
  * LICENSE file in the root directory of this source tree.
85
- */var r=n(7294),o=n(1688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=i(e,f[0],f[1]);return u((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:(e,t,n)=>{"use strict";e.exports=n(3250)},2798:(e,t,n)=>{"use strict";e.exports=n(139)},5311:e=>{"use strict";e.exports=jQuery},4942:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},4578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},9611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e].call(a.exports,a,a.exports,o),a.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"assets/js/chunk-"+e+"."+{8:"7f9cd7c302c223d62f3c",88:"3fdd159572e48a92c54f",142:"988aa2760a0153882311",291:"1bffe2206b6fc15d1ea1",366:"b79cfa9301292212ab1b",387:"3910cac3d37c3b41392a",574:"3c3c71624e805269f16d",604:"2ce3d257fe0b58a49cf4",872:"1db5008e5ad375567658"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="gravity-pdf:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var f=s[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",t+a),l.src=n),e[n]=[r];var d=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../../"})(),(()=>{var e={325:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=a);var i=o.p+o.u(t),l=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[i,l,u]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(u)u(o)}for(t&&t(n);s<i.length;s++)a=i[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkgravity_pdf=self.webpackChunkgravity_pdf||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";o(8674);var e=o(5311),t=o.n(e),n=(o(6992),o(3948),o(9601),o(7294)),r=o(3935),a=o(3727),i=o(5977),l=o(50),u=o.n(l),s=o(8500),c=o(7779),f=function(e){return"@@redux-saga/"+e},d=f("CANCEL_PROMISE"),p=f("CHANNEL_END"),h=f("IO"),y=f("MATCH"),m=f("MULTICAST"),v=f("SAGA_ACTION"),g=f("SELF_CANCELLATION"),b=f("TASK"),w=f("TASK_CANCEL"),E=f("TERMINATE"),S=f("LOCATION"),x=o(7462),k=o(3366),O=function(e){return null==e},F=function(e){return null!=e},P=function(e){return"function"==typeof e},_=function(e){return"string"==typeof e},T=Array.isArray,C=function(e){return e&&P(e.then)},j=function(e){return e&&P(e.next)&&P(e.throw)},R=function e(t){return t&&(_(t)||L(t)||P(t)||T(t)&&t.every(e))},D=function(e){return e&&P(e.take)&&P(e.close)},A=function(e){return P(e)&&e.hasOwnProperty("toString")},L=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var N=function(e){return function(){return e}}(!0),I=function(){};var M=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var U=function(e,t){(0,x.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function z(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var q=function(e){throw e},G=function(e){return{value:e,done:!0}};function B(e,t,n){void 0===t&&(t=q),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:G,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function H(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var $=function(e){return Array.apply(null,new Array(e))},V=function(e){return function(t){return e(Object.defineProperty(t,v,{value:!0}))}},W=function(e){return e===E},K=function(e){return e===w},Q=function(e){return W(e)||K(e)};function Z(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=T(e)?$(r):{},l={};return n.forEach((function(e){var n=function(n,l){o||(l||Q(n)?(t.cancel(),t(n,l)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=I,l[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return l[e].cancel()})))},l}function X(e){return{name:e.name||"anonymous",location:Y(e)}}function Y(e){return e[S]}function J(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},l=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},u=function(){for(var e=[];r;)e.push(l());return e};return{isEmpty:function(){return 0==r},put:function(l){var s;if(r<e)i(l);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=l,a=o=(o+1)%e;break;case 4:s=2*e,n=u(),r=n.length,o=n.length,a=0,n.length=s,e=s,i(l)}},take:l,flush:u}}var ee=function(e){return J(e,4)},te="TAKE",ne="PUT",re="ALL",oe="CALL",ae="FORK",ie="CANCEL",le=function(e,t){var n;return(n={})[h]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function ue(e,t){return void 0===e&&(e="*"),R(e)?le(te,{pattern:e}):D(n=e)&&n[m]&&F(t)&&R(t)?le(te,{channel:e,pattern:t}):D(e)?le(te,{channel:e}):void 0;var n}function se(e,t){return O(t)&&(t=e,e=void 0),le(ne,{channel:e,action:t})}function ce(e,t){var n,r=null;return P(e)?n=e:(T(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&_(n)&&P(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return le(oe,ce(e,n))}function de(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return le(ae,ce(e,n))}function pe(e){return void 0===e&&(e=g),le(ie,e)}function he(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const ye=he;var me=[],ve=0;function ge(e){try{Ee(),e()}finally{Se()}}function be(e){me.push(e),ve||(Ee(),xe())}function we(e){try{return Ee(),e()}finally{xe()}}function Ee(){ve++}function Se(){ve--}function xe(){var e;for(Se();!ve&&void 0!==(e=me.shift());)ge(e)}var ke=function(e){return function(t){return e.some((function(e){return Te(e)(t)}))}},Oe=function(e){return function(t){return e(t)}},Fe=function(e){return function(t){return t.type===String(e)}},Pe=function(e){return function(t){return t.type===e}},_e=function(){return N};function Te(e){var t="*"===e?_e:_(e)?Fe:T(e)?ke:A(e)?Fe:P(e)?Oe:L(e)?Pe:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Ce={type:p},je=function(e){return e&&e.type===p};function Re(e){void 0===e&&(e=ee());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Ce):e.isEmpty()?(n.push(r),r.cancel=function(){z(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Ce):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(Ce)}}}}}function De(){var e,t,n,r,o,a,i=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Ce)}))},(e={})[m]=!0,e.put=function(e){if(!t)if(je(e))a();else for(var o=n=r,i=0,l=o.length;i<l;i++){var u=o[i];u[y](e)&&(u.cancel(),u(e))}},e.take=function(e,n){var a,i;void 0===n&&(n=_e),t?e(Ce):(e[y]=n,o(),r.push(e),e.cancel=(a=function(){o(),z(r,e)},i=!1,function(){i||(i=!0,a())}))},e.close=a,e),l=i.put;return i.put=function(e){e[v]?l(e):be((function(){l(e)}))},i}function Ae(e,t){var n=e[d];P(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Le,Ne=0,Ie=function(){return++Ne};function Me(e){e.isRunning()&&e.cancel()}var Ue=((Le={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,a=t.pattern,i=t.maybe,l=function(e){e instanceof Error?n(e,!0):!je(e)||i?n(e):n(E)};try{o.take(l,F(a)?Te(a):null)}catch(e){return void n(e,!0)}n.cancel=l.cancel},Le.PUT=function(e,t,n){var r=t.channel,o=t.action,a=t.resolve;be((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}a&&C(t)?Ae(t,n):n(t)}))},Le.ALL=function(e,t,n,r){var o=r.digestEffect,a=Ne,i=Object.keys(t);if(0!==i.length){var l=Z(t,n);i.forEach((function(e){o(t[e],a,l[e],e)}))}else n(T(t)?[]:{})},Le.RACE=function(e,t,n,r){var o=r.digestEffect,a=Ne,i=Object.keys(t),l=T(t)?$(i.length):{},u={},s=!1;i.forEach((function(e){var t=function(t,r){s||(r||Q(t)?(n.cancel(),n(t,r)):(n.cancel(),s=!0,l[e]=t,n(l)))};t.cancel=I,u[e]=t})),n.cancel=function(){s||(s=!0,i.forEach((function(e){return u[e].cancel()})))},i.forEach((function(e){s||o(t[e],a,u[e],e)}))},Le.CALL=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=r.task;try{var u=a.apply(o,i);if(C(u))return void Ae(u,n);if(j(u))return void Qe(e,u,l.context,Ne,X(a),!1,n);n(u)}catch(e){n(e,!0)}},Le.CPS=function(e,t,n){var r=t.context,o=t.fn,a=t.args;try{var i=function(e,t){O(e)?n(t):n(e,!0)};o.apply(r,a.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(e){n(e,!0)}},Le.FORK=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=t.detached,u=r.task,s=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(j(o))return o;var a=!1;return B((function(e){return a?{value:e,done:!0}:(a=!0,{value:o,done:!C(o)})}))}catch(e){return B((function(){throw e}))}}({context:o,fn:a,args:i}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:X(t)}(s,a);we((function(){var t=Qe(e,s,u.context,Ne,c,l,void 0);l?n(t):t.isRunning()?(u.queue.addTask(t),n(t)):t.isAborted()?u.queue.abort(t.error()):n(t)}))},Le.JOIN=function(e,t,n,r){var o=r.task,a=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&z(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(T(t)){if(0===t.length)return void n([]);var i=Z(t,n);t.forEach((function(e,t){a(e,i[t])}))}else a(t,n)},Le.CANCEL=function(e,t,n,r){var o=r.task;t===g?Me(o):T(t)?t.forEach(Me):Me(t),n()},Le.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},Le.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=Re(t.buffer),a=Te(r),i=function t(n){je(n)||e.channel.take(t,a),o.put(n)},l=o.close;o.close=function(){i.cancel(),l()},e.channel.take(i,a),n(o)},Le.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},Le.FLUSH=function(e,t,n){t.flush(n)},Le.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Le.SET_CONTEXT=function(e,t,n,r){var o=r.task;U(o.context,t),n()},Le);function ze(e,t){return e+"?"+t}function qe(e){var t=e.name,n=e.location;return n?t+" "+ze(n.fileName,n.lineNumber):t}function Ge(e){var t,n,r,o=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):""}var Be=null,He=[],$e=function(e){e.crashedEffect=Be,He.push(e)},Ve=function(){Be=null,He.length=0},We=function(){var e=He[0],t=He.slice(1),n=e.crashedEffect?function(e){var t=Y(e);return t?t.code+" "+ze(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+qe(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+qe(e.meta)})),[Ge(He)]).join("\n")};function Ke(e,t,n,r,o,a,i){var l;void 0===i&&(i=I);var u,s,c=0,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,o=[],a=!1;function i(e){t(),u(),n(e,!0)}function l(t){o.push(t),t.cont=function(l,u){a||(z(o,t),t.cont=I,u?i(l):(t===e&&(r=l),o.length||(a=!0,n(r))))}}function u(){a||(a=!0,o.forEach((function(e){e.cont=I,e.cancel()})),o=[])}return l(e),{addTask:l,cancelAll:u,abort:i,getTasks:function(){return o}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),y);function y(t,n){if(n){if(c=2,$e({meta:o,cancelledTasks:d}),m.isRoot){var r=We();Ve(),e.onError(t,{sagaStack:r})}s=t,f&&f.reject(t)}else t===w?c=1:1!==c&&(c=3),u=t,f&&f.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((l={})[b]=!0,l.id=r,l.meta=o,l.isRoot=a,l.context=p,l.joiners=[],l.queue=h,l.cancel=function(){0===c&&(c=1,h.cancelAll(),y(w,!1))},l.cont=i,l.end=y,l.setContext=function(e){U(p,e)},l.toPromise=function(){return f||(f=ye(),2===c?f.reject(s):0!==c&&f.resolve(u)),f.promise},l.isRunning=function(){return 0===c},l.isCancelled=function(){return 1===c||0===c&&1===t.status},l.isAborted=function(){return 2===c},l.result=function(){return u},l.error=function(){return s},l);return m}function Qe(e,t,n,r,o,a,i){var l=e.finalizeRunEffect((function(t,n,r){if(C(t))Ae(t,r);else if(j(t))Qe(e,t,s.context,n,o,!1,r);else if(t&&t[h]){(0,Ue[t.type])(e,t.payload,r,c)}else r(t)}));f.cancel=I;var u={meta:o,cancel:function(){0===u.status&&(u.status=1,f(w))},status:0},s=Ke(e,u,n,r,o,a,i),c={task:s,digestEffect:d};return i&&(i.cancel=s.cancel),f(),s;function f(e,n){try{var o;n?(o=t.throw(e),Ve()):K(e)?(u.status=1,f.cancel(),o=P(t.return)?t.return(w):{done:!0,value:w}):o=W(e)?P(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==u.status&&(u.status=3),u.cont(o.value)):d(o.value,r,f)}catch(e){if(1===u.status)throw e;u.status=2,u.cont(e,!0)}}function d(t,n,r,o){void 0===o&&(o="");var a,i=Ie();function u(n,o){a||(a=!0,r.cancel=I,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(i,n):e.sagaMonitor.effectResolved(i,n)),o&&function(e){Be=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:n,label:o,effect:t}),u.cancel=I,r.cancel=function(){a||(a=!0,u.cancel(),u.cancel=I,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},l(t,i,u)}}function Ze(e,t){var n=e.channel,r=void 0===n?De():n,o=e.dispatch,a=e.getState,i=e.context,l=void 0===i?{}:i,u=e.sagaMonitor,s=e.effectMiddlewares,f=e.onError,d=void 0===f?H:f;for(var p=arguments.length,h=new Array(p>2?p-2:0),y=2;y<p;y++)h[y-2]=arguments[y];var m=t.apply(void 0,h);var v,g=Ie();if(u&&(u.rootSagaStarted=u.rootSagaStarted||I,u.effectTriggered=u.effectTriggered||I,u.effectResolved=u.effectResolved||I,u.effectRejected=u.effectRejected||I,u.effectCancelled=u.effectCancelled||I,u.actionDispatched=u.actionDispatched||I,u.rootSagaStarted({effectId:g,saga:t,args:h})),s){var b=c.qC.apply(void 0,s);v=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else v=M;var w={channel:r,dispatch:V(o),getState:a,sagaMonitor:u,onError:d,finalizeRunEffect:v};return we((function(){var e=Qe(w,m,l,g,X(t),!0,void 0);return u&&u.effectResolved(g,e),e}))}const Xe=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,a=n.channel,i=void 0===a?De():a,l=n.sagaMonitor,u=(0,k.Z)(n,["context","channel","sagaMonitor"]);function s(e){var n=e.getState,r=e.dispatch;return t=Ze.bind(null,(0,x.Z)({},u,{context:o,channel:i,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return i.put(t),n}}}return s.run=function(){return t.apply(void 0,arguments)},s.setContext=function(e){U(o,e)},s},Ye=Xe;var Je=function(e){return{done:!0,value:e}},et={};function tt(e){return D(e)?"channel":A(e)?String(e):P(e)?e.name:String(e)}function nt(e,t,n){var r,o,a,i=t;function l(t,n){if(i===et)return Je(t);if(n&&!o)throw i=et,n;r&&r(t);var l=n?e[o](n):e[i]();return i=l.nextState,a=l.effect,r=l.stateUpdater,o=l.errorState,i===et?Je(t):a}return B(l,(function(e){return l(null,e)}),n)}function rt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,l={done:!1,value:ue(e)},u=function(e){return{done:!1,value:de.apply(void 0,[t].concat(r,[e]))}},s=function(e){return{done:!1,value:pe(e)}},c=function(e){return a=e},f=function(e){return i=e};return nt({q1:function(){return{nextState:"q2",effect:l,stateUpdater:f}},q2:function(){return a?{nextState:"q3",effect:s(a)}:{nextState:"q1",effect:u(i),stateUpdater:c}},q3:function(){return{nextState:"q1",effect:u(i),stateUpdater:c}}},"q1","takeLatest("+tt(e)+", "+t.name+")")}function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return de.apply(void 0,[rt,e,t].concat(r))}var at=o(4738),it=o(3045),lt=o.n(it);
86
  /**
87
  * @package Gravity PDF
88
  * @copyright Copyright (c) 2022, Blue Liquid Designs
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  * @since 6.0
20
  */
21
+ function r(e,t){var n=document.querySelector(".update-font");if(t){var r=e.location.pathname;return r.substr(r.lastIndexOf("/")+1)===t?o(n,e):a(n,e,t)}return o(n,e)}function o(e,t){if(e.classList.remove("show"),"/fontmanager/"!==t.location.pathname)return t.push("/fontmanager/")}function a(e,t,n){return e.classList.add("show"),t.push("/fontmanager/"+n)}n.d(t,{cn:()=>a,kv:()=>r})},9662:(e,t,n)=>{var r=n(614),o=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},9483:(e,t,n)=>{var r=n(4411),o=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a constructor")}},6077:(e,t,n)=>{var r=n(614),o=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},1223:(e,t,n)=>{var r=n(5112),o=n(30),a=n(3070).f,i=r("unscopables"),l=Array.prototype;null==l[i]&&a(l,i,{configurable:!0,value:o(null)}),e.exports=function(e){l[i][e]=!0}},1530:(e,t,n)=>{"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:(e,t,n)=>{var r=n(7976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},9670:(e,t,n)=>{var r=n(111),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},1318:(e,t,n)=>{var r=n(5656),o=n(1400),a=n(6244),i=function(e){return function(t,n,i){var l,u=r(t),s=a(u),c=o(i,s);if(e&&n!=n){for(;s>c;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},9341:(e,t,n)=>{"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},1589:(e,t,n)=>{var r=n(1400),o=n(6244),a=n(6135),i=Array,l=Math.max;e.exports=function(e,t,n){for(var u=o(e),s=r(t,u),c=r(void 0===n?u:n,u),f=i(l(c-s,0)),d=0;s<c;s++,d++)a(f,d,e[s]);return f.length=d,f}},206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},4362:(e,t,n)=>{var r=n(1589),o=Math.floor,a=function(e,t){var n=e.length,u=o(n/2);return n<8?i(e,t):l(e,a(r(e,0,u),t),a(r(e,u),t),t)},i=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},l=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,l=0;i<o||l<a;)e[i+l]=i<o&&l<a?r(t[i],n[l])<=0?t[i++]:n[l++]:i<o?t[i++]:n[l++];return e};e.exports=a},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},4326:(e,t,n)=>{var r=n(1702),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},648:(e,t,n)=>{var r=n(1694),o=n(614),a=n(4326),i=n(5112)("toStringTag"),l=Object,u="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?n:u?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},9920:(e,t,n)=>{var r=n(2597),o=n(3887),a=n(1236),i=n(3070);e.exports=function(e,t,n){for(var l=o(t),u=i.f,s=a.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||u(e,f,s(t,f))}}},4964:(e,t,n)=>{var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),a=n(9114),i=n(8003),l=n(7497),u=function(){return this};e.exports=function(e,t,n,s){var c=t+" Iterator";return e.prototype=o(r,{next:a(+!s,n)}),i(e,c,!1,!0),l[c]=u,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),a=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(4948),o=n(3070),a=n(9114);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},8052:(e,t,n)=>{var r=n(614),o=n(3070),a=n(6339),i=n(3072);e.exports=function(e,t,n,l){l||(l={});var u=l.enumerable,s=void 0!==l.name?l.name:t;if(r(n)&&a(n,s,l),l.global)u?e[t]=n:i(t,n);else{try{l.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},3072:(e,t,n)=>{var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(1913),i=n(6530),l=n(614),u=n(4994),s=n(9518),c=n(7674),f=n(8003),d=n(8880),p=n(8052),h=n(5112),y=n(7497),m=n(3383),v=i.PROPER,g=i.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,E=h("iterator"),S="keys",x="values",k="entries",O=function(){return this};e.exports=function(e,t,n,i,h,m,F){u(n,t,i);var P,_,T,C=function(e){if(e===h&&L)return L;if(!w&&e in D)return D[e];switch(e){case S:case x:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",R=!1,D=e.prototype,A=D[E]||D["@@iterator"]||h&&D[h],L=!w&&A||C(h),N="Array"==t&&D.entries||A;if(N&&(P=s(N.call(new e)))!==Object.prototype&&P.next&&(a||s(P)===b||(c?c(P,b):l(P[E])||p(P,E,O)),f(P,j,!0,!0),a&&(y[j]=O)),v&&h==x&&A&&A.name!==x&&(!a&&g?d(D,"name",x):(R=!0,L=function(){return o(A,this)})),h)if(_={values:C(x),keys:m?L:C(S),entries:C(k)},F)for(T in _)(w||R||!(T in D))&&p(D,T,_[T]);else r({target:t,proto:!0,forced:w||R},_);return a&&!F||D[E]===L||p(D,E,L,{name:h}),y[t]=L,_}},5117:(e,t,n)=>{"use strict";var r=n(6330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,t,n)=>{var r=n(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,t,n)=>{var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:(e,t,n)=>{var r=n(3823),o=n(5268);e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},3823:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},256:(e,t,n)=>{var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:(e,t,n)=>{var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:(e,t,n)=>{var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:(e,t,n)=>{var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,a=n(7854),i=n(8113),l=a.process,u=a.Deno,s=l&&l.versions||u&&u.version,c=s&&s.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,t,n)=>{var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,a=n(8880),i=n(8052),l=n(3072),u=n(9920),s=n(4705);e.exports=function(e,t){var n,c,f,d,p,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||l(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!s(y?c:h+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),i(n,c,d,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,t,n)=>{"use strict";n(4916);var r=n(1702),o=n(8052),a=n(2261),i=n(7293),l=n(5112),u=n(8880),s=l("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=l(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var y=r(/./[d]),m=t(d,""[e],(function(e,t,n,o,i){var l=r(e),u=t.exec;return u===a||u===c.exec?p&&!i?{done:!0,value:y(t,n,o)}:{done:!0,value:l(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(c,d,m[1])}f&&u(c[d],"sham",!0)}},2104:(e,t,n)=>{var r=n(4374),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},9974:(e,t,n)=>{var r=n(1702),o=n(9662),a=n(4374),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},4374:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:(e,t,n)=>{var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:(e,t,n)=>{var r=n(9781),o=n(2597),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,l=o(a,"name"),u=l&&"something"===function(){}.name,s=l&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:l,PROPER:u,CONFIGURABLE:s}},1702:(e,t,n)=>{var r=n(4374),o=Function.prototype,a=o.bind,i=o.call,l=r&&a.bind(i,i);e.exports=r?function(e){return e&&l(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},5005:(e,t,n)=>{var r=n(7854),o=n(614),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(8173),a=n(7497),i=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,i)||o(e,"@@iterator")||a[r(e)]}},8554:(e,t,n)=>{var r=n(6916),o=n(9662),a=n(9670),i=n(6330),l=n(1246),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return a(r(n,e));throw u(i(e)+" is not iterable")}},8173:(e,t,n)=>{var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:(e,t,n)=>{var r=n(1702),o=n(7908),a=Math.floor,i=r("".charAt),l=r("".replace),u=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,y=c;return void 0!==f&&(f=o(f),y=s),l(d,y,(function(o,l){var s;switch(i(l,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":s=f[u(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>h){var d=a(c/10);return 0===d?o:d<=h?void 0===r[d-1]?i(l,1):r[d-1]+i(l,1):o}s=r[c-1]}return void 0===s?"":s}))}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(e,t,n)=>{var r=n(1702),o=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),a=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(1702),o=n(7293),a=n(4326),i=Object,l=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):i(e)}:i},2788:(e,t,n)=>{var r=n(1702),o=n(614),a=n(5465),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},9909:(e,t,n)=>{var r,o,a,i=n(8536),l=n(7854),u=n(1702),s=n(111),c=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),y="Object already initialized",m=l.TypeError,v=l.WeakMap;if(i||d.state){var g=d.state||(d.state=new v),b=u(g.get),w=u(g.has),E=u(g.set);r=function(e,t){if(w(g,e))throw new m(y);return t.facade=e,E(g,e,t),t},o=function(e){return b(g,e)||{}},a=function(e){return w(g,e)}}else{var S=p("state");h[S]=!0,r=function(e,t){if(f(e,S))throw new m(y);return t.facade=e,c(e,S,t),t},o=function(e){return f(e,S)?e[S]:{}},a=function(e){return f(e,S)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},3157:(e,t,n)=>{var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,t,n)=>{var r=n(1702),o=n(7293),a=n(614),i=n(648),l=n(5005),u=n(2788),s=function(){},c=[],f=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(s),y=function(e){if(!a(e))return!1;try{return f(s,c,e),!0}catch(e){return!1}},m=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,u(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},4705:(e,t,n)=>{var r=n(7293),o=n(614),a=/#|\.prototype\./,i=function(e,t){var n=u[l(e)];return n==c||n!=s&&(o(t)?r(t):!!t)},l=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},111:(e,t,n)=>{var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,t,n)=>{var r=n(111),o=n(4326),a=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},2190:(e,t,n)=>{var r=n(5005),o=n(614),a=n(7976),i=n(3307),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,l(e))}},408:(e,t,n)=>{var r=n(9974),o=n(6916),a=n(9670),i=n(6330),l=n(7659),u=n(6244),s=n(7976),c=n(8554),f=n(1246),d=n(9212),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;e.exports=function(e,t,n){var m,v,g,b,w,E,S,x=n&&n.that,k=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),F=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),_=r(t,x),T=function(e){return m&&d(m,"normal",e),new h(!0,e)},C=function(e){return k?(a(e),P?_(e[0],e[1],T):_(e[0],e[1])):P?_(e,T):_(e)};if(O)m=e.iterator;else if(F)m=e;else{if(!(v=f(e)))throw p(i(e)+" is not iterable");if(l(v)){for(g=0,b=u(e);b>g;g++)if((w=C(e[g]))&&s(y,w))return w;return new h(!1)}m=c(e,v)}for(E=O?e.next:m.next;!(S=o(E,m)).done;){try{w=C(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&s(y,w))return w}return new h(!1)}},9212:(e,t,n)=>{var r=n(6916),o=n(9670),a=n(8173);e.exports=function(e,t,n){var i,l;o(e);try{if(!(i=a(e,"return"))){if("throw"===t)throw n;return n}i=r(i,e)}catch(e){l=!0,i=e}if("throw"===t)throw n;if(l)throw i;return o(i),n}},3383:(e,t,n)=>{"use strict";var r,o,a,i=n(7293),l=n(614),u=n(30),s=n(9518),c=n(8052),f=n(5112),d=n(1913),p=f("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(o=s(s(a)))!==Object.prototype&&(r=o):h=!0),null==r||i((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=u(r)),l(r[p])||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,t,n)=>{var r=n(7466);e.exports=function(e){return r(e.length)}},6339:(e,t,n)=>{var r=n(7293),o=n(614),a=n(2597),i=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),s=n(9909),c=s.enforce,f=s.get,d=Object.defineProperty,p=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return a(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5948:(e,t,n)=>{var r,o,a,i,l,u,s,c,f=n(7854),d=n(9974),p=n(1236).f,h=n(261).set,y=n(6833),m=n(1528),v=n(1036),g=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,E=f.process,S=f.Promise,x=p(f,"queueMicrotask"),k=x&&x.value;k||(r=function(){var e,t;for(g&&(e=E.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},y||g||v||!b||!w?!m&&S&&S.resolve?((s=S.resolve(void 0)).constructor=S,c=d(s.then,s),i=function(){c(r)}):g?i=function(){E.nextTick(r)}:(h=d(h,f),i=function(){h(r)}):(l=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),i=function(){u.data=l=!l})),e.exports=k||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},133:(e,t,n)=>{var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,t,n)=>{var r=n(7854),o=n(614),a=n(2788),i=r.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},8523:(e,t,n)=>{"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},3929:(e,t,n)=>{var r=n(7850),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(1702),a=n(6916),i=n(7293),l=n(1956),u=n(5181),s=n(5296),c=n(7908),f=n(8361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||i((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||l(d({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,i=1,d=u.f,p=s.f;o>i;)for(var y,m=f(arguments[i++]),v=d?h(l(m),d(m)):l(m),g=v.length,b=0;g>b;)y=v[b++],r&&!a(p,m,y)||(n[y]=m[y]);return n}:d},30:(e,t,n)=>{var r,o=n(9670),a=n(6048),i=n(748),l=n(3501),u=n(490),s=n(317),c=n(6200),f=c("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?h(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=i.length;n--;)delete y.prototype[i[n]];return y()};l[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:a.f(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3353),a=n(3070),i=n(9670),l=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){i(e);for(var n,r=l(t),o=u(t),s=o.length,c=0;s>c;)a.f(e,n=o[c++],r[n]);return e}},3070:(e,t,n)=>{var r=n(9781),o=n(4664),a=n(3353),i=n(9670),l=n(4948),u=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?a?function(e,t,n){if(i(e),t=l(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:d in n?n.configurable:r.configurable,enumerable:f in n?n.enumerable:r.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(i(e),t=l(t),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:(e,t,n)=>{var r=n(9781),o=n(6916),a=n(5296),i=n(9114),l=n(5656),u=n(4948),s=n(2597),c=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=u(t),c)try{return f(e,t)}catch(e){}if(s(e,t))return i(!o(a.f,e,t),e[t])}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(2597),o=n(614),a=n(7908),i=n(6200),l=n(8544),u=i("IE_PROTO"),s=Object,c=s.prototype;e.exports=l?s.getPrototypeOf:function(e){var t=a(e);if(r(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof s?c:null}},7976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:(e,t,n)=>{var r=n(1702),o=n(2597),a=n(5656),i=n(1318).indexOf,l=n(3501),u=r([].push);e.exports=function(e,t){var n,r=a(e),s=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&u(c,n);for(;t.length>s;)o(r,n=t[s++])&&(~i(c,n)||u(c,n));return c}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(1702),o=n(9670),a=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:(e,t,n)=>{var r=n(6916),o=n(614),a=n(111),i=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!a(l=r(n,e)))return l;if(o(n=e.valueOf)&&!a(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!a(l=r(n,e)))return l;throw i("Can't convert object to primitive value")}},3887:(e,t,n)=>{var r=n(5005),o=n(1702),a=n(8006),i=n(5181),l=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(l(e)),n=i.f;return n?u(t,n(e)):t}},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},3702:(e,t,n)=>{var r=n(7854),o=n(2492),a=n(614),i=n(4705),l=n(2788),u=n(5112),s=n(7871),c=n(3823),f=n(1913),d=n(7392),p=o&&o.prototype,h=u("species"),y=!1,m=a(r.PromiseRejectionEvent),v=i("Promise",(function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(y=n.then((function(){}))instanceof r))return!0}return!t&&(s||c)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:y}},2492:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},9478:(e,t,n)=>{var r=n(9670),o=n(111),a=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},612:(e,t,n)=>{var r=n(2492),o=n(7072),a=n(3702).CONSTRUCTOR;e.exports=a||!o((function(e){r.all(e).then(void 0,(function(){}))}))},8572:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},7651:(e,t,n)=>{var r=n(6916),o=n(9670),a=n(614),i=n(4326),l=n(2261),u=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var s=r(n,e,t);return null!==s&&o(s),s}if("RegExp"===i(e))return r(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},2261:(e,t,n)=>{"use strict";var r,o,a=n(6916),i=n(1702),l=n(1340),u=n(7066),s=n(2999),c=n(2309),f=n(30),d=n(9909).get,p=n(9441),h=n(7168),y=c("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=i("".charAt),b=i("".indexOf),w=i("".replace),E=i("".slice),S=(o=/b*/g,a(m,r=/a/,"a"),a(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),x=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||x||p||h)&&(v=function(e){var t,n,r,o,i,s,c,p=this,h=d(p),O=l(e),F=h.raw;if(F)return F.lastIndex=p.lastIndex,t=a(v,F,O),p.lastIndex=F.lastIndex,t;var P=h.groups,_=x&&p.sticky,T=a(u,p),C=p.source,j=0,R=O;if(_&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),R=E(O,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(O,p.lastIndex-1))&&(C="(?: "+C+")",R=" "+R,j++),n=new RegExp("^(?:"+C+")",T)),k&&(n=new RegExp("^"+C+"$(?!\\s)",T)),S&&(r=p.lastIndex),o=a(m,_?n:p,R),_?o?(o.input=E(o.input,j),o[0]=E(o[0],j),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),k&&o&&o.length>1&&a(y,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&P)for(o.groups=s=f(null),i=0;i<P.length;i++)s[(c=P[i])[0]]=o[c[1]];return o}),e.exports=v},7066:(e,t,n)=>{"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2999:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),i=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:i,UNSUPPORTED_Y:a}},9441:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:(e,t,n)=>{var r=n(7293),o=n(7854).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},1150:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),a=n(5112),i=n(9781),l=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(2597),a=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,a)&&r(e,a,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3072),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(e,t,n)=>{var r=n(9670),o=n(9483),a=n(5112)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},8710:(e,t,n)=>{var r=n(1702),o=n(9303),a=n(1340),i=n(4488),l=r("".charAt),u=r("".charCodeAt),s=r("".slice),c=function(e){return function(t,n){var r,c,f=a(i(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(c=u(f,d+1))<56320||c>57343?e?l(f,d):r:e?s(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},261:(e,t,n)=>{var r,o,a,i,l=n(7854),u=n(2104),s=n(9974),c=n(614),f=n(2597),d=n(7293),p=n(490),h=n(206),y=n(317),m=n(8053),v=n(6833),g=n(5268),b=l.setImmediate,w=l.clearImmediate,E=l.process,S=l.Dispatch,x=l.Function,k=l.MessageChannel,O=l.String,F=0,P={},_="onreadystatechange";try{r=l.location}catch(e){}var T=function(e){if(f(P,e)){var t=P[e];delete P[e],t()}},C=function(e){return function(){T(e)}},j=function(e){T(e.data)},R=function(e){l.postMessage(O(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:x(e),n=h(arguments,1);return P[++F]=function(){u(t,void 0,n)},o(F),F},w=function(e){delete P[e]},g?o=function(e){E.nextTick(C(e))}:S&&S.now?o=function(e){S.now(C(e))}:k&&!v?(i=(a=new k).port2,a.port1.onmessage=j,o=s(i.postMessage,i)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&r&&"file:"!==r.protocol&&!d(R)?(o=R,l.addEventListener("message",j,!1)):o=_ in y("script")?function(e){p.appendChild(y("script")).onreadystatechange=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:b,clear:w}},1400:(e,t,n)=>{var r=n(9303),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:(e,t,n)=>{var r=n(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},7466:(e,t,n)=>{var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:(e,t,n)=>{var r=n(6916),o=n(111),a=n(2190),i=n(8173),l=n(2140),u=n(5112),s=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,u=i(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||a(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:(e,t,n)=>{var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:(e,t,n)=>{var r=n(648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:(e,t,n)=>{var r=n(1702),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},5112:(e,t,n)=>{var r=n(7854),o=n(2309),a=n(2597),i=n(9711),l=n(133),u=n(3307),s=o("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||i;e.exports=function(e){if(!a(s,e)||!l&&"string"!=typeof s[e]){var t="Symbol."+e;l&&a(c,e)?s[e]=c[e]:s[e]=u&&f?f(t):d(t)}return s[e]}},6699:(e,t,n)=>{"use strict";var r=n(2109),o=n(1318).includes,a=n(7293),i=n(1223);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),a=n(7497),i=n(9909),l=n(3070).f,u=n(654),s=n(1913),c=n(9781),f="Array Iterator",d=i.set,p=i.getterFor(f);e.exports=u(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!s&&c&&"values"!==h.name)try{l(h,"name",{value:"values"})}catch(e){}},2707:(e,t,n)=>{"use strict";var r=n(2109),o=n(1702),a=n(9662),i=n(7908),l=n(6244),u=n(5117),s=n(1340),c=n(7293),f=n(4362),d=n(9341),p=n(8886),h=n(256),y=n(7392),m=n(8008),v=[],g=o(v.sort),b=o(v.push),w=c((function(){v.sort(void 0)})),E=c((function(){v.sort(null)})),S=d("sort"),x=!c((function(){if(y)return y<70;if(!(p&&p>3)){if(h)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!E||!S||!x},{sort:function(e){void 0!==e&&a(e);var t=i(this);if(x)return void 0===e?g(t):g(t,e);var n,r,o=[],c=l(t);for(r=0;r<c;r++)r in t&&b(o,t[r]);for(f(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<c;)u(t,r++);return t}})},8862:(e,t,n)=>{var r=n(2109),o=n(5005),a=n(2104),i=n(6916),l=n(1702),u=n(7293),s=n(3157),c=n(614),f=n(111),d=n(2190),p=n(206),h=n(133),y=o("JSON","stringify"),m=l(/./.exec),v=l("".charAt),g=l("".charCodeAt),b=l("".replace),w=l(1..toString),E=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,k=!h||u((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),F=function(e,t){var n=p(arguments),r=t;if((f(t)||void 0!==e)&&!d(e))return s(t)||(t=function(e,t){if(c(r)&&(t=i(r,this,e,t)),!d(t))return t}),n[1]=t,a(y,null,n)},P=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(S,e)&&!m(x,o)||m(x,e)&&!m(S,r)?"\\u"+w(g(e,0),16):e};y&&r({target:"JSON",stat:!0,arity:3,forced:k||O},{stringify:function(e,t,n){var r=p(arguments),o=a(k?F:y,null,r);return O&&"string"==typeof o?b(o,E,P):o}})},9601:(e,t,n)=>{var r=n(2109),o=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},821:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(9662),i=n(8523),l=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,c=l((function(){var n=a(t.resolve),i=[],l=0,c=1;u(e,(function(e){var a=l++,u=!1;c++,o(n,t,e).then((function(e){u||(u=!0,i[a]=e,--c||r(i))}),s)})),--c||r(i)}));return c.error&&s(c.value),n.promise}})},4164:(e,t,n)=>{"use strict";var r=n(2109),o=n(1913),a=n(3702).CONSTRUCTOR,i=n(2492),l=n(5005),u=n(614),s=n(8052),c=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(i)){var f=l("Promise").prototype.catch;c.catch!==f&&s(c,"catch",f,{unsafe:!0})}},3401:(e,t,n)=>{"use strict";var r,o,a,i=n(2109),l=n(1913),u=n(5268),s=n(7854),c=n(6916),f=n(8052),d=n(7674),p=n(8003),h=n(6340),y=n(9662),m=n(614),v=n(111),g=n(5787),b=n(6707),w=n(261).set,E=n(5948),S=n(842),x=n(2534),k=n(8572),O=n(9909),F=n(2492),P=n(3702),_=n(8523),T="Promise",C=P.CONSTRUCTOR,j=P.REJECTION_EVENT,R=P.SUBCLASSING,D=O.getterFor(T),A=O.set,L=F&&F.prototype,N=F,I=L,M=s.TypeError,U=s.document,z=s.process,q=_.f,G=q,B=!!(U&&U.createEvent&&s.dispatchEvent),H="unhandledrejection",$=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},V=function(e,t){var n,r,o,a=t.value,i=1==t.state,l=i?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{l?(i||(2===t.rejection&&X(t),t.rejection=1),!0===l?n=a:(f&&f.enter(),n=l(a),f&&(f.exit(),o=!0)),n===e.promise?s(M("Promise-chain cycle")):(r=$(n))?c(r,n,u,s):u(n)):s(a)}catch(e){f&&!o&&f.exit(),s(e)}},W=function(e,t){e.notified||(e.notified=!0,E((function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&Q(e)})))},K=function(e,t,n){var r,o;B?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!j&&(o=s["on"+e])?o(r):e===H&&S("Unhandled promise rejection",n)},Q=function(e){c(w,s,(function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=x((function(){u?z.emit("unhandledRejection",r,n):K(H,n,r)})),e.rejection=u||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,s,(function(){var t=e.facade;u?z.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},Y=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw M("Promise can't be resolved itself");var r=$(t);r?E((function(){var n={done:!1};try{c(r,t,Y(ee,n,e),Y(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){J({done:!1},t,e)}}};if(C&&(I=(N=function(e){g(this,I),y(e),c(r,this);var t=D(this);try{e(Y(ee,t),Y(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){A(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=f(I,"then",(function(e,t){var n=D(this),r=q(b(this,N));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=u?z.domain:void 0,0==n.state?n.reactions.add(r):E((function(){V(r,n)})),r.promise})),o=function(){var e=new r,t=D(e);this.promise=e,this.resolve=Y(ee,t),this.reject=Y(J,t)},_.f=q=function(e){return e===N||undefined===e?new o(e):G(e)},!l&&m(F)&&L!==Object.prototype)){a=L.then,R||f(L,"then",(function(e,t){var n=this;return new N((function(e,t){c(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,I)}i({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:N}),p(N,T,!1,!0),h(T)},8674:(e,t,n)=>{n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(9662),i=n(8523),l=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(e){var t=this,n=i.f(t),r=n.reject,s=l((function(){var i=a(t.resolve);u(e,(function(e){o(i,t,e).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},683:(e,t,n)=>{"use strict";var r=n(2109),o=n(6916),a=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return o(t.reject,void 0,e),t.promise}})},6294:(e,t,n)=>{"use strict";var r=n(2109),o=n(5005),a=n(1913),i=n(2492),l=n(3702).CONSTRUCTOR,u=n(9478),s=o("Promise"),c=a&&!l;r({target:"Promise",stat:!0,forced:a||l},{resolve:function(e){return u(c&&this===s?i:this,e)}})},4916:(e,t,n)=>{"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7601:(e,t,n)=>{"use strict";n(4916);var r,o,a=n(2109),i=n(6916),l=n(1702),u=n(614),s=n(111),c=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=TypeError,d=l(/./.test);a({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!u(t))return d(this,e);var n=i(t,this,e);if(null!==n&&!s(n))throw new f("RegExp exec method returned something other than an Object or null");return!!n}})},2023:(e,t,n)=>{"use strict";var r=n(2109),o=n(1702),a=n(3929),i=n(4488),l=n(1340),u=n(4964),s=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~s(l(i(this)),l(a(e)),arguments.length>1?arguments[1]:void 0)}})},4723:(e,t,n)=>{"use strict";var r=n(6916),o=n(7007),a=n(9670),i=n(7466),l=n(1340),u=n(4488),s=n(8173),c=n(1530),f=n(7651);o("match",(function(e,t,n){return[function(t){var n=u(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=a(this),o=l(e),u=n(t,r,o);if(u.done)return u.value;if(!r.global)return f(r,o);var s=r.unicode;r.lastIndex=0;for(var d,p=[],h=0;null!==(d=f(r,o));){var y=l(d[0]);p[h]=y,""===y&&(r.lastIndex=c(o,i(r.lastIndex),s)),h++}return 0===h?null:p}]}))},5306:(e,t,n)=>{"use strict";var r=n(2104),o=n(6916),a=n(1702),i=n(7007),l=n(7293),u=n(9670),s=n(614),c=n(9303),f=n(7466),d=n(1340),p=n(4488),h=n(1530),y=n(8173),m=n(647),v=n(7651),g=n(5112)("replace"),b=Math.max,w=Math.min,E=a([].concat),S=a([].push),x=a("".indexOf),k=a("".slice),O="$0"==="a".replace(/./,"$0"),F=!!/./[g]&&""===/./[g]("a","$0");i("replace",(function(e,t,n){var a=F?"$":"$0";return[function(e,n){var r=p(this),a=null==e?void 0:y(e,g);return a?o(a,e,r,n):o(t,d(r),e,n)},function(e,o){var i=u(this),l=d(e);if("string"==typeof o&&-1===x(o,a)&&-1===x(o,"$<")){var p=n(t,i,l,o);if(p.done)return p.value}var y=s(o);y||(o=d(o));var g=i.global;if(g){var O=i.unicode;i.lastIndex=0}for(var F=[];;){var P=v(i,l);if(null===P)break;if(S(F,P),!g)break;""===d(P[0])&&(i.lastIndex=h(l,f(i.lastIndex),O))}for(var _,T="",C=0,j=0;j<F.length;j++){for(var R=d((P=F[j])[0]),D=b(w(c(P.index),l.length),0),A=[],L=1;L<P.length;L++)S(A,void 0===(_=P[L])?_:String(_));var N=P.groups;if(y){var I=E([R],A,D,l);void 0!==N&&S(I,N);var M=d(r(o,void 0,I))}else M=m(R,l,D,A,N,o);D>=C&&(T+=k(l,C,D)+M,C=D+R.length)}return T+k(l,C)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||F)},4765:(e,t,n)=>{"use strict";var r=n(6916),o=n(7007),a=n(9670),i=n(4488),l=n(1150),u=n(1340),s=n(8173),c=n(7651);o("search",(function(e,t,n){return[function(t){var n=i(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=a(this),o=u(e),i=n(t,r,o);if(i.done)return i.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var f=c(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===f?-1:f.index}]}))},3948:(e,t,n)=>{var r=n(7854),o=n(8324),a=n(8509),i=n(6992),l=n(8880),u=n(5112),s=u("iterator"),c=u("toStringTag"),f=i.values,d=function(e,t){if(e){if(e[s]!==f)try{l(e,s,f)}catch(t){e[s]=f}if(e[c]||l(e,c,t),o[t])for(var n in i)if(e[n]!==i[n])try{l(e,n,i[n])}catch(t){e[n]=i[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(a,"DOMTokenList")},7531:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>F,ob:()=>p,PP:()=>_,Ep:()=>d});var r=n(7462);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&o(e),u=t&&o(t),s=l||u;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,d=i.length;d>=0;d--){var p=i[d];"."===p?a(i,d):".."===p?(a(i,d),f++):f&&(a(i,d),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var l=n(2177);function u(e){return"/"===e.charAt(0)?e:"/"+e}function s(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.Z)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function m(e,t){t(window.confirm(e))}var v="popstate",g="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||(0,l.Z)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,w=void 0!==s&&s,E=i.getUserConfirmation,S=void 0===E?m:E,x=i.keyLength,k=void 0===x?6:x,O=e.basename?f(u(e.basename)):"";function F(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return O&&(a=c(a,O)),p(a,r,n)}function P(){return Math.random().toString(36).substr(2,k)}var _=h();function T(e){(0,r.Z)(q,e),q.length=n.length,_.notifyListeners(q.location,q.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(F(e.state))}function j(){D(F(b()))}var R=!1;function D(e){if(R)R=!1,T();else{_.confirmTransitionTo(e,"POP",S,(function(t){t?T({action:"POP",location:e}):function(e){var t=q.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,I(o))}(e)}))}}var A=F(b()),L=[A.key];function N(e){return O+d(e)}function I(e){n.go(e)}var M=0;function U(e){1===(M+=e)&&1===e?(window.addEventListener(v,C),a&&window.addEventListener(g,j)):0===M&&(window.removeEventListener(v,C),a&&window.removeEventListener(g,j))}var z=!1;var q={length:n.length,action:"POP",location:A,createHref:N,push:function(e,t){var r="PUSH",a=p(e,t,P(),q.location);_.confirmTransitionTo(a,r,S,(function(e){if(e){var t=N(a),i=a.key,l=a.state;if(o)if(n.pushState({key:i,state:l},null,t),w)window.location.href=t;else{var u=L.indexOf(q.location.key),s=L.slice(0,u+1);s.push(a.key),L=s,T({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,P(),q.location);_.confirmTransitionTo(a,r,S,(function(e){if(e){var t=N(a),i=a.key,l=a.state;if(o)if(n.replaceState({key:i,state:l},null,t),w)window.location.replace(t);else{var u=L.indexOf(q.location.key);-1!==u&&(L[u]=a.key),T({action:r,location:a})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return z||(U(1),z=!0),function(){return z&&(z=!1,U(-1)),t()}},listen:function(e){var t=_.appendListener(e);return U(1),function(){U(-1),t()}}};return q}var E="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+s(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s,decodePath:u},slash:{encodePath:u,decodePath:u}};function x(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(x(window.location.href)+"#"+e)}function F(e){void 0===e&&(e={}),y||(0,l.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?m:o,i=n.hashType,s=void 0===i?"slash":i,v=e.basename?f(u(e.basename)):"",g=S[s],b=g.encodePath,w=g.decodePath;function F(){var e=w(k());return v&&(e=c(e,v)),p(e)}var P=h();function _(e){(0,r.Z)(z,e),z.length=t.length,P.notifyListeners(z.location,z.action)}var T=!1,C=null;function j(){var e,t,n=k(),r=b(n);if(n!==r)O(r);else{var o=F(),i=z.location;if(!T&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(C===d(o))return;C=null,function(e){if(T)T=!1,_();else{var t="POP";P.confirmTransitionTo(e,t,a,(function(n){n?_({action:t,location:e}):function(e){var t=z.location,n=L.lastIndexOf(d(t));-1===n&&(n=0);var r=L.lastIndexOf(d(e));-1===r&&(r=0);var o=n-r;o&&(T=!0,N(o))}(e)}))}}(o)}}var R=k(),D=b(R);R!==D&&O(D);var A=F(),L=[d(A)];function N(e){t.go(e)}var I=0;function M(e){1===(I+=e)&&1===e?window.addEventListener(E,j):0===I&&window.removeEventListener(E,j)}var U=!1;var z={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=x(window.location.href)),n+"#"+b(v+d(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,z.location);P.confirmTransitionTo(r,n,a,(function(e){if(e){var t=d(r),o=b(v+t);if(k()!==o){C=t,function(e){window.location.hash=e}(o);var a=L.lastIndexOf(d(z.location)),i=L.slice(0,a+1);i.push(t),L=i,_({action:n,location:r})}else _()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,z.location);P.confirmTransitionTo(r,n,a,(function(e){if(e){var t=d(r),o=b(v+t);k()!==o&&(C=t,O(o));var a=L.indexOf(d(z.location));-1!==a&&(L[a]=t),_({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return U||(M(1),U=!0),function(){return U&&(U=!1,M(-1)),t()}},listen:function(e){var t=P.appendListener(e);return M(1),function(){M(-1),t()}}};return z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,l=void 0===i?0:i,u=t.keyLength,s=void 0===u?6:u,c=h();function f(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function y(){return Math.random().toString(36).substr(2,s)}var m=P(l,0,a.length-1),v=a.map((function(e){return p(e,void 0,"string"==typeof e?y():e.key||y())})),g=d;function b(e){var t=P(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:v.length,action:"POP",location:v[m],index:m,entries:v,createHref:g,push:function(e,t){var r="PUSH",o=p(e,t,y(),w.location);c.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,y(),w.location);c.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=u(t),y=u(n),m=0;m<i.length;++m){var v=i[m];if(!(a[v]||r&&r[v]||y&&y[v]||l&&l[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},7418:e=>{"use strict";
22
  /*
23
  object-assign
24
  (c) Sindre Sorhus
82
  *
83
  * This source code is licensed under the MIT license found in the
84
  * LICENSE file in the root directory of this source tree.
85
+ */var r=n(7294),o=n(1688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=i(e,f[0],f[1]);return u((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:(e,t,n)=>{"use strict";e.exports=n(3250)},2798:(e,t,n)=>{"use strict";e.exports=n(139)},5311:e=>{"use strict";e.exports=jQuery},4942:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},4578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},9611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e].call(a.exports,a,a.exports,o),a.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"assets/js/chunk-"+e+"."+{8:"7f9cd7c302c223d62f3c",88:"3fdd159572e48a92c54f",142:"988aa2760a0153882311",291:"1bffe2206b6fc15d1ea1",366:"b79cfa9301292212ab1b",387:"3910cac3d37c3b41392a",574:"afb627ab66e1844b7932",604:"2ce3d257fe0b58a49cf4",872:"1db5008e5ad375567658"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="gravity-pdf:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var f=s[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",t+a),l.src=n),e[n]=[r];var d=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../../"})(),(()=>{var e={325:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=a);var i=o.p+o.u(t),l=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[i,l,u]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(u)u(o)}for(t&&t(n);s<i.length;s++)a=i[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkgravity_pdf=self.webpackChunkgravity_pdf||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";o(8674);var e=o(5311),t=o.n(e),n=(o(6992),o(3948),o(9601),o(7294)),r=o(3935),a=o(3727),i=o(5977),l=o(50),u=o.n(l),s=o(8500),c=o(7779),f=function(e){return"@@redux-saga/"+e},d=f("CANCEL_PROMISE"),p=f("CHANNEL_END"),h=f("IO"),y=f("MATCH"),m=f("MULTICAST"),v=f("SAGA_ACTION"),g=f("SELF_CANCELLATION"),b=f("TASK"),w=f("TASK_CANCEL"),E=f("TERMINATE"),S=f("LOCATION"),x=o(7462),k=o(3366),O=function(e){return null==e},F=function(e){return null!=e},P=function(e){return"function"==typeof e},_=function(e){return"string"==typeof e},T=Array.isArray,C=function(e){return e&&P(e.then)},j=function(e){return e&&P(e.next)&&P(e.throw)},R=function e(t){return t&&(_(t)||L(t)||P(t)||T(t)&&t.every(e))},D=function(e){return e&&P(e.take)&&P(e.close)},A=function(e){return P(e)&&e.hasOwnProperty("toString")},L=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var N=function(e){return function(){return e}}(!0),I=function(){};var M=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var U=function(e,t){(0,x.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function z(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var q=function(e){throw e},G=function(e){return{value:e,done:!0}};function B(e,t,n){void 0===t&&(t=q),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:G,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function H(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var $=function(e){return Array.apply(null,new Array(e))},V=function(e){return function(t){return e(Object.defineProperty(t,v,{value:!0}))}},W=function(e){return e===E},K=function(e){return e===w},Q=function(e){return W(e)||K(e)};function Z(e,t){var n=Object.keys(e),r=n.length;var o,a=0,i=T(e)?$(r):{},l={};return n.forEach((function(e){var n=function(n,l){o||(l||Q(n)?(t.cancel(),t(n,l)):(i[e]=n,++a===r&&(o=!0,t(i))))};n.cancel=I,l[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return l[e].cancel()})))},l}function X(e){return{name:e.name||"anonymous",location:Y(e)}}function Y(e){return e[S]}function J(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},l=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},u=function(){for(var e=[];r;)e.push(l());return e};return{isEmpty:function(){return 0==r},put:function(l){var s;if(r<e)i(l);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=l,a=o=(o+1)%e;break;case 4:s=2*e,n=u(),r=n.length,o=n.length,a=0,n.length=s,e=s,i(l)}},take:l,flush:u}}var ee=function(e){return J(e,4)},te="TAKE",ne="PUT",re="ALL",oe="CALL",ae="FORK",ie="CANCEL",le=function(e,t){var n;return(n={})[h]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function ue(e,t){return void 0===e&&(e="*"),R(e)?le(te,{pattern:e}):D(n=e)&&n[m]&&F(t)&&R(t)?le(te,{channel:e,pattern:t}):D(e)?le(te,{channel:e}):void 0;var n}function se(e,t){return O(t)&&(t=e,e=void 0),le(ne,{channel:e,action:t})}function ce(e,t){var n,r=null;return P(e)?n=e:(T(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&_(n)&&P(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return le(oe,ce(e,n))}function de(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return le(ae,ce(e,n))}function pe(e){return void 0===e&&(e=g),le(ie,e)}function he(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const ye=he;var me=[],ve=0;function ge(e){try{Ee(),e()}finally{Se()}}function be(e){me.push(e),ve||(Ee(),xe())}function we(e){try{return Ee(),e()}finally{xe()}}function Ee(){ve++}function Se(){ve--}function xe(){var e;for(Se();!ve&&void 0!==(e=me.shift());)ge(e)}var ke=function(e){return function(t){return e.some((function(e){return Te(e)(t)}))}},Oe=function(e){return function(t){return e(t)}},Fe=function(e){return function(t){return t.type===String(e)}},Pe=function(e){return function(t){return t.type===e}},_e=function(){return N};function Te(e){var t="*"===e?_e:_(e)?Fe:T(e)?ke:A(e)?Fe:P(e)?Oe:L(e)?Pe:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Ce={type:p},je=function(e){return e&&e.type===p};function Re(e){void 0===e&&(e=ee());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Ce):e.isEmpty()?(n.push(r),r.cancel=function(){z(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Ce):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(Ce)}}}}}function De(){var e,t,n,r,o,a,i=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Ce)}))},(e={})[m]=!0,e.put=function(e){if(!t)if(je(e))a();else for(var o=n=r,i=0,l=o.length;i<l;i++){var u=o[i];u[y](e)&&(u.cancel(),u(e))}},e.take=function(e,n){var a,i;void 0===n&&(n=_e),t?e(Ce):(e[y]=n,o(),r.push(e),e.cancel=(a=function(){o(),z(r,e)},i=!1,function(){i||(i=!0,a())}))},e.close=a,e),l=i.put;return i.put=function(e){e[v]?l(e):be((function(){l(e)}))},i}function Ae(e,t){var n=e[d];P(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Le,Ne=0,Ie=function(){return++Ne};function Me(e){e.isRunning()&&e.cancel()}var Ue=((Le={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,a=t.pattern,i=t.maybe,l=function(e){e instanceof Error?n(e,!0):!je(e)||i?n(e):n(E)};try{o.take(l,F(a)?Te(a):null)}catch(e){return void n(e,!0)}n.cancel=l.cancel},Le.PUT=function(e,t,n){var r=t.channel,o=t.action,a=t.resolve;be((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}a&&C(t)?Ae(t,n):n(t)}))},Le.ALL=function(e,t,n,r){var o=r.digestEffect,a=Ne,i=Object.keys(t);if(0!==i.length){var l=Z(t,n);i.forEach((function(e){o(t[e],a,l[e],e)}))}else n(T(t)?[]:{})},Le.RACE=function(e,t,n,r){var o=r.digestEffect,a=Ne,i=Object.keys(t),l=T(t)?$(i.length):{},u={},s=!1;i.forEach((function(e){var t=function(t,r){s||(r||Q(t)?(n.cancel(),n(t,r)):(n.cancel(),s=!0,l[e]=t,n(l)))};t.cancel=I,u[e]=t})),n.cancel=function(){s||(s=!0,i.forEach((function(e){return u[e].cancel()})))},i.forEach((function(e){s||o(t[e],a,u[e],e)}))},Le.CALL=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=r.task;try{var u=a.apply(o,i);if(C(u))return void Ae(u,n);if(j(u))return void Qe(e,u,l.context,Ne,X(a),!1,n);n(u)}catch(e){n(e,!0)}},Le.CPS=function(e,t,n){var r=t.context,o=t.fn,a=t.args;try{var i=function(e,t){O(e)?n(t):n(e,!0)};o.apply(r,a.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(e){n(e,!0)}},Le.FORK=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=t.detached,u=r.task,s=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(j(o))return o;var a=!1;return B((function(e){return a?{value:e,done:!0}:(a=!0,{value:o,done:!C(o)})}))}catch(e){return B((function(){throw e}))}}({context:o,fn:a,args:i}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:X(t)}(s,a);we((function(){var t=Qe(e,s,u.context,Ne,c,l,void 0);l?n(t):t.isRunning()?(u.queue.addTask(t),n(t)):t.isAborted()?u.queue.abort(t.error()):n(t)}))},Le.JOIN=function(e,t,n,r){var o=r.task,a=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&z(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(T(t)){if(0===t.length)return void n([]);var i=Z(t,n);t.forEach((function(e,t){a(e,i[t])}))}else a(t,n)},Le.CANCEL=function(e,t,n,r){var o=r.task;t===g?Me(o):T(t)?t.forEach(Me):Me(t),n()},Le.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},Le.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=Re(t.buffer),a=Te(r),i=function t(n){je(n)||e.channel.take(t,a),o.put(n)},l=o.close;o.close=function(){i.cancel(),l()},e.channel.take(i,a),n(o)},Le.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},Le.FLUSH=function(e,t,n){t.flush(n)},Le.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Le.SET_CONTEXT=function(e,t,n,r){var o=r.task;U(o.context,t),n()},Le);function ze(e,t){return e+"?"+t}function qe(e){var t=e.name,n=e.location;return n?t+" "+ze(n.fileName,n.lineNumber):t}function Ge(e){var t,n,r,o=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):""}var Be=null,He=[],$e=function(e){e.crashedEffect=Be,He.push(e)},Ve=function(){Be=null,He.length=0},We=function(){var e=He[0],t=He.slice(1),n=e.crashedEffect?function(e){var t=Y(e);return t?t.code+" "+ze(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+qe(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+qe(e.meta)})),[Ge(He)]).join("\n")};function Ke(e,t,n,r,o,a,i){var l;void 0===i&&(i=I);var u,s,c=0,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,o=[],a=!1;function i(e){t(),u(),n(e,!0)}function l(t){o.push(t),t.cont=function(l,u){a||(z(o,t),t.cont=I,u?i(l):(t===e&&(r=l),o.length||(a=!0,n(r))))}}function u(){a||(a=!0,o.forEach((function(e){e.cont=I,e.cancel()})),o=[])}return l(e),{addTask:l,cancelAll:u,abort:i,getTasks:function(){return o}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),y);function y(t,n){if(n){if(c=2,$e({meta:o,cancelledTasks:d}),m.isRoot){var r=We();Ve(),e.onError(t,{sagaStack:r})}s=t,f&&f.reject(t)}else t===w?c=1:1!==c&&(c=3),u=t,f&&f.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((l={})[b]=!0,l.id=r,l.meta=o,l.isRoot=a,l.context=p,l.joiners=[],l.queue=h,l.cancel=function(){0===c&&(c=1,h.cancelAll(),y(w,!1))},l.cont=i,l.end=y,l.setContext=function(e){U(p,e)},l.toPromise=function(){return f||(f=ye(),2===c?f.reject(s):0!==c&&f.resolve(u)),f.promise},l.isRunning=function(){return 0===c},l.isCancelled=function(){return 1===c||0===c&&1===t.status},l.isAborted=function(){return 2===c},l.result=function(){return u},l.error=function(){return s},l);return m}function Qe(e,t,n,r,o,a,i){var l=e.finalizeRunEffect((function(t,n,r){if(C(t))Ae(t,r);else if(j(t))Qe(e,t,s.context,n,o,!1,r);else if(t&&t[h]){(0,Ue[t.type])(e,t.payload,r,c)}else r(t)}));f.cancel=I;var u={meta:o,cancel:function(){0===u.status&&(u.status=1,f(w))},status:0},s=Ke(e,u,n,r,o,a,i),c={task:s,digestEffect:d};return i&&(i.cancel=s.cancel),f(),s;function f(e,n){try{var o;n?(o=t.throw(e),Ve()):K(e)?(u.status=1,f.cancel(),o=P(t.return)?t.return(w):{done:!0,value:w}):o=W(e)?P(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==u.status&&(u.status=3),u.cont(o.value)):d(o.value,r,f)}catch(e){if(1===u.status)throw e;u.status=2,u.cont(e,!0)}}function d(t,n,r,o){void 0===o&&(o="");var a,i=Ie();function u(n,o){a||(a=!0,r.cancel=I,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(i,n):e.sagaMonitor.effectResolved(i,n)),o&&function(e){Be=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:n,label:o,effect:t}),u.cancel=I,r.cancel=function(){a||(a=!0,u.cancel(),u.cancel=I,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},l(t,i,u)}}function Ze(e,t){var n=e.channel,r=void 0===n?De():n,o=e.dispatch,a=e.getState,i=e.context,l=void 0===i?{}:i,u=e.sagaMonitor,s=e.effectMiddlewares,f=e.onError,d=void 0===f?H:f;for(var p=arguments.length,h=new Array(p>2?p-2:0),y=2;y<p;y++)h[y-2]=arguments[y];var m=t.apply(void 0,h);var v,g=Ie();if(u&&(u.rootSagaStarted=u.rootSagaStarted||I,u.effectTriggered=u.effectTriggered||I,u.effectResolved=u.effectResolved||I,u.effectRejected=u.effectRejected||I,u.effectCancelled=u.effectCancelled||I,u.actionDispatched=u.actionDispatched||I,u.rootSagaStarted({effectId:g,saga:t,args:h})),s){var b=c.qC.apply(void 0,s);v=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else v=M;var w={channel:r,dispatch:V(o),getState:a,sagaMonitor:u,onError:d,finalizeRunEffect:v};return we((function(){var e=Qe(w,m,l,g,X(t),!0,void 0);return u&&u.effectResolved(g,e),e}))}const Xe=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,a=n.channel,i=void 0===a?De():a,l=n.sagaMonitor,u=(0,k.Z)(n,["context","channel","sagaMonitor"]);function s(e){var n=e.getState,r=e.dispatch;return t=Ze.bind(null,(0,x.Z)({},u,{context:o,channel:i,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return i.put(t),n}}}return s.run=function(){return t.apply(void 0,arguments)},s.setContext=function(e){U(o,e)},s},Ye=Xe;var Je=function(e){return{done:!0,value:e}},et={};function tt(e){return D(e)?"channel":A(e)?String(e):P(e)?e.name:String(e)}function nt(e,t,n){var r,o,a,i=t;function l(t,n){if(i===et)return Je(t);if(n&&!o)throw i=et,n;r&&r(t);var l=n?e[o](n):e[i]();return i=l.nextState,a=l.effect,r=l.stateUpdater,o=l.errorState,i===et?Je(t):a}return B(l,(function(e){return l(null,e)}),n)}function rt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i,l={done:!1,value:ue(e)},u=function(e){return{done:!1,value:de.apply(void 0,[t].concat(r,[e]))}},s=function(e){return{done:!1,value:pe(e)}},c=function(e){return a=e},f=function(e){return i=e};return nt({q1:function(){return{nextState:"q2",effect:l,stateUpdater:f}},q2:function(){return a?{nextState:"q3",effect:s(a)}:{nextState:"q1",effect:u(i),stateUpdater:c}},q3:function(){return{nextState:"q1",effect:u(i),stateUpdater:c}}},"q1","takeLatest("+tt(e)+", "+t.name+")")}function ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return de.apply(void 0,[rt,e,t].concat(r))}var at=o(4738),it=o(3045),lt=o.n(it);
86
  /**
87
  * @package Gravity PDF
88
  * @copyright Copyright (c) 2022, Blue Liquid Designs
dist/assets/js/{chunk-574.3c3c71624e805269f16d.js → chunk-574.afb627ab66e1844b7932.js} RENAMED
@@ -1,8 +1,8 @@
1
  (self.webpackChunkgravity_pdf=self.webpackChunkgravity_pdf||[]).push([[574],{7331:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,a,s,c,o,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(i(a=this._events[e]))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(n(a))for(c=Array.prototype.slice.call(arguments,1),s=(u=a.slice()).length,o=0;o<s;o++)u[o].apply(this,c);return!0},t.prototype.addListener=function(e,a){var s;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(a.listener)?a.listener:a),this._events[e]?n(this._events[e])?this._events[e].push(a):this._events[e]=[this._events[e],a]:this._events[e]=a,n(this._events[e])&&!this._events[e].warned&&(s=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,s,c;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(c=s;c-- >0;)if(i[c]===t||i[c].listener&&i[c].listener===t){a=c;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},8131:(e,t,r)=>{"use strict";var n=r(9374),i=r(7775),a=r(3076);function s(e,t,r){return new n(e,t,r)}s.version=r(4336),s.AlgoliaSearchHelper=n,s.SearchParameters=i,s.SearchResults=a,e.exports=s},8078:(e,t,r)=>{"use strict";var n=r(7331);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}r(4853)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},2437:(e,t,r)=>{"use strict";var n=r(2344),i=r(9803),a=r(116),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],c={};return c[t]=a,n({},c,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,(function(e,r){return t===r}));var n=""+r;return s.clearRefinement(e,(function(e,r){return t===r&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce((function(i,a){var s=e[a]||[],c=s.filter((function(e){return!t(e,a,r)}));return c.length!==s.length&&(n=!0),i[a]=c,i}),{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=s},7775:(e,t,r)=>{"use strict";var n=r(185),i=r(2344),a=r(2686),s=r(7888),c=r(8023),o=r(9803),u=r(116),f=r(6801),h=r(2437);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,r){return l(t[r],e)})):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||f(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach((function(e){var n=-1!==p.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])}))}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach((function(e){var i=n[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));r[t][e]=i}))})),t.numericRefinements=r}return n({},e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},p.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&u(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):u(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var i=c(r);if(this.isNumericRefined(e,t,i))return this;var a=n({},this.numericRefinements);return a[e]=n({},a[e]),a[e][t]?(a[e][t]=a[e][t].slice(),a[e][t].push(i)):a[e][t]=[i],this.setQueryParameters({numericRefinements:a})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&l(n.val,c(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===e&&r.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,r){return r===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return u(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return o(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,i){var a=r[i],s={};return a=a||{},Object.keys(a).forEach((function(r){var n=a[r]||[],c=[];n.forEach((function(t){e({val:t,op:r},i,"numeric")||c.push(t)})),c.length!==n.length&&(t=!0),s[r]=c})),n[i]=s,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},n,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:i({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var i,a,o=c(r),u=void 0!==(i=this.numericRefinements[e][t],a=o,s(i,(function(e){return l(e,a)})));return n&&u},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0})))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach((function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var r=this,n=p._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=r[t],e}),{}),a=Object.keys(n).reduce((function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?o(e,[t]):(i&&(e[t]=n[t]),e)}),i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return s(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},210:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var s=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[s.name]&&e.hierarchicalFacetsRefinements[s.name][0]||"",f=e._getHierarchicalFacetSeparator(s),h=e._getHierarchicalRootPath(s),l=e._getHierarchicalShowParentLevel(s),p=a(e._getHierarchicalFacetSortBy(s)),d=t.every((function(e){return e.exhaustive})),m=function(e,t,r,a,s){return function(u,f,h){var l=u;if(h>0){var p=0;for(l=u;p<h;){var d=l&&Array.isArray(l.data)?l.data:[];l=i(d,(function(e){return e.isRefined})),p++}}if(l){var m=Object.keys(f.data).map((function(e){return[e,f.data[e]]})).filter((function(e){return function(e,t,r,n,i,a){if(i&&(0!==e.indexOf(i)||i===e))return!1;return!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(a||0===e.indexOf(r))}(e[0],l.path||r,s,t,r,a)}));l.data=n(m.map((function(e){var r=e[0];return function(e,t,r,n,i){var a=t.split(r);return{name:a[a.length-1].trim(),path:t,escapedValue:c(t),count:e,isRefined:n===t||0===n.indexOf(t+r),exhaustive:i,data:null}}(e[1],r,t,o(s),f.exhaustive)})),e[0],e[1])}return u}}(p,f,h,l,u),g=t;return h&&(g=t.slice(h.split(f).length)),g.reduce(m,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:d,data:null})}};var n=r(2148),i=r(7888),a=r(2293),s=r(4039),c=s.escapeFacetValue,o=s.unescapeFacetValue},3076:(e,t,r)=>{"use strict";var n=r(185),i=r(2344),a=r(2148),s=r(4587),c=r(7888),o=r(9725),u=r(2293),f=r(4039),h=f.escapeFacetValue,l=f.unescapeFacetValue,p=r(210);function d(e){var t={};return e.forEach((function(e,r){t[e]=r})),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0];this._rawResults=t;var u=this;Object.keys(a).forEach((function(e){u[e]=a[e]})),Object.keys(r||{}).forEach((function(e){u[e]=r[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),h=d(e.facets),g=d(e.disjunctiveFacets),v=1,y=a.facets||{};Object.keys(y).forEach((function(t){var r,n,i=y[t],s=(r=e.hierarchicalFacets,n=t,c(r,(function(e){return(e.attributes||[]).indexOf(n)>-1})));if(s){var f=s.attributes.indexOf(t),l=o(e.hierarchicalFacets,(function(e){return e.name===s.name}));u.hierarchicalFacets[l][f]={attribute:t,data:i,exhaustive:a.exhaustiveFacetsCount}}else{var p,d=-1!==e.disjunctiveFacets.indexOf(t),v=-1!==e.facets.indexOf(t);d&&(p=g[t],u.disjunctiveFacets[p]={name:t,data:i,exhaustive:a.exhaustiveFacetsCount},m(u.disjunctiveFacets[p],a.facets_stats,t)),v&&(p=h[t],u.facets[p]={name:t,data:i,exhaustive:a.exhaustiveFacetsCount},m(u.facets[p],a.facets_stats,t))}})),this.hierarchicalFacets=s(this.hierarchicalFacets),f.forEach((function(r){var s=t[v],c=s&&s.facets?s.facets:{},f=e.getHierarchicalFacetByName(r);Object.keys(c).forEach((function(t){var r,h=c[t];if(f){r=o(e.hierarchicalFacets,(function(e){return e.name===f.name}));var p=o(u.hierarchicalFacets[r],(function(e){return e.attribute===t}));if(-1===p)return;u.hierarchicalFacets[r][p].data=n({},u.hierarchicalFacets[r][p].data,h)}else{r=g[t];var d=a.facets&&a.facets[t]||{};u.disjunctiveFacets[r]={name:t,data:i({},h,d),exhaustive:s.exhaustiveFacetsCount},m(u.disjunctiveFacets[r],s.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!u.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(l(n))>-1&&(u.disjunctiveFacets[r].data[n]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(v).forEach((function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach((function(t){var c=r[t],f=o(e.hierarchicalFacets,(function(e){return e.name===n.name})),h=o(u.hierarchicalFacets[f],(function(e){return e.attribute===t}));if(-1!==h){var l={};if(s.length>0){var p=s[0].split(a)[0];l[p]=u.hierarchicalFacets[f][h].data[p]}u.hierarchicalFacets[f][h].data=i(l,c,u.hierarchicalFacets[f][h].data)}})),v++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var r=e.facetsExcludes[t],n=h[t];u.facets[n]={name:t,data:a.facets[t],exhaustive:a.exhaustiveFacetsCount},r.forEach((function(e){u.facets[n]=u.facets[n]||{name:t},u.facets[n].data=u.facets[n].data||{},u.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=s(this.facets),this.disjunctiveFacets=s(this.disjunctiveFacets),this._state=e}function v(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var a=t.data.map((function(t){return v(e,t,r,n+1)})),s=e(a,r[n]);return i({data:s},t)}function y(e,t){var r=c(e,(function(e){return e.name===t}));return r&&r.stats}function b(e,t,r,n,i){var a=c(i,(function(e){return e.name===r})),s=a&&a.data&&a.data[n]?a.data[n]:0,o=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:s,exhaustive:o}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return c(this.facets,t)||c(this.disjunctiveFacets,t)||c(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=c(e.facets,r);return n?Object.keys(n.data).map((function(r){var i=h(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=c(e.disjunctiveFacets,r);return i?Object.keys(i.data).map((function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t))return c(e.hierarchicalFacets,r)}(this,e);if(r){var n,s=i({},t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;if(Array.isArray(r))n=[e];else n=o._state.getHierarchicalFacetByName(r.name).attributes;return v((function(e,t){if(s.facetOrdering){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(o,t);if(Boolean(r))return function(e,t){var r=[],n=[],i=(t.order||[]).reduce((function(e,t,r){return e[t]=r,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)})),r=r.filter((function(e){return e}));var s,c=t.sortRemainingBy;return"hidden"===c?r:(s="alpha"===c?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(a(n,s[0],s[1])))}(e,r)}if(Array.isArray(s.sortBy)){var n=u(s.sortBy,g.DEFAULT_SORT);return a(e,n[0],n[1])}if("function"==typeof s.sortBy)return function(e,t){return t.sort(e)}(s.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(i){r.push(b(e,"facet",n,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(i){r.push(b(e,"exclude",n,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(i){r.push(b(e,"disjunctive",n,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=r.split(a),o=c(n,(function(e){return e.name===t})),u=s.reduce((function(e,t){var r=e&&c(e.data,(function(e){return e.name===t}));return void 0!==r?r:e}),o),f=u&&u.count||0,h=u&&u.exhaustive||!1,l=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:l,count:f,exhaustive:h}}(e,n,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),r},e.exports=g},9374:(e,t,r)=>{"use strict";var n=r(7775),i=r(3076),a=r(8078),s=r(6394),c=r(7331),o=r(4853),u=r(116),f=r(9803),h=r(185),l=r(4336),p=r(4039).escapeFacetValue;function d(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+l+")"),this.setClient(e);var i=r||{};i.index=t,this.state=n.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function m(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function g(){return this.state.page}o(d,c),d.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},d.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},d.prototype.getQuery=function(){var e=this.state;return s._getHitsSearchParams(e)},d.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=s._getQueries(r.index,r),a=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then((function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),{content:new i(r,e.results),state:r,_originalResponse:e}}),(function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(null,new i(r,e.results),r)})).catch((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(e,null,r)}))},d.prototype.findAnswers=function(e){var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=h({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:f(s._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(a);var c=this.client.initIndex(n.index);if("function"!=typeof c.findAnswers)throw new Error(a);return c.findAnswers(n.query,e.queryLanguages,i)},d.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),o=c.isDisjunctiveFacet(e),u=s.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var f,h=this;return i?f=this.client.searchForFacetValues([{indexName:c.index,params:u}]):a?f=this.client.initIndex(c.index).searchForFacetValues(u):(delete u.facetName,f=this.client.search([{type:"facet",facet:e,indexName:c.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:c,facet:e,query:t}),f.then((function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=p(t.value),t.isRefined=o?c.isDisjunctiveFacetRefined(e,t.escapedValue):c.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e}))},d.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},d.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},d.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},d.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},d.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},d.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},d.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},d.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},d.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},d.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},d.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},d.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},d.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},d.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},d.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},d.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},d.prototype.setCurrentPage=m,d.prototype.setPage=m,d.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},d.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},d.prototype.setState=function(e){return this._change({state:n.make(e),isPageReset:!1}),this},d.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new n(e),this},d.prototype.hasRefinements=function(e){return!!u(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},d.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},d.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},d.prototype.hasTag=function(e){return this.state.isTagRefined(e)},d.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},d.prototype.getIndex=function(){return this.state.index},d.prototype.getCurrentPage=g,d.prototype.getPage=g,d.prototype.getTags=function(){return this.state.tagRefinements},d.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})})),t},d.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},d.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},d.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=s._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),i=s._getQueries(n.index,n);return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i})),a=Array.prototype.concat.apply(n,i),c=this._queryId++;this._currentNbQueries++;try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,c)).catch(this._dispatchAlgoliaError.bind(this,c))}catch(e){this.emit("error",{error:e})}},d.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var n=r.results.slice();e.forEach((function(e){var t=e.state,r=e.queriesCount,a=e.helper,s=n.splice(0,r),c=a.lastResults=new i(t,s);a.emit("result",{results:c,state:t})}))}},d.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},d.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},d.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},d.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},d.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},d.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+l+")"),this.client=e),this},d.prototype.getClient=function(){return this.client},d.prototype.derive=function(e){var t=new a(this,e);return this.derivedHelpers.push(t),t},d.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},d.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=d},4587:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},2344:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])})),e}),{})}},4039:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},7888:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}},9725:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}},2293:(e,t,r)=>{"use strict";var n=r(7888);e.exports=function(e,t){var r=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),a=n(r,(function(e){return e[0]===i[0]}));return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)}),[[],[]])}},4853:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},2686:e=>{"use strict";e.exports=function(e,t){return e.filter((function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n}))}},185:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function r(e,n){if(e===n)return e;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i){var a=n[i],s=e[i];void 0!==s&&void 0===a||(t(s)&&t(a)?e[i]=r(s,a):e[i]="object"==typeof(c=a)&&null!==c?r(Array.isArray(c)?[]:{},c):c)}var c;return e}e.exports=function(e){t(e)||(e={});for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n];t(a)&&r(e,a)}return e}},116:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},9803:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},2148:e=>{"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return-1}return 0}e.exports=function(e,r,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var i=e.map((function(e,t){return{criteria:r.map((function(t){return e[t]})),index:t,value:e}}));return i.sort((function(e,r){for(var i=-1;++i<e.criteria.length;){var a=t(e.criteria[i],r.criteria[i]);if(a)return i>=n.length?a:"desc"===n[i]?-a:a}return e.index-r.index})),i.map((function(e){return e.value}))}},8023:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},6394:(e,t,r)=>{"use strict";var n=r(185);function i(e){return Object.keys(e).sort((function(e,t){return e.localeCompare(t)})).reduce((function(t,r){return t[r]=e[r],t}),{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),c=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(c).length>1){var o=s[0].split(c).slice(0,-1).reduce((function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(c)})}),[]);o.forEach((function(n,i){var s=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===i),c=o[i-1];s.facetFilters=i>0?[c.attribute+":"+c.value]:void 0,r.push({indexName:e,params:s})}))}})),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)),r=a._getFacetFilters(e),s=a._getNumericFilters(e),c=a._getTagFilters(e),o={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:c};return r.length>0&&(o.facetFilters=r),s.length>0&&(o.numericFilters=s),i(n({},e.getQueryParams(),o))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),c=a._getNumericFilters(e,t),o=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(u.tagFilters=o);var f=e.getHierarchicalFacetByName(t);return u.facets=f?a._getDisjunctiveHierarchicalFacetAttribute(e,f,r):t,c.length>0&&(u.numericFilters=c),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach((function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach((function(e){var a=i[e]||[];t!==n&&a.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return n+e+t}));r.push(i)}else r.push(n+e+t)}))}))})),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach((function(e){(i[e]||[]).forEach((function(t){n.push(e+":"+t)}))}));var a=e.facetsExcludes||{};Object.keys(a).forEach((function(e){(a[e]||[]).forEach((function(t){n.push(e+":-"+t)}))}));var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach((function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.forEach((function(t){i.push(e+":"+t)})),n.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).forEach((function(i){var a=(c[i]||[])[0];if(void 0!==a){var s,o,u=e.getHierarchicalFacetByName(i),f=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===a.indexOf(f)||!h&&!0===r||h&&h.split(f).length===a.split(f).length)return;h?(o=h.split(f).length-1,a=h):(o=a.split(f).length-2,a=a.slice(0,a.lastIndexOf(f))),s=u.attributes[o]}else o=a.split(f).length-1,s=u.attributes[o];s&&n.push([s+":"+a])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var c=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,o={facetQuery:t,facetName:e};return"number"==typeof r&&(o.maxFacetHits=r),i(n({},a._getHitsSearchParams(c),o))}};e.exports=a},6801:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},4336:e=>{"use strict";e.exports="3.10.0"},290:function(e){
2
- /*! algoliasearch-lite.umd.js | 4.14.1 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
3
- e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e){var t,r="algoliasearch-client-js-".concat(e.key),n=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},a=function(){return JSON.parse(n().getItem(r)||"{}")};return{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=i(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=a();return i[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function c(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,i).catch((function(){return c({caches:t}).get(e,n,i)}))},set:function(e,n){return r.set(e,n).catch((function(){return c({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return c({caches:t}).clear()}))}}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=n(),c=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return c(e)})).then((function(){return s}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function f(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[i++])}))}var l={WithinQueryParameters:0,WithinHeaders:1};function p(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var d={Read:1,Write:2,Any:3},m=1,g=2,v=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var R="GET",F="POST";function x(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function P(e,t,n,i){var s=[],c=function(e,t){if(e.method!==R&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,i),o=function(e,t){var n=r(r({},e.headers),t.headers),i={};return Object.keys(n).forEach((function(e){var t=n[e];i[e.toLowerCase()]=t})),i}(e,i),u=n.method,f=n.method!==R?{}:r(r({},n.data),i.data),h=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),f),i.queryParameters),l=0,p=function t(r,a){var f=r.pop();if(void 0===f)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:w(s)};var p={data:c,headers:o,method:u,url:j(f,n.path,h),connectTimeout:a(l,e.timeouts.connect),responseTimeout:a(l,i.timeout)},d=function(e){var t={request:p,response:e,host:f,triesLeft:r.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var i=d(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",E(i)),e.hostsCache.set(f,y(f,n.isTimedOut?v:g))]).then((function(){return t(r,a)}))},onFail:function(e){throw d(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(i,n,t)}(e,w(s))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return x(e.hostsCache,t).then((function(e){return p(a(e.statelessHosts).reverse(),e.getTimeout)}))}function O(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function j(e,t,r){var n=S(r),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(i+="?".concat(n)),i}function S(e){return Object.keys(e).map((function(t){return h("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function w(e){return e.map((function(e){return E(e)}))}function E(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var _=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?n:{}},queryParameters:function(){return e===l.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,s=e.responsesCache,c=e.timeouts,o=e.userAgent,u=e.hosts,f=e.queryParameters,h={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:s,timeouts:c,userAgent:o,headers:e.headers,queryParameters:f,hosts:u.map((function(e){return b(e)})),read:function(e,t){var r=p(t,h.timeouts.read),n=function(){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(a,(function(){return h.requestsCache.get(a,(function(){return h.requestsCache.set(a,n()).then((function(e){return Promise.all([h.requestsCache.delete(a),e])}),(function(e){return Promise.all([h.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return h.responsesCache.set(a,e)}})},write:function(e,t){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Write)})),e,p(t,h.timeouts.write))}};return h}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return f({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},C=function(e){return function(t,r){return t.method===R?e.transporter.read(t,r):e.transporter.write(t,r)}},A=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},N=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{params:S(e.params||{})})}));return e.transporter.read({method:F,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},Z=function(e){return function(t,i){return Promise.all(t.map((function(t){var a=t.params,s=a.facetName,c=a.facetQuery,o=n(a,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:V}}).searchForFacetValues(s,c,r(r({},i),o))})))}},k=function(e){return function(t,r,n){return e.transporter.read({method:F,path:h("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},T=function(e){return function(t,r){return e.transporter.read({method:F,path:h("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},V=function(e){return function(t,r,n){return e.transporter.read({method:F,path:h("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},I=1,D=2,H=3;function Q(e,t,n){var i,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,i=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(i=H,{debug:function(e,t){return I>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return D>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:c({caches:[s({key:"".concat("4.14.1","-").concat(e)}),o()]}),userAgent:O("4.14.1").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return _(r(r(r({},a),n),{},{methods:{search:N,searchForFacetValues:Z,multipleQueries:N,multipleSearchForFacetValues:Z,customRequest:C,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:T,searchForFacetValues:V,findAnswers:k}})}}}}))}return Q.version="4.14.1",Q}()},4184:(e,t)=>{var r;
4
  /*!
5
  Copyright (c) 2018 Jed Watson.
6
  Licensed under the MIT License (MIT), see
7
  http://jedwatson.github.io/classnames
8
- */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},3671:(e,t,r)=>{var n=r(9662),i=r(7908),a=r(8361),s=r(6244),c=TypeError,o=function(e){return function(t,r,o,u){n(r);var f=i(t),h=a(f),l=s(f),p=e?l-1:0,d=e?-1:1;if(o<2)for(;;){if(p in h){u=h[p],p+=d;break}if(p+=d,e?p<0:l<=p)throw c("Reduce of empty array with no initial value")}for(;e?p>=0:l>p;p+=d)p in h&&(u=r(u,h[p],p,f));return u}};e.exports={left:o(!1),right:o(!0)}},5827:(e,t,r)=>{"use strict";var n=r(2109),i=r(3671).left,a=r(9341),s=r(7392),c=r(5268);n({target:"Array",proto:!0,forced:!a("reduce")||!c&&s>79&&s<83},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},9590:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var c,o,u,f;if(Array.isArray(e)){if((c=e.length)!=s.length)return!1;for(o=c;0!=o--;)if(!a(e[o],s[o]))return!1;return!0}if(r&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(f=e.entries();!(o=f.next()).done;)if(!s.has(o.value[0]))return!1;for(f=e.entries();!(o=f.next()).done;)if(!a(o.value[1],s.get(o.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(f=e.entries();!(o=f.next()).done;)if(!s.has(o.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((c=e.length)!=s.length)return!1;for(o=c;0!=o--;)if(e[o]!==s[o])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((c=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(o=c;0!=o--;)if(!Object.prototype.hasOwnProperty.call(s,u[o]))return!1;if(t&&e instanceof Element)return!1;for(o=c;0!=o--;)if(("_owner"!==u[o]&&"__v"!==u[o]&&"__o"!==u[o]||!e.$$typeof)&&!a(e[u[o]],s[u[o]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},8810:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(1773),i=r(5009),a=r(4914);const s=(0,n.Z)({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){var n=(0,i.O7)(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!n)return{hits:[]};var s=(0,a.RC)(n.hits,n.hitsPerPage,n.page);return{hits:(0,a.Io)(s,n.queryID)}},getSearchParameters:function(e){return e}})},3866:(e,t,r)=>{"use strict";r.d(t,{BT:()=>a,tJ:()=>s,wX:()=>o});var n=r(7294),i=(0,n.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),a=i.Consumer,s=i.Provider,c=(0,n.createContext)(void 0),o=c.Consumer;c.Provider},1773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>F});var n=r(7462),i=r(5987),a=r(5671),s=r(3144),c=r(7326),o=r(136),u=r(2963),f=r(1120),h=r(4942),l=r(7294),p=r(9590),d=r.n(p),m=r(4914),g=r(3866),v=["contextValue"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,h.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}const F=function(e){return function(t,r){var u=function(e){if(!e.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var t="function"==typeof e.getSearchParameters||"function"==typeof e.getMetadata||"function"==typeof e.transitionState;return function(r){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=function(u){(0,o.Z)(p,u);var f=R(p);function p(t){var r;return(0,a.Z)(this,p),r=f.call(this,t),(0,h.Z)((0,c.Z)(r),"unsubscribe",void 0),(0,h.Z)((0,c.Z)(r),"unregisterWidget",void 0),(0,h.Z)((0,c.Z)(r),"isUnmounting",!1),(0,h.Z)((0,c.Z)(r),"state",{providedProps:r.getProvidedProps(r.props)}),(0,h.Z)((0,c.Z)(r),"refine",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),(0,h.Z)((0,c.Z)(r),"createURL",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),(0,h.Z)((0,c.Z)(r),"searchForFacetValues",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),e.getSearchParameters&&r.props.contextValue.onSearchParameters(e.getSearchParameters.bind((0,c.Z)(r)),{ais:r.props.contextValue,multiIndexContext:r.props.indexContextValue},r.props,e.getMetadata&&e.getMetadata.bind((0,c.Z)(r)),e.displayName),r}return(0,s.Z)(p,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribe=this.props.contextValue.store.subscribe((function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})})),t&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,r){if("function"==typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,r);var n=(0,m.wU)(this.props,t);return null===this.state.providedProps||null===r.providedProps?this.state.providedProps!==r.providedProps||!n:!n||!(0,m.wU)(this.state.providedProps,r.providedProps)}},{key:"componentDidUpdate",value:function(r){d()(r,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),t&&(this.props.contextValue.widgetsManager.update(),"function"==typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){if(this.isUnmounting=!0,this.unsubscribe&&this.unsubscribe(),this.unregisterWidget&&(this.unregisterWidget(),"function"==typeof e.cleanUp)){var t=e.cleanUp.call(this,this.props,this.props.contextValue.store.getState().widgets);this.props.contextValue.store.setState(b(b({},this.props.contextValue.store.getState()),{},{widgets:t})),this.props.contextValue.onSearchStateChange((0,m.YC)(t))}}},{key:"getProvidedProps",value:function(t){var r=this.props.contextValue.store.getState(),n=r.widgets,i=r.results,a=r.resultsFacetValues,s=r.searching,c=r.searchingForFacetValues,o=r.isSearchStalled,u=r.metadata,f={results:i,searching:s,searchingForFacetValues:c,isSearchStalled:o,error:r.error};return e.getProvidedProps.call(this,t,n,f,u,a)}},{key:"getSearchParameters",value:function(t){return"function"==typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"==typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,r){return"function"==typeof e.transitionState?e.transitionState.call(this,this.props,t,r):r}},{key:"render",value:function(){var t=this.props,a=(t.contextValue,(0,i.Z)(t,v)),s=this.state.providedProps;if(null===s)return null;var c="function"==typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},o="function"==typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return l.createElement(r,(0,n.Z)({},a,s,c,o))}}]),p}(l.Component);return(0,h.Z)(f,"displayName","".concat(e.displayName,"(").concat((0,m.Gf)(r),")")),(0,h.Z)(f,"$$type",e.$$type),(0,h.Z)(f,"$$widgetType",u.$$widgetType),(0,h.Z)(f,"propTypes",e.propTypes),(0,h.Z)(f,"defaultProps",e.defaultProps),(0,h.Z)(f,"_connectorDesc",e),f}}(e)(t,r);return function(e){return l.createElement(g.BT,null,(function(t){return l.createElement(g.wX,null,(function(r){return l.createElement(u,(0,n.Z)({contextValue:t,indexContextValue:r},e))}))}))}}}},5009:(e,t,r)=>{"use strict";r.d(t,{Ei:()=>u,O7:()=>o,RD:()=>f,U6:()=>l,WN:()=>c,cI:()=>p});var n=r(4942),i=r(4914);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e){return u(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function o(e,t){if(e.results){if(e.results.hits)return e.results;var r=c(t);if(e.results[r])return e.results[r]}return null}function u(e){return e&&e.multiIndexContext}function f(e,t,r,i,a){if(u(r)){var o=c(r);return a?function(e,t,r,i,a){var c,o=i?{page:1}:void 0,u=e.indices&&e.indices[r]?s(s({},e.indices),{},(0,n.Z)({},r,s(s({},e.indices[r]),{},(c={},(0,n.Z)(c,a,s(s({},e.indices[r][a]),t)),(0,n.Z)(c,"page",1),c)))):s(s({},e.indices),{},(0,n.Z)({},r,s((0,n.Z)({},a,t),o)));return s(s({},e),{},{indices:u})}(e,t,o,i,a):function(e,t,r,i){var a=i?{page:1}:void 0,c=e.indices&&e.indices[r]?s(s({},e.indices),{},(0,n.Z)({},r,s(s(s({},e.indices[r]),t),a))):s(s({},e.indices),{},(0,n.Z)({},r,s(s({},t),a)));return s(s({},e),{},{indices:c})}(e,t,o,i)}return e.indices&&i&&Object.keys(e.indices).forEach((function(t){e=f(e,{page:1},{multiIndexContext:{targetedIndex:t}},!0,a)})),a?function(e,t,r,i){var a=r?{page:1}:void 0;return s(s({},e),{},(0,n.Z)({},i,s(s({},e[i]),t)),a)}(e,t,i,a):function(e,t,r){var n=r?{page:1}:void 0;return s(s(s({},e),t),n)}(e,t,i)}function h(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function l(e,t,r,n,i){var a=c(r),s=h(n),o=s.namespace,f=s.attributeName,l={multiIndex:u(r),indexId:a,namespace:o,attributeName:f,id:n,searchState:t},p=function(e){var t=e.multiIndex,r=e.indexId,n=e.namespace,i=e.attributeName,a=e.id,s=e.searchState;return t&&n?s.indices&&s.indices[r]&&s.indices[r][n]&&Object.hasOwnProperty.call(s.indices[r][n],i):t?s.indices&&s.indices[r]&&Object.hasOwnProperty.call(s.indices[r],a):n?s[n]&&Object.hasOwnProperty.call(s[n],i):Object.hasOwnProperty.call(s,a)}(l);return p?function(e){var t=e.multiIndex,r=e.indexId,n=e.namespace,i=e.attributeName,a=e.id,s=e.searchState;return t&&n?s.indices[r][n][i]:t?s.indices[r][a]:n?s[n][i]:s[a]}(l):e.defaultRefinement?e.defaultRefinement:i}function p(e,t,r){var a=c(t),o=h(r),f=o.namespace,l=o.attributeName;return u(t)&&Boolean(e.indices)?function(e){var t=e.searchState,r=e.indexId,a=e.id,c=e.namespace,o=e.attribute,u=t.indices[r];if(c&&u)return s(s({},t),{},{indices:s(s({},t.indices),{},(0,n.Z)({},r,s(s({},u),{},(0,n.Z)({},c,(0,i.CE)(u[c],[o])))))});if(u)return s(s({},t),{},{indices:s(s({},t.indices),{},(0,n.Z)({},r,(0,i.CE)(u,[a])))});return t}({attribute:l,searchState:e,indexId:a,id:r,namespace:f}):function(e){var t=e.searchState,r=e.id,a=e.namespace,c=e.attribute;if(a)return s(s({},t),{},(0,n.Z)({},a,(0,i.CE)(t[a],[c])));return(0,i.CE)(t,[r])}({attribute:l,searchState:e,id:r,namespace:f})}},4914:(e,t,r)=>{"use strict";r.d(t,{CE:()=>d,Gf:()=>o,Io:()=>p,PQ:()=>f,RC:()=>l,YC:()=>h,wU:()=>c});var n=r(4942),i=r(1002);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=function(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,a=0;a<r.length;a++)if(!i.call(t,r[a])||e[r[a]]!==t[r[a]])return!1;return!0},o=function(e){return e.displayName||e.name||"UnknownComponent"},u=Promise.resolve(),f=function(e){u.then(e)},h=function e(t){return Object.keys(t).forEach((function(r){var n,a=t[r];(function(e){return"object"===(0,i.Z)(e)&&null!==e&&!Array.isArray(e)})(a)&&((n=a)&&Object.keys(n).length>0?e(a):delete t[r])})),t};function l(e,t,r){return e.map((function(e,n){return s(s({},e),{},{__position:t*r+n+1})}))}function p(e,t){return t?e.map((function(e){return s(s({},e),{},{__queryID:t})})):e}function d(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var a=n[i];t.indexOf(a)>=0||(r[a]=e[a])}return r}},2002:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(4942),i=r(5987),a=r(4914),s=r(1773),c=r(5009),o=["children","contextValue","indexContextValue"],u=["children","contextValue","indexContextValue"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const l=(0,s.Z)({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var r=(0,i.Z)(t,o);return e.setQueryParameters(r)},transitionState:function(e,t,r){var s="configure",o=(e.children,e.contextValue,e.indexContextValue,(0,i.Z)(e,u)),f=Object.keys(e),l=this._props?Object.keys(this._props).filter((function(e){return-1===f.indexOf(e)})):[];this._props=e;var p=(0,n.Z)({},s,h(h({},(0,a.CE)(r[s],l)),o));return(0,c.RD)(r,p,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r="configure",i=(0,c.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),a=(0,c.Ei)({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,s=(a&&a[r]?Object.keys(a[r]):[]).reduce((function(t,n){return e[n]||(t[n]=a[r][n]),t}),{}),o=(0,n.Z)({},r,s);return(0,c.RD)(t,o,{ais:e.contextValue,multiIndexContext:e.indexContextValue})}})((function(){return null}),{$$widgetType:"ais.configure"})},516:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n=r(5671),i=r(3144),a=r(7326),s=r(136),c=r(2963),o=r(1120),u=r(4942),f=r(7294),h=r(9590),l=r.n(h),p=r(5697),d=r.n(p),m=r(5987),g=r(8131),v=r.n(g),y=r(4914);var b={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};var R=r(5009);var F=["resultsFacetValues"],x=["resultsFacetValues"],P=["resultsFacetValues"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(f.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat("6.30.2",")")))}var w=function(e){return(0,R.Ei)({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},E=function(e,t){return e.props.indexContextValue.targetedIndex===t},_=function(e){return Boolean(e.props.indexId)},C=function(e,t){return e.props.indexId===t},A=function(e,t){var r=_(e),n=_(t);return r&&!n?-1:!r&&n?1:0};function N(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[i++])}))}("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function Z(e){var t=e.indexName,r=e.initialState,n=void 0===r?{}:r,i=e.searchClient,a=e.resultsState,s=e.stalledSearchDelay,c=v()(i,t,j({},b));S(i),c.on("search",(function(){h||(h=setTimeout((function(){var e=d.getState(),t=(e.resultsFacetValues,(0,m.Z)(e,P));d.setState(j(j({},t),{},{isSearchStalled:!0}))}),s))})).on("result",Z({indexId:t})).on("error",T);var o,f=!1,h=null,l=c.state,p=function(e){var t=[],r=!1;function n(){r||(r=!0,(0,y.PQ)((function(){r=!1,e()})))}return{registerWidget:function(e){return t.push(e),n(),function(){t.splice(t.indexOf(e),1),n()}},update:n,getWidgets:function(){return t}}}((function(){var e=g(d.getState().widgets);d.setState(j(j({},d.getState()),{},{metadata:e,searching:!0})),O()}));!function(e,t){if(!t)return;if((!e.transporter||e._cacheHydrated)&&(!e._useCache||"function"!=typeof e.addAlgoliaAgent))return;if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var r=e.search;e.search=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=t.map((function(e){return j(j({},e),{},{params:N(e.params)})}));return e.transporter.responsesCache.get({method:"search",args:[s].concat(i)},(function(){return r.apply(void 0,[t].concat(i))}))}}if(Array.isArray(t.results))return void function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])]},{results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])});var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])}));e.cache=j(j({},e.cache),{},(0,u.Z)({},r,JSON.stringify({results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])})))}(e,t.results);!function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))]},{results:t.rawResults});var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))}));e.cache=j(j({},e.cache),{},(0,u.Z)({},r,JSON.stringify({results:t.rawResults})))}(e,t)}(i,a);var d=function(e){var t=e,r=[];return{getState:function(){return t},setState:function(e){t=e,r.forEach((function(e){return e()}))},subscribe:function(e){return r.push(e),function(){r.splice(r.indexOf(e),1)}}}}({widgets:n,metadata:k(a),results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce((function(e,t){return j(j({},e),{},(0,u.Z)({},t._internalIndexId,new(v().SearchResults)(new(v().SearchParameters)(t.state),t.rawResults)))}),{});return new(v().SearchResults)(new(v().SearchParameters)(e.state),e.rawResults)}(a),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1});function g(e){return p.getWidgets().filter((function(e){return Boolean(e.getMetadata)})).map((function(t){return t.getMetadata(e)}))}function R(){var e=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){return!w(e)&&!_(e)})).reduce((function(e,t){return t.getSearchParameters(e)}),l),r=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var r=w(e)&&E(e,t),n=_(e)&&C(e,t);return r||n})).sort(A).reduce((function(e,t){return t.getSearchParameters(e)}),e),n=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var r=w(e)&&!E(e,t),n=_(e)&&!C(e,t);return r||n})).sort(A).reduce((function(e,t){var r=w(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return j(j({},e),{},(0,u.Z)({},r,n.concat(t)))}),{});return{mainParameters:r,derivedParameters:Object.keys(n).map((function(t){return{parameters:n[t].reduce((function(e,t){return t.getSearchParameters(e)}),e),indexId:t}}))}}function O(){if(!f){var e=R(c.state),t=e.mainParameters,r=e.derivedParameters;o=r.length+1,c.derivedHelpers.slice().forEach((function(e){e.detach()})),r.forEach((function(e){var t=e.indexId,r=e.parameters;c.derive((function(){return r})).on("result",Z({indexId:t})).on("error",T)})),c.setState(t),c.search()}}function Z(e){var t=e.indexId;return function(e){o--;var r=d.getState(),n=!c.derivedHelpers.length,i=r.results?r.results:{};i=!n&&i.getFacetByName?{}:i,i=n?e.results:j(j({},i),{},(0,u.Z)({},t,e.results));var a=d.getState(),s=a.isSearchStalled;c.hasPendingRequests()||(clearTimeout(h),h=null,s=!1);a.resultsFacetValues;var f=(0,m.Z)(a,F);d.setState(j(j({},f),{},{results:i,isSearchStalled:s,searching:o>0,error:null}))}}function T(e){var t=e.error,r=d.getState(),n=r.isSearchStalled;c.hasPendingRequests()||(clearTimeout(h),n=!1);r.resultsFacetValues;var i=(0,m.Z)(r,x);d.setState(j(j({},i),{},{isSearchStalled:n,error:t,searching:!1}))}return{store:d,widgetsManager:p,getWidgetsIds:function(){return d.getState().metadata.reduce((function(e,t){return void 0!==t.id?e.concat(t.id):e}),[])},getSearchParameters:R,onSearchForFacetValues:function(e){var t=e.facetName,r=e.query,n=e.maxFacetHits,i=void 0===n?10:n,a=Math.max(1,Math.min(i,100));d.setState(j(j({},d.getState()),{},{searchingForFacetValues:!0})),c.searchForFacetValues(t,r,a).then((function(e){var n;d.setState(j(j({},d.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:j(j({},d.getState().resultsFacetValues),{},(n={},(0,u.Z)(n,t,e.facetHits),(0,u.Z)(n,"query",r),n))}))}),(function(e){d.setState(j(j({},d.getState()),{},{searchingForFacetValues:!1,error:e}))})).catch((function(e){setTimeout((function(){throw e}))}))},onExternalStateUpdate:function(e){var t=g(e);d.setState(j(j({},d.getState()),{},{widgets:e,metadata:t,searching:!0})),O()},transitionState:function(e){var t=d.getState().widgets;return p.getWidgets().filter((function(e){return Boolean(e.transitionState)})).reduce((function(e,r){return r.transitionState(t,e)}),e)},updateClient:function(e){S(e),c.setClient(e),O()},updateIndex:function(e){l=l.setIndex(e)},clearCache:function(){c.clearCache(),O()},skipSearch:function(){f=!0}}}function k(e){return e?e.metadata.map((function(e){return j(j({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return j(j({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return j({value:function(){return{}}},e)}))})}))})})):[]}var T=r(3866),V=r(1002);function I(e,t){var r=document.createElement("meta"),n=document.querySelector("head");r.name="algolia:metadata";var i=function(e,t){var r=["contextValue","indexContextValue"],n=e.map((function(e){var t=e.props,n=e.constructor,i=n._connectorDesc||{},a=i.defaultProps,s=void 0===a?{}:a,c=i.displayName;return{displayName:void 0===c?n.displayName:c,$$type:n.$$type,$$widgetType:n.$$widgetType,params:Object.keys(t).filter((function(e){return!r.includes(e)&&s[e]!==t[e]&&void 0!==t[e]}))}})),i=t;return{ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:n}}(e,t);r.content=JSON.stringify(i),n.appendChild(r)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,o.Z)(e);if(t){var i=(0,o.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}function q(e){return Boolean(e.searchState)}var B=function(e){(0,s.Z)(r,e);var t=Q(r);function r(e){var i;(0,n.Z)(this,r),i=t.call(this,e),(0,u.Z)((0,a.Z)(i),"isUnmounting",!1);var s=Z({indexName:i.props.indexName,searchClient:i.props.searchClient,initialState:i.props.searchState||{},resultsState:i.props.resultsState,stalledSearchDelay:i.props.stalledSearchDelay}),c={store:s.store,widgetsManager:s.widgetsManager,mainTargetedIndex:i.props.indexName,onInternalStateUpdate:i.onWidgetsInternalStateUpdate.bind((0,a.Z)(i)),createHrefForState:i.createHrefForState.bind((0,a.Z)(i)),onSearchForFacetValues:i.onSearchForFacetValues.bind((0,a.Z)(i)),onSearchStateChange:i.onSearchStateChange.bind((0,a.Z)(i)),onSearchParameters:i.onSearchParameters.bind((0,a.Z)(i))};return i.state={isControlled:q(i.props),instantSearchManager:s,contextValue:c},i}return(0,i.Z)(r,[{key:"componentDidUpdate",value:function(e){var t=q(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){"object"===("undefined"==typeof window?"undefined":(0,V.Z)(window))&&"object"===(0,V.Z)(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===(0,V.Z)(window.document)&&I(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0,this.state.instantSearchManager.skipSearch()}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){if(this.props.onSearchParameters){var a=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,r,a)}if(this.props.widgetsCollector){var s=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:s,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===f.Children.count(this.props.children)?null:f.createElement(T.tJ,{value:this.state.contextValue},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=q(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!l()(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:H(H({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}]),r}(f.Component);(0,u.Z)(B,"defaultProps",{stalledSearchDelay:200,refresh:!1}),(0,u.Z)(B,"propTypes",{indexName:d().string.isRequired,searchClient:d().shape({search:d().func.isRequired,searchForFacetValues:d().func,addAlgoliaAgent:d().func,clearCache:d().func}).isRequired,createURL:d().func,refresh:d().bool,searchState:d().object,onSearchStateChange:d().func,onSearchParameters:d().func,widgetsCollector:d().func,resultsState:d().oneOfType([d().object,d().array]),children:d().node,stalledSearchDelay:d().number});const L=B},3196:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(4942),i=r(5697),a=r.n(i),s=r(1773),c=r(5009);function o(e,t,r){var n=(0,c.U6)(e,t,r,"query","");return n||""}function u(e,t,r,i){var a=(0,n.Z)({},"query",r);return(0,c.RD)(t,a,i,!0)}const f=(0,s.Z)({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:a().string},getProvidedProps:function(e,t,r){return{currentRefinement:o(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return u(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return function(e,t,r){return(0,c.cI)(t,r,"query")}(0,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,r){return e.setQuery(o(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var r="query",n=o(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:r,index:(0,c.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===n?[]:[{label:"".concat(r,": ").concat(n),value:function(t){return u(0,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:n}]}}});var h=r(7462),l=r(5671),p=r(3144),d=r(7326),m=r(136),g=r(2963),v=r(1120),y=r(7294),b=r(4184),R=r.n(b);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,v.Z)(e);if(t){var i=(0,v.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,v.Z)(e);if(t){var i=(0,v.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter((function(e){return e||""===e})).map((function(r){var n="".concat(t,"-").concat(e);return r?"".concat(n,"-").concat(r):n}));return R()(a)}}("SearchBox"),S=y.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:j("loadingIcon")},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},y.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),y.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},y.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),w=y.createElement("svg",{className:j("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10"},y.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),E=y.createElement("svg",{className:j("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"},y.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),_=function(e){(0,m.Z)(r,e);var t=O(r);function r(e){var i;return(0,l.Z)(this,r),i=t.call(this),(0,n.Z)((0,d.Z)(i),"getQuery",(function(){return i.props.searchAsYouType?i.props.currentRefinement:i.state.query})),(0,n.Z)((0,d.Z)(i),"onInputMount",(function(e){i.input=e,i.props.inputRef&&("function"==typeof i.props.inputRef?i.props.inputRef(e):i.props.inputRef.current=e)})),(0,n.Z)((0,d.Z)(i),"onKeyDown",(function(e){if(i.props.focusShortcuts){var t=i.props.focusShortcuts.map((function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e})),r=e.target||e.srcElement,n=r.tagName;if(!r.isContentEditable&&"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n){var a=e.which||e.keyCode;-1!==t.indexOf(a)&&(i.input.focus(),e.stopPropagation(),e.preventDefault())}}})),(0,n.Z)((0,d.Z)(i),"onSubmit",(function(e){e.preventDefault(),e.stopPropagation(),i.input.blur();var t=i.props,r=t.refine;return t.searchAsYouType||r(i.getQuery()),!1})),(0,n.Z)((0,d.Z)(i),"onChange",(function(e){var t=i.props,r=t.searchAsYouType,n=t.refine,a=t.onChange,s=e.target.value;r?n(s):i.setState({query:s}),a&&a(e)})),(0,n.Z)((0,d.Z)(i),"onReset",(function(e){var t=i.props,r=t.searchAsYouType,n=t.refine,a=t.onReset;n(""),i.input.focus(),r||i.setState({query:""}),a&&a(e)})),i.state={query:e.searchAsYouType?null:e.currentRefinement},i}return(0,p.Z)(r,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,i=t.inputId,a=t.translate,s=t.autoFocus,c=t.loadingIndicator,o=t.submit,u=t.reset,f=this.getQuery(),l=Object.keys(this.props).reduce((function(t,r){return-1===["onsubmit","onreset","onchange"].indexOf(r.toLowerCase())&&0===r.indexOf("on")?P(P({},t),{},(0,n.Z)({},r,e.props[r])):t}),{}),p=this.props.showLoadingIndicator&&this.props.isSearchStalled;return y.createElement("div",{className:R()(j(""),r)},y.createElement("form",{noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:j("form",p&&"form--stalledSearch"),action:"",role:"search"},y.createElement("input",(0,h.Z)({ref:this.onInputMount,id:i,type:"search",placeholder:a("placeholder"),autoFocus:s,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:f,onChange:this.onChange},l,{className:j("input")})),y.createElement("button",{type:"submit",title:a("submitTitle"),className:j("submit")},o),y.createElement("button",{type:"reset",title:a("resetTitle"),className:j("reset"),hidden:!f||p},u),this.props.showLoadingIndicator&&y.createElement("span",{hidden:!p,className:j("loadingIndicator")},c)))}}]),r}(y.Component);(0,n.Z)(_,"propTypes",{currentRefinement:a().string,className:a().string,refine:a().func.isRequired,translate:a().func.isRequired,loadingIndicator:a().node,reset:a().node,submit:a().node,focusShortcuts:a().arrayOf(a().oneOfType([a().string,a().number])),autoFocus:a().bool,searchAsYouType:a().bool,onSubmit:a().func,onReset:a().func,onChange:a().func,isSearchStalled:a().bool,showLoadingIndicator:a().bool,inputRef:a().oneOfType([a().func,a().exact({current:a().object})]),inputId:a().string}),(0,n.Z)(_,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:S,reset:w,submit:E});var C;const A=f((C={resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"},function(e){var t,r=function(t){(0,m.Z)(i,t);var r=F(i);function i(){var e;(0,l.Z)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=r.call.apply(r,[this].concat(a)),(0,n.Z)((0,d.Z)(e),"translate",(function(t){var r=e.props.translations,n=r&&r.hasOwnProperty(t)?r[t]:C[t];if("function"==typeof n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.apply(void 0,a)}return n})),e}return(0,p.Z)(i,[{key:"render",value:function(){return y.createElement(e,(0,h.Z)({translate:this.translate},this.props))}}]),i}(y.Component),i=e.displayName||e.name||"UnknownComponent";return r.displayName="Translatable(".concat(i,")"),r.propTypes={translations:(t=Object.keys(C),function(e,r,n){var i=e[r];if(i)for(var a=0,s=Object.keys(i);a<s.length;a++){var c=s[a];if(-1===t.indexOf(c))return new Error("Unknown `".concat(r,"` key `").concat(c,"`. Check the render method ")+"of `".concat(n,"`."))}})},r})(_),{$$widgetType:"ais.searchBox"})},7326:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},5671:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:()=>n})},3144:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{Z:()=>i})},1120:(e,t,r)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:()=>n})},136:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.Z)(e,t)}},5987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3366);function i(e,t){if(null==e)return{};var r,i,a=(0,n.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},2963:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(1002),i=r(7326);function a(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},1002:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})}}]);
1
  (self.webpackChunkgravity_pdf=self.webpackChunkgravity_pdf||[]).push([[574],{7331:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,a,s,c,o,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(i(a=this._events[e]))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(n(a))for(c=Array.prototype.slice.call(arguments,1),s=(u=a.slice()).length,o=0;o<s;o++)u[o].apply(this,c);return!0},t.prototype.addListener=function(e,a){var s;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(a.listener)?a.listener:a),this._events[e]?n(this._events[e])?this._events[e].push(a):this._events[e]=[this._events[e],a]:this._events[e]=a,n(this._events[e])&&!this._events[e].warned&&(s=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,s,c;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(c=s;c-- >0;)if(i[c]===t||i[c].listener&&i[c].listener===t){a=c;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},8131:(e,t,r)=>{"use strict";var n=r(9374),i=r(7775),a=r(3076);function s(e,t,r){return new n(e,t,r)}s.version=r(4336),s.AlgoliaSearchHelper=n,s.SearchParameters=i,s.SearchResults=a,e.exports=s},8078:(e,t,r)=>{"use strict";var n=r(7331);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}r(4853)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},2437:(e,t,r)=>{"use strict";var n=r(2344),i=r(9803),a=r(116),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],c={};return c[t]=a,n({},c,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,(function(e,r){return t===r}));var n=""+r;return s.clearRefinement(e,(function(e,r){return t===r&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce((function(i,a){var s=e[a]||[],c=s.filter((function(e){return!t(e,a,r)}));return c.length!==s.length&&(n=!0),i[a]=c,i}),{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=s},7775:(e,t,r)=>{"use strict";var n=r(185),i=r(2344),a=r(2686),s=r(7888),c=r(8023),o=r(9803),u=r(116),f=r(6801),h=r(2437);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,r){return l(t[r],e)})):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||f(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach((function(e){var n=-1!==p.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])}))}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach((function(e){var i=n[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));r[t][e]=i}))})),t.numericRefinements=r}return n({},e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},p.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&u(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):u(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var i=c(r);if(this.isNumericRefined(e,t,i))return this;var a=n({},this.numericRefinements);return a[e]=n({},a[e]),a[e][t]?(a[e][t]=a[e][t].slice(),a[e][t].push(i)):a[e][t]=[i],this.setQueryParameters({numericRefinements:a})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&l(n.val,c(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===e&&r.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,r){return r===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return u(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return o(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,i){var a=r[i],s={};return a=a||{},Object.keys(a).forEach((function(r){var n=a[r]||[],c=[];n.forEach((function(t){e({val:t,op:r},i,"numeric")||c.push(t)})),c.length!==n.length&&(t=!0),s[r]=c})),n[i]=s,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},n,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:i({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var i,a,o=c(r),u=void 0!==(i=this.numericRefinements[e][t],a=o,s(i,(function(e){return l(e,a)})));return n&&u},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0})))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach((function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var r=this,n=p._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=r[t],e}),{}),a=Object.keys(n).reduce((function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?o(e,[t]):(i&&(e[t]=n[t]),e)}),i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return s(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},210:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var s=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[s.name]&&e.hierarchicalFacetsRefinements[s.name][0]||"",f=e._getHierarchicalFacetSeparator(s),h=e._getHierarchicalRootPath(s),l=e._getHierarchicalShowParentLevel(s),p=a(e._getHierarchicalFacetSortBy(s)),d=t.every((function(e){return e.exhaustive})),m=function(e,t,r,a,s){return function(u,f,h){var l=u;if(h>0){var p=0;for(l=u;p<h;){var d=l&&Array.isArray(l.data)?l.data:[];l=i(d,(function(e){return e.isRefined})),p++}}if(l){var m=Object.keys(f.data).map((function(e){return[e,f.data[e]]})).filter((function(e){return function(e,t,r,n,i,a){if(i&&(0!==e.indexOf(i)||i===e))return!1;return!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(a||0===e.indexOf(r))}(e[0],l.path||r,s,t,r,a)}));l.data=n(m.map((function(e){var r=e[0];return function(e,t,r,n,i){var a=t.split(r);return{name:a[a.length-1].trim(),path:t,escapedValue:c(t),count:e,isRefined:n===t||0===n.indexOf(t+r),exhaustive:i,data:null}}(e[1],r,t,o(s),f.exhaustive)})),e[0],e[1])}return u}}(p,f,h,l,u),g=t;return h&&(g=t.slice(h.split(f).length)),g.reduce(m,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:d,data:null})}};var n=r(2148),i=r(7888),a=r(2293),s=r(4039),c=s.escapeFacetValue,o=s.unescapeFacetValue},3076:(e,t,r)=>{"use strict";var n=r(185),i=r(2344),a=r(2148),s=r(4587),c=r(7888),o=r(9725),u=r(2293),f=r(4039),h=f.escapeFacetValue,l=f.unescapeFacetValue,p=r(210);function d(e){var t={};return e.forEach((function(e,r){t[e]=r})),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0];this._rawResults=t;var u=this;Object.keys(a).forEach((function(e){u[e]=a[e]})),Object.keys(r||{}).forEach((function(e){u[e]=r[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),h=d(e.facets),g=d(e.disjunctiveFacets),v=1,y=a.facets||{};Object.keys(y).forEach((function(t){var r,n,i=y[t],s=(r=e.hierarchicalFacets,n=t,c(r,(function(e){return(e.attributes||[]).indexOf(n)>-1})));if(s){var f=s.attributes.indexOf(t),l=o(e.hierarchicalFacets,(function(e){return e.name===s.name}));u.hierarchicalFacets[l][f]={attribute:t,data:i,exhaustive:a.exhaustiveFacetsCount}}else{var p,d=-1!==e.disjunctiveFacets.indexOf(t),v=-1!==e.facets.indexOf(t);d&&(p=g[t],u.disjunctiveFacets[p]={name:t,data:i,exhaustive:a.exhaustiveFacetsCount},m(u.disjunctiveFacets[p],a.facets_stats,t)),v&&(p=h[t],u.facets[p]={name:t,data:i,exhaustive:a.exhaustiveFacetsCount},m(u.facets[p],a.facets_stats,t))}})),this.hierarchicalFacets=s(this.hierarchicalFacets),f.forEach((function(r){var s=t[v],c=s&&s.facets?s.facets:{},f=e.getHierarchicalFacetByName(r);Object.keys(c).forEach((function(t){var r,h=c[t];if(f){r=o(e.hierarchicalFacets,(function(e){return e.name===f.name}));var p=o(u.hierarchicalFacets[r],(function(e){return e.attribute===t}));if(-1===p)return;u.hierarchicalFacets[r][p].data=n({},u.hierarchicalFacets[r][p].data,h)}else{r=g[t];var d=a.facets&&a.facets[t]||{};u.disjunctiveFacets[r]={name:t,data:i({},h,d),exhaustive:s.exhaustiveFacetsCount},m(u.disjunctiveFacets[r],s.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!u.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(l(n))>-1&&(u.disjunctiveFacets[r].data[n]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(v).forEach((function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach((function(t){var c=r[t],f=o(e.hierarchicalFacets,(function(e){return e.name===n.name})),h=o(u.hierarchicalFacets[f],(function(e){return e.attribute===t}));if(-1!==h){var l={};if(s.length>0){var p=s[0].split(a)[0];l[p]=u.hierarchicalFacets[f][h].data[p]}u.hierarchicalFacets[f][h].data=i(l,c,u.hierarchicalFacets[f][h].data)}})),v++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var r=e.facetsExcludes[t],n=h[t];u.facets[n]={name:t,data:a.facets[t],exhaustive:a.exhaustiveFacetsCount},r.forEach((function(e){u.facets[n]=u.facets[n]||{name:t},u.facets[n].data=u.facets[n].data||{},u.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=s(this.facets),this.disjunctiveFacets=s(this.disjunctiveFacets),this._state=e}function v(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var a=t.data.map((function(t){return v(e,t,r,n+1)})),s=e(a,r[n]);return i({data:s},t)}function y(e,t){var r=c(e,(function(e){return e.name===t}));return r&&r.stats}function b(e,t,r,n,i){var a=c(i,(function(e){return e.name===r})),s=a&&a.data&&a.data[n]?a.data[n]:0,o=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:s,exhaustive:o}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return c(this.facets,t)||c(this.disjunctiveFacets,t)||c(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=c(e.facets,r);return n?Object.keys(n.data).map((function(r){var i=h(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=c(e.disjunctiveFacets,r);return i?Object.keys(i.data).map((function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t))return c(e.hierarchicalFacets,r)}(this,e);if(r){var n,s=i({},t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;if(Array.isArray(r))n=[e];else n=o._state.getHierarchicalFacetByName(r.name).attributes;return v((function(e,t){if(s.facetOrdering){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(o,t);if(Boolean(r))return function(e,t){var r=[],n=[],i=(t.order||[]).reduce((function(e,t,r){return e[t]=r,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)})),r=r.filter((function(e){return e}));var s,c=t.sortRemainingBy;return"hidden"===c?r:(s="alpha"===c?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(a(n,s[0],s[1])))}(e,r)}if(Array.isArray(s.sortBy)){var n=u(s.sortBy,g.DEFAULT_SORT);return a(e,n[0],n[1])}if("function"==typeof s.sortBy)return function(e,t){return t.sort(e)}(s.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(i){r.push(b(e,"facet",n,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(i){r.push(b(e,"exclude",n,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(i){r.push(b(e,"disjunctive",n,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=r.split(a),o=c(n,(function(e){return e.name===t})),u=s.reduce((function(e,t){var r=e&&c(e.data,(function(e){return e.name===t}));return void 0!==r?r:e}),o),f=u&&u.count||0,h=u&&u.exhaustive||!1,l=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:l,count:f,exhaustive:h}}(e,n,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),r},e.exports=g},9374:(e,t,r)=>{"use strict";var n=r(7775),i=r(3076),a=r(8078),s=r(6394),c=r(7331),o=r(4853),u=r(116),f=r(9803),h=r(185),l=r(4336),p=r(4039).escapeFacetValue;function d(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+l+")"),this.setClient(e);var i=r||{};i.index=t,this.state=n.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function m(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function g(){return this.state.page}o(d,c),d.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},d.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},d.prototype.getQuery=function(){var e=this.state;return s._getHitsSearchParams(e)},d.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=s._getQueries(r.index,r),a=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then((function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),{content:new i(r,e.results),state:r,_originalResponse:e}}),(function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(null,new i(r,e.results),r)})).catch((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(e,null,r)}))},d.prototype.findAnswers=function(e){var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=h({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:f(s._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(a);var c=this.client.initIndex(n.index);if("function"!=typeof c.findAnswers)throw new Error(a);return c.findAnswers(n.query,e.queryLanguages,i)},d.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),o=c.isDisjunctiveFacet(e),u=s.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var f,h=this;return i?f=this.client.searchForFacetValues([{indexName:c.index,params:u}]):a?f=this.client.initIndex(c.index).searchForFacetValues(u):(delete u.facetName,f=this.client.search([{type:"facet",facet:e,indexName:c.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:c,facet:e,query:t}),f.then((function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=p(t.value),t.isRefined=o?c.isDisjunctiveFacetRefined(e,t.escapedValue):c.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e}))},d.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},d.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},d.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},d.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},d.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},d.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},d.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},d.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},d.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},d.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},d.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},d.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},d.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},d.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},d.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},d.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},d.prototype.setCurrentPage=m,d.prototype.setPage=m,d.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},d.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},d.prototype.setState=function(e){return this._change({state:n.make(e),isPageReset:!1}),this},d.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new n(e),this},d.prototype.hasRefinements=function(e){return!!u(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},d.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},d.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},d.prototype.hasTag=function(e){return this.state.isTagRefined(e)},d.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},d.prototype.getIndex=function(){return this.state.index},d.prototype.getCurrentPage=g,d.prototype.getPage=g,d.prototype.getTags=function(){return this.state.tagRefinements},d.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})})),t},d.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},d.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},d.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=s._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),i=s._getQueries(n.index,n);return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i})),a=Array.prototype.concat.apply(n,i),c=this._queryId++;this._currentNbQueries++;try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,c)).catch(this._dispatchAlgoliaError.bind(this,c))}catch(e){this.emit("error",{error:e})}},d.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var n=r.results.slice();e.forEach((function(e){var t=e.state,r=e.queriesCount,a=e.helper,s=n.splice(0,r),c=a.lastResults=new i(t,s);a.emit("result",{results:c,state:t})}))}},d.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},d.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},d.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},d.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},d.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},d.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+l+")"),this.client=e),this},d.prototype.getClient=function(){return this.client},d.prototype.derive=function(e){var t=new a(this,e);return this.derivedHelpers.push(t),t},d.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},d.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=d},4587:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},2344:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])})),e}),{})}},4039:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},7888:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}},9725:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}},2293:(e,t,r)=>{"use strict";var n=r(7888);e.exports=function(e,t){var r=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),a=n(r,(function(e){return e[0]===i[0]}));return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)}),[[],[]])}},4853:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},2686:e=>{"use strict";e.exports=function(e,t){return e.filter((function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n}))}},185:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function r(e,n){if(e===n)return e;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i){var a=n[i],s=e[i];void 0!==s&&void 0===a||(t(s)&&t(a)?e[i]=r(s,a):e[i]="object"==typeof(c=a)&&null!==c?r(Array.isArray(c)?[]:{},c):c)}var c;return e}e.exports=function(e){t(e)||(e={});for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n];t(a)&&r(e,a)}return e}},116:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},9803:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},2148:e=>{"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return-1}return 0}e.exports=function(e,r,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var i=e.map((function(e,t){return{criteria:r.map((function(t){return e[t]})),index:t,value:e}}));return i.sort((function(e,r){for(var i=-1;++i<e.criteria.length;){var a=t(e.criteria[i],r.criteria[i]);if(a)return i>=n.length?a:"desc"===n[i]?-a:a}return e.index-r.index})),i.map((function(e){return e.value}))}},8023:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},6394:(e,t,r)=>{"use strict";var n=r(185);function i(e){return Object.keys(e).sort((function(e,t){return e.localeCompare(t)})).reduce((function(t,r){return t[r]=e[r],t}),{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),c=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(c).length>1){var o=s[0].split(c).slice(0,-1).reduce((function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(c)})}),[]);o.forEach((function(n,i){var s=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===i),c=o[i-1];s.facetFilters=i>0?[c.attribute+":"+c.value]:void 0,r.push({indexName:e,params:s})}))}})),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)),r=a._getFacetFilters(e),s=a._getNumericFilters(e),c=a._getTagFilters(e),o={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:c};return r.length>0&&(o.facetFilters=r),s.length>0&&(o.numericFilters=s),i(n({},e.getQueryParams(),o))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),c=a._getNumericFilters(e,t),o=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(u.tagFilters=o);var f=e.getHierarchicalFacetByName(t);return u.facets=f?a._getDisjunctiveHierarchicalFacetAttribute(e,f,r):t,c.length>0&&(u.numericFilters=c),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach((function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach((function(e){var a=i[e]||[];t!==n&&a.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return n+e+t}));r.push(i)}else r.push(n+e+t)}))}))})),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach((function(e){(i[e]||[]).forEach((function(t){n.push(e+":"+t)}))}));var a=e.facetsExcludes||{};Object.keys(a).forEach((function(e){(a[e]||[]).forEach((function(t){n.push(e+":-"+t)}))}));var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach((function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.forEach((function(t){i.push(e+":"+t)})),n.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).forEach((function(i){var a=(c[i]||[])[0];if(void 0!==a){var s,o,u=e.getHierarchicalFacetByName(i),f=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===a.indexOf(f)||!h&&!0===r||h&&h.split(f).length===a.split(f).length)return;h?(o=h.split(f).length-1,a=h):(o=a.split(f).length-2,a=a.slice(0,a.lastIndexOf(f))),s=u.attributes[o]}else o=a.split(f).length-1,s=u.attributes[o];s&&n.push([s+":"+a])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var c=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,o={facetQuery:t,facetName:e};return"number"==typeof r&&(o.maxFacetHits=r),i(n({},a._getHitsSearchParams(c),o))}};e.exports=a},6801:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},4336:e=>{"use strict";e.exports="3.10.0"},290:function(e){
2
+ /*! algoliasearch-lite.umd.js | 4.14.2 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
3
+ e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e){var t,r="algoliasearch-client-js-".concat(e.key),n=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},a=function(){return JSON.parse(n().getItem(r)||"{}")};return{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=i(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=a();return i[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function c(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,i).catch((function(){return c({caches:t}).get(e,n,i)}))},set:function(e,n){return r.set(e,n).catch((function(){return c({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return c({caches:t}).clear()}))}}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=n(),c=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return c(e)})).then((function(){return s}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function f(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[i++])}))}var l={WithinQueryParameters:0,WithinHeaders:1};function p(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var d={Read:1,Write:2,Any:3},m=1,g=2,v=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var R="GET",F="POST";function x(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function P(e,t,n,i){var s=[],c=function(e,t){if(e.method!==R&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,i),o=function(e,t){var n=r(r({},e.headers),t.headers),i={};return Object.keys(n).forEach((function(e){var t=n[e];i[e.toLowerCase()]=t})),i}(e,i),u=n.method,f=n.method!==R?{}:r(r({},n.data),i.data),h=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),f),i.queryParameters),l=0,p=function t(r,a){var f=r.pop();if(void 0===f)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:w(s)};var p={data:c,headers:o,method:u,url:j(f,n.path,h),connectTimeout:a(l,e.timeouts.connect),responseTimeout:a(l,i.timeout)},d=function(e){var t={request:p,response:e,host:f,triesLeft:r.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var i=d(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",E(i)),e.hostsCache.set(f,y(f,n.isTimedOut?v:g))]).then((function(){return t(r,a)}))},onFail:function(e){throw d(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(i,n,t)}(e,w(s))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return x(e.hostsCache,t).then((function(e){return p(a(e.statelessHosts).reverse(),e.getTimeout)}))}function O(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function j(e,t,r){var n=S(r),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(i+="?".concat(n)),i}function S(e){return Object.keys(e).map((function(t){return h("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function w(e){return e.map((function(e){return E(e)}))}function E(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var _=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?n:{}},queryParameters:function(){return e===l.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,s=e.responsesCache,c=e.timeouts,o=e.userAgent,u=e.hosts,f=e.queryParameters,h={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:s,timeouts:c,userAgent:o,headers:e.headers,queryParameters:f,hosts:u.map((function(e){return b(e)})),read:function(e,t){var r=p(t,h.timeouts.read),n=function(){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(a,(function(){return h.requestsCache.get(a,(function(){return h.requestsCache.set(a,n()).then((function(e){return Promise.all([h.requestsCache.delete(a),e])}),(function(e){return Promise.all([h.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return h.responsesCache.set(a,e)}})},write:function(e,t){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Write)})),e,p(t,h.timeouts.write))}};return h}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return f({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},C=function(e){return function(t,r){return t.method===R?e.transporter.read(t,r):e.transporter.write(t,r)}},A=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},N=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{params:S(e.params||{})})}));return e.transporter.read({method:F,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},Z=function(e){return function(t,i){return Promise.all(t.map((function(t){var a=t.params,s=a.facetName,c=a.facetQuery,o=n(a,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:V}}).searchForFacetValues(s,c,r(r({},i),o))})))}},k=function(e){return function(t,r,n){return e.transporter.read({method:F,path:h("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},T=function(e){return function(t,r){return e.transporter.read({method:F,path:h("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},V=function(e){return function(t,r,n){return e.transporter.read({method:F,path:h("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},I=1,D=2,H=3;function Q(e,t,n){var i,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,i=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(i=H,{debug:function(e,t){return I>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return D>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:c({caches:[s({key:"".concat("4.14.2","-").concat(e)}),o()]}),userAgent:O("4.14.2").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return _(r(r(r({},a),n),{},{methods:{search:N,searchForFacetValues:Z,multipleQueries:N,multipleSearchForFacetValues:Z,customRequest:C,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:T,searchForFacetValues:V,findAnswers:k}})}}}}))}return Q.version="4.14.2",Q}()},4184:(e,t)=>{var r;
4
  /*!
5
  Copyright (c) 2018 Jed Watson.
6
  Licensed under the MIT License (MIT), see
7
  http://jedwatson.github.io/classnames
8
+ */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},3671:(e,t,r)=>{var n=r(9662),i=r(7908),a=r(8361),s=r(6244),c=TypeError,o=function(e){return function(t,r,o,u){n(r);var f=i(t),h=a(f),l=s(f),p=e?l-1:0,d=e?-1:1;if(o<2)for(;;){if(p in h){u=h[p],p+=d;break}if(p+=d,e?p<0:l<=p)throw c("Reduce of empty array with no initial value")}for(;e?p>=0:l>p;p+=d)p in h&&(u=r(u,h[p],p,f));return u}};e.exports={left:o(!1),right:o(!0)}},5827:(e,t,r)=>{"use strict";var n=r(2109),i=r(3671).left,a=r(9341),s=r(7392),c=r(5268);n({target:"Array",proto:!0,forced:!a("reduce")||!c&&s>79&&s<83},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},9590:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var c,o,u,f;if(Array.isArray(e)){if((c=e.length)!=s.length)return!1;for(o=c;0!=o--;)if(!a(e[o],s[o]))return!1;return!0}if(r&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(f=e.entries();!(o=f.next()).done;)if(!s.has(o.value[0]))return!1;for(f=e.entries();!(o=f.next()).done;)if(!a(o.value[1],s.get(o.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(f=e.entries();!(o=f.next()).done;)if(!s.has(o.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((c=e.length)!=s.length)return!1;for(o=c;0!=o--;)if(e[o]!==s[o])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((c=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(o=c;0!=o--;)if(!Object.prototype.hasOwnProperty.call(s,u[o]))return!1;if(t&&e instanceof Element)return!1;for(o=c;0!=o--;)if(("_owner"!==u[o]&&"__v"!==u[o]&&"__o"!==u[o]||!e.$$typeof)&&!a(e[u[o]],s[u[o]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},8810:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(1773),i=r(5009),a=r(4914);const s=(0,n.Z)({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){var n=(0,i.O7)(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!n)return{hits:[]};var s=(0,a.RC)(n.hits,n.hitsPerPage,n.page);return{hits:(0,a.Io)(s,n.queryID)}},getSearchParameters:function(e){return e}})},3866:(e,t,r)=>{"use strict";r.d(t,{BT:()=>a,tJ:()=>s,wX:()=>o});var n=r(7294),i=(0,n.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),a=i.Consumer,s=i.Provider,c=(0,n.createContext)(void 0),o=c.Consumer;c.Provider},1773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>F});var n=r(7462),i=r(5987),a=r(5671),s=r(3144),c=r(7326),o=r(136),u=r(2963),f=r(1120),h=r(4942),l=r(7294),p=r(9590),d=r.n(p),m=r(4914),g=r(3866),v=["contextValue"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,h.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}const F=function(e){return function(t,r){var u=function(e){if(!e.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var t="function"==typeof e.getSearchParameters||"function"==typeof e.getMetadata||"function"==typeof e.transitionState;return function(r){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=function(u){(0,o.Z)(p,u);var f=R(p);function p(t){var r;return(0,a.Z)(this,p),r=f.call(this,t),(0,h.Z)((0,c.Z)(r),"unsubscribe",void 0),(0,h.Z)((0,c.Z)(r),"unregisterWidget",void 0),(0,h.Z)((0,c.Z)(r),"isUnmounting",!1),(0,h.Z)((0,c.Z)(r),"state",{providedProps:r.getProvidedProps(r.props)}),(0,h.Z)((0,c.Z)(r),"refine",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),(0,h.Z)((0,c.Z)(r),"createURL",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),(0,h.Z)((0,c.Z)(r),"searchForFacetValues",(function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[(0,c.Z)(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))})),e.getSearchParameters&&r.props.contextValue.onSearchParameters(e.getSearchParameters.bind((0,c.Z)(r)),{ais:r.props.contextValue,multiIndexContext:r.props.indexContextValue},r.props,e.getMetadata&&e.getMetadata.bind((0,c.Z)(r)),e.displayName),r}return(0,s.Z)(p,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribe=this.props.contextValue.store.subscribe((function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})})),t&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,r){if("function"==typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,r);var n=(0,m.wU)(this.props,t);return null===this.state.providedProps||null===r.providedProps?this.state.providedProps!==r.providedProps||!n:!n||!(0,m.wU)(this.state.providedProps,r.providedProps)}},{key:"componentDidUpdate",value:function(r){d()(r,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),t&&(this.props.contextValue.widgetsManager.update(),"function"==typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){if(this.isUnmounting=!0,this.unsubscribe&&this.unsubscribe(),this.unregisterWidget&&(this.unregisterWidget(),"function"==typeof e.cleanUp)){var t=e.cleanUp.call(this,this.props,this.props.contextValue.store.getState().widgets);this.props.contextValue.store.setState(b(b({},this.props.contextValue.store.getState()),{},{widgets:t})),this.props.contextValue.onSearchStateChange((0,m.YC)(t))}}},{key:"getProvidedProps",value:function(t){var r=this.props.contextValue.store.getState(),n=r.widgets,i=r.results,a=r.resultsFacetValues,s=r.searching,c=r.searchingForFacetValues,o=r.isSearchStalled,u=r.metadata,f={results:i,searching:s,searchingForFacetValues:c,isSearchStalled:o,error:r.error};return e.getProvidedProps.call(this,t,n,f,u,a)}},{key:"getSearchParameters",value:function(t){return"function"==typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"==typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,r){return"function"==typeof e.transitionState?e.transitionState.call(this,this.props,t,r):r}},{key:"render",value:function(){var t=this.props,a=(t.contextValue,(0,i.Z)(t,v)),s=this.state.providedProps;if(null===s)return null;var c="function"==typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},o="function"==typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return l.createElement(r,(0,n.Z)({},a,s,c,o))}}]),p}(l.Component);return(0,h.Z)(f,"displayName","".concat(e.displayName,"(").concat((0,m.Gf)(r),")")),(0,h.Z)(f,"$$type",e.$$type),(0,h.Z)(f,"$$widgetType",u.$$widgetType),(0,h.Z)(f,"propTypes",e.propTypes),(0,h.Z)(f,"defaultProps",e.defaultProps),(0,h.Z)(f,"_connectorDesc",e),f}}(e)(t,r);return function(e){return l.createElement(g.BT,null,(function(t){return l.createElement(g.wX,null,(function(r){return l.createElement(u,(0,n.Z)({contextValue:t,indexContextValue:r},e))}))}))}}}},5009:(e,t,r)=>{"use strict";r.d(t,{Ei:()=>u,O7:()=>o,RD:()=>f,U6:()=>l,WN:()=>c,cI:()=>p});var n=r(4942),i=r(4914);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e){return u(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function o(e,t){if(e.results){if(e.results.hits)return e.results;var r=c(t);if(e.results[r])return e.results[r]}return null}function u(e){return e&&e.multiIndexContext}function f(e,t,r,i,a){if(u(r)){var o=c(r);return a?function(e,t,r,i,a){var c,o=i?{page:1}:void 0,u=e.indices&&e.indices[r]?s(s({},e.indices),{},(0,n.Z)({},r,s(s({},e.indices[r]),{},(c={},(0,n.Z)(c,a,s(s({},e.indices[r][a]),t)),(0,n.Z)(c,"page",1),c)))):s(s({},e.indices),{},(0,n.Z)({},r,s((0,n.Z)({},a,t),o)));return s(s({},e),{},{indices:u})}(e,t,o,i,a):function(e,t,r,i){var a=i?{page:1}:void 0,c=e.indices&&e.indices[r]?s(s({},e.indices),{},(0,n.Z)({},r,s(s(s({},e.indices[r]),t),a))):s(s({},e.indices),{},(0,n.Z)({},r,s(s({},t),a)));return s(s({},e),{},{indices:c})}(e,t,o,i)}return e.indices&&i&&Object.keys(e.indices).forEach((function(t){e=f(e,{page:1},{multiIndexContext:{targetedIndex:t}},!0,a)})),a?function(e,t,r,i){var a=r?{page:1}:void 0;return s(s({},e),{},(0,n.Z)({},i,s(s({},e[i]),t)),a)}(e,t,i,a):function(e,t,r){var n=r?{page:1}:void 0;return s(s(s({},e),t),n)}(e,t,i)}function h(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function l(e,t,r,n,i){var a=c(r),s=h(n),o=s.namespace,f=s.attributeName,l={multiIndex:u(r),indexId:a,namespace:o,attributeName:f,id:n,searchState:t},p=function(e){var t=e.multiIndex,r=e.indexId,n=e.namespace,i=e.attributeName,a=e.id,s=e.searchState;return t&&n?s.indices&&s.indices[r]&&s.indices[r][n]&&Object.hasOwnProperty.call(s.indices[r][n],i):t?s.indices&&s.indices[r]&&Object.hasOwnProperty.call(s.indices[r],a):n?s[n]&&Object.hasOwnProperty.call(s[n],i):Object.hasOwnProperty.call(s,a)}(l);return p?function(e){var t=e.multiIndex,r=e.indexId,n=e.namespace,i=e.attributeName,a=e.id,s=e.searchState;return t&&n?s.indices[r][n][i]:t?s.indices[r][a]:n?s[n][i]:s[a]}(l):e.defaultRefinement?e.defaultRefinement:i}function p(e,t,r){var a=c(t),o=h(r),f=o.namespace,l=o.attributeName;return u(t)&&Boolean(e.indices)?function(e){var t=e.searchState,r=e.indexId,a=e.id,c=e.namespace,o=e.attribute,u=t.indices[r];if(c&&u)return s(s({},t),{},{indices:s(s({},t.indices),{},(0,n.Z)({},r,s(s({},u),{},(0,n.Z)({},c,(0,i.CE)(u[c],[o])))))});if(u)return s(s({},t),{},{indices:s(s({},t.indices),{},(0,n.Z)({},r,(0,i.CE)(u,[a])))});return t}({attribute:l,searchState:e,indexId:a,id:r,namespace:f}):function(e){var t=e.searchState,r=e.id,a=e.namespace,c=e.attribute;if(a)return s(s({},t),{},(0,n.Z)({},a,(0,i.CE)(t[a],[c])));return(0,i.CE)(t,[r])}({attribute:l,searchState:e,id:r,namespace:f})}},4914:(e,t,r)=>{"use strict";r.d(t,{CE:()=>d,Gf:()=>o,Io:()=>p,PQ:()=>f,RC:()=>l,YC:()=>h,wU:()=>c});var n=r(4942),i=r(1002);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=function(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,a=0;a<r.length;a++)if(!i.call(t,r[a])||e[r[a]]!==t[r[a]])return!1;return!0},o=function(e){return e.displayName||e.name||"UnknownComponent"},u=Promise.resolve(),f=function(e){u.then(e)},h=function e(t){return Object.keys(t).forEach((function(r){var n,a=t[r];(function(e){return"object"===(0,i.Z)(e)&&null!==e&&!Array.isArray(e)})(a)&&((n=a)&&Object.keys(n).length>0?e(a):delete t[r])})),t};function l(e,t,r){return e.map((function(e,n){return s(s({},e),{},{__position:t*r+n+1})}))}function p(e,t){return t?e.map((function(e){return s(s({},e),{},{__queryID:t})})):e}function d(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var a=n[i];t.indexOf(a)>=0||(r[a]=e[a])}return r}},2002:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(4942),i=r(5987),a=r(4914),s=r(1773),c=r(5009),o=["children","contextValue","indexContextValue"],u=["children","contextValue","indexContextValue"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const l=(0,s.Z)({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var r=(0,i.Z)(t,o);return e.setQueryParameters(r)},transitionState:function(e,t,r){var s="configure",o=(e.children,e.contextValue,e.indexContextValue,(0,i.Z)(e,u)),f=Object.keys(e),l=this._props?Object.keys(this._props).filter((function(e){return-1===f.indexOf(e)})):[];this._props=e;var p=(0,n.Z)({},s,h(h({},(0,a.CE)(r[s],l)),o));return(0,c.RD)(r,p,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r="configure",i=(0,c.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),a=(0,c.Ei)({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,s=(a&&a[r]?Object.keys(a[r]):[]).reduce((function(t,n){return e[n]||(t[n]=a[r][n]),t}),{}),o=(0,n.Z)({},r,s);return(0,c.RD)(t,o,{ais:e.contextValue,multiIndexContext:e.indexContextValue})}})((function(){return null}),{$$widgetType:"ais.configure"})},516:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n=r(5671),i=r(3144),a=r(7326),s=r(136),c=r(2963),o=r(1120),u=r(4942),f=r(7294),h=r(9590),l=r.n(h),p=r(5697),d=r.n(p),m=r(5987),g=r(8131),v=r.n(g),y=r(4914);var b={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};var R=r(5009);var F=["resultsFacetValues"],x=["resultsFacetValues"],P=["resultsFacetValues"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(f.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat("6.30.3",")")))}var w=function(e){return(0,R.Ei)({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},E=function(e,t){return e.props.indexContextValue.targetedIndex===t},_=function(e){return Boolean(e.props.indexId)},C=function(e,t){return e.props.indexId===t},A=function(e,t){var r=_(e),n=_(t);return r&&!n?-1:!r&&n?1:0};function N(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[i++])}))}("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function Z(e){var t=e.indexName,r=e.initialState,n=void 0===r?{}:r,i=e.searchClient,a=e.resultsState,s=e.stalledSearchDelay,c=v()(i,t,j({},b));S(i),c.on("search",(function(){h||(h=setTimeout((function(){var e=d.getState(),t=(e.resultsFacetValues,(0,m.Z)(e,P));d.setState(j(j({},t),{},{isSearchStalled:!0}))}),s))})).on("result",Z({indexId:t})).on("error",T);var o,f=!1,h=null,l=c.state,p=function(e){var t=[],r=!1;function n(){r||(r=!0,(0,y.PQ)((function(){r=!1,e()})))}return{registerWidget:function(e){return t.push(e),n(),function(){t.splice(t.indexOf(e),1),n()}},update:n,getWidgets:function(){return t}}}((function(){var e=g(d.getState().widgets);d.setState(j(j({},d.getState()),{},{metadata:e,searching:!0})),O()}));!function(e,t){if(!t)return;if((!e.transporter||e._cacheHydrated)&&(!e._useCache||"function"!=typeof e.addAlgoliaAgent))return;if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var r=e.search;e.search=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=t.map((function(e){return j(j({},e),{},{params:N(e.params)})}));return e.transporter.responsesCache.get({method:"search",args:[s].concat(i)},(function(){return r.apply(void 0,[t].concat(i))}))}}if(Array.isArray(t.results))return void function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])]},{results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])});var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])}));e.cache=j(j({},e.cache),{},(0,u.Z)({},r,JSON.stringify({results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])})))}(e,t.results);!function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))]},{results:t.rawResults});var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))}));e.cache=j(j({},e.cache),{},(0,u.Z)({},r,JSON.stringify({results:t.rawResults})))}(e,t)}(i,a);var d=function(e){var t=e,r=[];return{getState:function(){return t},setState:function(e){t=e,r.forEach((function(e){return e()}))},subscribe:function(e){return r.push(e),function(){r.splice(r.indexOf(e),1)}}}}({widgets:n,metadata:k(a),results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce((function(e,t){return j(j({},e),{},(0,u.Z)({},t._internalIndexId,new(v().SearchResults)(new(v().SearchParameters)(t.state),t.rawResults)))}),{});return new(v().SearchResults)(new(v().SearchParameters)(e.state),e.rawResults)}(a),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1});function g(e){return p.getWidgets().filter((function(e){return Boolean(e.getMetadata)})).map((function(t){return t.getMetadata(e)}))}function R(){var e=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){return!w(e)&&!_(e)})).reduce((function(e,t){return t.getSearchParameters(e)}),l),r=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var r=w(e)&&E(e,t),n=_(e)&&C(e,t);return r||n})).sort(A).reduce((function(e,t){return t.getSearchParameters(e)}),e),n=p.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var r=w(e)&&!E(e,t),n=_(e)&&!C(e,t);return r||n})).sort(A).reduce((function(e,t){var r=w(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return j(j({},e),{},(0,u.Z)({},r,n.concat(t)))}),{});return{mainParameters:r,derivedParameters:Object.keys(n).map((function(t){return{parameters:n[t].reduce((function(e,t){return t.getSearchParameters(e)}),e),indexId:t}}))}}function O(){if(!f){var e=R(c.state),t=e.mainParameters,r=e.derivedParameters;o=r.length+1,c.derivedHelpers.slice().forEach((function(e){e.detach()})),r.forEach((function(e){var t=e.indexId,r=e.parameters;c.derive((function(){return r})).on("result",Z({indexId:t})).on("error",T)})),c.setState(t),c.search()}}function Z(e){var t=e.indexId;return function(e){o--;var r=d.getState(),n=!c.derivedHelpers.length,i=r.results?r.results:{};i=!n&&i.getFacetByName?{}:i,i=n?e.results:j(j({},i),{},(0,u.Z)({},t,e.results));var a=d.getState(),s=a.isSearchStalled;c.hasPendingRequests()||(clearTimeout(h),h=null,s=!1);a.resultsFacetValues;var f=(0,m.Z)(a,F);d.setState(j(j({},f),{},{results:i,isSearchStalled:s,searching:o>0,error:null}))}}function T(e){var t=e.error,r=d.getState(),n=r.isSearchStalled;c.hasPendingRequests()||(clearTimeout(h),n=!1);r.resultsFacetValues;var i=(0,m.Z)(r,x);d.setState(j(j({},i),{},{isSearchStalled:n,error:t,searching:!1}))}return{store:d,widgetsManager:p,getWidgetsIds:function(){return d.getState().metadata.reduce((function(e,t){return void 0!==t.id?e.concat(t.id):e}),[])},getSearchParameters:R,onSearchForFacetValues:function(e){var t=e.facetName,r=e.query,n=e.maxFacetHits,i=void 0===n?10:n,a=Math.max(1,Math.min(i,100));d.setState(j(j({},d.getState()),{},{searchingForFacetValues:!0})),c.searchForFacetValues(t,r,a).then((function(e){var n;d.setState(j(j({},d.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:j(j({},d.getState().resultsFacetValues),{},(n={},(0,u.Z)(n,t,e.facetHits),(0,u.Z)(n,"query",r),n))}))}),(function(e){d.setState(j(j({},d.getState()),{},{searchingForFacetValues:!1,error:e}))})).catch((function(e){setTimeout((function(){throw e}))}))},onExternalStateUpdate:function(e){var t=g(e);d.setState(j(j({},d.getState()),{},{widgets:e,metadata:t,searching:!0})),O()},transitionState:function(e){var t=d.getState().widgets;return p.getWidgets().filter((function(e){return Boolean(e.transitionState)})).reduce((function(e,r){return r.transitionState(t,e)}),e)},updateClient:function(e){S(e),c.setClient(e),O()},updateIndex:function(e){l=l.setIndex(e)},clearCache:function(){c.clearCache(),O()},skipSearch:function(){f=!0}}}function k(e){return e?e.metadata.map((function(e){return j(j({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return j(j({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return j({value:function(){return{}}},e)}))})}))})})):[]}var T=r(3866),V=r(1002);function I(e,t){var r=document.createElement("meta"),n=document.querySelector("head");r.name="algolia:metadata";var i=function(e,t){var r=["contextValue","indexContextValue"],n=e.map((function(e){var t=e.props,n=e.constructor,i=n._connectorDesc||{},a=i.defaultProps,s=void 0===a?{}:a,c=i.displayName;return{displayName:void 0===c?n.displayName:c,$$type:n.$$type,$$widgetType:n.$$widgetType,params:Object.keys(t).filter((function(e){return!r.includes(e)&&s[e]!==t[e]&&void 0!==t[e]}))}})),i=t;return{ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:n}}(e,t);r.content=JSON.stringify(i),n.appendChild(r)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,o.Z)(e);if(t){var i=(0,o.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}function q(e){return Boolean(e.searchState)}var B=function(e){(0,s.Z)(r,e);var t=Q(r);function r(e){var i;(0,n.Z)(this,r),i=t.call(this,e),(0,u.Z)((0,a.Z)(i),"isUnmounting",!1);var s=Z({indexName:i.props.indexName,searchClient:i.props.searchClient,initialState:i.props.searchState||{},resultsState:i.props.resultsState,stalledSearchDelay:i.props.stalledSearchDelay}),c={store:s.store,widgetsManager:s.widgetsManager,mainTargetedIndex:i.props.indexName,onInternalStateUpdate:i.onWidgetsInternalStateUpdate.bind((0,a.Z)(i)),createHrefForState:i.createHrefForState.bind((0,a.Z)(i)),onSearchForFacetValues:i.onSearchForFacetValues.bind((0,a.Z)(i)),onSearchStateChange:i.onSearchStateChange.bind((0,a.Z)(i)),onSearchParameters:i.onSearchParameters.bind((0,a.Z)(i))};return i.state={isControlled:q(i.props),instantSearchManager:s,contextValue:c},i}return(0,i.Z)(r,[{key:"componentDidUpdate",value:function(e){var t=q(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){"object"===("undefined"==typeof window?"undefined":(0,V.Z)(window))&&"object"===(0,V.Z)(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===(0,V.Z)(window.document)&&I(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0,this.state.instantSearchManager.skipSearch()}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){if(this.props.onSearchParameters){var a=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,r,a)}if(this.props.widgetsCollector){var s=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:s,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===f.Children.count(this.props.children)?null:f.createElement(T.tJ,{value:this.state.contextValue},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=q(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!l()(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:H(H({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}]),r}(f.Component);(0,u.Z)(B,"defaultProps",{stalledSearchDelay:200,refresh:!1}),(0,u.Z)(B,"propTypes",{indexName:d().string.isRequired,searchClient:d().shape({search:d().func.isRequired,searchForFacetValues:d().func,addAlgoliaAgent:d().func,clearCache:d().func}).isRequired,createURL:d().func,refresh:d().bool,searchState:d().object,onSearchStateChange:d().func,onSearchParameters:d().func,widgetsCollector:d().func,resultsState:d().oneOfType([d().object,d().array]),children:d().node,stalledSearchDelay:d().number});const L=B},3196:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(4942),i=r(5697),a=r.n(i),s=r(1773),c=r(5009);function o(e,t,r){var n=(0,c.U6)(e,t,r,"query","");return n||""}function u(e,t,r,i){var a=(0,n.Z)({},"query",r);return(0,c.RD)(t,a,i,!0)}const f=(0,s.Z)({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:a().string},getProvidedProps:function(e,t,r){return{currentRefinement:o(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return u(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return function(e,t,r){return(0,c.cI)(t,r,"query")}(0,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,r){return e.setQuery(o(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var r="query",n=o(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:r,index:(0,c.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===n?[]:[{label:"".concat(r,": ").concat(n),value:function(t){return u(0,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:n}]}}});var h=r(7462),l=r(5671),p=r(3144),d=r(7326),m=r(136),g=r(2963),v=r(1120),y=r(7294),b=r(4184),R=r.n(b);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,v.Z)(e);if(t){var i=(0,v.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,v.Z)(e);if(t){var i=(0,v.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter((function(e){return e||""===e})).map((function(r){var n="".concat(t,"-").concat(e);return r?"".concat(n,"-").concat(r):n}));return R()(a)}}("SearchBox"),S=y.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:j("loadingIcon")},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},y.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),y.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},y.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),w=y.createElement("svg",{className:j("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10"},y.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),E=y.createElement("svg",{className:j("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"},y.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),_=function(e){(0,m.Z)(r,e);var t=O(r);function r(e){var i;return(0,l.Z)(this,r),i=t.call(this),(0,n.Z)((0,d.Z)(i),"getQuery",(function(){return i.props.searchAsYouType?i.props.currentRefinement:i.state.query})),(0,n.Z)((0,d.Z)(i),"onInputMount",(function(e){i.input=e,i.props.inputRef&&("function"==typeof i.props.inputRef?i.props.inputRef(e):i.props.inputRef.current=e)})),(0,n.Z)((0,d.Z)(i),"onKeyDown",(function(e){if(i.props.focusShortcuts){var t=i.props.focusShortcuts.map((function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e})),r=e.target||e.srcElement,n=r.tagName;if(!r.isContentEditable&&"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n){var a=e.which||e.keyCode;-1!==t.indexOf(a)&&(i.input.focus(),e.stopPropagation(),e.preventDefault())}}})),(0,n.Z)((0,d.Z)(i),"onSubmit",(function(e){e.preventDefault(),e.stopPropagation(),i.input.blur();var t=i.props,r=t.refine;return t.searchAsYouType||r(i.getQuery()),!1})),(0,n.Z)((0,d.Z)(i),"onChange",(function(e){var t=i.props,r=t.searchAsYouType,n=t.refine,a=t.onChange,s=e.target.value;r?n(s):i.setState({query:s}),a&&a(e)})),(0,n.Z)((0,d.Z)(i),"onReset",(function(e){var t=i.props,r=t.searchAsYouType,n=t.refine,a=t.onReset;n(""),i.input.focus(),r||i.setState({query:""}),a&&a(e)})),i.state={query:e.searchAsYouType?null:e.currentRefinement},i}return(0,p.Z)(r,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,i=t.inputId,a=t.translate,s=t.autoFocus,c=t.loadingIndicator,o=t.submit,u=t.reset,f=this.getQuery(),l=Object.keys(this.props).reduce((function(t,r){return-1===["onsubmit","onreset","onchange"].indexOf(r.toLowerCase())&&0===r.indexOf("on")?P(P({},t),{},(0,n.Z)({},r,e.props[r])):t}),{}),p=this.props.showLoadingIndicator&&this.props.isSearchStalled;return y.createElement("div",{className:R()(j(""),r)},y.createElement("form",{noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:j("form",p&&"form--stalledSearch"),action:"",role:"search"},y.createElement("input",(0,h.Z)({ref:this.onInputMount,id:i,type:"search",placeholder:a("placeholder"),autoFocus:s,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:f,onChange:this.onChange},l,{className:j("input")})),y.createElement("button",{type:"submit",title:a("submitTitle"),className:j("submit")},o),y.createElement("button",{type:"reset",title:a("resetTitle"),className:j("reset"),hidden:!f||p},u),this.props.showLoadingIndicator&&y.createElement("span",{hidden:!p,className:j("loadingIndicator")},c)))}}]),r}(y.Component);(0,n.Z)(_,"propTypes",{currentRefinement:a().string,className:a().string,refine:a().func.isRequired,translate:a().func.isRequired,loadingIndicator:a().node,reset:a().node,submit:a().node,focusShortcuts:a().arrayOf(a().oneOfType([a().string,a().number])),autoFocus:a().bool,searchAsYouType:a().bool,onSubmit:a().func,onReset:a().func,onChange:a().func,isSearchStalled:a().bool,showLoadingIndicator:a().bool,inputRef:a().oneOfType([a().func,a().exact({current:a().object})]),inputId:a().string}),(0,n.Z)(_,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:S,reset:w,submit:E});var C;const A=f((C={resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"},function(e){var t,r=function(t){(0,m.Z)(i,t);var r=F(i);function i(){var e;(0,l.Z)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=r.call.apply(r,[this].concat(a)),(0,n.Z)((0,d.Z)(e),"translate",(function(t){var r=e.props.translations,n=r&&r.hasOwnProperty(t)?r[t]:C[t];if("function"==typeof n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.apply(void 0,a)}return n})),e}return(0,p.Z)(i,[{key:"render",value:function(){return y.createElement(e,(0,h.Z)({translate:this.translate},this.props))}}]),i}(y.Component),i=e.displayName||e.name||"UnknownComponent";return r.displayName="Translatable(".concat(i,")"),r.propTypes={translations:(t=Object.keys(C),function(e,r,n){var i=e[r];if(i)for(var a=0,s=Object.keys(i);a<s.length;a++){var c=s[a];if(-1===t.indexOf(c))return new Error("Unknown `".concat(r,"` key `").concat(c,"`. Check the render method ")+"of `".concat(n,"`."))}})},r})(_),{$$widgetType:"ais.searchBox"})},7326:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},5671:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:()=>n})},3144:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{Z:()=>i})},1120:(e,t,r)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:()=>n})},136:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.Z)(e,t)}},5987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3366);function i(e,t){if(null==e)return{};var r,i,a=(0,n.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},2963:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(1002),i=r(7326);function a(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},1002:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})}}]);
pdf.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
- Version: 6.4.2
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Blue Liquid Designs
7
  Author URI: https://blueliquiddesigns.com.au
@@ -28,7 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  /*
29
  * Set base constants we'll use throughout the plugin
30
  */
31
- define( 'PDF_EXTENDED_VERSION', '6.4.2' ); /* the current plugin version */
32
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
33
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
34
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
+ Version: 6.4.3
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Blue Liquid Designs
7
  Author URI: https://blueliquiddesigns.com.au
28
  /*
29
  * Set base constants we'll use throughout the plugin
30
  */
31
+ define( 'PDF_EXTENDED_VERSION', '6.4.3' ); /* the current plugin version */
32
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
33
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
34
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
src/Helper/Fields/Field_Post_Image.php CHANGED
@@ -65,7 +65,8 @@ class Field_Post_Image extends Helper_Abstract_Fields {
65
  $html = '';
66
  if ( ! empty( $value['url'] ) ) {
67
  $html = '<a href="' . esc_url( $value['url'] ) . '" target="_blank">';
68
- $html .= '<img width="150" src="' . esc_url( $value['url'] ) . '" />';
 
69
  }
70
 
71
  /* Include title / caption / description if needed */
@@ -81,8 +82,6 @@ class Field_Post_Image extends Helper_Abstract_Fields {
81
  $html .= '<div class="gfpdf-post-image-description">' . esc_html( $value['description'] ) . '</div>';
82
  }
83
 
84
- $html .= '</a>';
85
-
86
  return parent::html( $html );
87
  }
88
 
@@ -131,13 +130,13 @@ class Field_Post_Image extends Helper_Abstract_Fields {
131
  $value = explode( '|:|', $this->get_value() );
132
 
133
  $img['url'] = ( isset( $value[0] ) ) ? esc_url( $value[0] ) : '';
134
- $img['path'] = ( isset( $value[0] ) ) ? esc_url( $value[0] ) : '';
135
  $img['title'] = ( isset( $value[1] ) ) ? esc_html( $value[1] ) : '';
136
  $img['caption'] = ( isset( $value[2] ) ) ? esc_html( $value[2] ) : '';
137
  $img['description'] = ( isset( $value[3] ) ) ? esc_html( $value[3] ) : '';
138
 
139
  $path = ( isset( $value[0] ) ) ? $this->misc->convert_url_to_path( $value[0] ) : '';
140
- if ( $path !== $img['url'] ) {
141
  $img['path'] = $path;
142
  }
143
  }
65
  $html = '';
66
  if ( ! empty( $value['url'] ) ) {
67
  $html = '<a href="' . esc_url( $value['url'] ) . '" target="_blank">';
68
+ $html .= '<img width="150" src="' . ( $value['path'] !== $value['url'] ? esc_attr( $value['path'] ) : esc_url( $value['url'] ) ) . '" />';
69
+ $html .= '</a>';
70
  }
71
 
72
  /* Include title / caption / description if needed */
82
  $html .= '<div class="gfpdf-post-image-description">' . esc_html( $value['description'] ) . '</div>';
83
  }
84
 
 
 
85
  return parent::html( $html );
86
  }
87
 
130
  $value = explode( '|:|', $this->get_value() );
131
 
132
  $img['url'] = ( isset( $value[0] ) ) ? esc_url( $value[0] ) : '';
133
+ $img['path'] = $img['url'];
134
  $img['title'] = ( isset( $value[1] ) ) ? esc_html( $value[1] ) : '';
135
  $img['caption'] = ( isset( $value[2] ) ) ? esc_html( $value[2] ) : '';
136
  $img['description'] = ( isset( $value[3] ) ) ? esc_html( $value[3] ) : '';
137
 
138
  $path = ( isset( $value[0] ) ) ? $this->misc->convert_url_to_path( $value[0] ) : '';
139
+ if ( $path !== false && $path !== $img['url'] ) {
140
  $img['path'] = $path;
141
  }
142
  }
src/Helper/Fields/Field_Quiz.php CHANGED
@@ -73,7 +73,7 @@ class Field_Quiz extends Helper_Abstract_Fields {
73
  */
74
  try {
75
  $qp = new Helper_QueryPath();
76
- $value = $qp->html5( $value, 'img' )->addClass( 'gf-quiz-img' )->top( 'html' )->innerHTML5();
77
  } catch ( Exception $e ) {
78
  $value = str_replace( '<img ', '<img class="gf-quiz-img" ', $value );
79
  }
73
  */
74
  try {
75
  $qp = new Helper_QueryPath();
76
+ $value = $qp->html5( $value, 'img' )->addClass( 'gf-quiz-img' )->top( 'html' )->innerHTML();
77
  } catch ( Exception $e ) {
78
  $value = str_replace( '<img ', '<img class="gf-quiz-img" ', $value );
79
  }
src/Helper/Fields/Field_Repeater.php CHANGED
@@ -90,7 +90,7 @@ class Field_Repeater extends Helper_Abstract_Fields {
90
  $products = new Field_Products( new GF_Field(), $this->entry, $this->gform, $this->misc );
91
 
92
  foreach ( $value as $id => $item ) {
93
- $item = $this->add_form_entry_ids( $item );
94
 
95
  /* Loop through the Repeater fields */
96
  foreach ( $field->fields as $sub_field ) {
@@ -178,7 +178,7 @@ class Field_Repeater extends Helper_Abstract_Fields {
178
  ob_start();
179
  }
180
 
181
- $item = $this->add_form_entry_ids( $item );
182
 
183
  /* Loop through the Repeater fields */
184
  foreach ( $field->fields as $sub_field ) {
@@ -218,19 +218,39 @@ class Field_Repeater extends Helper_Abstract_Fields {
218
  }
219
 
220
  /**
221
- * Allow the Repeater fields to act as an entry by padding the entry ID and form ID
222
  *
223
  * @param array $item
224
  *
225
  * @return array
226
  *
227
- * @since 5.1
228
  */
229
- protected function add_form_entry_ids( $item ) {
230
- $item['id'] = $this->entry['id'];
231
- $item['form_id'] = $this->entry['form_id'];
232
-
233
- return $item;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  }
235
 
236
  /**
90
  $products = new Field_Products( new GF_Field(), $this->entry, $this->gform, $this->misc );
91
 
92
  foreach ( $value as $id => $item ) {
93
+ $item = $this->add_entry_meta( $item );
94
 
95
  /* Loop through the Repeater fields */
96
  foreach ( $field->fields as $sub_field ) {
178
  ob_start();
179
  }
180
 
181
+ $item = $this->add_entry_meta( $item );
182
 
183
  /* Loop through the Repeater fields */
184
  foreach ( $field->fields as $sub_field ) {
218
  }
219
 
220
  /**
221
+ * Allow the Repeater fields to act as an entry by padding the needed values for entry.
222
  *
223
  * @param array $item
224
  *
225
  * @return array
226
  *
227
+ * @since 6.4
228
  */
229
+ public function add_entry_meta( $item ) {
230
+ $entry_keys = [
231
+ 'id',
232
+ 'form_id',
233
+ 'post_id',
234
+ 'date_created',
235
+ 'date_updated',
236
+ 'is_starred',
237
+ 'is_read',
238
+ 'ip',
239
+ 'source_url',
240
+ 'user_agent',
241
+ 'currency',
242
+ 'payment_status',
243
+ 'payment_date',
244
+ 'payment_amount',
245
+ 'payment_method',
246
+ 'transaction_id',
247
+ 'is_fulfilled',
248
+ 'created_by',
249
+ 'transaction_type',
250
+ 'status',
251
+ ];
252
+
253
+ return array_replace( array_intersect_key( $this->entry, array_flip( $entry_keys ) ), $item );
254
  }
255
 
256
  /**
src/Helper/Fields/Field_Select.php CHANGED
@@ -87,7 +87,7 @@ class Field_Select extends Helper_Abstract_Fields {
87
  $value = $this->value();
88
 
89
  if ( apply_filters( 'gfpdf_field_is_empty_value_instead_of_label', true, $value, $this->field, $this->entry, $this->form, $this ) ) {
90
- return empty( $value['value'] );
91
  }
92
 
93
  return parent::is_empty();
87
  $value = $this->value();
88
 
89
  if ( apply_filters( 'gfpdf_field_is_empty_value_instead_of_label', true, $value, $this->field, $this->entry, $this->form, $this ) ) {
90
+ return $value['value'] === '';
91
  }
92
 
93
  return parent::is_empty();
src/Helper/Fields/Field_Signature.php CHANGED
@@ -123,7 +123,7 @@ class Field_Signature extends Helper_Abstract_Fields {
123
  $optimised_width = apply_filters( 'gfpdf_signature_width', $optimised_width, $signature_details[0] );
124
 
125
  $optimised_height = $signature_details[1] / 3;
126
- $html = str_replace( 'width="' . esc_attr( $width ) . '"', 'width="' . esc_attr( $optimised_width ) . '"', $html );
127
 
128
  /* override the default width */
129
  $width = $optimised_width;
123
  $optimised_width = apply_filters( 'gfpdf_signature_width', $optimised_width, $signature_details[0] );
124
 
125
  $optimised_height = $signature_details[1] / 3;
126
+ $html = '<img src="' . esc_attr( $signature ) . '" alt="Signature" width="' . esc_attr( $optimised_width ) . '" />';
127
 
128
  /* override the default width */
129
  $width = $optimised_width;
src/Helper/Fields/Field_Slim.php CHANGED
@@ -37,7 +37,7 @@ class Field_Slim extends Helper_Abstract_Fields {
37
  $url = $value['url'];
38
 
39
  $image = $value['path'] ?? $value['url'];
40
- $html = '<a href="' . esc_url( $url ) . '"><img src="' . esc_url( $image ) . '" /></a>';
41
 
42
  return parent::html( $html );
43
  }
37
  $url = $value['url'];
38
 
39
  $image = $value['path'] ?? $value['url'];
40
+ $html = '<a href="' . esc_url( $url ) . '"><img src="' . isset( $value['path'] ) ? esc_attr( $image ) : esc_url( $image ) . '" /></a>';
41
 
42
  return parent::html( $html );
43
  }
src/Helper/Fields/Field_Slim_Post.php CHANGED
@@ -37,7 +37,7 @@ class Field_Slim_Post extends Helper_Abstract_Fields {
37
  $url = $value['url'];
38
 
39
  $image = $value['path'] ?? $value['url'];
40
- $html = '<a href="' . esc_url( $url ) . '"><img src="' . esc_url( $image ) . '" /></a>';
41
 
42
  return parent::html( $html );
43
  }
37
  $url = $value['url'];
38
 
39
  $image = $value['path'] ?? $value['url'];
40
+ $html = '<a href="' . esc_url( $url ) . '"><img src="' . isset( $value['path'] ) ? esc_attr( $image ) : esc_url( $image ) . '" /></a>';
41
 
42
  return parent::html( $html );
43
  }
src/Helper/Fields/Field_V3_Products.php CHANGED
@@ -47,7 +47,7 @@ class Field_V3_Products extends Field_Products {
47
 
48
  /* Pull out the .entry-products table from the HTML using querypath */
49
  $qp = new Helper_QueryPath();
50
- $table = $qp->html5( $html, 'div.inner-container' )->innerHTML5();
51
 
52
  $html = $heading;
53
  $html .= $table;
47
 
48
  /* Pull out the .entry-products table from the HTML using querypath */
49
  $qp = new Helper_QueryPath();
50
+ $table = $qp->html5( $html, 'div.inner-container' )->innerHTML();
51
 
52
  $html = $heading;
53
  $html .= $table;
src/Helper/Helper_Field_Container_Gf25.php CHANGED
@@ -118,7 +118,7 @@ class Helper_Field_Container_Gf25 extends Helper_Field_Container {
118
  $qp = new Helper_QueryPath();
119
  $row_html = $qp->html5( $row_html, '.grid:last-of-type .inner-container' )
120
  ->css( 'width', '100%' )
121
- ->top( 'html' )->innerHTML5();
122
  } catch ( \Exception $e ) {
123
 
124
  }
118
  $qp = new Helper_QueryPath();
119
  $row_html = $qp->html5( $row_html, '.grid:last-of-type .inner-container' )
120
  ->css( 'width', '100%' )
121
+ ->top( 'html' )->innerHTML();
122
  } catch ( \Exception $e ) {
123
 
124
  }
src/Helper/Helper_Misc.php CHANGED
@@ -222,7 +222,7 @@ class Helper_Misc {
222
  }
223
  }
224
 
225
- $html = $wrapper->top( 'html' )->innerHTML5();
226
 
227
  /* Remove empty <p></p> tags */
228
  $html = str_replace( '<p></p>', '', $html );
222
  }
223
  }
224
 
225
+ $html = $wrapper->top( 'html' )->innerHTML();
226
 
227
  /* Remove empty <p></p> tags */
228
  $html = str_replace( '<p></p>', '', $html );
src/Statics/Kses.php CHANGED
@@ -344,6 +344,9 @@ class Kses {
344
 
345
  $protocols[] = 'data';
346
 
 
 
 
347
  return apply_filters( 'gfpdf_wp_kses_allowed_pdf_protocols', $protocols );
348
  }
349
  }
344
 
345
  $protocols[] = 'data';
346
 
347
+ /* allow Windows drive letters */
348
+ $protocols = array_merge( $protocols, range( 'a', 'z' ) );
349
+
350
  return apply_filters( 'gfpdf_wp_kses_allowed_pdf_protocols', $protocols );
351
  }
352
  }
src/View/html/PDF/entry_list_pdf_multiple.php CHANGED
@@ -29,7 +29,7 @@ $parent_link_text = $download ? __( 'Download PDFs', 'gravity-forms-pdf-extended
29
  <?php foreach ( $args['pdfs'] as $pdf ): ?>
30
  <li>
31
  <a href="<?php echo $download ? esc_url( $pdf['download'] ) : esc_url( $pdf['view'] ); ?>"
32
- <?php echo ! $download ? 'target="_blank"' : ''; ?>
33
  data-label="<?php echo esc_attr( $pdf['name'] ); ?>"
34
  >
35
  <?php echo esc_html( $pdf['name'] ); ?>
29
  <?php foreach ( $args['pdfs'] as $pdf ): ?>
30
  <li>
31
  <a href="<?php echo $download ? esc_url( $pdf['download'] ) : esc_url( $pdf['view'] ); ?>"
32
+ <?php echo $download ? '' : 'target="_blank"'; ?>
33
  data-label="<?php echo esc_attr( $pdf['name'] ); ?>"
34
  >
35
  <?php echo esc_html( $pdf['name'] ); ?>
src/View/html/PDF/entry_list_pdf_single.php CHANGED
@@ -21,6 +21,6 @@ $is_download = $args['view'] === 'download';
21
  ?>
22
 
23
  |
24
- <a href="<?php echo $is_download ? esc_url( $args['pdf']['download'] ) : esc_url( $args['pdf']['view'] ); ?>" <?php echo $is_download ? 'target="_blank"' : ''; ?>>
25
  <?php echo $is_download ? esc_html__( 'Download PDF', 'gravity-forms-pdf-extended' ) : esc_html__( 'View PDF', 'gravity-forms-pdf-extended' ); ?>
26
  </a>
21
  ?>
22
 
23
  |
24
+ <a href="<?php echo $is_download ? esc_url( $args['pdf']['download'] ) : esc_url( $args['pdf']['view'] ); ?>" <?php echo $is_download ? '' : 'target="_blank"'; ?>>
25
  <?php echo $is_download ? esc_html__( 'Download PDF', 'gravity-forms-pdf-extended' ) : esc_html__( 'View PDF', 'gravity-forms-pdf-extended' ); ?>
26
  </a>
src/assets/languages/gravity-forms-pdf-extended.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-07-28 22:22+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-08-04 02:52+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'gravitypdf/gravitypdf',
4
- 'pretty_version' => '6.4.2',
5
- 'version' => '6.4.2.0',
6
- 'reference' => 'f5b42629abd9b4521b550c32edaa293598bb4414',
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -20,9 +20,9 @@
20
  'dev_requirement' => false,
21
  ),
22
  'gravitypdf/gravitypdf' => array(
23
- 'pretty_version' => '6.4.2',
24
- 'version' => '6.4.2.0',
25
- 'reference' => 'f5b42629abd9b4521b550c32edaa293598bb4414',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'gravitypdf/gravitypdf',
4
+ 'pretty_version' => '6.4.3',
5
+ 'version' => '6.4.3.0',
6
+ 'reference' => '56df4b6a6516d5c8f3c288fd278dc8f001e40e10',
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'gravitypdf/gravitypdf' => array(
23
+ 'pretty_version' => '6.4.3',
24
+ 'version' => '6.4.3.0',
25
+ 'reference' => '56df4b6a6516d5c8f3c288fd278dc8f001e40e10',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),