1/*! For license information please see main.js.LICENSE.txt */ 2!function(){var e={208:function(e,t,n){"use strict";n.r(t),n.d(t,{clearAllBodyScrollLocks:function(){return m},disableBodyScroll:function(){return f},enableBodyScroll:function(){return v}});var i=!1;if("undefined"!=typeof window){var r={get passive(){i=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],s=!1,d=-1,c=void 0,u=void 0,l=function(e){return a.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},h=function(e){var t=e||window.event;return!!l(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},p=function(){void 0!==u&&(document.body.style.paddingRight=u,u=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)},f=function(e,t){if(e){if(!a.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};a=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a),[n]),o?(e.ontouchstart=function(e){1===e.targetTouches.length&&(d=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-d;!l(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?h(e):e.stopPropagation())}(t,e)},s||(document.addEventListener("touchmove",h,i?{passive:!1}:void 0),s=!0)):function(e){if(void 0===u){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(u=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},m=function(){o?(a.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),s&&(document.removeEventListener("touchmove",h,i?{passive:!1}:void 0),s=!1),d=-1):p(),a=[]},v=function(e){e?(a=a.filter((function(t){return t.targetElement!==e})),o?(e.ontouchstart=null,e.ontouchmove=null,s&&0===a.length&&(document.removeEventListener("touchmove",h,i?{passive:!1}:void 0),s=!1)):a.length||p()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",r="minute",o="hour",a="day",s="week",d="month",c="quarter",u="year",l="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,d),o=n-r<0,a=t.clone().add(i+(o?-1:1),d);return+(-(i+(n-r)/(o?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:s,d:a,D:l,h:o,m:r,s:i,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",b={};b[g]=m;var _="$isDayjsObject",w=function(e){return e instanceof S||!(!e||!e[_])},x=function e(t,n,i){var r;if(!t)return g;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(r=o),n&&(b[o]=n,r=o);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,r=s}return!i&&r&&(g=r),r||!i&&g},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},T=y;T.l=x,T.i=w,T.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,c=!!T.u(t)||t,h=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?i:i.endOf(a)},f=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case u:return c?p(1,0):p(31,11);case d:return c?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(c?y-_:y+(6-_),v);case a:case l:return f(g+"Hours",0);case o:return f(g+"Minutes",1);case r:return f(g+"Seconds",2);case i:return f(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,c=T.p(e),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[l]=h+"Date",s[d]=h+"Month",s[u]=h+"FullYear",s[o]=h+"Hours",s[r]=h+"Minutes",s[i]=h+"Seconds",s[n]=h+"Milliseconds",s)[c],f=c===a?this.$D+(t-this.$W):t;if(c===d||c===u){var m=this.clone().set(l,1);
vendor: 1,652 bytes, line 2
2m.$d[p](f),m.init(),this.$d=m.set(l,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[T.p(e)]()},v.add=function(n,c){var l,h=this;n=Number(n);var p=T.p(c),f=function(e){var t=k(h);return T.w(t.date(t.date()+Math.round(e*n)),h)};if(p===d)return this.set(d,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===a)return f(1);if(p===s)return f(7);var m=(l={},l[r]=e,l[o]=t,l[i]=1e3,l)[p]||1,v=this.$d.getTime()+n*m;return T.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=T.z(this),o=this.$H,a=this.$m,s=this.$M,d=n.weekdays,c=n.months,u=n.meridiem,l=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},p=function(e){return T.s(o%12||12,e,"0")},m=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(f,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return l(n.monthsShort,s,c,3);case"MMMM":return l(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(n.weekdaysMin,t.$W,d,2);case"ddd":return l(n.weekdaysShort,t.$W,d,3);case"dddd":return d[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);
2case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,l,h){var p,f=this,m=T.p(l),v=k(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=function(){return T.m(f,v)};switch(m){case u:p=b()/12;break;case d:p=b();break;case c:p=b()/3;break;case s:p=(g-y)/6048e5;break;case a:p=(g-y)/864e5;break;case o:p=g/t;break;case r:p=g/e;break;case i:p=g/1e3;break;default:p=g}return h?p:T.a(p)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=x(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return T.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),I=S.prototype;return k.prototype=I,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",a],["$M",d],["$y",u],["$D",l]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=b[g],k.Ls=b,k.p={},k}()},607:function(e,t,n){var i;!function(r,o){var a={};function s(e){return function(){var t={method:e},n=Array.prototype.slice.call(arguments);/^get/.test(e)?(a.assert(n.length>0,"Get methods require a callback."),n.unshift(t)):(/^set/.test(e)&&(a.assert(0!==n.length,"Set methods require a value."),t.value=n[0]),n=[t]),this.send.apply(this,n)}}a.DEBUG=!1,a.VERSION="0.0.11",a.CONTEXT="player.js",a.POST_MESSAGE=!!r.postMessage,a.origin=function(e){return"//"===e.substr(0,2)&&(e=r.location.protocol+e),e.split("/").slice(0,3).join("/")},a.addEvent=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},a.log=function(){a.log.history=a.log.history||[],a.log.history.push(arguments),r.console&&a.DEBUG&&r.console.log(Array.prototype.slice.call(arguments))},a.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},a.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},a.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},a.isNone=function(e){return null==e},a.has=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.indexOf=function(e,t){if(null==e)return-1;var n=0,i=e.length;if(Array.prototype.IndexOf&&e.indexOf===Array.prototype.IndexOf)return e.indexOf(t);for(;n<i;n++)if(e[n]===t)return n;return-1},a.assert=function(e,t){if(!e)throw t||"Player.js Assert Failed"},a.Keeper=function(){this.init()},a.Keeper.prototype.init=function(){this.data={}},a.Keeper.prototype.getUUID=function(){return"listener-xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},a.Keeper.prototype.has=function(e,t){if(!this.data.hasOwnProperty(e))return!1;if(a.isNone(t))return!0;for(var n=this.data[e],i=0;i<n.length;i++)if(n[i].id===t)return!0;return!1},a.Keeper.prototype.add=function(e,t,n,i,r){var o={id:e,event:t,cb:n,ctx:i,one:r};this.has(t)?this.data[t].push(o):this.data[t]=[o]},a.Keeper.prototype.execute=function(e,t,n,i){if(!this.has(e,t))return!1;for(var r=[],o=[],s=0;s<this.data[e].length;s++){var d=this.data[e][s];a.isNone(t)||!a.isNone(t)&&d.id===t?(o.push({cb:d.cb,ctx:d.ctx?d.ctx:i,data:n}),!1===d.one&&r.push(d)):r.push(d)}0===r.length?delete this.data[e]:this.data[e]=r;for(var c=0;c<o.length;c++){var u=o[c];u.cb.call(u.ctx,u.data)}},a.Keeper.prototype.on=function(e,t,n,i){this.add(e,t,n,i,!1)},a.Keeper.prototype.one=function(e,t,n,i){this.add(e,t,n,i,!0)},a.Keeper.prototype.off=function(e,t){var n=[];if(!this.data.hasOwnProperty(e))return n;for(var i=[],r=0;r<this.data[e].length;r++){var o=this.data[e][r];a.isNone(t)||o.cb===t?a.isNone(o.id)||n.push(o.id):i.push(o)}return 0===i.length?delete this.data[e]:this.data[e]=i,n},a.Player=function(e,t){if(!(this instanceof a.Player))return new a.Player(e,t);this.init(e,t)},a.EVENTS={READY:"ready",PLAY:"play",PAUSE:"pause",ENDED:"ended",TIMEUPDATE:"timeupdate",PROGRESS:"progress",ERROR:"error"},a.EVENTS.all=function(){var e=[];for(var t in a.EVENTS)a.has(a.EVENTS,t)&&a.isString(a.EVENTS[t])&&e.push(a.EVENTS[t]);return e},a.METHODS={PLAY:"play",PAUSE:"pause",GETPAUSED:"getPaused",MUTE:"mute",UNMUTE:"unmute",GETMUTED:"getMuted",SETVOLUME:"setVolume",GETVOLUME:"getVolume",GETDURATION:"getDuration",SETCURRENTTIME:"setCurrentTime",GETCURRENTTIME:"getCurrentTime",SETLOOP:"setLoop",GETLOOP:"getL
2oop",REMOVEEVENTLISTENER:"removeEventListener",ADDEVENTLISTENER:"addEventListener"},a.METHODS.all=function(){var e=[];for(var t in a.METHODS)a.has(a.METHODS,t)&&a.isString(a.METHODS[t])&&e.push(a.METHODS[t]);return e},a.READIED=[],a.Player.prototype.init=function(e,t){var n=this;a.isString(e)&&(e=o.getElementById(e)),this.elem=e,a.assert("IFRAME"===e.nodeName,'playerjs.Player constructor requires an Iframe, got "'+e.nodeName+'"'),a.assert(e.src,"playerjs.Player constructor requires a Iframe with a 'src' attribute."),this.origin=a.origin(e.src),this.keeper=new a.Keeper,this.isReady=!1,this.queue=[],this.events=a.EVENTS.all(),this.methods=a.METHODS.all(),a.POST_MESSAGE?a.addEvent(r,"message",(function(e){n.receive(e)})):a.log("Post Message is not Available."),a.indexOf(a.READIED,e.src)>-1?n.loaded=!0:this.elem.onload=function(){n.loaded=!0}},a.Player.prototype.send=function(e,t,n){if(e.context=a.CONTEXT,e.version=a.VERSION,t){var i=this.keeper.getUUID();e.listener=i,this.keeper.one(i,e.method,t,n)}return this.isReady||"ready"===e.value?(a.log("Player.send",e,this.origin),!0===this.loaded&&this.elem.contentWindow.postMessage(JSON.stringify(e),this.origin),!0):(a.log("Player.queue",e),this.queue.push(e),!1)},a.Player.prototype.receive=function(e){if(a.log("Player.receive",e),e.origin!==this.origin)return!1;var t;try{t=JSON.parse(e.data)}catch(e){return!1}if(t.context!==a.CONTEXT)return!1;"ready"===t.event&&t.value&&t.value.src===this.elem.src&&this.ready(t),this.keeper.has(t.event,t.listener)&&this.keeper.execute(t.event,t.listener,t.value,this)},a.Player.prototype.ready=function(e){if(!0===this.isReady)return!1;e.value.events&&(this.events=e.value.events),e.value.methods&&(this.methods=e.value.methods),this.isReady=!0,this.loaded=!0;for(var t=0;t<this.queue.length;t++){var n=this.queue[t];a.log("Player.dequeue",n),"ready"===e.event&&this.keeper.execute(n.event,n.listener,!0,this),this.send(n)}this.queue=[]},a.Player.prototype.on=function(e,t,n){var i=this.keeper.getUUID();return"ready"===e?this.keeper.one(i,e,t,n):this.keeper.on(i,e,t,n),this.send({method:"addEventListener",value:e,listener:i}),!0},a.Player.prototype.off=function(e,t){var n=this.keeper.off(e,t);if(a.log("Player.off",n),n.length>0)for(var i in n)return this.send({method:"removeEventListener",value:e,listener:n[i]}),!0;return!1},a.Player.prototype.supports=function(e,t){a.assert(a.indexOf(["method","event"],e)>-1,'evtOrMethod needs to be either "event" or "method" got '+e),t=a.isArray(t)?t:[t];for(var n="event"===e?this.events:this.methods,i=0;i<t.length;i++)if(-1===a.indexOf(n,t[i]))return!1;return!0};for(var d=0,c=a.METHODS.all().length;d<c;d++){var u=a.METHODS.all()[d];a.Player.prototype.hasOwnProperty(u)||(a.Player.prototype[u]=s(u))}a.addEvent(r,"message",(function(e){var t;try{t=JSON.parse(e.data)}catch(e){return!1}if(t.context!==a.CONTEXT)return!1;"ready"===t.event&&t.value&&t.value.src&&a.READIED.push(t.value.src)})),a.Receiver=function(e,t){this.init(e,t)},a.Receiver.prototype.init=function(e,t){var n=this;this.isReady=!1,this.origin=a.origin(o.referrer),this.methods={},this.supported={events:e||a.EVENTS.all(),methods:t||a.METHODS.all()},this.eventListeners={},this.reject=!(r.self!==r.top&&a.POST_MESSAGE),this.reject||a.addEvent(r,"message",(function(e){n.receive(e)}))},a.Receiver.prototype.receive=function(e){if(e.origin!==this.origin)return!1;var t={};if(a.isObject(e.data))t=e.data;else try{t=r.JSON.parse(e.data)}catch(e){a.log("JSON Parse Error",e)}if(a.log("Receiver.receive",e,t),!t.method)return!1;if(t.context!==a.CONTEXT)return!1;if(-1===a.indexOf(a.METHODS.all(),t.method))return this.emit("error",{code:2,msg:'Invalid Method "'+t.method+'"'}),!1;var n=a.isNone(t.listener)?null:t.listener;if("addEventListener"===t.method)this.eventListeners.hasOwnProperty(t.value)?-1===a.indexOf(this.eventListeners[t.value],n)&&this.eventListeners[t.value].push(n):this.eventListeners[t.value]=[n],"ready"===t.value&&this.isReady&&this.ready();else if("removeEventListener"===t.method){if(this.eventListeners.hasOwnProperty(t.value)){var i=a.indexOf(this.eventListeners[t.value],n);i>-1&&this.eventListeners[t.value].splice(i,1),0===this.eventListeners[t.value].length&&delete this.eventListeners[t.value]}}else this.get(t.method,t.value,n)},a.Receiver.prototype.get=function(e,t,n){var i=this;
2if(!this.methods.hasOwnProperty(e))return this.emit("error",{code:3,msg:'Method Not Supported"'+e+'"'}),!1;var r=this.methods[e];"get"===e.substr(0,3)?r.call(this,(function(t){i.send(e,t,n)})):r.call(this,t)},a.Receiver.prototype.on=function(e,t){this.methods[e]=t},a.Receiver.prototype.send=function(e,t,n){if(a.log("Receiver.send",e,t,n),this.reject)return a.log("Receiver.send.reject",e,t,n),!1;var i={context:a.CONTEXT,version:a.VERSION,event:e};a.isNone(t)||(i.value=t),a.isNone(n)||(i.listener=n);var o=JSON.stringify(i);r.parent.postMessage(o,""===this.origin?"*":this.origin)},a.Receiver.prototype.emit=function(e,t){if(!this.eventListeners.hasOwnProperty(e))return!1;a.log("Instance.emit",e,t,this.eventListeners[e]);for(var n=0;n<this.eventListeners[e].length;n++){var i=this.eventListeners[e][n];this.send(e,t,i)}return!0},a.Receiver.prototype.ready=function(){a.log("Receiver.ready"),this.isReady=!0;var e={src:r.location.toString(),events:this.supported.events,methods:this.supported.methods};this.emit("ready",e)||this.send("ready",e)},a.HTML5Adapter=function(e){if(!(this instanceof a.HTML5Adapter))return new a.HTML5Adapter(e);this.init(e)},a.HTML5Adapter.prototype.init=function(e){a.assert(e,"playerjs.HTML5Adapter requires a video element");var t=this.receiver=new a.Receiver;e.addEventListener("playing",(function(){t.emit("play")})),e.addEventListener("pause",(function(){t.emit("pause")})),e.addEventListener("ended",(function(){t.emit("ended")})),e.addEventListener("timeupdate",(function(){t.emit("timeupdate",{seconds:e.currentTime,duration:e.duration})})),e.addEventListener("progress",(function(){t.emit("buffered",{percent:e.buffered.length})})),t.on("play",(function(){e.play()})),t.on("pause",(function(){e.pause()})),t.on("getPaused",(function(t){t(e.paused)})),t.on("getCurrentTime",(function(t){t(e.currentTime)})),t.on("setCurrentTime",(function(t){e.currentTime=t})),t.on("getDuration",(function(t){t(e.duration)})),t.on("getVolume",(function(t){t(100*e.volume)})),t.on("setVolume",(function(t){e.volume=t/100})),t.on("mute",(function(){e.muted=!0})),t.on("unmute",(function(){e.muted=!1})),t.on("getMuted",(function(t){t(e.muted)})),t.on("getLoop",(function(t){t(e.loop)})),t.on("setLoop",(function(t){e.loop=t}))},a.HTML5Adapter.prototype.ready=function(){this.receiver.ready()},a.JWPlayerAdapter=function(e){if(!(this instanceof a.JWPlayerAdapter))return new a.JWPlayerAdapter(e);this.init(e)},a.JWPlayerAdapter.prototype.init=function(e){a.assert(e,"playerjs.JWPlayerAdapter requires a player object");var t=this.receiver=new a.Receiver;this.looped=!1,e.on("pause",(function(){t.emit("pause")})),e.on("play",(function(){t.emit("play")})),e.on("time",(function(e){var n=e.position,i=e.duration;if(!n||!i)return!1;var r={seconds:n,duration:i};t.emit("timeupdate",r)}));var n=this;e.on("complete",(function(){!0===n.looped?e.seek(0):t.emit("ended")})),e.on("error",(function(){t.emit("error")})),t.on("play",(function(){e.play(!0)})),t.on("pause",(function(){e.pause(!0)})),t.on("getPaused",(function(t){t(e.getState().toLowerCase()!=="PLAYING".toLowerCase())})),t.on("getCurrentTime",(function(t){t(e.getPosition())})),t.on("setCurrentTime",(function(t){e.seek(t)})),t.on("getDuration",(function(t){t(e.getDuration())})),t.on("getVolume",(function(t){t(e.getVolume())})),t.on("setVolume",(function(t){e.setVolume(t)})),t.on("mute",(function(){e.setMute(!0)})),t.on("unmute",(function(){e.setMute(!1)})),t.on("getMuted",(function(t){t(!0===e.getMute())})),t.on("getLoop",(function(e){e(this.looped)}),this),t.on("setLoop",(function(e){this.looped=e}),this)},a.JWPlayerAdapter.prototype.ready=function(){this.receiver.ready()},a.MockAdapter=function(){if(!(this instanceof a.MockAdapter))return new a.MockAdapter;this.init()},a.MockAdapter.prototype.init=function(){var e={duration:20,currentTime:0,interval:null,timeupdate:function(){},volume:100,mute:!1,playing:!1,loop:!1,play:function(){e.interval=setInterval((function(){e.currentTime+=.25,e.timeupdate({seconds:e.currentTime,duration:e.duration})}),250),e.playing=!0},pause:function(){clearInterval(e.interval),e.playing=!1}},t=this.receiver=new a.Receiver;t.on("play",(function(){var t=this;
2e.play(),this.emit("play"),e.timeupdate=function(e){t.emit("timeupdate",e)}})),t.on("pause",(function(){e.pause(),this.emit("pause")})),t.on("getPaused",(function(t){t(!e.playing)})),t.on("getCurrentTime",(function(t){t(e.currentTime)})),t.on("setCurrentTime",(function(t){e.currentTime=t})),t.on("getDuration",(function(t){t(e.duration)})),t.on("getVolume",(function(t){t(e.volume)})),t.on("setVolume",(function(t){e.volume=t})),t.on("mute",(function(){e.mute=!0})),t.on("unmute",(function(){e.mute=!1})),t.on("getMuted",(function(t){t(e.mute)})),t.on("getLoop",(function(t){t(e.loop)})),t.on("setLoop",(function(t){e.loop=t}))},a.MockAdapter.prototype.ready=function(){this.receiver.ready()},a.VideoJSAdapter=function(e){if(!(this instanceof a.VideoJSAdapter))return new a.VideoJSAdapter(e);this.init(e)},a.VideoJSAdapter.prototype.init=function(e){a.assert(e,"playerjs.VideoJSReceiver requires a player object");var t=this.receiver=new a.Receiver;e.on("pause",(function(){t.emit("pause")})),e.on("play",(function(){t.emit("play")})),e.on("timeupdate",(function(n){var i=e.currentTime(),r=e.duration();if(!i||!r)return!1;var o={seconds:i,duration:r};t.emit("timeupdate",o)})),e.on("ended",(function(){t.emit("ended")})),e.on("error",(function(){t.emit("error")})),t.on("play",(function(){e.play()})),t.on("pause",(function(){e.pause()})),t.on("getPaused",(function(t){t(e.paused())})),t.on("getCurrentTime",(function(t){t(e.currentTime())})),t.on("setCurrentTime",(function(t){e.currentTime(t)})),t.on("getDuration",(function(t){t(e.duration())})),t.on("getVolume",(function(t){t(100*e.volume())})),t.on("setVolume",(function(t){e.volume(t/100)})),t.on("mute",(function(){e.volume(0)})),t.on("unmute",(function(){e.volume(1)})),t.on("getMuted",(function(t){t(0===e.volume())})),t.on("getLoop",(function(t){t(e.loop())})),t.on("setLoop",(function(t){e.loop(t)}))},a.VideoJSAdapter.prototype.ready=function(){this.receiver.ready()},void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}(window,document)},837:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const i=n(146);
vendor: 58,295 bytes, line 2
2t.ZodIssueCode=i.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class r extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,i.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=r,r.create=e=>new r(e)},627:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const r=i(n(227));t.defaultErrorMap=r.default;let o=r.default;t.setErrorMap=function(e){o=e},t.getErrorMap=function(){return o}},555:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(627),t),r(n(231),t),r(n(892),t),r(n(146),t),r(n(739),t),r(n(837),t)},750:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(n=t.errorUtil||(t.errorUtil={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},n.toString=e=>"string"==typeof e?e:null==e?void 0:e.message},231:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=n(627),o=i(n(227));t.makeIssue=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};let s="";const d=i.filter((e=>!!e)).slice().reverse();for(const e of d)s=e(a,{data:t,defaultError:s}).message;return{...r,path:o,message:r.message||s}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,n){const i=(0,t.makeIssue)({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,r.getErrorMap)(),o.default].filter((e=>!!e))});e.common.issues.push(i)};class a{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,n){const i=[];for(const r of n){if("aborted"===r.status)return t.INVALID;"dirty"===r.status&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const n=[];for(const e of t)n.push({key:await e.key,value:await e.value});return a.mergeObjectSync(e,n)}static mergeObjectSync(e,n){const i={};for(const r of n){const{key:n,value:o}=r;if("aborted"===n.status)return t.INVALID;if("aborted"===o.status)return t.INVALID;"dirty"===n.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===n.value||void 0===o.value&&!r.alwaysSet||(i[n.value]=o.value)}return{status:e.value,value:i}}}t.ParseStatus=a,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},892:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},146:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n=t.util||(t.util={})),(t.objectUtil||(t.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),t.ZodParsedType=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(e)?t.ZodParsedType.array:null===e?t.ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?t.ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?t.ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},614:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const s=o(n(555));t.z=s,a(n(555),t),t.default=s},227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(146),r=n(837);t.default=(e,t)=>{let n;switch(e.code){case r.ZodIssueCode.invalid_type:n=e.received===i.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r.ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,i.util.jsonStringifyReplacer)}`;break;case r.ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${i.util.joinValues(e.keys,", ")}`;break;case r.ZodIssueCode.invalid_union:n="Invalid input";break;case r.ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${i.util.joinValues(e.options)}`;break;case r.ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${i.util.joinValues(e.options)}, received '${e.received}'`;break;case r.ZodIssueCode.invalid_arguments:n="Invalid function arguments";break;case r.ZodIssueCode.invalid_return_type:n="Invalid function return type";break;case r.ZodIssueCode.invalid_date:n="Invalid date";break;case r.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:i.util.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r.ZodIssueCode.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r.ZodIssueCode.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r.ZodIssueCode.custom:n="Invalid input";break;case r.ZodIssueCode.invalid_intersection_types:n="Intersection results could not be merged";break;case r.ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case r.ZodIssueCode.not_finite:n="Number must be finite";break;default:n=t.defaultError,i.util.assertNever(e)}return{message:n}}},739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=t.discriminatedUnion=void 0;const i=n(627),r=n(750),o=n(231),a=n(146),s=n(837);class d{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const c=(e,t)=>{if((0,o.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new s.ZodError(e.common.issues);return this._error=t,this._error}}};function u(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=n?n:t.defaultError},description:r}}class l{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,a.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new o.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,o.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},r=this._parseSync({data:e,path:i.path,parent:i});return c(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await((0,o.isAsync)(i)?i:Promise.resolve(i));return c(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),o=()=>i.addIssue({code:s.ZodIssueCode.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(o(),!1))):!!r||(o(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new X({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Q.create(this,this._def)}nullable(){return ee.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return O.create(this,this._def)}promise(){return J.create(this,this._def)}or(e){return N.create([this,e],this._def)}and(e){return U.create(this,e,this._def)}transform(e){return new X({...u(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new te({...u(this._def),innerType:this,defaultValue:t,typeName:se.ZodDefault})}brand(){return new re({typeName:se.ZodBranded,type:this,...u(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ne({...u(this._def),innerType:this,catchValue:t,typeName:se.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return oe.create(this,e)}readonly(){return ae.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=l,t.Schema=l,t.ZodSchema=l;const h=/^c[^\s-]{8,}$/i,p=/^[a-z][a-z0-9]*$/,f=/^[0-9A-HJKMNP-TV-Z]{26}$/,m=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let y;const g=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,b=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class _ extends l{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==a.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.string,received:t.parsedType}),o.INVALID}const t=new o.ParseStatus;let n;for(const c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),t.dirty());else if("max"===c.kind)e.data.length>c.value&&(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),t.dirty());else if("length"===c.kind){const i=e.data.length>c.value,r=e.data.length<c.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),t.dirty())}else if("email"===c.kind)v.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"email",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("emoji"===c.kind)y||(y=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),y.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"emoji",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("uuid"===c.kind)m.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"uuid",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("cuid"===c.kind)h.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"cuid",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("cuid2"===c.kind)p.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"cuid2",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("ulid"===c.kind)f.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"ulid",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("url"===c.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"url",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"regex",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),t.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_string,validation:{startsWith:c.value},message:c.message}),t.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_string,validation:{endsWith:c.value},message:c.message}),t.dirty()):"datetime"===c.kind?((d=c).precision?d.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${d.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${d.precision}}Z$`):0===d.precision?d.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):d.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_string,validation:"datetime",message:c.message}),t.dirty()):"ip"===c.kind?(i=e.data,("v4"!==(r=c.version)&&r||!g.test(i))&&("v6"!==r&&r||!b.test(i))&&(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{validation:"ip",code:s.ZodIssueCode.invalid_string,message:c.message}),t.dirty())):a.util.assertNever(c);var i,r,d;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.ZodIssueCode.invalid_string,...r.errorUtil.errToObj(n)})}_addCheck(e){return new _({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...r.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...r.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...r.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...r.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...r.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...r.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...r.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...r.errorUtil.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...r.errorUtil.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...r.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...r.errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...r.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...r.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...r.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...r.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...r.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,r.errorUtil.errToObj(e))}trim(){return new _({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function w(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}t.ZodString=_,_.create=e=>{var t;return new _({checks:[],typeName:se.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...u(e)})};class x extends l{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==a.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.number,received:t.parsedType}),o.INVALID}let t;const n=new o.ParseStatus;for(const i of this._def.checks)"int"===i.kind?a.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==w(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.not_finite,message:i.message}),n.dirty()):a.util.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,r.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,r.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,r.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,r.errorUtil.toString(t))}setLimit(e,t,n,i){return new x({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:r.errorUtil.toString(i)}]})}_addCheck(e){return new x({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:r.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:r.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:r.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:r.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:r.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:r.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:r.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:r.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:r.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&a.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=x,x.create=e=>new x({checks:[],typeName:se.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...u(e)});class k extends l{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==a.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.bigint,received:t.parsedType}),o.INVALID}let t;const n=new o.ParseStatus;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):a.util.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,r.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,r.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,r.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,r.errorUtil.toString(t))}setLimit(e,t,n,i){return new k({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:r.errorUtil.toString(i)}]})}_addCheck(e){return new k({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:r.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:r.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:r.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:r.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:r.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodBigInt=k,k.create=e=>{var t;return new k({checks:[],typeName:se.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...u(e)})};class T extends l{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==a.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.boolean,received:t.parsedType}),o.INVALID}return(0,o.OK)(e.data)}}t.ZodBoolean=T,T.create=e=>new T({typeName:se.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...u(e)});class S extends l{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==a.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.date,received:t.parsedType}),o.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_date}),o.INVALID}const t=new o.ParseStatus;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):a.util.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:r.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:r.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=S,S.create=e=>new S({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:se.ZodDate,...u(e)});class I extends l{_parse(e){if(this._getType(e)!==a.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.symbol,received:t.parsedType}),o.INVALID}return(0,o.OK)(e.data)}}t.ZodSymbol=I,I.create=e=>new I({typeName:se.ZodSymbol,...u(e)});class E extends l{_parse(e){if(this._getType(e)!==a.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.undefined,received:t.parsedType}),o.INVALID}return(0,o.OK)(e.data)}}t.ZodUndefined=E,E.create=e=>new E({typeName:se.ZodUndefined,...u(e)});class C extends l{_parse(e){if(this._getType(e)!==a.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.null,received:t.parsedType}),o.INVALID}return(0,o.OK)(e.data)}}t.ZodNull=C,C.create=e=>new C({typeName:se.ZodNull,...u(e)});class A extends l{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,o.OK)(e.data)}}t.ZodAny=A,A.create=e=>new A({typeName:se.ZodAny,...u(e)});class Z extends l{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,o.OK)(e.data)}}t.ZodUnknown=Z,Z.create=e=>new Z({typeName:se.ZodUnknown,...u(e)});class L extends l{_parse(e){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.never,received:t.parsedType}),o.INVALID}}t.ZodNever=L,L.create=e=>new L({typeName:se.ZodNever,...u(e)});class P extends l{_parse(e){if(this._getType(e)!==a.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.void,received:t.parsedType}),o.INVALID}return(0,o.OK)(e.data)}}t.ZodVoid=P,P.create=e=>new P({typeName:se.ZodVoid,...u(e)});class O extends l{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==a.ZodParsedType.array)return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.array,received:t.parsedType}),o.INVALID;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&((0,o.addIssueToContext)(t,{code:e?s.ZodIssueCode.too_big:s.ZodIssueCode.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&((0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&((0,o.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new d(t,e,t.path,n))))).then((e=>o.ParseStatus.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new d(t,e,t.path,n))));return o.ParseStatus.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new O({...this._def,minLength:{value:e,message:r.errorUtil.toString(t)}})}max(e,t){return new O({...this._def,maxLength:{value:e,message:r.errorUtil.toString(t)}})}length(e,t){return new O({...this._def,exactLength:{value:e,message:r.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function D(e){if(e instanceof M){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Q.create(D(i))}return new M({...e._def,shape:()=>t})}return e instanceof O?new O({...e._def,type:D(e.element)}):e instanceof Q?Q.create(D(e.unwrap())):e instanceof ee?ee.create(D(e.unwrap())):e instanceof V?V.create(e.items.map((e=>D(e)))):e}t.ZodArray=O,O.create=(e,t)=>new O({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...u(t)});class M extends l{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=a.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==a.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:t.parsedType}),o.INVALID}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),c=[];if(!(this._def.catchall instanceof L&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||c.push(e);const u=[];for(const e of r){const t=i[e],r=n.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new d(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof L){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of c)u.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)c.length>0&&((0,o.addIssueToContext)(n,{code:s.ZodIssueCode.unrecognized_keys,keys:c}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of c){const i=n.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new d(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of u){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>o.ParseStatus.mergeObjectSync(t,e))):o.ParseStatus.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return r.errorUtil.errToObj,new M({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,o,a,s;const d=null!==(a=null===(o=(i=this._def).errorMap)||void 0===o?void 0:o.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=r.errorUtil.errToObj(e).message)&&void 0!==s?s:d}:{message:d}}}:{}})}strip(){return new M({...this._def,unknownKeys:"strip"})}passthrough(){return new M({...this._def,unknownKeys:"passthrough"})}extend(e){return new M({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new M({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:se.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new M({...this._def,catchall:e})}pick(e){const t={};return a.util.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new M({...this._def,shape:()=>t})}omit(e){const t={};return a.util.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new M({...this._def,shape:()=>t})}deepPartial(){return D(this)}partial(e){const t={};return a.util.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new M({...this._def,shape:()=>t})}required(e){const t={};return a.util.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Q;)e=e._def.innerType;t[n]=e}})),new M({...this._def,shape:()=>t})}keyof(){return K(a.util.objectKeys(this.shape))}}t.ZodObject=M,M.create=(e,t)=>new M({shape:()=>e,unknownKeys:"strip",catchall:L.create(),typeName:se.ZodObject,...u(t)}),M.strictCreate=(e,t)=>new M({shape:()=>e,unknownKeys:"strict",catchall:L.create(),typeName:se.ZodObject,...u(t)}),M.lazycreate=(e,t)=>new M({shape:e,unknownKeys:"strip",catchall:L.create(),typeName:se.ZodObject,...u(t)});class N extends l{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new s.ZodError(e.ctx.common.issues)));return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:n}),o.INVALID}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new s.ZodError(e)));return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:r}),o.INVALID}}get options(){return this._def.options}}t.ZodUnion=N,N.create=(e,t)=>new N({options:e,typeName:se.ZodUnion,...u(t)});const j=e=>e instanceof H?j(e.schema):e instanceof X?j(e.innerType()):e instanceof Y?[e.value]:e instanceof G?e.options:e instanceof W?Object.keys(e.enum):e instanceof te?j(e._def.innerType):e instanceof E?[void 0]:e instanceof C?[null]:null;class R extends l{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.object)return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:t.parsedType}),o.INVALID;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):((0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),o.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=j(n.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new R({typeName:se.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...u(n)})}}function q(e,t){const n=(0,a.getParsedType)(e),i=(0,a.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(n===a.ZodParsedType.object&&i===a.ZodParsedType.object){const n=a.util.objectKeys(t),i=a.util.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=q(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===a.ZodParsedType.array&&i===a.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=q(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===a.ZodParsedType.date&&i===a.ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}t.ZodDiscriminatedUnion=R;class U extends l{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if((0,o.isAborted)(e)||(0,o.isAborted)(i))return o.INVALID;const r=q(e.value,i.value);return r.valid?(((0,o.isDirty)(e)||(0,o.isDirty)(i))&&t.dirty(),{status:t.value,value:r.data}):((0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_intersection_types}),o.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}t.ZodIntersection=U,U.create=(e,t,n)=>new U({left:e,right:t,typeName:se.ZodIntersection,...u(n)});class V extends l{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.array)return(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.array,received:n.parsedType}),o.INVALID;if(n.data.length<this._def.items.length)return(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.INVALID;!this._def.rest&&n.data.length>this._def.items.length&&((0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new d(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>o.ParseStatus.mergeArray(t,e))):o.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new V({...this._def,rest:e})}}t.ZodTuple=V,V.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new V({items:e,typeName:se.ZodTuple,rest:null,...u(t)})};class $ extends l{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.object)return(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:n.parsedType}),o.INVALID;const i=[],r=this._def.keyType,c=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new d(n,e,n.path,e)),value:c._parse(new d(n,n.data[e],n.path,e))});return n.common.async?o.ParseStatus.mergeObjectAsync(t,i):o.ParseStatus.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new $(t instanceof l?{keyType:e,valueType:t,typeName:se.ZodRecord,...u(n)}:{keyType:_.create(),valueType:e,typeName:se.ZodRecord,...u(t)})}}t.ZodRecord=$;class B extends l{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.map)return(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.map,received:n.parsedType}),o.INVALID;const i=this._def.keyType,r=this._def.valueType,c=[...n.data.entries()].map((([e,t],o)=>({key:i._parse(new d(n,e,n.path,[o,"key"])),value:r._parse(new d(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of c){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return o.INVALID;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of c){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return o.INVALID;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}t.ZodMap=B,B.create=(e,t,n)=>new B({valueType:t,keyType:e,typeName:se.ZodMap,...u(n)});class z extends l{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.set)return(0,o.addIssueToContext)(n,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.set,received:n.parsedType}),o.INVALID;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&((0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&((0,o.addIssueToContext)(n,{code:s.ZodIssueCode.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function c(e){const n=new Set;for(const i of e){if("aborted"===i.status)return o.INVALID;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const u=[...n.data.values()].map(((e,t)=>r._parse(new d(n,e,n.path,t))));return n.common.async?Promise.all(u).then((e=>c(e))):c(u)}min(e,t){return new z({...this._def,minSize:{value:e,message:r.errorUtil.toString(t)}})}max(e,t){return new z({...this._def,maxSize:{value:e,message:r.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=z,z.create=(e,t)=>new z({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...u(t)});class F extends l{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.function)return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.function,received:t.parsedType}),o.INVALID;function n(e,n){return(0,o.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:n}})}function r(e,n){return(0,o.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:n}})}const d={errorMap:t.common.contextualErrorMap},c=t.data;if(this._def.returns instanceof J){const e=this;return(0,o.OK)((async function(...t){const i=new s.ZodError([]),o=await e._def.args.parseAsync(t,d).catch((e=>{throw i.addIssue(n(t,e)),i})),a=await Reflect.apply(c,this,o);return await e._def.returns._def.type.parseAsync(a,d).catch((e=>{throw i.addIssue(r(a,e)),i}))}))}{const e=this;return(0,o.OK)((function(...t){const i=e._def.args.safeParse(t,d);if(!i.success)throw new s.ZodError([n(t,i.error)]);const o=Reflect.apply(c,this,i.data),a=e._def.returns.safeParse(o,d);if(!a.success)throw new s.ZodError([r(o,a.error)]);return a.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new F({...this._def,args:V.create(e).rest(Z.create())})}returns(e){return new F({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new F({args:e||V.create([]).rest(Z.create()),returns:t||Z.create(),typeName:se.ZodFunction,...u(n)})}}t.ZodFunction=F;class H extends l{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=H,H.create=(e,t)=>new H({getter:e,typeName:se.ZodLazy,...u(t)});class Y extends l{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),o.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function K(e,t){return new G({values:e,typeName:se.ZodEnum,...u(t)})}t.ZodLiteral=Y,Y.create=(e,t)=>new Y({value:e,typeName:se.ZodLiteral,...u(t)});class G extends l{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,o.addIssueToContext)(t,{expected:a.util.joinValues(n),received:t.parsedType,code:s.ZodIssueCode.invalid_type}),o.INVALID}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,o.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_enum_value,options:n}),o.INVALID}return(0,o.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return G.create(e)}exclude(e){return G.create(this.options.filter((t=>!e.includes(t))))}}t.ZodEnum=G,G.create=K;class W extends l{_parse(e){const t=a.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==a.ZodParsedType.string&&n.parsedType!==a.ZodParsedType.number){const e=a.util.objectValues(t);return(0,o.addIssueToContext)(n,{expected:a.util.joinValues(e),received:n.parsedType,code:s.ZodIssueCode.invalid_type}),o.INVALID}if(-1===t.indexOf(e.data)){const e=a.util.objectValues(t);return(0,o.addIssueToContext)(n,{received:n.data,code:s.ZodIssueCode.invalid_enum_value,options:e}),o.INVALID}return(0,o.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=W,W.create=(e,t)=>new W({values:e,typeName:se.ZodNativeEnum,...u(t)});class J extends l{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.promise&&!1===t.common.async)return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.promise,received:t.parsedType}),o.INVALID;const n=t.parsedType===a.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,o.OK)(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}t.ZodPromise=J,J.create=(e,t)=>new J({type:e,typeName:se.ZodPromise,...u(t)});class X extends l{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{(0,o.addIssueToContext)(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?o.INVALID:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?o.INVALID:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,o.isValid)(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>(0,o.isValid)(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}a.util.assertNever(i)}}t.ZodEffects=X,t.ZodTransformer=X,X.create=(e,t,n)=>new X({schema:e,typeName:se.ZodEffects,effect:t,...u(n)}),X.createWithPreprocess=(e,t,n)=>new X({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...u(n)});class Q extends l{_parse(e){return this._getType(e)===a.ZodParsedType.undefined?(0,o.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=Q,Q.create=(e,t)=>new Q({innerType:e,typeName:se.ZodOptional,...u(t)});class ee extends l{_parse(e){return this._getType(e)===a.ZodParsedType.null?(0,o.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=ee,ee.create=(e,t)=>new ee({innerType:e,typeName:se.ZodNullable,...u(t)});class te extends l{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===a.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=te,te.create=(e,t)=>new te({innerType:e,typeName:se.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...u(t)});class ne extends l{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,o.isAsync)(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.ZodError(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new s.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ne,ne.create=(e,t)=>new ne({innerType:e,typeName:se.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...u(t)});class ie extends l{_parse(e){if(this._getType(e)!==a.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,o.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:a.ZodParsedType.nan,received:t.parsedType}),o.INVALID}
2return{status:"valid",value:e.data}}}t.ZodNaN=ie,ie.create=e=>new ie({typeName:se.ZodNaN,...u(e)}),t.BRAND=Symbol("zod_brand");class re extends l{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=re;class oe extends l{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?o.INVALID:"dirty"===e.status?(t.dirty(),(0,o.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?o.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new oe({in:e,out:t,typeName:se.ZodPipeline})}}t.ZodPipeline=oe;class ae extends l{_parse(e){const t=this._def.innerType._parse(e);return(0,o.isValid)(t)&&(t.value=Object.freeze(t.value)),t}}var se;t.ZodReadonly=ae,ae.create=(e,t)=>new ae({innerType:e,typeName:se.ZodReadonly,...u(t)}),t.custom=(e,t={},n)=>e?A.create().superRefine(((i,r)=>{var o,a;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,d="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...d,fatal:s})}})):A.create(),t.late={object:M.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(se=t.ZodFirstPartyTypeKind||(t.ZodFirstPartyTypeKind={})),t.instanceof=(e,n={message:`Input not instance of ${e.name}`})=>(0,t.custom)((t=>t instanceof e),n);const de=_.create;t.string=de;const ce=x.create;t.number=ce;const ue=ie.create;t.nan=ue;const le=k.create;t.bigint=le;const he=T.create;t.boolean=he;const pe=S.create;t.date=pe;const fe=I.create;t.symbol=fe;const me=E.create;t.undefined=me;const ve=C.create;t.null=ve;const ye=A.create;t.any=ye;const ge=Z.create;t.unknown=ge;const be=L.create;t.never=be;const _e=P.create;t.void=_e;const we=O.create;t.array=we;const xe=M.create;t.object=xe;const ke=M.strictCreate;t.strictObject=ke;const Te=N.create;t.union=Te;const Se=R.create;t.discriminatedUnion=Se;const Ie=U.create;t.intersection=Ie;const Ee=V.create;t.tuple=Ee;const Ce=$.create;t.record=Ce;const Ae=B.create;t.map=Ae;const Ze=z.create;t.set=Ze;const Le=F.create;t.function=Le;const Pe=H.create;t.lazy=Pe;const Oe=Y.create;t.literal=Oe;const De=G.create;t.enum=De;const Me=W.create;t.nativeEnum=Me;const Ne=J.create;t.promise=Ne;const je=X.create;t.effect=je,t.transformer=je;const Re=Q.create;t.optional=Re;const qe=ee.create;t.nullable=qe;const Ue=X.createWithPreprocess;t.preprocess=Ue;const Ve=oe.create;t.pipeline=Ve,t.ostring=()=>de().optional(),t.onumber=()=>ce().optional(),t.oboolean=()=>he().optional(),t.coerce={string:e=>_.create({...e,coerce:!0}),number:e=>x.create({...e,coerce:!0}),boolean:e=>T.create({...e,coerce:!0}),bigint:e=>k.create({...e,coerce:!0}),date:e=>S.create({...e,coerce:!0})},t.NEVER=o.INVALID},24:function(e,t,n){"use strict";var i=n(208),r=n(614),o=class{sm;md;lg;constructor(){this.sm=768,this.md=1024,this.lg=1200}isMobile(){return window.innerWidth<=this.sm-1}isTabletPortrait(){const e=window.innerWidth;return e>=this.sm&&e<=991}isTabletLandscape(){const e=window.innerWidth;return e>=992&&e<=this.md}isDesktop(){return window.innerWidth>=this.lg}atLeastTabletPortrait(){return window.innerWidth>=this.sm}smallerThanTabletPortrait(){return window.innerWidth<=this.sm}atLeastTabletLandscape(){return window.innerWidth>=992}smallerThanTabletLandscape(){return window.innerWidth<=992}smallerThanCustomSize(e){return window.innerWidth<=e}atLeastCustomSize(e){return window.innerWidth>=e}isRealDevice(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&void 0!==window.orientation}},a=e=>{let t=Array.from(e.querySelectorAll("\n\t\tiframe,\n\t\tobject,\n\t\tembed,\n\t\ta[href],\n\t\tarea[href],\n\t\tbutton,\n\t\tinput,\n\t\tselect,\n\t\ttextarea,\n\t\tdetails,\
2n\t\tsummary:not(:disabled),\n\t\t*[contenteditable]\n\t\t"));return t=t.filter((e=>{const t="true"===e.getAttribute("aria-hidden");return"none"!==window.getComputedStyle(e,null).display&&!e.hasAttribute("disabled")&&!t})),t=t.filter((e=>{const t=e.closest("[aria-hidden]")?.getAttribute("aria-hidden");return!("true"===t)})),t.filter((e=>"-1"!==e.getAttribute("tabindex")))},s=e=>a(e)[0],d=class{trap(e,t){const n=a(e),i=document.activeElement,r=n.length,o=n.findIndex((e=>e===i));if(t.shiftKey){if(0===o){const e=n[r-1];e?.focus(),t.preventDefault()}}else o===r-1&&n.length>0&&(s(e).focus(),t.preventDefault())}},c={trigger:null,target:null,disableScroll:!1,disableTrap:!1,customScrollableElement:null,focusInputClass:null,focusInput:!1,defaultButtonText:null,closeButtonText:null,isChildToggle:!1};t.Id=class{form;options;constructor(e,t){this.form=e,this.options=t,this.addEventListeners()}addEventListeners(){this.form?.addEventListener("submit",this.handleSubmit.bind(this))}handleSubmit(e){e.preventDefault(),this.removePossibleErrorNotices(),this.removePossibleErrorValidationSummary();const t=r.z.object({s:r.z.string().optional(),post_date_min:r.z.string().optional().nullable().refine((()=>!this.options.minInput?.validity.badInput),this.options.errorMessages.minInput||"Invalid date entered"),post_date_max:r.z.string().optional().nullable().refine((()=>!this.options.maxInput?.validity.badInput),this.options.errorMessages.maxInput||"Invalid date entered")});try{t.parse(new FormData(this.form)),this.options.submitFormWhenValid?this.form.submit():document.dispatchEvent(new Event("DateRangeValidator:valid"))}catch(e){this.createErrorNoticesPerField(e),this.createValidationSummary(e),document.dispatchEvent(new Event("DateRangeValidator:invalid"))}}createValidationSummary(e){if(!(e instanceof r.ZodError))return;const t=e.issues;if(t.length>0){const e=document.createElement("div");e.setAttribute("data-component","drv-validation-summary"),e.className=this.options.styles.validationSummary||"";const n=document.createElement("p");n.className=this.options.styles.validationSummaryTitle||"",n.textContent=this.options.errorMessages.summary||"There is a problem with your request. Check the notifications below.",n.setAttribute("data-component","drv-validation-summary-title"),n.setAttribute("role","alert"),n.setAttribute("tabindex","-1");const i=document.createElement("ol");i.setAttribute("data-component","drv-validation-summary-list"),i.className=this.options.styles.validationSummaryList||"",t.forEach((e=>{const t=document.createElement("li");t.className=this.options.styles.validationSummaryListItem||"";const n=document.createElement("a");n.className=this.options.styles.validationSummaryLink||"";const r=this.form.querySelector(`[for="${e.path[0]}"]`)?.textContent;n.href=`#${e.path[0]}`,n.textContent=`${r}: ${e.message}`,t.appendChild(n),i.appendChild(t)})),e.appendChild(n),e.appendChild(i),this.form.insertAdjacentElement("beforebegin",e),n.focus()}}createErrorNoticesPerField(e){e instanceof r.ZodError&&e.issues.forEach((e=>{const t=document.createElement("div"),n=`${e.path}-error`;t.className=this.options.styles.inputErrorMessage||"",t.setAttribute("data-component","drv-input-error"),t.id=n;const i=document.createElement("span");i.className=`icon-inline ${this.options.styles.inputErrorIcon||""}`,i.setAttribute("aria-hidden","true"),i.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1Z"></path><path d="M13.2 17a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm0 2c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z"></path></svg>';const r=document.createElement("span");r.className=this.options.styles.inputErrorMessageLabel||"",r.textContent=e.message,t.appendChild(i),t.appendChild(r);const o=this.form.querySelector(`[name="${e.path}"]`);o?.insertAdjacentElement("afterend",t),o?.setAttribute("aria-describedby",n)}))}removePossibleErrorNotices(){const e=this.form.querySelectorAll('[data-component="drv-input-error"]');e&&e.forEach((e=>e.remove()))}removePossibleErrorValidationSummary(){const e=this.form.parentElement?.querySelector('[data-component="drv-validation-summary"]');e&&e.remove()}},t.Gd=class{element;config;options;_moduleName;_triggers;_targets;_tabFocus;_responsiveHelper;_buttonTextTarget;constructor(e,t){this.element=e,this.options=t,this._moduleName=this.options?.moduleName?this.options.moduleName:"",this.config=this.element.dataset.config?{...c,...JSON.parse(this.element.dataset.config)}:{},this._triggers=[],this._targets=[],this._tabFocus=new d,this._responsiveHelper=new o,this._buttonTextTarget=".btn__text, [data-button-text]",void 0!==this.config.trigger?void 0!==this.config.target?(this.reset(),this.addEventListeners()):console.warn("MrToggle: Target property not found in data-config"):console.warn("MrToggle: Trigger property not found in data-config")}reset(){0!==this._moduleName?.length&&Array.from(document.querySelectorAll(`[data-module="${this._moduleName}
2"]`)).forEach((e=>{const t=e.dataset.config?{...c,...JSON.parse(e.dataset.config)}:null;if(t){if(t.trigger){const e=document.querySelector(t.trigger);e&&this._triggers.push(e)}if(t.target){const e=document.querySelector(t.target);e&&this._targets.push(e)}}}))}closeAllToggles(){this.close()}addEventListeners(){this.config.trigger&&(document.querySelectorAll(this.config.trigger).forEach((e=>{e.addEventListener("click",this.handleClick.bind(this))})),this.element.addEventListener("keydown",this.handleKeyboard.bind(this)),this.options?.useHover&&!this._responsiveHelper.isRealDevice()&&(this.element.addEventListener("mouseenter",this.open.bind(this)),this.element.addEventListener("mouseleave",this.handleMouseLeave.bind(this))))}handleClick(){this.config.trigger&&("false"===document.querySelector(this.config.trigger)?.getAttribute("aria-expanded")?this.open():this.close())}open(){if(!this.config.trigger||!this.config.target)return;this.config.isChildToggle||this.resetAllToggles();const e=document.querySelector(this.config.trigger),t=document.querySelector(this.config.target);if(!e||!t)return;e.setAttribute("aria-expanded","true");const n=e.getAttribute("data-expanded");if(n&&e.setAttribute("aria-label",n),t.setAttribute("aria-hidden","false"),this.config.disableScroll){let e=null;this.config.customScrollableElement&&(e=document.querySelector(this.config.customScrollableElement)),e?i.disableBodyScroll(e):i.disableBodyScroll(t)}if(this.config.closeButtonText&&this.config.defaultButtonText){const t=e.querySelector(this._buttonTextTarget);t instanceof HTMLElement&&(t.textContent=this.config.closeButtonText)}this.config.focusInput&&setTimeout((()=>{let e=t.querySelector("input");this.config.focusInputClass&&(e=t.querySelector(this.config.focusInputClass)),e?.focus()}),100),this.element.dispatchEvent(new Event("openMrToggle"))}close(){if(!this.config.trigger||!this.config.target)return;const e=document.querySelector(this.config.trigger),t=document.querySelector(this.config.target);if(!e||!t)return;e.setAttribute("aria-expanded","false");const n=e.getAttribute("data-collapsed");if(n&&e.setAttribute("aria-label",n),t.setAttribute("aria-hidden","true"),this.config.closeButtonText&&this.config.defaultButtonText){const t=e.querySelector(this._buttonTextTarget);t instanceof HTMLElement&&(t.textContent=this.config.defaultButtonText)}this.config.disableScroll&&i.clearAllBodyScrollLocks(),e.focus(),this.element.dispatchEvent(new Event("closeMrToggle"))}handleMouseLeave(){if(this.close(),!this.config.trigger)return;const e=document.querySelector(this.config.trigger);e?.blur()}handleKeyboard(e){"Escape"===e.key&&this.close(),this.config.disableTrap||"Tab"===e.key&&this.config.trigger&&"true"===document.querySelector(this.config.trigger)?.getAttribute("aria-expanded")&&this._tabFocus.trap(this.element,e)}resetAllToggles(){this._triggers.forEach((e=>{e.setAttribute("aria-expanded","false");const t=e.getAttribute("data-collapsed");t&&e.setAttribute("aria-label",t);const n=e.closest(`[data-module="${this._moduleName}"]`),r=n?.dataset.config?JSON.parse(n.dataset.config):null;if(r?.closeButtonText&&r?.defaultButtonText){const t=e.querySelector(this._buttonTextTarget);t instanceof HTMLElement&&(t.textContent=r.defaultButtonText?r.defaultButtonText:"")}r.disableScroll&&i.clearAllBodyScrollLocks()})),this._targets.forEach((e=>{e.setAttribute("aria-hidden","true")}))}},t.Ti=o,t.cB=d,t.$4=s}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";const e=function(e){document.querySelectorAll("[data-module]").forEach((function(t){if(void 0!==t){var n=t.dataset.module,i=t.getAttribute("data-initialized");if(n&&"true"!==i){var r=e[n];r&&(new r(t),t.setAttribute("data-initialized","true"))}}}))};window.__tcfapi=window.__tcfapi||void 0;const t=function(){function e(){}return e.prototype.trackFormConfirmationFromUrl=function(){var e=this.getSubmissionDataFromUrl();e&&window.trackFormConfirmationGTM(e)},e.prototype.getSubmissionDataFromUrl=function(){var e=new URLSearchParams(window.location.search).get("fdmg-gf-data");if(!e)return null;var t=null;try{var n=window.atob(e);t=JSON.parse(n)}catch(e){return null}return"object"!=typeof t?null:t},e.prototype.trackFormConfirmation=function(e){"newsletter"===e.form_type&&(void 0!==window.__tcfapi?this.initSourcepoint("newsletter",e):this.trackNewsletterSubscription(e)),"download"===e.form_type&&(void 0!==window.__tcfapi?this.initSourcepoint("download",e):this.trackDownload(e))},e.prototype.initSourcepoint=function(e,t){var n=this;window.__tcfapi("addEventListener",2,(function(i){"tcloaded"!==i.eventStatus&&"useractioncomplete"!==i.eventStatus||("newsletter"===e&&n.trackNewsletterSubscription(t),"download"===e&&n.trackDownload(t))}))},e.prototype.trackNewsletterSubscription=function(e){var t,n,i;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_submit",event_info:{category:"forms",action:"subscribe",label:"newsletter",value:null},event_context:{component:"form",sub_component:"newsletter",index:null,section_title:null!==(t=e.form_title)&&void 0!==t?t:null,click_text:null!==(n=e.click_text)&&void 0!==n?n:null,page_url:null!==(i=window.location.href)&&void 0!==i?i:null,referrer:document.referrer}})},e.prototype.trackDownload=function(e){var t,n,i,r;window.dataLayer=window.dataLayer||[];var o=e.post_categories?e.post_categories.join(", "):"";window.dataLayer.push({event:"article_download",event_info:{category:"downloads",action:"article_download",label:e.post_id,value:null},event_context:{component:"report",sub_component:"main article",section_title:e.form_title}
2,ecommerce:{article:[{article_id:e.post_id,article_name:e.post_title,article_type:null,article_category:null!=o?o:null,author_name:null!==(t=e.post_author)&&void 0!==t?t:null,article_publication_date:null!==(n=e.post_publication_date)&&void 0!==n?n:null,article_publication_time:null!==(i=e.post_publication_time)&&void 0!==i?i:null,article_version:null!==(r=e.post_version)&&void 0!==r?r:null,article_index:null}]}})},e}(),i=function(){function e(e){this.element=e,this.radios=Array.from(this.element.querySelectorAll('input[type="radio"]')),this.html=document.querySelector("html"),this.isDarkPreference=window.matchMedia("(prefers-color-scheme: dark)"),this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){var e,t=this;null===(e=this.radios)||void 0===e||e.forEach((function(e){e.addEventListener("change",(function(){t.setActiveTheme(e.value)}))})),this.isDarkPreference.addEventListener("change",(function(e){e.matches?t.setActiveTheme("dark"):t.setActiveTheme("light")}))},e.prototype.setActiveTheme=function(e){var t,n;null===(t=this.radios)||void 0===t||t.forEach((function(e){e.checked=!1})),null===(n=this.html)||void 0===n||n.setAttribute("data-mode",e),document.querySelectorAll('[value="'.concat(e,'"]')).forEach((function(e){e.checked=!0})),localStorage.setItem("theme-style",e)},e}(),r=function(){function e(e){this.element=e,this.config=this.element.dataset.config?JSON.parse(this.element.dataset.config):{},this.mainClass=this.config.mainClass?this.config.mainClass:"primary-nav",this.classNames={parent:"".concat(this.mainClass,"__item--parent"),toggle:"".concat(this.mainClass,"__toggle"),submenu:"".concat(this.mainClass,"-sub")},this.parentItems=Array.from(e.querySelectorAll(".".concat(this.classNames.parent))),this.toggles=Array.from(e.querySelectorAll(".".concat(this.classNames.toggle))),this.header=e.closest("header"),this.expandedItem={toggle:null,submenu:null},this.desktopBreakpoint=1024,this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){var e=this;this.parentItems.forEach((function(t){t.addEventListener("mouseenter",(function(t){return e.handleMouseEnter(t)})),t.addEventListener("mouseleave",(function(t){return e.handleMouseLeave(t)}))})),this.toggles.forEach((function(t){t.addEventListener("click",(function(t){return e.handleClick(t)}))})),document.addEventListener("keydown",(function(t){return e.handleKeyDown(t)}))},e.prototype.handleMouseEnter=function(e){if(!(window.innerWidth<this.desktopBreakpoint)){var t=e.currentTarget,n=t.querySelector(".".concat(this.classNames.toggle)),i=t.querySelector(".".concat(this.classNames.submenu));this.openDropdown(n,i)}},e.prototype.handleMouseLeave=function(e){if(!(window.innerWidth<this.desktopBreakpoint)){var t=e.currentTarget,n=t.querySelector(".".concat(this.classNames.toggle)),i=t.querySelector(".".concat(this.classNames.submenu));n.closest(".".concat(this.classNames.parent)).closest(".".concat(this.classNames.submenu))||this.closeDropdown(n,i)}},e.prototype.handleClick=function(e){var t=e.currentTarget,n=t.nextElementSibling;"true"===t.getAttribute("aria-expanded")?this.closeDropdown(t,n):this.openDropdown(t,n)},e.prototype.closeDropdown=function(e,t){var n=e.closest(".".concat(this.classNames.parent));n.closest(".".concat(this.classNames.submenu)),e.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true"),n.removeAttribute("open"),this.expandedItem={toggle:null,submenu:null}},e.prototype.openDropdown=function(e,t){var n=e.closest(".".concat(this.classNames.parent));t.setAttribute("aria-hidden","false"),e.setAttribute("aria-expanded","true"),n.setAttribute("open",""),this.expandedItem={toggle:e,submenu:t}},e.prototype.handleKeyDown=function(e){if(this.expandedItem.toggle&&this.expandedItem.submenu){var t=this.expandedItem.toggle.closest(".".concat(this.classNames.parent)),n=this.expandedItem.toggle,i=this.expandedItem.submenu;if("Tab"===e.key){var r=t.querySelector(":focus"),o=t.querySelectorAll("a"),a=o[0],s=o[o.length-1];if(!e.shiftKey&&r===s)return void this.closeDropdown(n,i);if(e.shiftKey&&r===a)return void this.closeDropdown(n,i)}"Escape"==e.key&&this.closeDropdown(n,i)}},e}();var o=n(24);function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var s=function e(t,n){function i(e,i,r){if("undefined"!=typeof document){"number"==typeof(r=a({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
2URIComponent).replace(/[()]/g,escape);var o="";for(var s in r)r[s]&&(o+="; "+s,!0!==r[s]&&(o+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=t.read(a,s),e===s)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",a({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,a({},this.attributes,t))},withConverter:function(t){return e(a({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const d=function(){function e(e){this.data=e}return e.getCurrentUser=function(){var t=s.get("fdmg_labels_user"),n=t?JSON.parse(t):null,i=n&&void 0!==n.data?n.data:null;return i?(e.instance||(e.instance=new e(i)),e.instance):null},e.prototype.getId=function(){return this.data.id},e.prototype.getDisplayName=function(){return this.data.display_name},e.prototype.getEmail=function(){var e;return null!==(e=this.data.email)&&void 0!==e?e:""},e.prototype.getFDMGUserId=function(){return this.data.fdmg_user_id},e.prototype.getFDMGOrganisationId=function(){return this.data.fdmg_organisation_id},e}(),c=function(){function e(e){this.element=e,this.user=d.getCurrentUser(),this.backdrop=this.element.querySelector(".js-header-menu-backdrop"),this.html=document.querySelector("html"),this.dropdown=this.element.querySelector(".js-header-menu-dropdown"),this.closeButton=this.element.querySelector(".js-close-menu"),this.profileNav=this.element.querySelector(".js-profile-nav"),this.initialize()}return e.prototype.initialize=function(){var e,t,n,i=this,r=new o.Gd(this.element,{moduleName:"headerMenu",useHover:!1});null===(e=this.backdrop)||void 0===e||e.addEventListener("click",(function(){r.closeAllToggles()})),null===(t=this.closeButton)||void 0===t||t.addEventListener("click",(function(){r.close()})),this.element.addEventListener("openMrToggle",(function(){var e;i.showBackdrop(),i.closeButton&&(null===(e=i.element.querySelector(".btn-menu"))||void 0===e||e.setAttribute("tabindex","-1"),setTimeout((function(){var e;return null===(e=i.closeButton)||void 0===e?void 0:e.focus()}),300)),i.html&&(i.html.style.height="100vh")})),this.element.addEventListener("closeMrToggle",(function(){var e,t,n,r;"true"===(null===(e=i.dropdown)||void 0===e?void 0:e.getAttribute("aria-hidden"))&&i.hideBackdrop(),i.closeButton&&(null===(t=i.element.querySelector(".btn-menu"))||void 0===t||t.removeAttribute("tabindex"),null===(n=i.element.querySelector(".btn-menu"))||void 0===n||n.focus()),null===(r=i.html)||void 0===r||r.removeAttribute("style")})),this.user||null===(n=this.profileNav)||void 0===n||n.remove()},e.prototype.showBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","false")},e.prototype.hideBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","true")},e}(),u=function(){function e(e){this.element=e,this.backdrop=this.element.querySelector(".js-header-search-backdrop"),this.headerOpen=this.element.querySelector(".js-header-search-open"),this.dropdown=this.element.querySelector(".js-header-dropdown"),this.initialize()}return e.prototype.initialize=function(){var e,t=this,n=new o.Gd(this.element,{useHover:!1});this.element.addEventListener("openMrToggle",(function(){setTimeout((function(){t.headerOpen&&(t.headerOpen.disabled=!0)}),300)})),this.element.addEventListener("closeMrToggle",(function(){t.headerOpen&&(t.headerOpen.disabled=!1)})),null===(e=this.backdrop)||void 0===e||e.addEventListener("click",(function(){n.closeAllToggles()})),this.element.addEventListener("openMrToggle",(function(){t.showBackdrop()})),this.element.addEventListener("closeMrToggle",(function(){var e;"true"===(null===(e=t.dropdown)||void 0===e?void 0:e.getAttribute("aria-hidden"))&&t.hideBackdrop()}))},e.prototype.showBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","false")},e.prototype.hideBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","true")},e}(),l=function(){function e(e){this.element=e,this.user=d.getCurrentUser(),this.backdrop=this.element.querySelector(".js-
2header-profile-backdrop"),this.profileNav=this.element.querySelector(".js-profile-nav"),this.loginButton=this.element.querySelector(".js-login"),this.accountButton=this.element.querySelector(".js-account"),this.initialize()}return e.prototype.initialize=function(){var e,t,n,i,r,a=this,s=new o.Gd(this.element,{useHover:!1});null===(e=this.backdrop)||void 0===e||e.addEventListener("click",(function(){s.closeAllToggles()})),this.element.addEventListener("openMrToggle",(function(){a.showBackdrop()})),this.element.addEventListener("closeMrToggle",(function(){a.hideBackdrop()})),this.user?null===(r=this.loginButton)||void 0===r||r.remove():(null===(t=this.loginButton)||void 0===t||t.addEventListener("click",(function(){localStorage.removeItem("fdmg_manual_logout")})),null===(n=this.accountButton)||void 0===n||n.remove(),null===(i=this.profileNav)||void 0===i||i.remove())},e.prototype.showBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","false")},e.prototype.hideBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","true")},e}(),h=function(){function e(e){this.element=e,this.user=d.getCurrentUser(),this.backdrop=this.element.querySelector(".js-header-display-backdrop"),this.initialize()}return e.prototype.initialize=function(){var e,t=this,n=new o.Gd(this.element,{useHover:!1});null===(e=this.backdrop)||void 0===e||e.addEventListener("click",(function(){n.closeAllToggles()})),this.element.addEventListener("openMrToggle",(function(){t.showBackdrop()})),this.element.addEventListener("closeMrToggle",(function(){t.hideBackdrop()}))},e.prototype.showBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","false")},e.prototype.hideBackdrop=function(){var e;null===(e=this.backdrop)||void 0===e||e.setAttribute("aria-hidden","true")},e}(),p=function(){function e(e){this.element=e,this.headerProfile=document.querySelector("[class*=js-header-profile]"),this.responsiveHelper=new o.Ti,this.initialize()}return e.prototype.initialize=function(){this.element.addEventListener("keydown",this.handleKeyboard.bind(this))},e.prototype.handleKeyboard=function(e){var t;"Tab"===e.key&&this.responsiveHelper.atLeastTabletPortrait()&&(e.preventDefault(),null===(t=this.headerProfile)||void 0===t||t.focus())},e}();var f=n(607),m=n.n(f);const v=function(){function e(e){this.element=e,this.dataAttribute="data-oembed",this.playBtnClass="btn--js-video-play",this.button=this.element.querySelector(".js-consent-button"),this.source=this.element.dataset.source,this.type=this.element.dataset.type,this.theme=this.element.dataset.theme,this.disableNotice=this.element.dataset.disableNotice,this.cmpId=this.element.dataset.cmpId?parseInt(this.element.dataset.cmpId):void 0,this.initialize()}return e.prototype.initialize=function(){"1"!==this.disableNotice?void 0!==window.__tcfapi?this.initSourcepoint():this.initDefault():this.showEmbed()},e.prototype.initSourcepoint=function(){var e,t=this;null===(e=this.button)||void 0===e||e.addEventListener("click",(function(){t.cmpId&&window._sp_.gdpr.loadPrivacyManagerModal(t.cmpId,"purposes")})),window.__tcfapi("addEventListener",2,(function(e){"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||window.__tcfapi("getCustomVendorConsents",2,(function(n){var i=t.source,r=!1;n.consentedPurposes.forEach((function(e){"Verrijken van artikelen"!==e.name&&"62a1c6502b246104cd6ebda5"!==e._id||(r=!0)}));var o=!1;n.consentedVendors.forEach((function(e){(null==i?void 0:i.includes(e.name.toLowerCase()))&&(o=!0)})),r&&o||"consent_embed_omny"===t.source&&r?t.showEmbed():"useractioncomplete"===e.eventStatus&&window.location.reload()}))}))},e.prototype.initDefault=function(){var e,t=this;null===(e=this.button)||void 0===e||e.addEventListener("click",(function(){t.source&&window.localStorage.setItem(t.source,"true"),t.showEmbed(),Array.from(document.querySelectorAll('[data-source="'.concat(t.source,'"]'))).forEach((function(e){t.showEmbed(e)}))})),this.source&&window.localStorage.getItem(this.source)&&this.showEmbed()},e.prototype.showEmbed=function(e){void 0===e&&(e=this.element);var t=e.querySelector("template");if(t){var n=e.querySelector("[".concat(this.dataAttribute,'="content"]'));if(n){if("consent_embed_twitter"===this.source){var i="//platform.twitter.com/widgets.js";if(!document.querySelector('script[src="'.concat(i,'"]'))){var r=document.createElement("script");r.src=i,r.async=!0,document.body.appendChild(r)}}n.innerHTML=t.innerHTML,"video"===this.type?this.lazyLoadVideo(e):"audio"===this.type&&this.lazyLoadAudio(e)}}},e.prototype.lazyLoadVideo=function(e){var t=this,n=e.querySelector("[".concat(this.dataAttribute,'="video"]'));n&&n.addEventListener("click",(function(){t.playVideo(n)}))},e.prototype.lazyLoadAudio=function(e){var t,n=this,i=e.querySelector("[".concat(this.dataAttribute,'="audio"]'));if(i){var r=null===(t=null==i?void 0:i.querySelector("iframe"))||void 0===t?void 0:t.getAttribute("title");if(r&&(null==r?void 0:r.length)>0){var o=i.querySelector("[".concat(this.dataAttribute,'="audio-title"]'));if(!o)return;o.textContent=r}i.addEventListener("click",(function(){n.playAudio(i)}))}},e.prototype.playVideo=function(e){var t=e.querySelector("iframe"),n=null==t?void 0:t.getAttribute("data-src");null==t||t.setAttribute("src",n+"&autoplay=1&disablekb=1&keyboard=0");var i=e.querySelector(".".concat(this.playBtnClass)),r=e.querySelector("[".concat(this.dataAttribute,'="thumbnail"]'));null==i||i.remove(),null==r||r.remove()},e.prototype.playAudio=function(e){var t=e.querySelector("iframe"),n=null==t?void 0:t.getAttribute("data-src");if(n&&t){t.allow="autoplay",n+="&auto_play=true&hide_related=true&show_comments=false&show_reposts=false",t.setAttribute("src",n);var i=e.querySelector("[".concat(this.dataAttribute,'="placeholder"]'));null==i||i.remove(),"consent_embed_omny"===this.source&&("energeia"===this.theme&&t.setAttribute("src",n+"&utm_source=CustomPlayer8"),"pensioen-pro"===this.theme&&t.setAttribute("src",n+"&utm_source=CustomPlayer9"),t.removeAttribute("sandbox"),this.initOmnyPlayer(t))}},e.prototype.initOmnyPlayer=function(e){var t=new(m().Player)(e);t.on("ready",(function(){t.play()}))},e}(),y=function(){function e(e){this.element=e,this.dataAttribute="data-oembed",this.playBtnClass="btn--js-video-play",this.button=this.element.querySelector(".js-consent-button"),this.source=this.element.dataset.source,this.vendorId=this.source?"c:".concat(this.source):"",this.type=this.element.dataset.type,this.theme=this.element.dataset.theme,this.disableNotice=this.element.dataset.disableNotice,this.initialize()}return e.prototype.initialize=function(){"1"!==this.disableNotice?this.button&&this.source&&this.vendorId&&(this.button.addEventListener("click",(function(){var e,t,n;null===(n=null===(t=null===(e=window.Didomi)||void 0===e?void 0:e.preferences)||void 0===t?void 0:t.show)||void 0===n||n.call(t)})),this.trackConsentStatus()):this.showEmbed()},e.prototype.trackConsentStatus=function(){var e=this;if(this.source&&this.vendorId){var t=function(t){var n,i,r;if(t.isConsentRequired()){var o=null===(n=t.getCurrentUserStatus)||void 0===n?void 0:n.call(t);(null===(r=null===(i=null==o?void 0:o.vendors)||void 0===i?void 0:i[e.vendorId])||void 0===r?void 0:r.enabled)?e.showEmbedForSource():t.getObservableOnUserConsentStatusForVendor(e.vendorId).subscribe((function(t){!0===t&&e.showEmbedForSource()}))}else e.showEmbedForSource()};window.Didomi&&t(window.Didomi),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(t)}},e.prototype.showEmbedForSource=function(){var e=this;this.source&&Array.from(document.querySelectorAll('[data-source="'.concat(this.source,'"]'))).forEac
2h((function(t){e.showEmbed(t)}))},e.prototype.showEmbed=function(e){void 0===e&&(e=this.element);var t=e.querySelector("template");if(t){var n=e.querySelector("[".concat(this.dataAttribute,'="content"]'));if(n){if("twitter"===this.source){var i="//platform.twitter.com/widgets.js";if(!document.querySelector('script[src="'.concat(i,'"]'))){var r=document.createElement("script");r.src=i,r.async=!0,document.body.appendChild(r)}}n.innerHTML=t.innerHTML,"video"===this.type?this.lazyLoadVideo(e):"audio"===this.type&&this.lazyLoadAudio(e)}}},e.prototype.lazyLoadVideo=function(e){var t=this,n=e.querySelector("[".concat(this.dataAttribute,'="video"]'));n&&n.addEventListener("click",(function(){t.playVideo(n)}))},e.prototype.lazyLoadAudio=function(e){var t,n=this,i=e.querySelector("[".concat(this.dataAttribute,'="audio"]'));if(i){var r=null===(t=null==i?void 0:i.querySelector("iframe"))||void 0===t?void 0:t.getAttribute("title");if(r&&(null==r?void 0:r.length)>0){var o=i.querySelector("[".concat(this.dataAttribute,'="audio-title"]'));if(!o)return;o.textContent=r}i.addEventListener("click",(function(){n.playAudio(i)}))}},e.prototype.playVideo=function(e){var t=e.querySelector("iframe"),n=null==t?void 0:t.getAttribute("data-src");null==t||t.setAttribute("src",n+"&autoplay=1&disablekb=1&keyboard=0");var i=e.querySelector(".".concat(this.playBtnClass)),r=e.querySelector("[".concat(this.dataAttribute,'="thumbnail"]'));null==i||i.remove(),null==r||r.remove()},e.prototype.playAudio=function(e){var t=e.querySelector("iframe"),n=null==t?void 0:t.getAttribute("data-src");if(n&&t){t.allow="autoplay",n+="&auto_play=true&hide_related=true&show_comments=false&show_reposts=false",t.setAttribute("src",n);var i=e.querySelector("[".concat(this.dataAttribute,'="placeholder"]'));null==i||i.remove(),"omny"===this.source&&("energeia"===this.theme&&t.setAttribute("src",n+"&utm_source=CustomPlayer8"),"pensioen-pro"===this.theme&&t.setAttribute("src",n+"&utm_source=CustomPlayer9"),t.removeAttribute("sandbox"),this.initOmnyPlayer(t))}},e.prototype.initOmnyPlayer=function(e){var t=new(m().Player)(e);t.on("ready",(function(){t.play()}))},e}(),g=function(){function e(e){this.element=e,this.tableHeader=Array.from(this.element.querySelectorAll("th")),this.tableRows=Array.from(this.element.querySelectorAll("tbody tr, tfoot tr")),this.initialize()}return e.prototype.initialize=function(){this.addTableHeaderProp()},e.prototype.addTableHeaderProp=function(){for(var e=[],t=0,n=this.tableHeader;t<n.length;t++)(o=n[t]).textContent&&e.push(o.textContent);for(var i=0,r=this.tableRows;i<r.length;i++)for(var o=r[i],a=Array.from(o.querySelectorAll("td")),s=0;s<a.length;s++)a[s].setAttribute("data-th",e[s])},e}();const b=function(){function e(e){this.element=e,this.shareLinks=Array.from(this.element.querySelectorAll(".js--share")),this.platforms={x:"http://x.com/share?url=",facebook:"https://www.facebook.com/sharer/sharer.php?u=",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=",whatsapp:"https://api.whatsapp.com/send?text="},this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){var e=this;this.shareLinks.forEach((function(t){t.addEventListener("click",e.handleClick.bind(e))}))},e.prototype.handleClick=function(e){return t=this,n=void 0,r=function(){var t,n,i,r,o,a,s,d,c;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(d){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}(this,(function(u){switch(u.label){case 0:return t=e.currentTarget,n=t.dataset.config?JSON.parse(t.dataset.config):{},i=n.shareText||i18n.socialShare,r="".concat(window.location.href,"&text=").concat(i),o={x:"".concat(this.platforms.x).concat(r),facebook:"".concat(this.platforms.facebook).concat(r),linkedin:"".concat(this.platforms.linkedin).concat(r),whatsapp:"".concat(this.platforms.whatsapp).concat(i,": ").concat(window.location.href)},"email"!==n.type?[3,1]:(t.setAttribute("href","mailto:?subject=".concat(i,"&body=").concat(window.location.href)),[3,7]);case 1:if("copy"!==n.type)return[3,6];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,navigator.clipboard.writeText(window.location.href)];case 3:return u.sent(),(a=document.createElement("div")).classList.add("absolute","top-[calc(100%+8px)]","bg-secondary-200","dark:bg-base-400","text-sm","!px-2","!py-1","left-1/2","-translate-x-1/2"),a.innerHTML="<div class=\"absolute bg-secondary-200 w-2 h-2 content-[''] rotate-45 -top-[4px] left-1/2 -translate-x-1/2 dark:bg-base-400\"></div> ".concat(i18n.copied),null===(c=t.parentElement)||void 0===c||c.appendChild(a),setTimeout((function(){a.remove()}),2e3),[3,5];case 4:return s=u.sent(),console.error("Failed to copy: ",s),[3,5];case 5:return[3,7];case 6:void 0!==o[n.type]&&(d=window.screen.height/2-225,window.open(o[n.type],o[n.type].charAt(0).toUpperCase()+o[n.type].slice(1),"height=".concat(450,", width=").concat(550," top=").concat(d," toolbar=0, location=0, menubar=0, directories=0, scrollbars=0")),e.preventDefault()),u.label=7;case 7:return[2]}}
2))},new((i=void 0)||(i=Promise))((function(e,o){function a(e){try{d(r.next(e))}catch(e){o(e)}}function s(e){try{d(r.throw(e))}catch(e){o(e)}}function d(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}d((r=r.apply(t,n||[])).next())}));var t,n,i,r},e}(),_=function(){function e(e){this.element=e,this.tabLinks=Array.from(this.element.querySelectorAll(".js-link")),this.tabSections=Array.from(this.element.querySelectorAll(".js-section")),this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){var e=this;this.tabLinks.forEach((function(t){t.addEventListener("click",e.handleClick.bind(e)),t.addEventListener("keydown",e.handleKeyboard.bind(e))}))},e.prototype.handleClick=function(e){e.preventDefault();var t=e.currentTarget;if("true"!==(null==t?void 0:t.getAttribute("aria-selected"))){var n=this.element.querySelector("[aria-selected]");t!==n&&this.switchTab(n,t)}},e.prototype.handleKeyboard=function(e){var t,n,i,r,o=e.currentTarget;if("ArrowLeft"===e.key){var a=null===(t=null==o?void 0:o.parentElement)||void 0===t?void 0:t.previousElementSibling;(null==a?void 0:a.classList.contains("js-item"))&&(o.blur(),null===(n=null==a?void 0:a.querySelector(".js-link"))||void 0===n||n.focus(),this.switchTab(o,a.querySelector(".js-link")))}if("ArrowRight"===e.key){var s=null===(i=null==o?void 0:o.parentElement)||void 0===i?void 0:i.nextElementSibling;(null==s?void 0:s.classList.contains("js-item"))&&(o.blur(),null===(r=null==s?void 0:s.querySelector(".js-link"))||void 0===r||r.focus(),this.switchTab(o,s.querySelector(".js-link")))}},e.prototype.switchTab=function(e,t){if(t&&e){t.focus(),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");var n=t.getAttribute("href");this.tabSections.forEach((function(e){e.setAttribute("aria-hidden","true"),"#".concat(e.getAttribute("id"))===n&&e.setAttribute("aria-hidden","false")}))}},e}(),w=function(){function e(e){this.element=e,this.sections=Array.from(this.element.querySelectorAll(".section")),this.initialize()}return e.prototype.initialize=function(){this.maybeAddStickyClass()},e.prototype.maybeAddStickyClass=function(){if(this.sections){var e=this.sections[this.sections.length-1];null!==(null==e?void 0:e.querySelector(".complementary"))&&(null==e||e.classList.add("md:sticky","md:mb-6","top-[calc(theme(space.admin-bar)+theme(space.header-height)+theme(space.6))]"))}},e}(),x=function(){function e(e){this.element=e,this.previousHeight=e.clientHeight,this.interval=null,this.header=document.querySelector("header"),this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){this.observeAdvertisement()},e.prototype.checkHeightChange=function(){var e=this.element.clientHeight;0!==e&&e!==this.previousHeight&&(this.previousHeight=e,this.setNavigationTopPosition(this.previousHeight),clearInterval(this.interval))},e.prototype.setNavigationTopPosition=function(e){if(this.header){var t=(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--wp-admin--admin-bar--height"))||0)-e;this.header.style.top="".concat(t,"px")}},e.prototype.observeAdvertisement=function(){var e=this;new MutationObserver((function(t){for(var n=0,i=t;n<i.length;n++){var r=i[n];if("childList"!==r.type&&0===r.addedNodes.length)return;r.addedNodes.forEach((function(t){"IFRAME"===t.nodeName&&(e.setNavigationTopPosition(e.element.clientHeight),e.interval=setInterval(e.checkHeightChange.bind(e),1e3))}))}})).observe(this.element,{childList:!0,subtree:!0})},e}();var k=n(208);const T=function(){function e(e){var t,n;this.element=e,this.modal=document.querySelector(".js-filter-modal"),this.backdrop=document.querySelector(".js-modal-backdrop"),this.modalFilters=null===(t=this.modal)||void 0===t?void 0:t.querySelector(".js-modal-body"),this.closeButton=null===(n=this.modal)||void 0===n?void 0:n.querySelector(".js-close-modal"),this.tabFocus=new o.cB,this.responsiveHelper=new o.Ti,this.initialize()}return e.prototype.initialize=function(){this.modal&&this.addEventListeners()},e.prototype.addEventListeners=function(){var e,t,n=this;this.modal&&(["load","resize","orientationchange"].forEach((function(e){window.addEventListener(e,n.determineViewport.bind(n))})),this.element.addEventListener("click",this.showModal.bind(this)),null===(e=this.backdrop)||void 0===e||e.addEventListener("click",this.closeModal.bind(this)),null===(t=this.closeButton)||void 0===t||t.addEventListener("click",this.closeModal.bind(this)),this.modal.addEventListener("keydown",this.handleKeyboard.bind(this)))},e.prototype.determineViewport=function(){var e,t,n,i,r;this.responsiveHelper.atLeastTabletLandscape()?(null===(e=this.modal)||void 0===e||e.removeAttribute("aria-hidden"),null===(t=this.backdrop)||void 0===t||t.setAttribute("aria-hidden","true"),(0,k.clearAllBodyScrollLocks)()):(null===(n=this.modal)||void 0===n||n.setAttribute("aria-hidden","true"),null===(i=this.backdrop)||void 0===i||i.setAttribute("aria-hidden","true"),null===(r=this.element)||void 0===r||r.setAttribute("aria-expanded","fal
2se"))},e.prototype.showModal=function(){var e,t,n=this;this.modalFilters&&(this.element.setAttribute("aria-expanded","true"),null===(e=this.modal)||void 0===e||e.setAttribute("aria-hidden","false"),null===(t=this.backdrop)||void 0===t||t.setAttribute("aria-hidden","false"),(0,k.disableBodyScroll)(this.modalFilters),setTimeout((function(){var e;n.modal&&(null===(e=(0,o.$4)(n.modal))||void 0===e||e.focus())}),100))},e.prototype.closeModal=function(e){var t,n,i=this;null==e||e.preventDefault(),this.modal&&this.modalFilters&&(this.element.setAttribute("aria-expanded","false"),null===(t=this.modal)||void 0===t||t.setAttribute("aria-hidden","true"),null===(n=this.backdrop)||void 0===n||n.setAttribute("aria-hidden","true"),(0,k.enableBodyScroll)(this.modalFilters),setTimeout((function(){i.element.focus()}),100))},e.prototype.handleKeyboard=function(e){var t;this.modal&&("Escape"===e.key&&this.closeModal(),"Tab"===e.key&&"true"===(null===(t=this.element)||void 0===t?void 0:t.getAttribute("aria-expanded"))&&this.tabFocus.trap(this.modal,e))},e}();var S=n(353);const I=function(){function e(e){this.element=e,this.form=this.element.querySelector("form"),this.buttons=this.element.querySelectorAll(".js-reset-filter"),this.checkboxes=this.element.querySelectorAll('input[type="checkbox"]'),this.orderBySelect=this.element.querySelector('select[name="orderby"]'),this.periodRadioButtons=this.element.querySelectorAll('input[name="period"]'),this.minimumDateInput=e.querySelector('input[name="post_date_min"]'),this.maximumDateInput=e.querySelector('input[name="post_date_max"]'),this.dateRangeContainer=e.querySelector(".js-date-range"),this.checkedCategories=[],this.categoryCheckboxes=this.element.querySelectorAll('input[name="category[]"]'),this.hiddenCategoryInput=document.querySelector('input[type="hidden"][name="category_name"]'),this.checkedSections=[],this.sectionCheckboxes=this.element.querySelectorAll('input[name="fdmg_section[]"]'),this.hiddenSectionInputs=document.querySelectorAll('input[type="hidden"][name="fdmg_section"]'),this.checkedGenres=[],this.genreCheckboxes=this.element.querySelectorAll('input[name="fdmg_genre[]"]'),this.hiddenGenreInputs=document.querySelectorAll('input[type="hidden"][name="fdmg_genre"]'),this.checkedLocations=[],this.locationCheckboxes=this.element.querySelectorAll('input[name="fdmg_location[]"]'),this.hiddenLocationInputs=document.querySelectorAll('input[type="hidden"][name="fdmg_location"]'),this.checkedAuthors=[],this.authorCheckboxes=this.element.querySelectorAll('input[name="author_id[]"]'),this.hiddenPeriodRadio=document.querySelectorAll('input[type="hidden"][name="period"]'),this.hiddenMinimumDateInput=document.querySelectorAll('input[type="hidden"][name="post_date_min"]'),this.hiddenOrderBy=document.querySelectorAll('input[type="hidden"][name="orderby"]'),this.initialize()}return e.prototype.initialize=function(){this.addEventListeners(),this.hiddenCategoryInput&&this.categoryCheckboxes&&this.populateCheckedCategories(),this.hiddenSectionInputs&&this.sectionCheckboxes&&this.populateCheckedSections(),this.hiddenGenreInputs&&this.genreCheckboxes&&this.populateCheckedGenres(),this.hiddenLocationInputs&&this.locationCheckboxes&&this.populateCheckedLocations(),this.authorCheckboxes&&this.populateCheckedAuthors(),this.periodRadioButtons&&this.getActivePeriod(),this.hiddenOrderBy&&this.getActiveSort()},e.prototype.addEventListeners=function(){var e,t,n,i,r,o,a,s,d,c=this;null===(e=this.buttons)||void 0===e||e.forEach((function(e){e.addEventListener("click",c.resetFilter.bind(c))})),null===(t=this.periodRadioButtons)||void 0===t||t.forEach((function(e){e.addEventListener("change",c.handlePeriodRadioChange.bind(c))})),null===(n=this.orderBySelect)||void 0===n||n.addEventListener("change",this.handleSortByChange.bind(this)),null===(i=this.categoryCheckboxes)||void 0===i||i.forEach((function(e){e.addEventListener("change",c.handleCategoryCheckboxChange.bind(c))})),null===(r=this.sectionCheckboxes)||void 0===r||r.forEach((function(e){e.addEventListener("change",c.handleSectionCheckboxChange.bind(c))})),null===(o=this.genreCheckboxes)||void 0===o||o.forEach((function(e){e.addEventListener("change",c.handleGenreCheckboxChange.bind(c))})),null===(a=this.locationCheckboxes)||void 0===a||a.forEach((function(e){e.addEventListener("change",c.handleLocationCheckboxChange.bind(c))}
2)),null===(s=this.authorCheckboxes)||void 0===s||s.forEach((function(e){e.addEventListener("change",c.handleAuthorCheckboxChange.bind(c))})),null===(d=this.form)||void 0===d||d.addEventListener("submit",(function(e){e.preventDefault(),document.addEventListener("DateRangeValidator:valid",(function(){var e,t;null===(e=c.categoryCheckboxes)||void 0===e||e.forEach((function(e){e.disabled=!0})),null===(t=c.form)||void 0===t||t.submit()}))}))},e.prototype.handleSortByChange=function(e){var t=e.target,n=document.querySelectorAll('input[type="hidden"][name="orderby"]');n&&n.forEach((function(e){e.value=t.value}))},e.prototype.populateCheckedCategories=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("category_name");t&&(this.checkedCategories=t.split(","))},e.prototype.populateCheckedSections=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("fdmg_section");t&&(this.checkedSections=t.split(","))},e.prototype.populateCheckedGenres=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("fdmg_genre");t&&(this.checkedGenres=t.split(","))},e.prototype.populateCheckedLocations=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("fdmg_location");t&&(this.checkedLocations=t.split(","))},e.prototype.populateCheckedAuthors=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search),n=this.getArrayParam("author_id",t);n.length>0&&(this.checkedAuthors=n,this.createHiddenAuthorInputs())},e.prototype.getActivePeriod=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("period");t&&(this.setMinimumDateInputValue(t),this.hiddenPeriodRadio&&this.hiddenPeriodRadio.forEach((function(e){e.value=t})))},e.prototype.getActiveSort=function(){var e=new URL(document.location.href),t=new URLSearchParams(e.search).get("orderby");t&&this.hiddenOrderBy&&this.hiddenOrderBy.forEach((function(e){e.value=t}))},e.prototype.getArrayParam=function(e,t){var n=[];return t.forEach((function(t,i){i.startsWith(e)&&n.push(decodeURIComponent(t))})),n},e.prototype.handleCategoryCheckboxChange=function(e){var t=e.target;if(t.checked)this.checkedCategories.push(t.value);else{var n=this.checkedCategories.indexOf(t.value);-1!==n&&this.checkedCategories.splice(n,1)}this.hiddenCategoryInput&&(this.hiddenCategoryInput.value=this.checkedCategories.join(","))},e.prototype.handleSectionCheckboxChange=function(e){var t=this,n=e.target;if(n.checked)this.checkedSections.push(n.value);else{var i=this.checkedSections.indexOf(n.value);-1!==i&&this.checkedSections.splice(i,1)}this.hiddenSectionInputs&&this.hiddenSectionInputs.forEach((function(e){e.value=t.checkedSections.join(",")}))},e.prototype.handleGenreCheckboxChange=function(e){var t=this,n=e.target;if(n.checked)this.checkedGenres.push(n.value);else{var i=this.checkedGenres.indexOf(n.value);-1!==i&&this.checkedGenres.splice(i,1)}this.hiddenGenreInputs&&this.hiddenGenreInputs.forEach((function(e){e.value=t.checkedGenres.join(",")}))},e.prototype.handleLocationCheckboxChange=function(e){var t=this,n=e.target;if(n.checked)this.checkedLocations.push(n.value);else{var i=this.checkedLocations.indexOf(n.value);-1!==i&&this.checkedLocations.splice(i,1)}this.hiddenLocationInputs&&this.hiddenLocationInputs.forEach((function(e){e.value=t.checkedLocations.join(",")}))},e.prototype.handleAuthorCheckboxChange=function(e){var t=e.target;if(t.checked)this.checkedAuthors.push(t.value);else{var n=this.checkedAuthors.indexOf(t.value);-1!==n&&this.checkedAuthors.splice(n,1)}this.createHiddenAuthorInputs()},e.prototype.createHiddenAuthorInputs=function(){var e=document.querySelectorAll(".js-author-inputs");e.forEach((function(e){e.innerHTML=""})),this.checkedAuthors.forEach((function(t){var n=document.createElement("input");n.type="hidden",n.name="author_id[]",n.value=t,e.forEach((function(e){e.appendChild(n)}))}))},e.prototype.handlePeriodRadioChange=function(e){var t,n,i,r;if(this.minimumDateInput&&this.maximumDateInput){this.minimumDateInput.value="",this.maximumDateInput.value="";var o=e.currentTarget;"custom-period"===o.value?(null===(t=this.dateRangeContainer)||void 0===t||t.classList.remove("hidden"),null===(n=this.dateRangeContainer)||void 0===n||n.classList.add("block")):(null===(i=this.dateRangeContainer)||void 0===i||i.classList.remove("block"),null===(r=this.dateRangeContainer)||void 0===r||r.classList.add("hidden")),this.setMinimumDateInputValue(o.value),this.hiddenPeriodRadio&&this.hiddenPeriodRadio.forEac
2h((function(e){e.value=o.value}))}},e.prototype.setMinimumDateInputValue=function(e){var t,n,i,r,o;this.minimumDateInput&&("week"===e&&(this.minimumDateInput.value=S().subtract(1,"week").format("YYYY-MM-DD"),null===(t=this.hiddenMinimumDateInput)||void 0===t||t.forEach((function(e){e.value=S().subtract(1,"week").format("YYYY-MM-DD")}))),"month"===e&&(this.minimumDateInput.value=S().subtract(1,"month").format("YYYY-MM-DD"),null===(n=this.hiddenMinimumDateInput)||void 0===n||n.forEach((function(e){e.value=S().subtract(1,"month").format("YYYY-MM-DD")}))),"year"===e&&(this.minimumDateInput.value=S().subtract(1,"year").format("YYYY-MM-DD"),null===(i=this.hiddenMinimumDateInput)||void 0===i||i.forEach((function(e){e.value=S().subtract(1,"year").format("YYYY-MM-DD")}))),"3-years"===e&&(this.minimumDateInput.value=S().subtract(3,"year").format("YYYY-MM-DD"),null===(r=this.hiddenMinimumDateInput)||void 0===r||r.forEach((function(e){e.value=S().subtract(3,"year").format("YYYY-MM-DD")}))),"2000-now"===e&&(this.minimumDateInput.value=S("2000-01-01").format("YYYY-MM-DD"),null===(o=this.hiddenMinimumDateInput)||void 0===o||o.forEach((function(e){e.value=S("2000-01-01").format("YYYY-MM-DD")}))))},e.prototype.resetFilter=function(e){var t,n,i,r=this;e.preventDefault(),this.orderBySelect&&(this.orderBySelect.value="relevance"),null===(t=this.checkboxes)||void 0===t||t.forEach((function(e){e.checked=!1})),null===(n=this.periodRadioButtons)||void 0===n||n.forEach((function(e){"3-years"===e.value&&(e.checked=!0,r.setMinimumDateInputValue("3-years"))})),this.checkedCategories=[],this.hiddenCategoryInput&&(this.hiddenCategoryInput.value=""),null===(i=this.form)||void 0===i||i.submit()},e}(),E=function(){function e(e){this.element=e,this.form=this.element.closest("form"),this.minDateInput=this.element.querySelector(".js-min-date-input"),this.maxDateInput=this.element.querySelector(".js-max-date-input"),this.initialize()}return e.prototype.initialize=function(){this.form&&this.minDateInput&&this.maxDateInput&&new o.Id(this.form,{minInput:this.minDateInput,maxInput:this.maxDateInput,errorMessages:{summary:i18n.formError,minInput:i18n.invalidDateInput,maxInput:i18n.invalidDateInput},styles:{validationSummary:"relative p-3 pb-0 text-base sm:p-4 sm:pb-0 flex flex-col gap-4",validationSummaryTitle:"font-body-bold",validationSummaryList:"pl-4 list-decimal",validationSummaryListItem:"",validationSummaryLink:"",inputErrorMessage:"flex items-center gap-2 mt-2",inputErrorIcon:"text-[#c41e3a] text-base",inputErrorMessageLabel:"text-sm"},submitFormWhenValid:!1})},e}(),C=function(){function e(e){this.element=e,this.user=d.getCurrentUser(),this.loginButton=this.element.querySelector(".js-login"),this.logoutButton=this.element.querySelector(".js-logout"),this.switchUserButton=this.element.querySelector(".js-switch-user"),this.initialize()}return e.prototype.initialize=function(){this.user?(this.showLogOutButton(),this.showAndCreateMessage()):this.showLoginButton()},e.prototype.showLoginButton=function(){var e,t,n;null===(e=this.loginButton)||void 0===e||e.addEventListener("click",(function(){localStorage.removeItem("fdmg_manual_logout")})),null===(t=this.logoutButton)||void 0===t||t.remove(),null===(n=this.switchUserButton)||void 0===n||n.remove()},e.prototype.showLogOutButton=function(){var e,t,n;null===(e=this.logoutButton)||void 0===e||e.addEventListener("click",(function(){var e=Math.round((new Date).getTime()/1e3);localStorage.setItem("fdmg_manual_logout",String(e))})),null===(t=this.switchUserButton)||void 0===t||t.addEventListener("click",(function(){localStorage.removeItem("fdmg_manual_logout")})),null===(n=this.loginButton)||void 0===n||n.remove()},e.prototype.showAndCreateMessage=function(){if(this.user){var e=document.createElement("p");e.className="text-base",e.textContent="".concat(i18n.loggedIn," ");var t=document.createElement("abbr");t.className="cursor-help underline decoration-dotted font-bold js-user-tooltip";var n=this.user.getEmail(),i=this.user.getFDMGUserId(),r=this.user.getId();t.title="Email: ".concat(n," | Customer #: ").concat(i," | User ID: ").concat(r),t.setAttribute("data-email",n),t.setAttribute("data-customer-number",String(i)),t.setAttribute("data-user-id",String(r)),t.textContent=this.user.getDisplayName(),e.appendChild(t),this.element.insertBefore(e,this.element.firstChild)}},e}(),A=function(){function e(e){this.element=e,this.initialSize=this.element.offsetWidth,this.default=16,this.zoomFactor=this.element.offsetWidth/this.default,this.zoomLevels=[{factor:1.75,class:"text-zoom-175"},{factor:1.5,class:"text-zoom-150"},{factor:1.25,class:"text-zoom-125"},{factor:1,class:"text-zoom-100"}],this.initialize()}return e.prototype.setZoomClass=function(){var e=this;this.zoomFactor=this.element.offsetWidth/this.default,this.zoomLevels.forEac
2h((function(t){document.body.classList.remove(t.class),e.zoomFactor>=t.factor&&document.body.classList.add(t.class)}))},e.prototype.initialize=function(){var e=this;this.setZoomClass(),setInterval((function(){e.element.offsetWidth!==e.initialSize&&(e.initialSize=e.element.offsetWidth,e.setZoomClass())}),500)},e}();const Z=function(){function e(e){this.element=e,this.config=this.element.dataset.config?JSON.parse(this.element.dataset.config):{},this.user=d.getCurrentUser(),this.user&&this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){var e=this;this.config.post_id&&this.fetchCommentForm(this.config.post_id).then((function(t){(null==t?void 0:t.comment_form)&&(e.element.innerHTML=t.comment_form)}))},e.prototype.fetchCommentForm=function(e){return t=this,n=void 0,r=function(){var t,n;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(d){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,fetch("".concat(restApi.root,"fdmg-labels/v1/page-fragments/").concat(e),{method:"POST"})];case 1:if(!(t=i.sent()).ok)throw new Error("Error fetching comment form for post ".concat(e));return[4,t.json()];case 2:return[2,i.sent()];case 3:return n=i.sent(),console.error(n),[3,4];case 4:return[2]}}
2))},new((i=void 0)||(i=Promise))((function(e,o){function a(e){try{d(r.next(e))}catch(e){o(e)}}function s(e){try{d(r.throw(e))}catch(e){o(e)}}function d(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}d((r=r.apply(t,n||[])).next())}));var t,n,i,r},e}(),L=function(){function e(e){this.element=e;var t=d.getCurrentUser();this.FDMGUserId=t?t.getFDMGUserId():0,this.FDMGOrganisationId=t?t.getFDMGOrganisationId():0,this.initialize()}return e.prototype.initialize=function(){var e={};this.FDMGUserId&&this.FDMGUserId&&(e.userId=String(this.FDMGUserId)),this.FDMGOrganisationId&&this.FDMGOrganisationId&&(e.companyId=String(this.FDMGOrganisationId)),0!==Object.keys(e).length&&window.dataLayer.push(e)},e}(),P=function(){function e(e){this.element=e,this.user=d.getCurrentUser(),this.loggedOutContainer=this.element.querySelector(".js-paywall-logged-out"),this.loggedInContainer=this.element.querySelector(".js-paywall-logged-in"),this.initialize()}return e.prototype.initialize=function(){this.user?this.showLoggedInState():this.showLoggedOutState()},e.prototype.showLoggedOutState=function(){var e,t;null===(e=this.loggedInContainer)||void 0===e||e.remove();var n=null===(t=this.loggedOutContainer)||void 0===t?void 0:t.querySelector(".js-login");null==n||n.addEventListener("click",(function(){localStorage.removeItem("fdmg_manual_logout")}))},e.prototype.showLoggedInState=function(){var e,t,n,i;null===(e=this.loggedOutContainer)||void 0===e||e.remove(),null===(t=this.loggedInContainer)||void 0===t||t.classList.remove("hidden");var r=null===(n=this.loggedInContainer)||void 0===n?void 0:n.querySelector(".js-paywall-username");r&&this.user&&(r.textContent=this.user.getDisplayName());var o=null===(i=this.loggedInContainer)||void 0===i?void 0:i.querySelector(".js-relogin");null==o||o.addEventListener("click",(function(){localStorage.removeItem("fdmg_manual_logout")}))},e}();const O=function(e){!function(e){var t=window.location.pathname.split("/").join(""),n=e.page_type,i=e.page_subtype;if("page"===e.page_type)switch(t){case"contact-us":n="contact",i="contact us";break;case"about":n="about",i="about impact investor";break;case"guide-2023":n="reports",i="guide 2023";break;case"guide-2024":n="reports",i="guide 2024";break;case"impact-investing-for-pensions-2023":n="reports",i="impact investing for pensions";break;case"events":n="events",i="other events";break;case"partners":n="partners",i="partners";break;case"share-news-tip":n="support",i="share news tip";break;case"newsletter-header-and-widget":n="newsletter",i="sign up";break;case"meet-our-board-of-advisors":n="support",i="meet our board of investors"}window.dataLayer.push({event:"page_view",eventInfo:{category:"pageviews",action:"pageview",label:"".concat(window.location.pathname),value:null,event_context:{hostname:"".concat(window.location.hostname),pathname:"".concat(window.location.pathname),referrer:"".concat(document.referrer),search:"".concat(window.location.search),title:"".concat(e.title),category:"".concat(e.page_category),page_type:"".concat(n),page_sub_type:"".concat(i)}}})}(e)};var D=function(e){var t=function(e){var t,n,i=0,r=document.querySelector("h1"),o=null===(t=null==r?void 0:r.textContent)||void 0===t?void 0:t.trim(),a=null==o?void 0:o.split(/\s+/).filter((function(e){return e.length>0}));i+=null!==(n=null==a?void 0:a.length)&&void 0!==n?n:0;var s=document.querySelector(".entry-content");return s&&Array.from(s.children).forEach((function(e){var t,n,r;if(!(e.getAttribute("data-name")&&(null===(t=e.getAttribute("data-name"))||void 0===t?void 0:t.includes("acf"))||"figure"===e.tagName.toLowerCase())){var o=null===(n=e.textContent)||void 0===n?void 0:n.trim(),a=null==o?void 0:o.split(/\s+/).filter((function(e){return e.length>0}));i+=null!==(r=null==a?void 0:a.length)&&void 0!==r?r:0}})),i}()/200*60,n=[25,50,75,100],i=!1,r=0,o=Date.now(),a=function(){i=!0,o=Date.now()};["scroll","mousemove","click","touchstart","keydown"].forEach((function(e){document.addEventListener(e,a)}));var s=setInterval((function(){!1===i||document.hidden||(Date.now()-o>
23e4&&(i=!1),r++,n.forEach((function(i){r>=i/100*t&&(function(e,t){window.dataLayer.push({event:"read_percentage",event_info:{category:"user interactions",action:"read percentage",label:"".concat(t),value:null,event_context:{article_id:"".concat(e.id),page_notification:null}}})}(e,i),n=n.filter((function(e){return e!==i})))})),0===n.length&&clearInterval(s))}),1e3)};var M=function(e){window.dataLayer.push({event:"copy_text",eventInfo:{category:"user interactions",action:"copy text",label:"".concat(e.id),value:null,event_context:{article_id:"".concat(e.id)}}})};var N=function(e,t,n,i){window.dataLayer.push({event:"click",event_info:{category:"".concat(e),action:"".concat(n),label:"".concat(t),value:null,event_context:{component:"".concat(i),index:"",section_title:"",click_text:"".concat(t)}}})};var j;!function(e){e.Teaser="TEASER",e.Pageview="PAGEVIEW",e.Share="SOCIAL_SHARE",e.Paywall="PAYWALL"}(j||(j={}));const R=function(){function e(e){this.element=e,this.initialize()}return e.prototype.initialize=function(){new o.Gd(this.element,{moduleName:"toggle",useHover:!1})},e}();var q=function(){function e(e){this.element=e,this.initialize()}return e.prototype.initialize=function(){this.addEventListeners()},e.prototype.addEventListeners=function(){this.element.addEventListener("copy",(function(e){var t,n=window.getSelection();if(n){var i=n.toString();if(i&&!(i.length<=150)&&i18n.copyTextPrepend){var r="### ".concat(i18n.copyTextPrepend," ###\n\n")+i+"\n\n".concat(i18n.copyTextAppend," ").concat(window.location.href);e.preventDefault(),null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",r)}}}))},e}();e({"navigation-advertisement":x,"theme-selection":i,"primary-nav":r,"header-search":u,"header-profile":l,"header-display":h,"header-menu":c,oembed:v,"oembed-didomi":y,tabs:_,table:g,"social-share":b,"display-options":p,"sticky-advertisement":w,"filter-modal":T,"filter-form":I,"date-range-validator":E,"login-button":C,"text-zoom":A,"comment-form":Z,"tag-manager":L,"paywall-login-button":P,"socials-toggle":R,"text-copy-message":q}),Array.from(document.querySelectorAll("[data-datalayer]")).map((function(e){var t=e.getAttribute("data-datalayer"),n=t?JSON.parse(t):{};return n.element=e,n})).forEach((function(e){switch(e.event){case j.Teaser:(function(e){var t=e.element,n=document.querySelectorAll("[data-teaser-post"),i=Array.from(n);e.article_index=i.indexOf(t)+1;var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&1===t.intersectionRatio&&(function(e){window.dataLayer.push({event:"article_impression",event_info:{category:"user interaction",action:"view item list",label:"".concat(e.id),value:null,event_context:{component:"article",component_subtype:"".concat(e.component_subtype),section_title:"".concat(e.categories)},ecommerce:{article:[{article_id:"".concat(e.id),article_name:"".concat(e.title),article_category:"".concat(e.categories),article_type:"article",author_name:"".concat(e.author),article_publication_date:"".concat(e.publication_date),article_publication_time:"".concat(e.publication_time),article_version:"".concat(e.revisions_count),article_index:"".concat(e.article_index)}]}}})}(e),r.disconnect())}))}),{threshold:1});r.observe(t)})(e),function(e){var t=e.element,n=t.querySelectorAll("a"),i=document.querySelectorAll("[data-teaser-post"),r=Array.from(i);e.article_index=r.indexOf(t)+1,n.forEach((function(t){t.addEventListener("click",(function(){!function(e){window.dataLayer.push({event:"article_click",event_info:{category:"user interactions",action:"article click",label:"".concat(e.id),value:null,event_context:{component:"article",component_subtype:"".concat(e.component_subtype),section_title:"".concat(e.categories)},ecommerce:{article:[{article_id:"".concat(e.id),article_name:"".concat(e.title),article_category:"".concat(e.categories),article_type:"article",author_name:"".concat(e.author),article_label:"".concat(e.id),article_publication_date:"".concat(e.publication_date),article_publication_time:"".concat(e.publication_time),article_version:"".concat(e.revisions_count),article_index:"".concat(e.article_index)}]}}})}(e)}))}))}(e);break;case j.Pageview:O(e),e.id&&(function(e){!function(e){window.dataLayer.push({event:"article_view",event_info:{category:"user interactions",action:"article view",label:"".concat(e.id),value:null,article:[{article_id:"".concat(e.id),article_name:"".concat(e.title),article_category:"".concat(e.categories),article_type:"article",author_name:"".concat(e.author),article_label:"".concat(e.categories),article_publication_date:"".concat(e.publication_date),article_publication_time:"".concat(e.publication_time),article_version:"".concat(e.revisions_count),article_index:"1"}]}})}(e)}(e),function(e){void 0!==window.__tcfapi?function(e){window.__tcfapi("addEventListener",2,(function(t){"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus||D(e)}))}(e):D(e)}(e),function(e){var t=document.querySelector("main");if(t){var n=0;window.addEventListener("scroll",(function(){var i,r,o,a,s,d=(r=(i=t.getBoundingClientRect()).top,o=i.height,a=window.scrollY-r,s=Math.max(0,Math.min(a/o*100,100)),Math.round(s)),c=[25,50,75,100].find((function(e){return e>n&&e<=d}));void 0!==c&&(function(e,t){window.dataLayer.push({event:"scroll_depth",event_info:{category:"user interactions",action:"scroll depth",label:"".concat(t),value:null,event_c
2ontext:{article_id:"".concat(e.id),page_notification:null}}})}(e,c),n=c)}))}}(e),function(e){var t=e.element;t.addEventListener("copy",(function(){M(e)})),t.addEventListener("cut",(function(){M(e)}))}(e));break;case j.Share:!function(e){e.element.addEventListener("click",(function(){!function(e){window.dataLayer.push({event:"share_article",event_info:{category:"user interactions",action:"share article",label:"".concat(e.share_type),value:null,event_context:{article_id:"".concat(e.id),share_type:"".concat(e.share_type)}}})}(e)}))}(e);break;case j.Paywall:(function(e){var t=e.element,n=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(function(e){window.dataLayer.push({event:"paywall_impression",paywall_id:"".concat(e.paywall_id),paywall_name:"".concat(e.paywall_name)})}(e),n.disconnect())}))}),{threshold:0});n.observe(t)})(e),function(e){e.element.querySelectorAll("a, button").forEach((function(t){t.addEventListener("click",(function(){var n,i,r=null!==(i=null===(n=t.textContent)||void 0===n?void 0:n.trim())&&void 0!==i?i:"";!function(e,t){window.dataLayer.push({event:"paywall_click",button_text:t,paywall_id:"".concat(e.paywall_id),paywall_name:"".concat(e.paywall_name)})}(e,r)}))}))}(e)}})),document.querySelectorAll("a").forEach((function(e){var t;if(void 0!==e&&!e.hasAttribute("data-datalayer")){var n=null!==(t=e.getAttribute("href"))&&void 0!==t?t:"",i=(e.textContent||e.innerText||"").replace(/(\r\n|\n|\r|\t)/gm,"");0===n.indexOf("#")?e.addEventListener("click",(function(){N("internal click",i,"button click","button")})):0===n.indexOf("/")||n.includes(location.origin)?e.addEventListener("click",(function(){N("internal click",i,"link click","link")})):e.addEventListener("click",(function(){N("external click",i,"link click","link")}))}})),window.trackFormConfirmationGTM=function(e){(new t).trackFormConfirmation(e)},(new t).trackFormConfirmationFromUrl(),document.addEventListener("onLLPaywallRemoved",(function(){document.querySelectorAll(".js-paywall-a11y-description").forEach((function(e){return e.remove()})),document.querySelectorAll(".paywall-only").forEach((function(e){e.classList.remove("paywall-only")})),e({oembed:v,table:g,"social-share":b})})),document.addEventListener("onLLPaywallContentInjected",(function(){window.DataTable&&document.querySelectorAll("table.tablepress").forEach((function(e){return t=void 0,n=void 0,r=function(){var t,n,i,r,o;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(d){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}(this,(function(a){switch(a.label){case 0:if(!window.DataTable||window.DataTable.isDataTable(e))return[3,5];if(!(t=e.id.match(/tablepress-(\d+)/)))return[2];n=t[1],a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch("/wp-json/tablepress/v1/settings/".concat(n))];case 2:if(!(i=a.sent()).ok)throw new Error("Network error while loading settings");return[4,i.json()];case 3:return r=a.sent(),o={paging:r.paging,searching:r.searching,ordering:r.ordering,info:r.info,lengthChange:r.lengthChange,pageLength:r.pageLength,scrollX:r.scrollX,layout:{topStart:r.lengthChange?"pageLength":null,topEnd:r.searching?"search":null,bottomStart:r.info?"info":null,bottomEnd:r.paging?"paging":null},language:{search:"Zoeken:",lengthMenu:"_MENU_ resultaten per pagina",info:"Toon _START_ tot _END_ van _TOTAL_ resultaten",paginate:{first:"Eerste",last:"Laatste",next:"Volgende",previous:"Vorige"}}},new window.DataTable(e,o),[3,5];case 4:return a.sent(),new window.DataTable(e,{pageLength:10,paging:!0,scrollX:!0}),[3,5];case 5:return[2]}}
2))},new((i=void 0)||(i=Promise))((function(e,o){function a(e){try{d(r.next(e))}catch(e){o(e)}}function s(e){try{d(r.throw(e))}catch(e){o(e)}}function d(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}d((r=r.apply(t,n||[])).next())}));var t,n,i,r}))})),console.log("%c Powered by level-level.com ðª ","background: #222; color: #fff; font-size: 14px; font-weight: normal; border-radius: 5px; line-height: 30px;")}()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.