hof 23.0.0-vite-sourcemap-beta → 23.0.0-vite-sourcemap-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +97 -6
- package/build/tasks/vite/index.js +4 -1
- package/build/tasks/vite/vite.config.js +1 -4
- package/components/amount-with-unit-select/fields.js +15 -0
- package/components/amount-with-unit-select/hooks.js +168 -0
- package/components/amount-with-unit-select/index.js +107 -0
- package/components/amount-with-unit-select/templates/amount-with-unit-select.html +20 -0
- package/components/amount-with-unit-select/utils.js +197 -0
- package/components/amount-with-unit-select/validation.js +175 -0
- package/components/index.js +1 -0
- package/controller/controller.js +5 -3
- package/controller/validation/index.js +1 -1
- package/controller/validation/validators.js +0 -1
- package/frontend/template-mixins/mixins/template-mixins.js +55 -5
- package/frontend/template-mixins/partials/forms/grouped-inputs-select.html +13 -0
- package/frontend/template-mixins/partials/forms/grouped-inputs-text.html +37 -0
- package/frontend/themes/gov-uk/styles/_grouped-input.scss +5 -0
- package/frontend/themes/gov-uk/styles/govuk.scss +1 -0
- package/frontend/toolkit/assets/javascript/form-focus.js +4 -0
- package/package.json +2 -1
- package/sandbox/apps/sandbox/fields.js +18 -1
- package/sandbox/apps/sandbox/index.js +4 -0
- package/sandbox/apps/sandbox/sections/summary-data-sections.js +7 -1
- package/sandbox/apps/sandbox/translations/en/default.json +33 -0
- package/sandbox/apps/sandbox/translations/src/en/fields.json +10 -0
- package/sandbox/apps/sandbox/translations/src/en/pages.json +3 -0
- package/sandbox/apps/sandbox/translations/src/en/validation.json +12 -0
- package/sandbox/public/assets/index-CsI1K_CH.js +60 -0
- package/sandbox/public/css/app.css +7 -3
- package/sandbox/public/js/bundle.js +1 -1
- package/sandbox/public/js/bundle.js.map +1 -0
|
@@ -11488,6 +11488,12 @@ dialog[open] + .backdrop, dialog[open]::backdrop {
|
|
|
11488
11488
|
}
|
|
11489
11489
|
}
|
|
11490
11490
|
|
|
11491
|
+
.grouped-inputs__item {
|
|
11492
|
+
display: inline-block;
|
|
11493
|
+
margin-right: 20px;
|
|
11494
|
+
margin-bottom: 0;
|
|
11495
|
+
}
|
|
11496
|
+
|
|
11491
11497
|
.validation-summary {
|
|
11492
11498
|
padding-left: 11px;
|
|
11493
11499
|
padding-right: 15px;
|
|
@@ -11705,6 +11711,4 @@ fieldset + .reveal {
|
|
|
11705
11711
|
|
|
11706
11712
|
.twitter-typeahead {
|
|
11707
11713
|
width: 100%;
|
|
11708
|
-
}
|
|
11709
|
-
|
|
11710
|
-
/*# sourceMappingURL=app.css.map */
|
|
11714
|
+
}
|
|
@@ -24,7 +24,7 @@ __p += '`),lt&&(ve+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+ve+`return __p
|
|
27
|
-
}`;var Je=Yf(function(){return de(O,Pe+"return "+ve).apply(c,U)});if(Je.source=ve,ba(Je))throw Je;return Je}function jg(t){return wt(t).toLowerCase()}function Ug(t){return wt(t).toUpperCase()}function Wg(t,i,a){if(t=wt(t),t&&(a||i===c))return Mt(t);if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=Vt(i),O=Ne(h,x),U=$n(h,x)+1;return Xi(h,O,U).join("")}function Kg(t,i,a){if(t=wt(t),t&&(a||i===c))return t.slice(0,Gr(t)+1);if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=$n(h,Vt(i))+1;return Xi(h,0,x).join("")}function Gg(t,i,a){if(t=wt(t),t&&(a||i===c))return t.replace(zn,"");if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=Ne(h,Vt(i));return Xi(h,x).join("")}function Vg(t,i){var a=fe,h=Ie;if(Nt(i)){var x="separator"in i?i.separator:x;a="length"in i?Xe(i.length):a,h="omission"in i?Pn(i.omission):h}t=wt(t);var O=t.length;if(Pt(t)){var U=Vt(t);O=U.length}if(a>=O)return t;var G=a-En(h);if(G<1)return h;var X=U?Xi(U,0,G).join(""):t.slice(0,G);if(x===c)return X+h;if(U&&(G+=X.length-G),wa(x)){if(t.slice(G).search(x)){var ue,le=X;for(x.global||(x=Se(x.source,wt(Hr.exec(x))+"g")),x.lastIndex=0;ue=x.exec(le);)var ve=ue.index;X=X.slice(0,ve===c?G:ve)}}else if(t.indexOf(Pn(x),G)!=G){var Le=X.lastIndexOf(x);Le>-1&&(X=X.slice(0,Le))}return X+h}function zg(t){return t=wt(t),t&&nr.test(t)?t.replace(an,Li):t}var Qg=Yr(function(t,i,a){return t+(a?" ":"")+i.toUpperCase()}),Ta=Yu("toUpperCase");function Xf(t,i,a){return t=wt(t),i=a?c:i,i===c?Ei(t)?_(t):ke(t):t.match(i)||[]}var Yf=tt(function(t,i){try{return l(t,c,i)}catch(a){return ba(a)?a:new Q(a)}}),Xg=Ni(function(t,i){return p(i,function(a){a=di(a),Ii(t,a,ma(t[a],t))}),t});function Yg(t){var i=t==null?0:t.length,a=je();return t=i?se(t,function(h){if(typeof h[1]!="function")throw new Re(he);return[a(h[0]),h[1]]}):[],tt(function(h){for(var x=-1;++x<i;){var O=t[x];if(l(O[0],this,h))return l(O[1],this,h)}})}function Jg(t){return Tc(Un(t,xe))}function Ca(t){return function(){return t}}function Zg(t,i){return t==null||t!==t?i:t}var ev=Zu(),tv=Zu(!0);function Dn(t){return t}function Sa(t){return Lu(typeof t=="function"?t:Un(t,xe))}function nv(t){return Ou(Un(t,xe))}function iv(t,i){return Iu(t,Un(i,xe))}var rv=tt(function(t,i){return function(a){return qo(a,t,i)}}),ov=tt(function(t,i){return function(a){return qo(t,a,i)}});function Ea(t,i,a){var h=en(i),x=us(i,h);a==null&&!(Nt(i)&&(x.length||!h.length))&&(a=i,i=t,t=this,x=us(i,en(i)));var O=!(Nt(a)&&"chain"in a)||!!a.chain,U=Pi(t);return p(x,function(G){var X=i[G];t[G]=X,U&&(t.prototype[G]=function(){var ue=this.__chain__;if(O||ue){var le=t(this.__wrapped__),ve=le.__actions__=An(this.__actions__);return ve.push({func:X,args:arguments,thisArg:t}),le.__chain__=ue,le}return X.apply(t,Ae([this.value()],arguments))})}),t}function sv(){return xt._===this&&(xt._=Il),this}function Aa(){}function av(t){return t=Xe(t),tt(function(i){return Ru(i,t)})}var uv=ra(se),fv=ra(B),lv=ra(Ve);function Jf(t){return ca(t)?mn(di(t)):Fc(t)}function cv(t){return function(i){return t==null?c:Or(t,i)}}var hv=tf(),dv=tf(!0);function ka(){return[]}function La(){return!1}function pv(){return{}}function gv(){return""}function vv(){return!0}function mv(t,i){if(t=Xe(t),t<1||t>N)return[];var a=re,h=ln(t,re);i=je(i),t-=re;for(var x=Jn(h,i);++a<t;)i(a);return x}function yv(t){return ze(t)?se(t,di):qn(t)?[t]:An(yf(wt(t)))}function bv(t){var i=++Dl;return wt(t)+i}var wv=ps(function(t,i){return t+i},0),xv=oa("ceil"),_v=ps(function(t,i){return t/i},1),Tv=oa("floor");function Cv(t){return t&&t.length?as(t,Dn,Ws):c}function Sv(t,i){return t&&t.length?as(t,je(i,2),Ws):c}function Ev(t){return Dt(t,Dn)}function Av(t,i){return Dt(t,je(i,2))}function kv(t){return t&&t.length?as(t,Dn,zs):c}function Lv(t,i){return t&&t.length?as(t,je(i,2),zs):c}var Dv=ps(function(t,i){return t*i},1),Ov=oa("round"),Iv=ps(function(t,i){return t-i},0);function Rv(t){return t&&t.length?_t(t,Dn):0}function Nv(t,i){return t&&t.length?_t(t,je(i,2)):0}return L.after=np,L.ary=Lf,L.assign=Up,L.assignIn=Uf,L.assignInWith=As,L.assignWith=Wp,L.at=Kp,L.before=Df,L.bind=ma,L.bindAll=Xg,L.bindKey=Of,L.castArray=pp,L.chain=Ef,L.chunk=Th,L.compact=Ch,L.concat=Sh,L.cond=Yg,L.conforms=Jg,L.constant=Ca,L.countBy=Rd,L.create=Gp,L.curry=If,L.curryRight=Rf,L.debounce=Nf,L.defaults=Vp,L.defaultsDeep=zp,L.defer=ip,L.delay=rp,L.difference=Eh,L.differenceBy=Ah,L.differenceWith=kh,L.drop=Lh,L.dropRight=Dh,L.dropRightWhile=Oh,L.dropWhile=Ih,L.fill=Rh,L.filter=Md,L.flatMap=Hd,L.flatMapDeep=Bd,L.flatMapDepth=Fd,L.flatten=_f,L.flattenDeep=Nh,L.flattenDepth=Mh,L.flip=op,L.flow=ev,L.flowRight=tv,L.fromPairs=Ph,L.functions=tg,L.functionsIn=ng,L.groupBy=$d,L.initial=Hh,L.intersection=Bh,L.intersectionBy=Fh,L.intersectionWith=$h,L.invert=rg,L.invertBy=og,L.invokeMap=Ud,L.iteratee=Sa,L.keyBy=Wd,L.keys=en,L.keysIn=Ln,L.map=xs,L.mapKeys=ag,L.mapValues=ug,L.matches=nv,L.matchesProperty=iv,L.memoize=Ts,L.merge=fg,L.mergeWith=Wf,L.method=rv,L.methodOf=ov,L.mixin=Ea,L.negate=Cs,L.nthArg=av,L.omit=lg,L.omitBy=cg,L.once=sp,L.orderBy=Kd,L.over=uv,L.overArgs=ap,L.overEvery=fv,L.overSome=lv,L.partial=ya,L.partialRight=Mf,L.partition=Gd,L.pick=hg,L.pickBy=Kf,L.property=Jf,L.propertyOf=cv,L.pull=Kh,L.pullAll=Cf,L.pullAllBy=Gh,L.pullAllWith=Vh,L.pullAt=zh,L.range=hv,L.rangeRight=dv,L.rearg=up,L.reject=Qd,L.remove=Qh,L.rest=fp,L.reverse=ga,L.sampleSize=Yd,L.set=pg,L.setWith=gg,L.shuffle=Jd,L.slice=Xh,L.sortBy=tp,L.sortedUniq=id,L.sortedUniqBy=rd,L.split=Hg,L.spread=lp,L.tail=od,L.take=sd,L.takeRight=ad,L.takeRightWhile=ud,L.takeWhile=fd,L.tap=Cd,L.throttle=cp,L.thru=ws,L.toArray=Ff,L.toPairs=Gf,L.toPairsIn=Vf,L.toPath=yv,L.toPlainObject=jf,L.transform=vg,L.unary=hp,L.union=ld,L.unionBy=cd,L.unionWith=hd,L.uniq=dd,L.uniqBy=pd,L.uniqWith=gd,L.unset=mg,L.unzip=va,L.unzipWith=Sf,L.update=yg,L.updateWith=bg,L.values=eo,L.valuesIn=wg,L.without=vd,L.words=Xf,L.wrap=dp,L.xor=md,L.xorBy=yd,L.xorWith=bd,L.zip=wd,L.zipObject=xd,L.zipObjectDeep=_d,L.zipWith=Td,L.entries=Gf,L.entriesIn=Vf,L.extend=Uf,L.extendWith=As,Ea(L,L),L.add=wv,L.attempt=Yf,L.camelCase=Cg,L.capitalize=zf,L.ceil=xv,L.clamp=xg,L.clone=gp,L.cloneDeep=mp,L.cloneDeepWith=yp,L.cloneWith=vp,L.conformsTo=bp,L.deburr=Qf,L.defaultTo=Zg,L.divide=_v,L.endsWith=Sg,L.eq=ti,L.escape=Eg,L.escapeRegExp=Ag,L.every=Nd,L.find=Pd,L.findIndex=wf,L.findKey=Qp,L.findLast=qd,L.findLastIndex=xf,L.findLastKey=Xp,L.floor=Tv,L.forEach=Af,L.forEachRight=kf,L.forIn=Yp,L.forInRight=Jp,L.forOwn=Zp,L.forOwnRight=eg,L.get=xa,L.gt=wp,L.gte=xp,L.has=ig,L.hasIn=_a,L.head=Tf,L.identity=Dn,L.includes=jd,L.indexOf=qh,L.inRange=_g,L.invoke=sg,L.isArguments=Nr,L.isArray=ze,L.isArrayBuffer=_p,L.isArrayLike=kn,L.isArrayLikeObject=Bt,L.isBoolean=Tp,L.isBuffer=Yi,L.isDate=Cp,L.isElement=Sp,L.isEmpty=Ep,L.isEqual=Ap,L.isEqualWith=kp,L.isError=ba,L.isFinite=Lp,L.isFunction=Pi,L.isInteger=Pf,L.isLength=Ss,L.isMap=qf,L.isMatch=Dp,L.isMatchWith=Op,L.isNaN=Ip,L.isNative=Rp,L.isNil=Mp,L.isNull=Np,L.isNumber=Hf,L.isObject=Nt,L.isObjectLike=qt,L.isPlainObject=Uo,L.isRegExp=wa,L.isSafeInteger=Pp,L.isSet=Bf,L.isString=Es,L.isSymbol=qn,L.isTypedArray=Zr,L.isUndefined=qp,L.isWeakMap=Hp,L.isWeakSet=Bp,L.join=jh,L.kebabCase=kg,L.last=Kn,L.lastIndexOf=Uh,L.lowerCase=Lg,L.lowerFirst=Dg,L.lt=Fp,L.lte=$p,L.max=Cv,L.maxBy=Sv,L.mean=Ev,L.meanBy=Av,L.min=kv,L.minBy=Lv,L.stubArray=ka,L.stubFalse=La,L.stubObject=pv,L.stubString=gv,L.stubTrue=vv,L.multiply=Dv,L.nth=Wh,L.noConflict=sv,L.noop=Aa,L.now=_s,L.pad=Og,L.padEnd=Ig,L.padStart=Rg,L.parseInt=Ng,L.random=Tg,L.reduce=Vd,L.reduceRight=zd,L.repeat=Mg,L.replace=Pg,L.result=dg,L.round=Ov,L.runInContext=w,L.sample=Xd,L.size=Zd,L.snakeCase=qg,L.some=ep,L.sortedIndex=Yh,L.sortedIndexBy=Jh,L.sortedIndexOf=Zh,L.sortedLastIndex=ed,L.sortedLastIndexBy=td,L.sortedLastIndexOf=nd,L.startCase=Bg,L.startsWith=Fg,L.subtract=Iv,L.sum=Rv,L.sumBy=Nv,L.template=$g,L.times=mv,L.toFinite=qi,L.toInteger=Xe,L.toLength=$f,L.toLower=jg,L.toNumber=Gn,L.toSafeInteger=jp,L.toString=wt,L.toUpper=Ug,L.trim=Wg,L.trimEnd=Kg,L.trimStart=Gg,L.truncate=Vg,L.unescape=zg,L.uniqueId=bv,L.upperCase=Qg,L.upperFirst=Ta,L.each=Af,L.eachRight=kf,L.first=Tf,Ea(L,(function(){var t={};return ci(L,function(i,a){Me.call(L.prototype,a)||(t[a]=i)}),t})(),{chain:!1}),L.VERSION=W,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){L[t].placeholder=L}),p(["drop","take"],function(t,i){at.prototype[t]=function(a){a=a===c?1:zt(Xe(a),0);var h=this.__filtered__&&!i?new at(this):this.clone();return h.__filtered__?h.__takeCount__=ln(a,h.__takeCount__):h.__views__.push({size:ln(a,re),type:t+(h.__dir__<0?"Right":"")}),h},at.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),p(["filter","map","takeWhile"],function(t,i){var a=i+1,h=a==Tt||a==On;at.prototype[t]=function(x){var O=this.clone();return O.__iteratees__.push({iteratee:je(x,3),type:a}),O.__filtered__=O.__filtered__||h,O}}),p(["head","last"],function(t,i){var a="take"+(i?"Right":"");at.prototype[t]=function(){return this[a](1).value()[0]}}),p(["initial","tail"],function(t,i){var a="drop"+(i?"":"Right");at.prototype[t]=function(){return this.__filtered__?new at(this):this[a](1)}}),at.prototype.compact=function(){return this.filter(Dn)},at.prototype.find=function(t){return this.filter(t).head()},at.prototype.findLast=function(t){return this.reverse().find(t)},at.prototype.invokeMap=tt(function(t,i){return typeof t=="function"?new at(this):this.map(function(a){return qo(a,t,i)})}),at.prototype.reject=function(t){return this.filter(Cs(je(t)))},at.prototype.slice=function(t,i){t=Xe(t);var a=this;return a.__filtered__&&(t>0||i<0)?new at(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),i!==c&&(i=Xe(i),a=i<0?a.dropRight(-i):a.take(i-t)),a)},at.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},at.prototype.toArray=function(){return this.take(re)},ci(at.prototype,function(t,i){var a=/^(?:filter|find|map|reject)|While$/.test(i),h=/^(?:head|last)$/.test(i),x=L[h?"take"+(i=="last"?"Right":""):i],O=h||/^find/.test(i);x&&(L.prototype[i]=function(){var U=this.__wrapped__,G=h?[1]:arguments,X=U instanceof at,ue=G[0],le=X||ze(U),ve=function(st){var lt=x.apply(L,Ae([st],G));return h&&Le?lt[0]:lt};le&&a&&typeof ue=="function"&&ue.length!=1&&(X=le=!1);var Le=this.__chain__,Pe=!!this.__actions__.length,Ue=O&&!Le,Je=X&&!Pe;if(!O&&le){U=Je?U:new at(this);var We=t.apply(U,G);return We.__actions__.push({func:ws,args:[ve],thisArg:c}),new jn(We,Le)}return Ue&&Je?t.apply(this,G):(We=this.thru(ve),Ue?h?We.value()[0]:We.value():We)})}),p(["pop","push","shift","sort","splice","unshift"],function(t){var i=dt[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",h=/^(?:pop|shift)$/.test(t);L.prototype[t]=function(){var x=arguments;if(h&&!this.__chain__){var O=this.value();return i.apply(ze(O)?O:[],x)}return this[a](function(U){return i.apply(ze(U)?U:[],x)})}}),ci(at.prototype,function(t,i){var a=L[i];if(a){var h=a.name+"";Me.call(zr,h)||(zr[h]=[]),zr[h].push({name:i,func:a})}}),zr[ds(c,b).name]=[{name:"wrapper",func:c}],at.prototype.clone=zl,at.prototype.reverse=Ql,at.prototype.value=Xl,L.prototype.at=Sd,L.prototype.chain=Ed,L.prototype.commit=Ad,L.prototype.next=kd,L.prototype.plant=Dd,L.prototype.reverse=Od,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=Id,L.prototype.first=L.prototype.head,Do&&(L.prototype[Do]=Ld),L}),M=I();vn?((vn.exports=M)._=M,Ci._=M):xt._=M}).call(tl)})(to,to.exports)),to.exports}var ks,Ra;function no(){if(Ra)return ks;Ra=1;var $=Mr().forEach,C=769,c={};return Array.prototype.indexOf||(Array.prototype.indexOf=function(W,Z){for(var ee=Z||0,he=this.length;ee<he;ee++)if(this[ee]===W)return ee;return-1}),c.documentReady=function(W){this.addEvent(document,"DOMContentLoaded",W),this.addEvent(window,"load",W)},c.addEvent=function(W,Z,ee){W.addEventListener?W.addEventListener(Z,ee,!1):W.attachEvent&&W.attachEvent("on"+Z,ee)},c.removeEvent=function(W,Z,ee){W.removeEventListener?W.removeEventListener(Z,ee,!1):W.detachEvent&&W.detachEvent("on"+Z,ee)},c.target=function(W){return W.target||W.srcElement},c.triggerEvent=function(W,Z){var ee;document.createEvent?(ee=new Event(Z),W.dispatchEvent(ee)):(ee=document.createEventObject(),W.fireEvent("on"+Z,ee))},c.preventDefault=function(W){W.preventDefault?W.preventDefault():event.returnValue=!1},c.hasClass=function(W,Z){return W.className.split(/\s/).indexOf(Z)!==-1},c.addClass=function(W,Z){var ee=W.className;ee===""?W.className=Z:(ee=ee.split(" "),ee.indexOf(Z)!==-1&&this.stripClasses(ee,Z),ee.push(Z),W.className=ee.join(" "))},c.addClasses=function(W,Z){$(Z,function(ee){c.addClass(W,ee)})},c.stripClasses=function(W,Z){for(var ee=0;ee<W.length;ee++)W[ee]===Z&&(W.splice(ee,1),--ee)},c.removeClass=function(W,Z){var ee=W.className;ee!==""&&(ee=ee.split(" "),this.stripClasses(ee,Z),W.className=ee.join(" "))},c.getElementsByClass=function(W,Z,ee){if(W.getElementsByClassName)return W.getElementsByClassName(ee);var he=[];return $(W.getElementsByTagName(Z),function(Ee){c.hasClass(Ee,ee)&&he.push(Ee)}),he},c.once=function(W,Z,ee){W&&(W.started=W.started||{},W.started[Z]||(W.started[Z]=!0,ee(W)))},c.viewportWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},c.scrollY=function(){return window.scrollY||document.documentElement.scrollTop||document.body.scrollTop},c.isDesktop=function(){return c.viewportWidth()>=C},c.isJSWindow=function(){return window.opener!==null},c.getStyle=function(W,Z){var ee="";return document.defaultView&&document.defaultView.getComputedStyle?ee=document.defaultView.getComputedStyle(W,"").getPropertyValue(Z):W.currentStyle&&(Z=Z.replace(/\-(\w)/g,function(he,Ee){return Ee.toUpperCase()}),ee=W.currentStyle[Z]),ee},c.pagehide=function(W){"onpagehide"in window?c.addEvent(window,"pagehide",W):c.addEvent(window,"unload",W)},ks=c,ks}var Ls,Na;function nl(){if(Na)return Ls;Na=1;var $=Mr().forEach,C=Mr().groupBy,c="form-focus",W=no(),Z,ee="block-label",he="focused",Ee="selected";function ye(y){W.addClass(W.target(y).parentNode,he)}function we(y){W.removeClass(W.target(y).parentNode,he)}function qe(y,k){k=k||W.target(y),$(Z[k.name],function(b){b.checked?W.addClass(b.parentNode,Ee):W.removeClass(b.parentNode,Ee)})}function xe(y){if(W.hasClass(y,ee)){var k=y.getElementsByTagName("input")[0];k&&k.type&&k.type.match(/radio|checkbox/)&&(W.addEvent(k,"focus",ye),W.addEvent(k,"blur",we),W.addEvent(k,"click",qe),qe(null,k))}}function _e(y){W.addEvent(y,"focus",ye),W.addEvent(y,"blur",we)}function D(y){Z=C(document.getElementsByTagName("input"),"name");for(var k=0,b=y.length;k<b;k++)W.once(y[k],c,xe)}function A(){var y=document.getElementsByTagName("form"),k=window.location.hash.replace(/^#/,""),b=window.location.pathname.split("/").pop(),T,g,S=k&&b==="edit";k&&document.getElementById(k)&&S&&document.getElementById(k).focus(),k&&document.getElementById(k+"-group")&&S&&document.getElementById(k+"-group").scrollIntoView(),document.getElementById(k+"-day")&&y.length===1&&S&&document.getElementById(k+"-day").focus(),y.length>0&&(T=document.getElementsByTagName("label"),T&&D(T)),g=document.getElementsByTagName("summary");for(var H=0,K=g.length;H<K;H++)W.once(g[H],c,_e)}return Ls=A,Ls}var Ds,Ma;function il(){if(Ma)return Ds;Ma=1;var $=Mr().forEach,C=Mr().groupBy,c=no(),W,Z,ee="data-toggle",he="govuk-checkboxes__conditional--hidden",Ee="govuk-radios__conditional--hidden";function ye(xe,_e){_e=_e||c.target(xe);var D;$(Z[_e.name],function(A){var y=A.type.match(/checkbox/)?he:Ee,k=A.getAttribute("aria-controls"),b=document.getElementById(k);if(b)if(A.checked){b.setAttribute("aria-hidden","false"),c.removeClass(b,y),D=b.id;var T=b.querySelectorAll("input,textarea")[0];A===_e&&T&&T.focus()}else D!==b.id&&(b.setAttribute("aria-hidden","true"),c.addClass(b,y))})}function we(xe){var _e=xe.getAttribute(ee),D=document.getElementById(_e+"-panel")?_e+"-panel":_e,A=document.getElementById(D);A&&(xe.setAttribute("aria-controls",D),ye(null,xe)),c.addEvent(xe,"click",ye)}function qe(){var xe=document.getElementsByTagName("form"),_e;if(xe.length>0){W=document.querySelectorAll("input,textarea"),Z=C(W,"name");for(var D=0,A=W.length;D<A;D++)_e=W[D],_e.type.match(/radio|checkbox/)&&c.once(_e,"progressive-reveal",we)}}return Ds=qe,Ds}var Os,Pa;function rl(){if(Pa)return Os;Pa=1;var $=Mr().forEach,C=no(),c="VALIDATION",W;function Z(ye){var we=C.target(ye),qe=we.getAttribute("href").replace(/^#/,""),xe=document.getElementById(qe+"-group")||document.getElementById(qe),_e;if(xe&&(xe.getElementsByTagName("input").length?_e=xe.getElementsByTagName("input"):xe.getElementsByTagName("textarea").length?_e=xe.getElementsByTagName("textarea"):xe.getElementsByTagName("select").length&&(_e=xe.getElementsByTagName("select")),_e))if(_e[0].getAttribute("type")==="hidden"){var D=xe.querySelectorAll("input[type=text]");D[0].focus()}else _e[0].focus()}function ee(ye){ye.keyCode===32&&Z(ye)}function he(ye){ye.focus();var we=ye.getElementsByTagName("a");$(we,function(qe){C.addEvent(qe,"click",Z),C.addEvent(qe,"keydown",ee)})}function Ee(){var ye=[];document.getElementById("content")&&(ye=C.getElementsByClass(document.getElementById("content"),"div","validation-summary")),ye.length&&(W=ye[0],C.once(W,c,function(we){he(we)}))}return Os=Ee,Os}var qa={},Ha;function ol(){return Ha||(Ha=1,(function(){var $=typeof document.createElement("details").open=="boolean";function C(he,Ee,ye){he.addEventListener?he.addEventListener(Ee,function(we){ye(we,we.target)},!1):he.attachEvent&&he.attachEvent("on"+Ee,function(we){ye(we,we.srcElement)})}function c(he,Ee){C(he,"keypress",function(ye,we){we.nodeName==="SUMMARY"&&ye.keyCode===32&&(ye.preventDefault?ye.preventDefault():ye.returnValue=!1)}),C(he,"keyup",function(ye,we){(ye.keyCode===13||ye.keyCode===32)&&Ee(ye,we)}),C(he,"mouseup",function(ye,we){Ee(ye,we)})}function W(he,Ee){do if(!he||he.nodeName.toLowerCase()===Ee)break;while(he=he.parentNode);return he}var Z=!1;function ee(he){if(Z||(Z=!0,(he=document.getElementsByTagName("details")).length===0))return;var Ee=he.length,ye=0;for(ye;ye<Ee;ye++){var we=he[ye];we.__summary=we.getElementsByTagName("summary").item(0),we.__content=we.getElementsByTagName("div").item(0),we.__content.id||(we.__content.id="details-content-"+ye),we.setAttribute("role","group"),we.__summary.setAttribute("role","button"),we.__summary.setAttribute("aria-controls",we.__content.id),$||(we.__summary.tabIndex=0);var qe=we.getAttribute("open")!==null;if(qe===!0?(we.__summary.setAttribute("aria-expanded","true"),we.__content.setAttribute("aria-hidden","false")):(we.__summary.setAttribute("aria-expanded","false"),we.__content.setAttribute("aria-hidden","true"),$||(we.__content.style.display="none")),we.__summary.__details=we,!$){var xe=document.createElement("i");qe===!0?(xe.className="arrow arrow-open",xe.appendChild(document.createTextNode("▼"))):(xe.className="arrow arrow-closed",xe.appendChild(document.createTextNode("►"))),we.__summary.__twisty=we.__summary.insertBefore(xe,we.__summary.firstChild),we.__summary.__twisty.setAttribute("aria-hidden","true")}}function _e(D){var A=D.__details.__summary.getAttribute("aria-expanded")==="true",y=D.__details.__content.getAttribute("aria-hidden")==="true";if(D.__details.__summary.setAttribute("aria-expanded",A?"false":"true"),D.__details.__content.setAttribute("aria-hidden",y?"false":"true"),!$){D.__details.__content.style.display=A?"none":"";var k=D.__details.getAttribute("open")!==null;k?D.__details.removeAttribute("open"):D.__details.setAttribute("open","open")}return D.__twisty&&(D.__twisty.firstChild.nodeValue=A?"►":"▼",D.__twisty.setAttribute("class",A?"arrow arrow-closed":"arrow arrow-open")),!0}c(document,function(D,A){return(A=W(A,"summary"))?_e(A):!0})}C(document,"DOMContentLoaded",ee),C(window,"load",ee)})()),qa}var Is,Ba;function sl(){if(Ba)return Is;Ba=1;var $=no();C.prototype.updateCount=function(){var W=this.$textarea.value.length,Z=" characters",ee=" remaining";(this.maxLength-W===1||W-this.maxLength===1)&&(Z=" character"),this.maxLength-W<0&&(ee=" too many");function he(ye){for(var we=/(\d+)(\d{3})/;we.test(ye);)ye=ye.replace(we,"$1,$2");return ye}var Ee=he(Math.abs(this.maxLength-W).toString());this.$maxlengthHint.innerHTML="You have "+Ee+Z+ee,W>=this.maxLength+1?($.removeClass(this.$maxlengthHint,"govuk-hint"),$.addClass(this.$maxlengthHint,"govuk-error-message"),$.addClass(this.$textarea,"textarea-error")):($.addClass(this.$maxlengthHint,"govuk-hint"),$.removeClass(this.$maxlengthHint,"govuk-error-message"),$.removeClass(this.$textarea,"textarea-error"))},C.prototype.checkIfLengthChanged=function(){this.$textarea.length!==this.oldLength&&(this.updateCount(),this.oldLength=this.$textarea.value.length)},C.prototype.handleFocus=function(){this.lengthChecker=setInterval(this.checkIfLengthChanged.bind(this),1e3)},C.prototype.handleBlur=function(){clearInterval(this.lengthChecker)},C.prototype.init=function(){this.updateCount(),this.$textarea.removeAttribute("maxlength"),$.addEvent(this.$textarea,"input",this.updateCount.bind(this)),$.addEvent(this.$textarea,"focus",this.handleFocus.bind(this)),$.addEvent(this.$textarea,"blur",this.handleBlur.bind(this))};function C(W){this.$textarea=W,this.$maxlengthHint=document.querySelector("[id="+this.$textarea.id+"-maxlength-hint]"),this.maxLength=parseInt(this.$textarea.getAttribute("maxlength")),this.oldLength=0}function c(){for(var W=document.getElementsByTagName("textarea"),Z=0;Z<W.length;Z++)W[Z].hasAttribute("maxlength")&&new C(W[Z]).init()}return Is=c,Is}var Rs,Fa;function al(){return Fa||(Fa=1,Rs={helpers:no(),formFocus:nl(),progressiveReveal:il(),validation:rl(),detailsSummary:function(){ol()},characterCount:sl()}),Rs}var io={exports:{}},ul=io.exports,$a;function fl(){return $a||($a=1,(function($,C){(function(c,W){W(C)})(ul,(function(c){var W="4.10.1";function Z(m,N){if(window.NodeList.prototype.forEach)return m.forEach(N);for(var F=0;F<m.length;F++)N.call(window,m[F],F,m)}function ee(){var m=new Date().getTime();return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(m+=window.performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(N){var F=(m+Math.random()*16)%16|0;return m=Math.floor(m/16),(N==="x"?F:F&3|8).toString(16)})}function he(){for(var m=function(me){var ce={},te=function(be,ge){for(var De in be)if(Object.prototype.hasOwnProperty.call(be,De)){var Ke=be[De],Ge=ge?ge+"."+De:De;typeof Ke=="object"?te(Ke,Ge):ce[Ge]=Ke}};return te(me),ce},N={},F=0;F<arguments.length;F++){var ne=m(arguments[F]);for(var re in ne)Object.prototype.hasOwnProperty.call(ne,re)&&(N[re]=ne[re])}return N}function Ee(m,N){if(!m||typeof m!="object")throw new Error('Provide a `configObject` of type "object".');var F={};for(var ne in m){var re=ne.split(".");if(Object.prototype.hasOwnProperty.call(m,ne)&&re[0]===N){re.length>1&&re.shift();var me=re.join(".");F[me]=m[ne]}}return F}(function(m){var N="defineProperty"in Object&&(function(){try{var F={};return Object.defineProperty(F,"test",{value:42}),!0}catch{return!1}})();N||(function(F){var ne=Object.prototype.hasOwnProperty("__defineGetter__"),re="Getters & setters cannot be defined on this javascript engine",me="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(te,be,ge){if(F&&(te===window||te===document||te===Element.prototype||te instanceof Element))return F(te,be,ge);if(te===null||!(te instanceof Object||typeof te=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(ge instanceof Object))throw new TypeError("Property description must be an object");var De=String(be),Ke="value"in ge||"writable"in ge,Ge="get"in ge&&typeof ge.get,Fe="set"in ge&&typeof ge.set;if(Ge){if(Ge!=="function")throw new TypeError("Getter must be a function");if(!ne)throw new TypeError(re);if(Ke)throw new TypeError(me);Object.__defineGetter__.call(te,De,ge.get)}else te[De]=ge.value;if(Fe){if(Fe!=="function")throw new TypeError("Setter must be a function");if(!ne)throw new TypeError(re);if(Ke)throw new TypeError(me);Object.__defineSetter__.call(te,De,ge.set)}return"value"in ge&&(te[De]=ge.value),te}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Document"in this;N||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Element"in this&&"HTMLElement"in this;N||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var F=document.appendChild(document.createElement("body")),ne=F.appendChild(document.createElement("iframe")),re=ne.contentWindow.document,me=Element.prototype=re.appendChild(re.createElement("*")),ce={},te=function(Fe,He){var Ze=Fe.childNodes||[],Qe=-1,Be,et,Ye;if(Fe.nodeType===1&&Fe.constructor!==Element){Fe.constructor=Element;for(Be in ce)et=ce[Be],Fe[Be]=et}for(;Ye=He&&Ze[++Qe];)te(Ye,He);return Fe},be=document.getElementsByTagName("*"),ge=document.createElement,De,Ke=100;me.attachEvent("onpropertychange",function(Fe){for(var He=Fe.propertyName,Ze=!ce.hasOwnProperty(He),Qe=me[He],Be=ce[He],et=-1,Ye;Ye=be[++et];)Ye.nodeType===1&&(Ze||Ye[He]===Be)&&(Ye[He]=Qe);ce[He]=Qe}),me.constructor=Element,me.hasAttribute||(me.hasAttribute=function(He){return this.getAttribute(He)!==null});function Ge(){return Ke--||clearTimeout(De),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(te(document,!0),De&&document.body.prototype&&clearTimeout(De),!!document.body.prototype):!1}Ge()||(document.onreadystatechange=Ge,De=setInterval(Ge,25)),document.createElement=function(He){var Ze=ge(String(He).toLowerCase());return te(Ze)},document.removeChild(F)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N=(function(){if(!document.documentElement.dataset)return!1;var F=document.createElement("div");return F.setAttribute("data-a-b","c"),F.dataset&&F.dataset.aB=="c"})();N||Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var F=this,ne=this.attributes,re={},me=0;me<ne.length;me++){var ce=ne[me];if(ce&&ce.name&&/^data-\w[.\w-]*$/.test(ce.name)){var te=ce.name,be=ce.value,ge=te.substr(5).replace(/-./g,function(De){return De.charAt(1).toUpperCase()});"__defineGetter__"in Object.prototype&&"__defineSetter__"in Object.prototype?Object.defineProperty(re,ge,{enumerable:!0,get:(function(){return this.value}).bind({value:be||""}),set:(function(Ke,Ge){typeof Ge<"u"?this.setAttribute(Ke,Ge):this.removeAttribute(Ke)}).bind(F,te)}):re[ge]=be}}return re}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="trim"in String.prototype;N||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});function ye(m){if(typeof m!="string")return m;var N=m.trim();return N==="true"?!0:N==="false"?!1:N.length>0&&isFinite(Number(N))?Number(N):m}function we(m){var N={};for(var F in m)N[F]=ye(m[F]);return N}function qe(m,N){this.translations=m||{},this.locale=N&&N.locale||document.documentElement.lang||"en"}qe.prototype.t=function(m,N){if(!m)throw new Error("i18n: lookup key missing");N&&typeof N.count=="number"&&(m=m+"."+this.getPluralSuffix(m,N.count));var F=this.translations[m];if(typeof F=="string")if(F.match(/%{(.\S+)}/)){if(!N)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(F,N)}else return F;else return m},qe.prototype.replacePlaceholders=function(m,N){var F;return this.hasIntlNumberFormatSupport()&&(F=new Intl.NumberFormat(this.locale)),m.replace(/%{(.\S+)}/g,function(ne,re){if(Object.prototype.hasOwnProperty.call(N,re)){var me=N[re];return me===!1||typeof me!="number"&&typeof me!="string"?"":typeof me=="number"?F?F.format(me):me.toString():me}else throw new Error("i18n: no data found to replace "+ne+" placeholder in string")})},qe.prototype.hasIntlPluralRulesSupport=function(){return!!(window.Intl&&"PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)},qe.prototype.hasIntlNumberFormatSupport=function(){return!!(window.Intl&&"NumberFormat"in window.Intl&&Intl.NumberFormat.supportedLocalesOf(this.locale).length)},qe.prototype.getPluralSuffix=function(m,N){if(N=Number(N),!isFinite(N))return"other";var F;if(this.hasIntlPluralRulesSupport()?F=new Intl.PluralRules(this.locale).select(N):F=this.selectPluralFormUsingFallbackRules(N),m+"."+F in this.translations)return F;if(m+".other"in this.translations)return console&&"warn"in console&&console.warn('i18n: Missing plural form ".'+F+'" for "'+this.locale+'" locale. Falling back to ".other".'),"other";throw new Error('i18n: Plural form ".other" is required for "'+this.locale+'" locale')},qe.prototype.selectPluralFormUsingFallbackRules=function(m){m=Math.abs(Math.floor(m));var N=this.getPluralRulesForLocale();return N?qe.pluralRules[N](m):"other"},qe.prototype.getPluralRulesForLocale=function(){var m=this.locale,N=m.split("-")[0];for(var F in qe.pluralRulesMap)if(Object.prototype.hasOwnProperty.call(qe.pluralRulesMap,F)){for(var ne=qe.pluralRulesMap[F],re=0;re<ne.length;re++)if(ne[re]===m||ne[re]===N)return F}},qe.pluralRulesMap={arabic:["ar"],chinese:["my","zh","id","ja","jv","ko","ms","th","vi"],french:["hy","bn","fr","gu","hi","fa","pa","zu"],german:["af","sq","az","eu","bg","ca","da","nl","en","et","fi","ka","de","el","hu","lb","no","so","sw","sv","ta","te","tr","ur"],irish:["ga"],russian:["ru","uk"],scottish:["gd"],spanish:["pt-PT","it","es"],welsh:["cy"]},qe.pluralRules={arabic:function(m){return m===0?"zero":m===1?"one":m===2?"two":m%100>=3&&m%100<=10?"few":m%100>=11&&m%100<=99?"many":"other"},chinese:function(){return"other"},french:function(m){return m===0||m===1?"one":"other"},german:function(m){return m===1?"one":"other"},irish:function(m){return m===1?"one":m===2?"two":m>=3&&m<=6?"few":m>=7&&m<=10?"many":"other"},russian:function(m){var N=m%100,F=N%10;return F===1&&N!==11?"one":F>=2&&F<=4&&!(N>=12&&N<=14)?"few":F===0||F>=5&&F<=9||N>=11&&N<=14?"many":"other"},scottish:function(m){return m===1||m===11?"one":m===2||m===12?"two":m>=3&&m<=10||m>=13&&m<=19?"few":"other"},spanish:function(m){return m===1?"one":m%1e6===0&&m!==0?"many":"other"},welsh:function(m){return m===0?"zero":m===1?"one":m===2?"two":m===3?"few":m===6?"many":"other"}},(function(m){var N="DOMTokenList"in this&&(function(F){return"classList"in F?!F.classList.toggle("x",!1)&&!F.className:!0})(document.createElement("x"));N||(function(F){var ne="DOMTokenList"in F&&F.DOMTokenList;(!ne||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(F.DOMTokenList=(function(){var re=!0,me=function(te,be,ge,De){Object.defineProperty?Object.defineProperty(te,be,{configurable:re===!1?!0:!!De,get:ge}):te.__defineGetter__(be,ge)};try{me({},"support")}catch{re=!1}var ce=function(te,be){var ge=this,De=[],Ke={},Ge=0,Fe=0,He=function(Be){me(ge,Be,function(){return Qe(),De[Be]},!1)},Ze=function(){if(Ge>=Fe)for(;Fe<Ge;++Fe)He(Fe)},Qe=function(){var Be,et,Ye=arguments,rt=/\s+/;if(Ye.length){for(et=0;et<Ye.length;++et)if(rt.test(Ye[et]))throw Be=new SyntaxError('String "'+Ye[et]+'" contains an invalid character'),Be.code=5,Be.name="InvalidCharacterError",Be}for(typeof te[be]=="object"?De=(""+te[be].baseVal).replace(/^\s+|\s+$/g,"").split(rt):De=(""+te[be]).replace(/^\s+|\s+$/g,"").split(rt),De[0]===""&&(De=[]),Ke={},et=0;et<De.length;++et)Ke[De[et]]=!0;Ge=De.length,Ze()};return Qe(),me(ge,"length",function(){return Qe(),Ge}),ge.toLocaleString=ge.toString=function(){return Qe(),De.join(" ")},ge.item=function(Be){return Qe(),De[Be]},ge.contains=function(Be){return Qe(),!!Ke[Be]},ge.add=function(){Qe.apply(ge,Be=arguments);for(var Be,et,Ye=0,rt=Be.length;Ye<rt;++Ye)et=Be[Ye],Ke[et]||(De.push(et),Ke[et]=!0);Ge!==De.length&&(Ge=De.length>>>0,typeof te[be]=="object"?te[be].baseVal=De.join(" "):te[be]=De.join(" "),Ze())},ge.remove=function(){Qe.apply(ge,Be=arguments);for(var Be,et={},Ye=0,rt=[];Ye<Be.length;++Ye)et[Be[Ye]]=!0,delete Ke[Be[Ye]];for(Ye=0;Ye<De.length;++Ye)et[De[Ye]]||rt.push(De[Ye]);De=rt,Ge=rt.length>>>0,typeof te[be]=="object"?te[be].baseVal=De.join(" "):te[be]=De.join(" "),Ze()},ge.toggle=function(Be,et){return Qe.apply(ge,[Be]),m!==et?et?(ge.add(Be),!0):(ge.remove(Be),!1):Ke[Be]?(ge.remove(Be),!1):(ge.add(Be),!0)},ge};return ce})()),(function(){var re=document.createElement("span");"classList"in re&&(re.classList.toggle("x",!1),re.classList.contains("x")&&(re.classList.constructor.prototype.toggle=function(ce){var te=arguments[1];if(te===m){var be=!this.contains(ce);return this[be?"add":"remove"](ce),be}return te=!!te,this[te?"add":"remove"](ce),te}))})(),(function(){var re=document.createElement("span");if("classList"in re&&(re.classList.add("a","b"),!re.classList.contains("b"))){var me=re.classList.constructor.prototype.add;re.classList.constructor.prototype.add=function(){for(var ce=arguments,te=arguments.length,be=0;be<te;be++)me.call(this,ce[be])}}})(),(function(){var re=document.createElement("span");if("classList"in re&&(re.classList.add("a"),re.classList.add("b"),re.classList.remove("a","b"),!!re.classList.contains("b"))){var me=re.classList.constructor.prototype.remove;re.classList.constructor.prototype.remove=function(){for(var ce=arguments,te=arguments.length,be=0;be<te;be++)me.call(this,ce[be])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var F=document.createElement("span");return F.classList.add("a","b"),F.classList.contains("b")})();N||(function(F){var ne=!0,re=function(ce,te,be,ge){Object.defineProperty?Object.defineProperty(ce,te,{configurable:ne===!1?!0:!!ge,get:be}):ce.__defineGetter__(te,be)};try{re({},"support")}catch{ne=!1}var me=function(ce,te,be){re(ce.prototype,te,function(){var ge,De=this,Ke="__defineGetter__DEFINE_PROPERTY"+te;if(De[Ke])return ge;if(De[Ke]=!0,ne===!1){for(var Ge,Fe=me.mirror||document.createElement("div"),He=Fe.childNodes,Ze=He.length,Qe=0;Qe<Ze;++Qe)if(He[Qe]._R===De){Ge=He[Qe];break}Ge||(Ge=Fe.appendChild(document.createElement("div"))),ge=DOMTokenList.call(Ge,De,be)}else ge=new DOMTokenList(De,be);return re(De,te,function(){return ge}),delete De[Ke],ge},!0)};me(F.Element,"classList","className"),me(F.HTMLElement,"classList","className"),me(F.HTMLLinkElement,"relList","rel"),me(F.HTMLAnchorElement,"relList","rel"),me(F.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"matches"in document.documentElement;N||(Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(ne){for(var re=this,me=(re.document||re.ownerDocument).querySelectorAll(ne),ce=0;me[ce]&&me[ce]!==re;)++ce;return!!me[ce]})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"closest"in document.documentElement;N||(Element.prototype.closest=function(ne){for(var re=this;re;){if(re.matches(ne))return re;re="SVGElement"in window&&re instanceof SVGElement?re.parentNode:re.parentElement}return null})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Window"in this;N||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(F){F.constructor?F.Window=F.constructor:(F.Window=F.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N=(function(F){if(!("Event"in F))return!1;if(typeof F.Event=="function")return!0;try{return new Event("click"),!0}catch{return!1}})(this);N||(function(){var F={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function ne(me,ce){for(var te=-1,be=me.length;++te<be;)if(te in me&&me[te]===ce)return te;return-1}var re=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(ce,te){if(!ce)throw new Error("Not enough arguments");var be;if("createEvent"in document){be=document.createEvent("Event");var ge=te&&te.bubbles!==m?te.bubbles:!1,De=te&&te.cancelable!==m?te.cancelable:!1;return be.initEvent(ce,ge,De),be}return be=document.createEventObject(),be.type=ce,be.bubbles=te&&te.bubbles!==m?te.bubbles:!1,be.cancelable=te&&te.cancelable!==m?te.cancelable:!1,be},re&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:re}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var ce=this,te=arguments[0],be=arguments[1];if(ce===window&&te in F)throw new Error("In IE8 the event: "+te+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");ce._events||(ce._events={}),ce._events[te]||(ce._events[te]=function(ge){var De=ce._events[ge.type].list,Ke=De.slice(),Ge=-1,Fe=Ke.length,He;for(ge.preventDefault=function(){ge.cancelable!==!1&&(ge.returnValue=!1)},ge.stopPropagation=function(){ge.cancelBubble=!0},ge.stopImmediatePropagation=function(){ge.cancelBubble=!0,ge.cancelImmediate=!0},ge.currentTarget=ce,ge.relatedTarget=ge.fromElement||null,ge.target=ge.target||ge.srcElement||ce,ge.timeStamp=new Date().getTime(),ge.clientX&&(ge.pageX=ge.clientX+document.documentElement.scrollLeft,ge.pageY=ge.clientY+document.documentElement.scrollTop);++Ge<Fe&&!ge.cancelImmediate;)Ge in Ke&&(He=Ke[Ge],ne(De,He)!==-1&&typeof He=="function"&&He.call(ce,ge))},ce._events[te].list=[],ce.attachEvent&&ce.attachEvent("on"+te,ce._events[te])),ce._events[te].list.push(be)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var ce=this,te=arguments[0],be=arguments[1],ge;ce._events&&ce._events[te]&&ce._events[te].list&&(ge=ne(ce._events[te].list,be),ge!==-1&&(ce._events[te].list.splice(ge,1),ce._events[te].list.length||(ce.detachEvent&&ce.detachEvent("on"+te,ce._events[te]),delete ce._events[te])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(ce){if(!arguments.length)throw new Error("Not enough arguments");if(!ce||typeof ce.type!="string")throw new Error("DOM Events Exception 0");var te=this,be=ce.type;try{if(!ce.bubbles){ce.cancelBubble=!0;var ge=function(De){De.cancelBubble=!0,(te||window).detachEvent("on"+be,ge)};this.attachEvent("on"+be,ge)}this.fireEvent("on"+be,ce)}catch{ce.target=te;do ce.currentTarget=te,"_events"in te&&typeof te._events[be]=="function"&&te._events[be].call(te,ce),typeof te["on"+be]=="function"&&te["on"+be].call(te,ce),te=te.nodeType===9?te.parentWindow:te.parentNode;while(te&&!ce.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="bind"in Function.prototype;N||Object.defineProperty(Function.prototype,"bind",{value:function(ne){var re=Array,me=Object,ce=me.prototype,te=re.prototype,be=function(){},ge=ce.toString,De=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke,Ge=Function.prototype.toString,Fe=function(ie){try{return Ge.call(ie),!0}catch{return!1}},He="[object Function]",Ze="[object GeneratorFunction]";Ke=function(ie){if(typeof ie!="function")return!1;if(De)return Fe(ie);var ut=ge.call(ie);return ut===He||ut===Ze};var Qe=te.slice,Be=te.concat,et=te.push,Ye=Math.max,rt=this;if(!Ke(rt))throw new TypeError("Function.prototype.bind called on incompatible "+rt);for(var St=Qe.call(arguments,1),ii,Vn=function(){if(this instanceof ii){var jt=rt.apply(this,Be.call(St,Qe.call(arguments)));return me(jt)===jt?jt:this}else return rt.apply(ne,Be.call(St,Qe.call(arguments)))},tn=Ye(0,rt.length-St.length),bt=[],$t=0;$t<tn;$t++)et.call(bt,"$"+$t);return ii=Function("binder","return function ("+bt.join(",")+"){ return binder.apply(this, arguments); }")(Vn),rt.prototype&&(be.prototype=rt.prototype,ii.prototype=new be,be.prototype=null),ii}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});var xe={hideAllSections:"Hide all sections",hideSection:"Hide",hideSectionAriaLabel:"Hide this section",showAllSections:"Show all sections",showSection:"Show",showSectionAriaLabel:"Show this section"};function _e(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={i18n:xe,rememberExpanded:!0};this.config=he(F,N||{},we(m.dataset)),this.i18n=new qe(Ee(this.config,"i18n")),this.controlsClass="govuk-accordion__controls",this.showAllClass="govuk-accordion__show-all",this.showAllTextClass="govuk-accordion__show-all-text",this.sectionClass="govuk-accordion__section",this.sectionExpandedClass="govuk-accordion__section--expanded",this.sectionButtonClass="govuk-accordion__section-button",this.sectionHeaderClass="govuk-accordion__section-header",this.sectionHeadingClass="govuk-accordion__section-heading",this.sectionHeadingDividerClass="govuk-accordion__section-heading-divider",this.sectionHeadingTextClass="govuk-accordion__section-heading-text",this.sectionHeadingTextFocusClass="govuk-accordion__section-heading-text-focus",this.sectionShowHideToggleClass="govuk-accordion__section-toggle",this.sectionShowHideToggleFocusClass="govuk-accordion__section-toggle-focus",this.sectionShowHideTextClass="govuk-accordion__section-toggle-text",this.upChevronIconClass="govuk-accordion-nav__chevron",this.downChevronIconClass="govuk-accordion-nav__chevron--down",this.sectionSummaryClass="govuk-accordion__section-summary",this.sectionSummaryFocusClass="govuk-accordion__section-summary-focus",this.sectionContentClass="govuk-accordion__section-content";var ne=this.$module.querySelectorAll("."+this.sectionClass);if(!ne.length)return this;this.$sections=ne,this.browserSupportsSessionStorage=D.checkForSessionStorage(),this.$showAllButton=null,this.$showAllIcon=null,this.$showAllText=null}_e.prototype.init=function(){if(!(!this.$module||!this.$sections)){this.initControls(),this.initSectionHeaders();var m=this.checkIfAllSectionsOpen();this.updateShowAllButton(m)}},_e.prototype.initControls=function(){this.$showAllButton=document.createElement("button"),this.$showAllButton.setAttribute("type","button"),this.$showAllButton.setAttribute("class",this.showAllClass),this.$showAllButton.setAttribute("aria-expanded","false"),this.$showAllIcon=document.createElement("span"),this.$showAllIcon.classList.add(this.upChevronIconClass),this.$showAllButton.appendChild(this.$showAllIcon);var m=document.createElement("div");m.setAttribute("class",this.controlsClass),m.appendChild(this.$showAllButton),this.$module.insertBefore(m,this.$module.firstChild),this.$showAllText=document.createElement("span"),this.$showAllText.classList.add(this.showAllTextClass),this.$showAllButton.appendChild(this.$showAllText),this.$showAllButton.addEventListener("click",this.onShowOrHideAllToggle.bind(this)),"onbeforematch"in document&&document.addEventListener("beforematch",this.onBeforeMatch.bind(this))},_e.prototype.initSectionHeaders=function(){var m=this,N=this.$sections;Z(N,function(F,ne){var re=F.querySelector("."+m.sectionHeaderClass);re&&(m.constructHeaderMarkup(re,ne),m.setExpanded(m.isExpanded(F),F),re.addEventListener("click",m.onSectionToggle.bind(m,F)),m.setInitialState(F))})},_e.prototype.constructHeaderMarkup=function(m,N){var F=m.querySelector("."+this.sectionButtonClass),ne=m.querySelector("."+this.sectionHeadingClass),re=m.querySelector("."+this.sectionSummaryClass);if(!(!F||!ne)){var me=document.createElement("button");me.setAttribute("type","button"),me.setAttribute("aria-controls",this.$module.id+"-content-"+(N+1).toString());for(var ce=0;ce<F.attributes.length;ce++){var te=F.attributes.item(ce);te.nodeName!=="id"&&me.setAttribute(te.nodeName,te.nodeValue)}var be=document.createElement("span");be.classList.add(this.sectionHeadingTextClass),be.id=F.id;var ge=document.createElement("span");ge.classList.add(this.sectionHeadingTextFocusClass),be.appendChild(ge),ge.innerHTML=F.innerHTML;var De=document.createElement("span");De.classList.add(this.sectionShowHideToggleClass),De.setAttribute("data-nosnippet","");var Ke=document.createElement("span");Ke.classList.add(this.sectionShowHideToggleFocusClass),De.appendChild(Ke);var Ge=document.createElement("span"),Fe=document.createElement("span");if(Fe.classList.add(this.upChevronIconClass),Ke.appendChild(Fe),Ge.classList.add(this.sectionShowHideTextClass),Ke.appendChild(Ge),me.appendChild(be),me.appendChild(this.getButtonPunctuationEl()),re){var He=document.createElement("span"),Ze=document.createElement("span");Ze.classList.add(this.sectionSummaryFocusClass),He.appendChild(Ze);for(var Qe=0,Be=re.attributes.length;Qe<Be;++Qe){var et=re.attributes.item(Qe).nodeName,Ye=re.attributes.item(Qe).nodeValue;He.setAttribute(et,Ye)}Ze.innerHTML=re.innerHTML,re.parentNode.replaceChild(He,re),me.appendChild(He),me.appendChild(this.getButtonPunctuationEl())}me.appendChild(De),ne.removeChild(F),ne.appendChild(me)}},_e.prototype.onBeforeMatch=function(m){var N=m.target;if(N instanceof Element){var F=N.closest("."+this.sectionClass);F&&this.setExpanded(!0,F)}},_e.prototype.onSectionToggle=function(m){var N=this.isExpanded(m);this.setExpanded(!N,m),this.storeState(m)},_e.prototype.onShowOrHideAllToggle=function(){var m=this,N=this.$sections,F=!this.checkIfAllSectionsOpen();Z(N,function(ne){m.setExpanded(F,ne),m.storeState(ne)}),m.updateShowAllButton(F)},_e.prototype.setExpanded=function(m,N){var F=N.querySelector("."+this.upChevronIconClass),ne=N.querySelector("."+this.sectionShowHideTextClass),re=N.querySelector("."+this.sectionButtonClass),me=N.querySelector("."+this.sectionContentClass);if(!(!F||!(ne instanceof HTMLElement)||!re||!me)){var ce=m?this.i18n.t("hideSection"):this.i18n.t("showSection");ne.innerText=ce,re.setAttribute("aria-expanded",m.toString());var te=[],be=N.querySelector("."+this.sectionHeadingTextClass);be instanceof HTMLElement&&te.push(be.innerText.trim());var ge=N.querySelector("."+this.sectionSummaryClass);ge instanceof HTMLElement&&te.push(ge.innerText.trim());var De=m?this.i18n.t("hideSectionAriaLabel"):this.i18n.t("showSectionAriaLabel");te.push(De),re.setAttribute("aria-label",te.join(" , ")),m?(me.removeAttribute("hidden"),N.classList.add(this.sectionExpandedClass),F.classList.remove(this.downChevronIconClass)):(me.setAttribute("hidden","until-found"),N.classList.remove(this.sectionExpandedClass),F.classList.add(this.downChevronIconClass));var Ke=this.checkIfAllSectionsOpen();this.updateShowAllButton(Ke)}},_e.prototype.isExpanded=function(m){return m.classList.contains(this.sectionExpandedClass)},_e.prototype.checkIfAllSectionsOpen=function(){var m=this.$sections.length,N=this.$module.querySelectorAll("."+this.sectionExpandedClass).length,F=m===N;return F},_e.prototype.updateShowAllButton=function(m){var N=m?this.i18n.t("hideAllSections"):this.i18n.t("showAllSections");this.$showAllButton.setAttribute("aria-expanded",m.toString()),this.$showAllText.innerText=N,m?this.$showAllIcon.classList.remove(this.downChevronIconClass):this.$showAllIcon.classList.add(this.downChevronIconClass)};var D={checkForSessionStorage:function(){var m="this is the test string",N;try{return window.sessionStorage.setItem(m,m),N=window.sessionStorage.getItem(m)===m.toString(),window.sessionStorage.removeItem(m),N}catch{return!1}}};_e.prototype.storeState=function(m){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){var N=m.querySelector("."+this.sectionButtonClass);if(N){var F=N.getAttribute("aria-controls"),ne=N.getAttribute("aria-expanded");F&&ne&&window.sessionStorage.setItem(F,ne)}}},_e.prototype.setInitialState=function(m){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){var N=m.querySelector("."+this.sectionButtonClass);if(N){var F=N.getAttribute("aria-controls"),ne=F?window.sessionStorage.getItem(F):null;ne!==null&&this.setExpanded(ne==="true",m)}}},_e.prototype.getButtonPunctuationEl=function(){var m=document.createElement("span");return m.classList.add("govuk-visually-hidden",this.sectionHeadingDividerClass),m.innerHTML=", ",m};var A=32,y=1;function k(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m,this.debounceFormSubmitTimer=null;var F={preventDoubleClick:!1};this.config=he(F,N||{},we(m.dataset))}k.prototype.init=function(){this.$module&&(this.$module.addEventListener("keydown",this.handleKeyDown),this.$module.addEventListener("click",this.debounce.bind(this)))},k.prototype.handleKeyDown=function(m){var N=m.target;m.keyCode===A&&N instanceof HTMLElement&&N.getAttribute("role")==="button"&&(m.preventDefault(),N.click())},k.prototype.debounce=function(m){if(this.config.preventDoubleClick){if(this.debounceFormSubmitTimer)return m.preventDefault(),!1;this.debounceFormSubmitTimer=setTimeout((function(){this.debounceFormSubmitTimer=null}).bind(this),y*1e3)}};function b(m,N){var F=m.closest("["+N+"]");return F?F.getAttribute(N):null}(function(m){var N="Date"in self&&"now"in self.Date&&"getTime"in self.Date.prototype;N||(Date.now=function(){return new Date().getTime()})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});var T={charactersUnderLimit:{one:"You have %{count} character remaining",other:"You have %{count} characters remaining"},charactersAtLimit:"You have 0 characters remaining",charactersOverLimit:{one:"You have %{count} character too many",other:"You have %{count} characters too many"},wordsUnderLimit:{one:"You have %{count} word remaining",other:"You have %{count} words remaining"},wordsAtLimit:"You have 0 words remaining",wordsOverLimit:{one:"You have %{count} word too many",other:"You have %{count} words too many"},textareaDescription:{other:""}};function g(m,N){if(!(m instanceof HTMLElement))return this;var F=m.querySelector(".govuk-js-character-count");if(!(F instanceof HTMLTextAreaElement||F instanceof HTMLInputElement))return this;var ne={threshold:0,i18n:T},re=we(m.dataset),me={};if(("maxwords"in re||"maxlength"in re)&&(me={maxlength:!1,maxwords:!1}),this.config=he(ne,N||{},me,re),this.i18n=new qe(Ee(this.config,"i18n"),{locale:b(m,"lang")}),this.maxLength=1/0,"maxwords"in this.config&&this.config.maxwords)this.maxLength=this.config.maxwords;else if("maxlength"in this.config&&this.config.maxlength)this.maxLength=this.config.maxlength;else return;this.$module=m,this.$textarea=F,this.$visibleCountMessage=null,this.$screenReaderCountMessage=null,this.lastInputTimestamp=null,this.lastInputValue="",this.valueChecker=null}g.prototype.init=function(){if(!(!this.$module||!this.$textarea)){var m=this.$textarea,N=document.getElementById(m.id+"-info");if(N){N.innerText.match(/^\s*$/)&&(N.innerText=this.i18n.t("textareaDescription",{count:this.maxLength})),m.insertAdjacentElement("afterend",N);var F=document.createElement("div");F.className="govuk-character-count__sr-status govuk-visually-hidden",F.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=F,N.insertAdjacentElement("afterend",F);var ne=document.createElement("div");ne.className=N.className,ne.classList.add("govuk-character-count__status"),ne.setAttribute("aria-hidden","true"),this.$visibleCountMessage=ne,N.insertAdjacentElement("afterend",ne),N.classList.add("govuk-visually-hidden"),m.removeAttribute("maxlength"),this.bindChangeEvents(),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.updateCountMessage.bind(this)),this.updateCountMessage()}}},g.prototype.bindChangeEvents=function(){var m=this.$textarea;m.addEventListener("keyup",this.handleKeyUp.bind(this)),m.addEventListener("focus",this.handleFocus.bind(this)),m.addEventListener("blur",this.handleBlur.bind(this))},g.prototype.handleKeyUp=function(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()},g.prototype.handleFocus=function(){this.valueChecker=setInterval((function(){(!this.lastInputTimestamp||Date.now()-500>=this.lastInputTimestamp)&&this.updateIfValueChanged()}).bind(this),1e3)},g.prototype.handleBlur=function(){clearInterval(this.valueChecker)},g.prototype.updateIfValueChanged=function(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())},g.prototype.updateCountMessage=function(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()},g.prototype.updateVisibleCountMessage=function(){var m=this.$textarea,N=this.$visibleCountMessage,F=this.maxLength-this.count(m.value);this.isOverThreshold()?N.classList.remove("govuk-character-count__message--disabled"):N.classList.add("govuk-character-count__message--disabled"),F<0?(m.classList.add("govuk-textarea--error"),N.classList.remove("govuk-hint"),N.classList.add("govuk-error-message")):(m.classList.remove("govuk-textarea--error"),N.classList.remove("govuk-error-message"),N.classList.add("govuk-hint")),N.innerText=this.getCountMessage()},g.prototype.updateScreenReaderCountMessage=function(){var m=this.$screenReaderCountMessage;this.isOverThreshold()?m.removeAttribute("aria-hidden"):m.setAttribute("aria-hidden","true"),m.innerText=this.getCountMessage()},g.prototype.count=function(m){if("maxwords"in this.config&&this.config.maxwords){var N=m.match(/\S+/g)||[];return N.length}else return m.length},g.prototype.getCountMessage=function(){var m=this.maxLength-this.count(this.$textarea.value),N="maxwords"in this.config&&this.config.maxwords?"words":"characters";return this.formatCountMessage(m,N)},g.prototype.formatCountMessage=function(m,N){if(m===0)return this.i18n.t(N+"AtLimit");var F=m<0?"OverLimit":"UnderLimit";return this.i18n.t(N+F,{count:Math.abs(m)})},g.prototype.isOverThreshold=function(){if(!this.config.threshold)return!0;var m=this.$textarea,N=this.count(m.value),F=this.maxLength,ne=F*this.config.threshold/100;return ne<=N};function S(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll('input[type="checkbox"]');if(!N.length)return this;this.$module=m,this.$inputs=N}S.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var m=this.$module,N=this.$inputs;Z(N,function(F){var ne=F.getAttribute("data-aria-controls");!ne||!document.getElementById(ne)||(F.setAttribute("aria-controls",ne),F.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),m.addEventListener("click",this.handleClick.bind(this))}},S.prototype.syncAllConditionalReveals=function(){Z(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},S.prototype.syncConditionalRevealWithInputState=function(m){var N=m.getAttribute("aria-controls");if(N){var F=document.getElementById(N);if(F&&F.classList.contains("govuk-checkboxes__conditional")){var ne=m.checked;m.setAttribute("aria-expanded",ne.toString()),F.classList.toggle("govuk-checkboxes__conditional--hidden",!ne)}}},S.prototype.unCheckAllInputsExcept=function(m){var N=this,F=document.querySelectorAll('input[type="checkbox"][name="'+m.name+'"]');Z(F,function(ne){var re=m.form===ne.form;re&&ne!==m&&(ne.checked=!1,N.syncConditionalRevealWithInputState(ne))})},S.prototype.unCheckExclusiveInputs=function(m){var N=this,F=document.querySelectorAll('input[data-behaviour="exclusive"][type="checkbox"][name="'+m.name+'"]');Z(F,function(ne){var re=m.form===ne.form;re&&(ne.checked=!1,N.syncConditionalRevealWithInputState(ne))})},S.prototype.handleClick=function(m){var N=m.target;if(!(!(N instanceof HTMLInputElement)||N.type!=="checkbox")){var F=N.getAttribute("aria-controls");if(F&&this.syncConditionalRevealWithInputState(N),!!N.checked){var ne=N.getAttribute("data-behaviour")==="exclusive";ne?this.unCheckAllInputsExcept(N):this.unCheckExclusiveInputs(N)}}};var H=13,K=32;function o(m){if(!(m instanceof HTMLElement))return this;this.$module=m,this.$summary=null,this.$content=null}o.prototype.init=function(){if(this.$module){var m="HTMLDetailsElement"in window&&this.$module instanceof HTMLDetailsElement;m||this.polyfillDetails()}},o.prototype.polyfillDetails=function(){var m=this.$module,N=this.$summary=m.getElementsByTagName("summary").item(0),F=this.$content=m.getElementsByTagName("div").item(0);!N||!F||(F.id||(F.id="details-content-"+ee()),m.setAttribute("role","group"),N.setAttribute("role","button"),N.setAttribute("aria-controls",F.id),N.tabIndex=0,this.$module.hasAttribute("open")?N.setAttribute("aria-expanded","true"):(N.setAttribute("aria-expanded","false"),F.style.display="none"),this.polyfillHandleInputs(this.polyfillSetAttributes.bind(this)))},o.prototype.polyfillSetAttributes=function(){return this.$module.hasAttribute("open")?(this.$module.removeAttribute("open"),this.$summary.setAttribute("aria-expanded","false"),this.$content.style.display="none"):(this.$module.setAttribute("open","open"),this.$summary.setAttribute("aria-expanded","true"),this.$content.style.display=""),!0},o.prototype.polyfillHandleInputs=function(m){this.$summary.addEventListener("keypress",function(N){var F=N.target;(N.keyCode===H||N.keyCode===K)&&F instanceof HTMLElement&&F.nodeName.toLowerCase()==="summary"&&(N.preventDefault(),F.click?F.click():m(N))}),this.$summary.addEventListener("keyup",function(N){var F=N.target;N.keyCode===K&&F instanceof HTMLElement&&F.nodeName.toLowerCase()==="summary"&&N.preventDefault()}),this.$summary.addEventListener("click",m)};function Y(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={disableAutoFocus:!1};this.config=he(F,N||{},we(m.dataset))}Y.prototype.init=function(){if(this.$module){var m=this.$module;this.setFocus(),m.addEventListener("click",this.handleClick.bind(this))}},Y.prototype.setFocus=function(){var m=this.$module;this.config.disableAutoFocus||(m.setAttribute("tabindex","-1"),m.addEventListener("blur",function(){m.removeAttribute("tabindex")}),m.focus())},Y.prototype.handleClick=function(m){var N=m.target;this.focusTarget(N)&&m.preventDefault()},Y.prototype.focusTarget=function(m){if(!(m instanceof HTMLAnchorElement))return!1;var N=this.getFragmentFromUrl(m.href);if(!N)return!1;var F=document.getElementById(N);if(!F)return!1;var ne=this.getAssociatedLegendOrLabel(F);return ne?(ne.scrollIntoView(),F.focus({preventScroll:!0}),!0):!1},Y.prototype.getFragmentFromUrl=function(m){if(m.indexOf("#")!==-1)return m.split("#").pop()},Y.prototype.getAssociatedLegendOrLabel=function(m){var N=m.closest("fieldset");if(N){var F=N.getElementsByTagName("legend");if(F.length){var ne=F[0];if(m instanceof HTMLInputElement&&(m.type==="checkbox"||m.type==="radio"))return ne;var re=ne.getBoundingClientRect().top,me=m.getBoundingClientRect();if(me.height&&window.innerHeight){var ce=me.top+me.height;if(ce-re<window.innerHeight/2)return ne}}}return document.querySelector("label[for='"+m.getAttribute("id")+"']")||m.closest("label")};var J={activated:"Loading.",timedOut:"Exit this page expired.",pressTwoMoreTimes:"Shift, press 2 more times to exit.",pressOneMoreTime:"Shift, press 1 more time to exit."};function fe(m,N){var F={i18n:J};if(!(m instanceof HTMLElement))return this;var ne=m.querySelector(".govuk-exit-this-page__button");if(!(ne instanceof HTMLElement))return this;this.config=he(F,N||{},we(m.dataset)),this.i18n=new qe(Ee(this.config,"i18n")),this.$module=m,this.$button=ne,this.$skiplinkButton=document.querySelector(".govuk-js-exit-this-page-skiplink"),this.$updateSpan=null,this.$indicatorContainer=null,this.$overlay=null,this.keypressCounter=0,this.lastKeyWasModified=!1,this.timeoutTime=5e3,this.keypressTimeoutId=null,this.timeoutMessageId=null}fe.prototype.initUpdateSpan=function(){this.$updateSpan=document.createElement("span"),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.className="govuk-visually-hidden",this.$module.appendChild(this.$updateSpan)},fe.prototype.initButtonClickHandler=function(){this.$button.addEventListener("click",this.handleClick.bind(this)),this.$skiplinkButton&&this.$skiplinkButton.addEventListener("click",this.handleClick.bind(this))},fe.prototype.buildIndicator=function(){this.$indicatorContainer=document.createElement("div"),this.$indicatorContainer.className="govuk-exit-this-page__indicator",this.$indicatorContainer.setAttribute("aria-hidden","true");for(var m=0;m<3;m++){var N=document.createElement("div");N.className="govuk-exit-this-page__indicator-light",this.$indicatorContainer.appendChild(N)}this.$button.appendChild(this.$indicatorContainer)},fe.prototype.updateIndicator=function(){this.keypressCounter>0?this.$indicatorContainer.classList.add("govuk-exit-this-page__indicator--visible"):this.$indicatorContainer.classList.remove("govuk-exit-this-page__indicator--visible");var m=this.$indicatorContainer.querySelectorAll(".govuk-exit-this-page__indicator-light");Z(m,(function(N,F){N.classList.toggle("govuk-exit-this-page__indicator-light--on",F<this.keypressCounter)}).bind(this))},fe.prototype.exitPage=function(){this.$updateSpan.innerText="",document.body.classList.add("govuk-exit-this-page-hide-content"),this.$overlay=document.createElement("div"),this.$overlay.className="govuk-exit-this-page-overlay",this.$overlay.setAttribute("role","alert"),document.body.appendChild(this.$overlay),this.$overlay.innerText=this.i18n.t("activated"),window.location.href=this.$button.getAttribute("href")},fe.prototype.handleClick=function(m){m.preventDefault(),this.exitPage()},fe.prototype.handleKeypress=function(m){(m.key==="Shift"||m.keyCode===16||m.which===16)&&!this.lastKeyWasModified?(this.keypressCounter+=1,this.updateIndicator(),this.timeoutMessageId!==null&&(clearTimeout(this.timeoutMessageId),this.timeoutMessageId=null),this.keypressCounter>=3?(this.keypressCounter=0,this.keypressTimeoutId!==null&&(clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null),this.exitPage()):this.keypressCounter===1?this.$updateSpan.innerText=this.i18n.t("pressTwoMoreTimes"):this.$updateSpan.innerText=this.i18n.t("pressOneMoreTime"),this.setKeypressTimer()):this.keypressTimeoutId!==null&&this.resetKeypressTimer(),this.lastKeyWasModified=m.shiftKey},fe.prototype.setKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=setTimeout(this.resetKeypressTimer.bind(this),this.timeoutTime)},fe.prototype.resetKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null,this.keypressCounter=0,this.$updateSpan.innerText=this.i18n.t("timedOut"),this.timeoutMessageId=setTimeout((function(){this.$updateSpan.innerText=""}).bind(this),this.timeoutTime),this.updateIndicator()},fe.prototype.resetPage=function(){document.body.classList.remove("govuk-exit-this-page-hide-content"),this.$overlay&&(this.$overlay.remove(),this.$overlay=null),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.innerText="",this.updateIndicator(),this.keypressTimeoutId&&clearTimeout(this.keypressTimeoutId),this.timeoutMessageId&&clearTimeout(this.timeoutMessageId)},fe.prototype.init=function(){this.buildIndicator(),this.initUpdateSpan(),this.initButtonClickHandler(),"govukFrontendExitThisPageKeypress"in document.body.dataset||(document.addEventListener("keyup",this.handleKeypress.bind(this),!0),document.body.dataset.govukFrontendExitThisPageKeypress="true"),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.resetPage.bind(this))};function Ie(m){if(!(m instanceof HTMLElement))return this;this.$module=m,this.$menuButton=m.querySelector(".govuk-js-header-toggle"),this.$menu=this.$menuButton&&m.querySelector("#"+this.$menuButton.getAttribute("aria-controls")),this.menuIsOpen=!1,this.mql=null}Ie.prototype.init=function(){!this.$module||!this.$menuButton||!this.$menu||("matchMedia"in window?(this.mql=window.matchMedia("(min-width: 48.0625em)"),"addEventListener"in this.mql?this.mql.addEventListener("change",this.syncState.bind(this)):this.mql.addListener(this.syncState.bind(this)),this.syncState(),this.$menuButton.addEventListener("click",this.handleMenuButtonClick.bind(this))):this.$menuButton.setAttribute("hidden",""))},Ie.prototype.syncState=function(){this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden",""))},Ie.prototype.handleMenuButtonClick=function(){this.menuIsOpen=!this.menuIsOpen,this.syncState()};function nt(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={disableAutoFocus:!1};this.config=he(F,N||{},we(m.dataset))}nt.prototype.init=function(){this.$module&&this.setFocus()},nt.prototype.setFocus=function(){var m=this.$module;this.config.disableAutoFocus||m.getAttribute("role")==="alert"&&(m.getAttribute("tabindex")||(m.setAttribute("tabindex","-1"),m.addEventListener("blur",function(){m.removeAttribute("tabindex")})),m.focus())};function Ce(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll('input[type="radio"]');if(!N.length)return this;this.$module=m,this.$inputs=N}Ce.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var m=this.$module,N=this.$inputs;Z(N,function(F){var ne=F.getAttribute("data-aria-controls");!ne||!document.getElementById(ne)||(F.setAttribute("aria-controls",ne),F.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),m.addEventListener("click",this.handleClick.bind(this))}},Ce.prototype.syncAllConditionalReveals=function(){Z(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},Ce.prototype.syncConditionalRevealWithInputState=function(m){var N=m.getAttribute("aria-controls");if(N){var F=document.getElementById(N);if(F&&F.classList.contains("govuk-radios__conditional")){var ne=m.checked;m.setAttribute("aria-expanded",ne.toString()),F.classList.toggle("govuk-radios__conditional--hidden",!ne)}}},Ce.prototype.handleClick=function(m){var N=this,F=m.target;if(!(!(F instanceof HTMLInputElement)||F.type!=="radio")){var ne=document.querySelectorAll('input[type="radio"][aria-controls]'),re=F.form,me=F.name;Z(ne,function(ce){var te=ce.form===re,be=ce.name===me;be&&te&&N.syncConditionalRevealWithInputState(ce)})}};function Tt(m){if(!(m instanceof HTMLAnchorElement))return this;this.$module=m,this.$linkedElement=null,this.linkedElementListener=!1}Tt.prototype.init=function(){if(this.$module){var m=this.getLinkedElement();m&&(this.$linkedElement=m,this.$module.addEventListener("click",this.focusLinkedElement.bind(this)))}},Tt.prototype.getLinkedElement=function(){var m=this.getFragmentFromUrl();return m?document.getElementById(m):null},Tt.prototype.focusLinkedElement=function(){var m=this.$linkedElement;m.getAttribute("tabindex")||(m.setAttribute("tabindex","-1"),m.classList.add("govuk-skip-link-focused-element"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",this.removeFocusProperties.bind(this)),this.linkedElementListener=!0)),m.focus()},Tt.prototype.removeFocusProperties=function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("govuk-skip-link-focused-element")},Tt.prototype.getFragmentFromUrl=function(){if(this.$module.hash)return this.$module.hash.split("#").pop()},(function(m){var N="document"in this&&"nextElementSibling"in document.documentElement;N||Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var F=this.nextSibling;F&&F.nodeType!==1;)F=F.nextSibling;return F}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"previousElementSibling"in document.documentElement;N||Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var F=this.previousSibling;F&&F.nodeType!==1;)F=F.previousSibling;return F}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});function it(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll("a.govuk-tabs__tab");if(!N.length)return this;this.$module=m,this.$tabs=N,this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden",this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.boundOnHashChange=this.onHashChange.bind(this),this.changingHash=!1}it.prototype.init=function(){!this.$module||!this.$tabs||(typeof window.matchMedia=="function"?this.setupResponsiveChecks():this.setup())},it.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 40.0625em)"),this.mql.addListener(this.checkMode.bind(this)),this.checkMode()},it.prototype.checkMode=function(){this.mql.matches?this.setup():this.teardown()},it.prototype.setup=function(){var m=this,N=this.$module,F=this.$tabs,ne=N.querySelector(".govuk-tabs__list"),re=N.querySelectorAll(".govuk-tabs__list-item");if(!(!F||!ne||!re)){ne.setAttribute("role","tablist"),Z(re,function(ce){ce.setAttribute("role","presentation")}),Z(F,function(ce){m.setAttributes(ce),ce.addEventListener("click",m.boundTabClick,!0),ce.addEventListener("keydown",m.boundTabKeydown,!0),m.hideTab(ce)});var me=this.getTab(window.location.hash)||this.$tabs[0];me&&(this.showTab(me),window.addEventListener("hashchange",this.boundOnHashChange,!0))}},it.prototype.teardown=function(){var m=this,N=this.$module,F=this.$tabs,ne=N.querySelector(".govuk-tabs__list"),re=N.querySelectorAll("a.govuk-tabs__list-item");!F||!ne||!re||(ne.removeAttribute("role"),Z(re,function(me){me.removeAttribute("role")}),Z(F,function(me){me.removeEventListener("click",m.boundTabClick,!0),me.removeEventListener("keydown",m.boundTabKeydown,!0),m.unsetAttributes(me)}),window.removeEventListener("hashchange",this.boundOnHashChange,!0))},it.prototype.onHashChange=function(){var m=window.location.hash,N=this.getTab(m);if(N){if(this.changingHash){this.changingHash=!1;return}var F=this.getCurrentTab();F&&(this.hideTab(F),this.showTab(N),N.focus())}},it.prototype.hideTab=function(m){this.unhighlightTab(m),this.hidePanel(m)},it.prototype.showTab=function(m){this.highlightTab(m),this.showPanel(m)},it.prototype.getTab=function(m){return this.$module.querySelector('a.govuk-tabs__tab[href="'+m+'"]')},it.prototype.setAttributes=function(m){var N=this.getHref(m).slice(1);m.setAttribute("id","tab_"+N),m.setAttribute("role","tab"),m.setAttribute("aria-controls",N),m.setAttribute("aria-selected","false"),m.setAttribute("tabindex","-1");var F=this.getPanel(m);F&&(F.setAttribute("role","tabpanel"),F.setAttribute("aria-labelledby",m.id),F.classList.add(this.jsHiddenClass))},it.prototype.unsetAttributes=function(m){m.removeAttribute("id"),m.removeAttribute("role"),m.removeAttribute("aria-controls"),m.removeAttribute("aria-selected"),m.removeAttribute("tabindex");var N=this.getPanel(m);N&&(N.removeAttribute("role"),N.removeAttribute("aria-labelledby"),N.classList.remove(this.jsHiddenClass))},it.prototype.onTabClick=function(m){var N=this.getCurrentTab(),F=m.currentTarget;!N||!(F instanceof HTMLAnchorElement)||(m.preventDefault(),this.hideTab(N),this.showTab(F),this.createHistoryEntry(F))},it.prototype.createHistoryEntry=function(m){var N=this.getPanel(m);if(N){var F=N.id;N.id="",this.changingHash=!0,window.location.hash=this.getHref(m).slice(1),N.id=F}},it.prototype.onTabKeydown=function(m){switch(m.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),m.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),m.preventDefault();break}},it.prototype.activateNextTab=function(){var m=this.getCurrentTab();if(!(!m||!m.parentElement)){var N=m.parentElement.nextElementSibling;if(N){var F=N.querySelector("a.govuk-tabs__tab");F&&(this.hideTab(m),this.showTab(F),F.focus(),this.createHistoryEntry(F))}}},it.prototype.activatePreviousTab=function(){var m=this.getCurrentTab();if(!(!m||!m.parentElement)){var N=m.parentElement.previousElementSibling;if(N){var F=N.querySelector("a.govuk-tabs__tab");F&&(this.hideTab(m),this.showTab(F),F.focus(),this.createHistoryEntry(F))}}},it.prototype.getPanel=function(m){return this.$module.querySelector(this.getHref(m))},it.prototype.showPanel=function(m){var N=this.getPanel(m);N&&N.classList.remove(this.jsHiddenClass)},it.prototype.hidePanel=function(m){var N=this.getPanel(m);N&&N.classList.add(this.jsHiddenClass)},it.prototype.unhighlightTab=function(m){m.parentElement&&(m.setAttribute("aria-selected","false"),m.parentElement.classList.remove("govuk-tabs__list-item--selected"),m.setAttribute("tabindex","-1"))},it.prototype.highlightTab=function(m){m.parentElement&&(m.setAttribute("aria-selected","true"),m.parentElement.classList.add("govuk-tabs__list-item--selected"),m.setAttribute("tabindex","0"))},it.prototype.getCurrentTab=function(){return this.$module.querySelector(".govuk-tabs__list-item--selected a.govuk-tabs__tab")},it.prototype.getHref=function(m){var N=m.getAttribute("href"),F=N.slice(N.indexOf("#"),N.length);return F};function On(m){m=typeof m<"u"?m:{};var N=m.scope instanceof HTMLElement?m.scope:document,F=N.querySelectorAll('[data-module="govuk-accordion"]');Z(F,function(He){new _e(He,m.accordion).init()});var ne=N.querySelectorAll('[data-module="govuk-button"]');Z(ne,function(He){new k(He,m.button).init()});var re=N.querySelectorAll('[data-module="govuk-character-count"]');Z(re,function(He){new g(He,m.characterCount).init()});var me=N.querySelectorAll('[data-module="govuk-checkboxes"]');Z(me,function(He){new S(He).init()});var ce=N.querySelectorAll('[data-module="govuk-details"]');Z(ce,function(He){new o(He).init()});var te=N.querySelector('[data-module="govuk-error-summary"]');te&&new Y(te,m.errorSummary).init();var be=N.querySelectorAll('[data-module="govuk-exit-this-page"]');Z(be,function(He){new fe(He,m.exitThisPage).init()});var ge=N.querySelector('[data-module="govuk-header"]');ge&&new Ie(ge).init();var De=N.querySelectorAll('[data-module="govuk-notification-banner"]');Z(De,function(He){new nt(He,m.notificationBanner).init()});var Ke=N.querySelectorAll('[data-module="govuk-radios"]');Z(Ke,function(He){new Ce(He).init()});var Ge=N.querySelector('[data-module="govuk-skip-link"]');Ge&&new Tt(Ge).init();var Fe=N.querySelectorAll('[data-module="govuk-tabs"]');Z(Fe,function(He){new it(He).init()})}c.initAll=On,c.version=W,c.Accordion=_e,c.Button=k,c.Details=o,c.CharacterCount=g,c.Checkboxes=S,c.ErrorSummary=Y,c.ExitThisPage=fe,c.Header=Ie,c.NotificationBanner=nt,c.Radios=Ce,c.SkipLink=Tt,c.Tabs=it}))})(io,io.exports)),io.exports}var ja={},Ua;function ll(){return Ua||(Ua=1,function(){const C=document.getElementById("skip-to-main"),c=C.hash.split("#")[1]?C.hash.split("#")[1]:"main-content";c==="main-content"&&C.setAttribute("href","#main-content"),c&&(C.onclick=function(W){setTimeout(()=>{document.getElementById(c).focus()},10)})}()),ja}var ro={},Wa;function cl(){return Wa||(Wa=1,(function(){const $=this;typeof $.GOVUK>"u"&&($.GOVUK={}),GOVUK.cookie=function(C,c,W){return typeof c<"u"?c===!1||c===null?GOVUK.setCookie(C,"",{days:-1}):GOVUK.setCookie(C,c,W):GOVUK.getCookie(C)},GOVUK.setCookie=function(C,c,W){typeof W>"u"&&(W={});let Z=C+"="+c+"; path=/";if(W.days){const ee=new Date;ee.setTime(ee.getTime()+W.days*24*60*60*1e3),Z=Z+"; expires="+ee.toGMTString()}document.location.protocol==="https:"&&(Z=Z+"; Secure"),document.cookie=Z},GOVUK.getCookie=function(C){const c=C+"=",W=document.cookie.split(";");for(let Z=0,ee=W.length;Z<ee;Z++){let he=W[Z];for(;he.charAt(0)===" ";)he=he.substring(1,he.length);if(he.indexOf(c)===0)return decodeURIComponent(he.substring(c.length))}return null}}).call(ro),(function(){const $=this;typeof $.GOVUK>"u"&&($.GOVUK={}),GOVUK.addCookieMessage=function(){const C=document.getElementById("global-cookie-message");C&&GOVUK.cookie("seen_cookie_message")===null&&(C.style.display="block",GOVUK.cookie("seen_cookie_message","yes",{days:28}),document.addEventListener("DOMContentLoaded",function(W){GOVUK.analytics&&typeof GOVUK.analytics.trackEvent=="function"&&GOVUK.analytics.trackEvent("cookieBanner","Cookie banner shown",{value:1,nonInteraction:!0})}))}}).call(ro),(function(){if(window.GOVUK&&GOVUK.addCookieMessage&&GOVUK.addCookieMessage(),document.querySelectorAll&&document.addEventListener){const $=document.querySelectorAll(".js-header-toggle");let C,c;for(C=0,c=$.length;C<c;C++)$[C].addEventListener("click",function(W){W.preventDefault();const Z=document.getElementById(this.getAttribute("href").substr(1)),ee=Z.getAttribute("class")||"",he=this.getAttribute("class")||"";ee.indexOf("js-visible")!==-1?Z.setAttribute("class",ee.replace(/(^|\s)js-visible(\s|$)/,"")):Z.setAttribute("class",ee+" js-visible"),he.indexOf("js-visible")!==-1?this.setAttribute("class",he.replace(/(^|\s)js-visible(\s|$)/,"")):this.setAttribute("class",he+" js-visible"),this.setAttribute("aria-expanded",this.getAttribute("aria-expanded")!=="true"),Z.setAttribute("aria-hidden",Z.getAttribute("aria-hidden")==="false")})}}).call(ro)),ro}var Ns,Ka;function hl(){if(Ka)return Ns;Ka=1;function $(xe){const _e=document.getElementById(xe);if(_e===null)return;const D=_e.getElementsByClassName("js-disabled");for(let A=0;A<D.length;A++)D[A].style.display="none"}function C(xe){const _e=document.getElementById(xe);if(_e===null)return;const D=_e.getElementsByClassName("js-enabled");for(let A=0;A<D.length;A++)D[A].style.display="block"}function c(xe){GOVUK.cookie("cookie_preferences",JSON.stringify(xe),{days:30}),xe.usage||(GOVUK.cookie("_ga",null),GOVUK.cookie("_gat",null),GOVUK.cookie("_gid",null))}function W(){document.getElementById("cookie-banner-info").style.display="none",document.getElementById("cookie-banner-actions").style.display="none";let xe;document.getElementById("cookie-banner-submitted-accepted").dataset.acceptCookies==="true"?xe=document.getElementById("cookie-banner-submitted-accepted"):xe=document.getElementById("cookie-banner-submitted-rejected"),xe.style.display="block",xe.focus()}function Z(){document.getElementById("cookie-banner").style.display="none"}function ee(){const xe=document.getElementById("cookie-banner-submitted-accepted");document.getElementById("accept-cookies-button").addEventListener("click",function(){c({essential:!0,usage:!0}),W(),sessionStorage.setItem("reloading","true"),window.location=document.URL}),document.getElementById("reject-cookies-button").addEventListener("click",function(){c({essential:!0,usage:!1}),xe.dataset.acceptCookies="false",W()}),document.getElementById("hide-accept-cookie-banner").addEventListener("click",Z),document.getElementById("hide-reject-cookie-banner").addEventListener("click",Z)}function he(){if(GOVUK.cookie("cookie_preferences")!==null)return;const _e=document.getElementById("global-cookie-message"),D=document.getElementById("cookie-banner");_e!==null&&D!==null&&($("global-cookie-message"),C("global-cookie-message"),_e.style.display="block",ee())}function Ee(xe){xe.preventDefault(),c({essential:!0,usage:document.getElementById("radio-1").checked});const _e=document.getElementById("cookie-notification"),D=document.getElementById("cookie-banner");D!==null&&(D.style.display="none"),_e!==null&&(_e.style.display="block",_e.focus())}function ye(){const xe=JSON.parse(GOVUK.cookie("cookie_preferences"));let _e;xe!==null&&xe.usage!==void 0&&typeof xe.usage=="boolean"?_e=xe.usage:_e=!1,document.getElementById("radio-1").checked=_e,document.getElementById("radio-2").checked=!_e,document.getElementById("save-cookie-settings").addEventListener("click",Ee)}function we(){document.getElementById("cookie-settings")!==null&&($("cookie-settings"),C("cookie-settings"),ye())}function qe(){window.onload=function(){if(sessionStorage.getItem("reloading")){sessionStorage.removeItem("reloading");const _e=document.getElementById("global-cookie-message"),D=document.getElementById("cookie-banner");_e!==null&&D!==null&&(_e.style.display="block"),ee(),W()}}}return Ns={initialiseCookieBanner:he,initialiseCookiePage:we,onLoad:qe},Ns}var Ga={},Wo={exports:{}};/*!
|
|
27
|
+
}`;var Je=Yf(function(){return de(O,Pe+"return "+ve).apply(c,U)});if(Je.source=ve,ba(Je))throw Je;return Je}function jg(t){return wt(t).toLowerCase()}function Ug(t){return wt(t).toUpperCase()}function Wg(t,i,a){if(t=wt(t),t&&(a||i===c))return Mt(t);if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=Vt(i),O=Ne(h,x),U=$n(h,x)+1;return Xi(h,O,U).join("")}function Kg(t,i,a){if(t=wt(t),t&&(a||i===c))return t.slice(0,Gr(t)+1);if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=$n(h,Vt(i))+1;return Xi(h,0,x).join("")}function Gg(t,i,a){if(t=wt(t),t&&(a||i===c))return t.replace(zn,"");if(!t||!(i=Pn(i)))return t;var h=Vt(t),x=Ne(h,Vt(i));return Xi(h,x).join("")}function Vg(t,i){var a=fe,h=Ie;if(Nt(i)){var x="separator"in i?i.separator:x;a="length"in i?Xe(i.length):a,h="omission"in i?Pn(i.omission):h}t=wt(t);var O=t.length;if(Pt(t)){var U=Vt(t);O=U.length}if(a>=O)return t;var G=a-En(h);if(G<1)return h;var X=U?Xi(U,0,G).join(""):t.slice(0,G);if(x===c)return X+h;if(U&&(G+=X.length-G),wa(x)){if(t.slice(G).search(x)){var ue,le=X;for(x.global||(x=Se(x.source,wt(Hr.exec(x))+"g")),x.lastIndex=0;ue=x.exec(le);)var ve=ue.index;X=X.slice(0,ve===c?G:ve)}}else if(t.indexOf(Pn(x),G)!=G){var Le=X.lastIndexOf(x);Le>-1&&(X=X.slice(0,Le))}return X+h}function zg(t){return t=wt(t),t&&nr.test(t)?t.replace(an,Li):t}var Qg=Yr(function(t,i,a){return t+(a?" ":"")+i.toUpperCase()}),Ta=Yu("toUpperCase");function Xf(t,i,a){return t=wt(t),i=a?c:i,i===c?Ei(t)?_(t):ke(t):t.match(i)||[]}var Yf=tt(function(t,i){try{return l(t,c,i)}catch(a){return ba(a)?a:new Q(a)}}),Xg=Ni(function(t,i){return p(i,function(a){a=di(a),Ii(t,a,ma(t[a],t))}),t});function Yg(t){var i=t==null?0:t.length,a=je();return t=i?se(t,function(h){if(typeof h[1]!="function")throw new Re(he);return[a(h[0]),h[1]]}):[],tt(function(h){for(var x=-1;++x<i;){var O=t[x];if(l(O[0],this,h))return l(O[1],this,h)}})}function Jg(t){return Tc(Un(t,xe))}function Ca(t){return function(){return t}}function Zg(t,i){return t==null||t!==t?i:t}var ev=Zu(),tv=Zu(!0);function Dn(t){return t}function Sa(t){return Lu(typeof t=="function"?t:Un(t,xe))}function nv(t){return Ou(Un(t,xe))}function iv(t,i){return Iu(t,Un(i,xe))}var rv=tt(function(t,i){return function(a){return qo(a,t,i)}}),ov=tt(function(t,i){return function(a){return qo(t,a,i)}});function Ea(t,i,a){var h=en(i),x=us(i,h);a==null&&!(Nt(i)&&(x.length||!h.length))&&(a=i,i=t,t=this,x=us(i,en(i)));var O=!(Nt(a)&&"chain"in a)||!!a.chain,U=Pi(t);return p(x,function(G){var X=i[G];t[G]=X,U&&(t.prototype[G]=function(){var ue=this.__chain__;if(O||ue){var le=t(this.__wrapped__),ve=le.__actions__=An(this.__actions__);return ve.push({func:X,args:arguments,thisArg:t}),le.__chain__=ue,le}return X.apply(t,Ae([this.value()],arguments))})}),t}function sv(){return xt._===this&&(xt._=Il),this}function Aa(){}function av(t){return t=Xe(t),tt(function(i){return Ru(i,t)})}var uv=ra(se),fv=ra(B),lv=ra(Ve);function Jf(t){return ca(t)?mn(di(t)):Fc(t)}function cv(t){return function(i){return t==null?c:Or(t,i)}}var hv=tf(),dv=tf(!0);function ka(){return[]}function La(){return!1}function pv(){return{}}function gv(){return""}function vv(){return!0}function mv(t,i){if(t=Xe(t),t<1||t>N)return[];var a=re,h=ln(t,re);i=je(i),t-=re;for(var x=Jn(h,i);++a<t;)i(a);return x}function yv(t){return ze(t)?se(t,di):qn(t)?[t]:An(yf(wt(t)))}function bv(t){var i=++Dl;return wt(t)+i}var wv=ps(function(t,i){return t+i},0),xv=oa("ceil"),_v=ps(function(t,i){return t/i},1),Tv=oa("floor");function Cv(t){return t&&t.length?as(t,Dn,Ws):c}function Sv(t,i){return t&&t.length?as(t,je(i,2),Ws):c}function Ev(t){return Dt(t,Dn)}function Av(t,i){return Dt(t,je(i,2))}function kv(t){return t&&t.length?as(t,Dn,zs):c}function Lv(t,i){return t&&t.length?as(t,je(i,2),zs):c}var Dv=ps(function(t,i){return t*i},1),Ov=oa("round"),Iv=ps(function(t,i){return t-i},0);function Rv(t){return t&&t.length?_t(t,Dn):0}function Nv(t,i){return t&&t.length?_t(t,je(i,2)):0}return L.after=np,L.ary=Lf,L.assign=Up,L.assignIn=Uf,L.assignInWith=As,L.assignWith=Wp,L.at=Kp,L.before=Df,L.bind=ma,L.bindAll=Xg,L.bindKey=Of,L.castArray=pp,L.chain=Ef,L.chunk=Th,L.compact=Ch,L.concat=Sh,L.cond=Yg,L.conforms=Jg,L.constant=Ca,L.countBy=Rd,L.create=Gp,L.curry=If,L.curryRight=Rf,L.debounce=Nf,L.defaults=Vp,L.defaultsDeep=zp,L.defer=ip,L.delay=rp,L.difference=Eh,L.differenceBy=Ah,L.differenceWith=kh,L.drop=Lh,L.dropRight=Dh,L.dropRightWhile=Oh,L.dropWhile=Ih,L.fill=Rh,L.filter=Md,L.flatMap=Hd,L.flatMapDeep=Bd,L.flatMapDepth=Fd,L.flatten=_f,L.flattenDeep=Nh,L.flattenDepth=Mh,L.flip=op,L.flow=ev,L.flowRight=tv,L.fromPairs=Ph,L.functions=tg,L.functionsIn=ng,L.groupBy=$d,L.initial=Hh,L.intersection=Bh,L.intersectionBy=Fh,L.intersectionWith=$h,L.invert=rg,L.invertBy=og,L.invokeMap=Ud,L.iteratee=Sa,L.keyBy=Wd,L.keys=en,L.keysIn=Ln,L.map=xs,L.mapKeys=ag,L.mapValues=ug,L.matches=nv,L.matchesProperty=iv,L.memoize=Ts,L.merge=fg,L.mergeWith=Wf,L.method=rv,L.methodOf=ov,L.mixin=Ea,L.negate=Cs,L.nthArg=av,L.omit=lg,L.omitBy=cg,L.once=sp,L.orderBy=Kd,L.over=uv,L.overArgs=ap,L.overEvery=fv,L.overSome=lv,L.partial=ya,L.partialRight=Mf,L.partition=Gd,L.pick=hg,L.pickBy=Kf,L.property=Jf,L.propertyOf=cv,L.pull=Kh,L.pullAll=Cf,L.pullAllBy=Gh,L.pullAllWith=Vh,L.pullAt=zh,L.range=hv,L.rangeRight=dv,L.rearg=up,L.reject=Qd,L.remove=Qh,L.rest=fp,L.reverse=ga,L.sampleSize=Yd,L.set=pg,L.setWith=gg,L.shuffle=Jd,L.slice=Xh,L.sortBy=tp,L.sortedUniq=id,L.sortedUniqBy=rd,L.split=Hg,L.spread=lp,L.tail=od,L.take=sd,L.takeRight=ad,L.takeRightWhile=ud,L.takeWhile=fd,L.tap=Cd,L.throttle=cp,L.thru=ws,L.toArray=Ff,L.toPairs=Gf,L.toPairsIn=Vf,L.toPath=yv,L.toPlainObject=jf,L.transform=vg,L.unary=hp,L.union=ld,L.unionBy=cd,L.unionWith=hd,L.uniq=dd,L.uniqBy=pd,L.uniqWith=gd,L.unset=mg,L.unzip=va,L.unzipWith=Sf,L.update=yg,L.updateWith=bg,L.values=eo,L.valuesIn=wg,L.without=vd,L.words=Xf,L.wrap=dp,L.xor=md,L.xorBy=yd,L.xorWith=bd,L.zip=wd,L.zipObject=xd,L.zipObjectDeep=_d,L.zipWith=Td,L.entries=Gf,L.entriesIn=Vf,L.extend=Uf,L.extendWith=As,Ea(L,L),L.add=wv,L.attempt=Yf,L.camelCase=Cg,L.capitalize=zf,L.ceil=xv,L.clamp=xg,L.clone=gp,L.cloneDeep=mp,L.cloneDeepWith=yp,L.cloneWith=vp,L.conformsTo=bp,L.deburr=Qf,L.defaultTo=Zg,L.divide=_v,L.endsWith=Sg,L.eq=ti,L.escape=Eg,L.escapeRegExp=Ag,L.every=Nd,L.find=Pd,L.findIndex=wf,L.findKey=Qp,L.findLast=qd,L.findLastIndex=xf,L.findLastKey=Xp,L.floor=Tv,L.forEach=Af,L.forEachRight=kf,L.forIn=Yp,L.forInRight=Jp,L.forOwn=Zp,L.forOwnRight=eg,L.get=xa,L.gt=wp,L.gte=xp,L.has=ig,L.hasIn=_a,L.head=Tf,L.identity=Dn,L.includes=jd,L.indexOf=qh,L.inRange=_g,L.invoke=sg,L.isArguments=Nr,L.isArray=ze,L.isArrayBuffer=_p,L.isArrayLike=kn,L.isArrayLikeObject=Bt,L.isBoolean=Tp,L.isBuffer=Yi,L.isDate=Cp,L.isElement=Sp,L.isEmpty=Ep,L.isEqual=Ap,L.isEqualWith=kp,L.isError=ba,L.isFinite=Lp,L.isFunction=Pi,L.isInteger=Pf,L.isLength=Ss,L.isMap=qf,L.isMatch=Dp,L.isMatchWith=Op,L.isNaN=Ip,L.isNative=Rp,L.isNil=Mp,L.isNull=Np,L.isNumber=Hf,L.isObject=Nt,L.isObjectLike=qt,L.isPlainObject=Uo,L.isRegExp=wa,L.isSafeInteger=Pp,L.isSet=Bf,L.isString=Es,L.isSymbol=qn,L.isTypedArray=Zr,L.isUndefined=qp,L.isWeakMap=Hp,L.isWeakSet=Bp,L.join=jh,L.kebabCase=kg,L.last=Kn,L.lastIndexOf=Uh,L.lowerCase=Lg,L.lowerFirst=Dg,L.lt=Fp,L.lte=$p,L.max=Cv,L.maxBy=Sv,L.mean=Ev,L.meanBy=Av,L.min=kv,L.minBy=Lv,L.stubArray=ka,L.stubFalse=La,L.stubObject=pv,L.stubString=gv,L.stubTrue=vv,L.multiply=Dv,L.nth=Wh,L.noConflict=sv,L.noop=Aa,L.now=_s,L.pad=Og,L.padEnd=Ig,L.padStart=Rg,L.parseInt=Ng,L.random=Tg,L.reduce=Vd,L.reduceRight=zd,L.repeat=Mg,L.replace=Pg,L.result=dg,L.round=Ov,L.runInContext=w,L.sample=Xd,L.size=Zd,L.snakeCase=qg,L.some=ep,L.sortedIndex=Yh,L.sortedIndexBy=Jh,L.sortedIndexOf=Zh,L.sortedLastIndex=ed,L.sortedLastIndexBy=td,L.sortedLastIndexOf=nd,L.startCase=Bg,L.startsWith=Fg,L.subtract=Iv,L.sum=Rv,L.sumBy=Nv,L.template=$g,L.times=mv,L.toFinite=qi,L.toInteger=Xe,L.toLength=$f,L.toLower=jg,L.toNumber=Gn,L.toSafeInteger=jp,L.toString=wt,L.toUpper=Ug,L.trim=Wg,L.trimEnd=Kg,L.trimStart=Gg,L.truncate=Vg,L.unescape=zg,L.uniqueId=bv,L.upperCase=Qg,L.upperFirst=Ta,L.each=Af,L.eachRight=kf,L.first=Tf,Ea(L,(function(){var t={};return ci(L,function(i,a){Me.call(L.prototype,a)||(t[a]=i)}),t})(),{chain:!1}),L.VERSION=W,p(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){L[t].placeholder=L}),p(["drop","take"],function(t,i){at.prototype[t]=function(a){a=a===c?1:zt(Xe(a),0);var h=this.__filtered__&&!i?new at(this):this.clone();return h.__filtered__?h.__takeCount__=ln(a,h.__takeCount__):h.__views__.push({size:ln(a,re),type:t+(h.__dir__<0?"Right":"")}),h},at.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),p(["filter","map","takeWhile"],function(t,i){var a=i+1,h=a==Tt||a==On;at.prototype[t]=function(x){var O=this.clone();return O.__iteratees__.push({iteratee:je(x,3),type:a}),O.__filtered__=O.__filtered__||h,O}}),p(["head","last"],function(t,i){var a="take"+(i?"Right":"");at.prototype[t]=function(){return this[a](1).value()[0]}}),p(["initial","tail"],function(t,i){var a="drop"+(i?"":"Right");at.prototype[t]=function(){return this.__filtered__?new at(this):this[a](1)}}),at.prototype.compact=function(){return this.filter(Dn)},at.prototype.find=function(t){return this.filter(t).head()},at.prototype.findLast=function(t){return this.reverse().find(t)},at.prototype.invokeMap=tt(function(t,i){return typeof t=="function"?new at(this):this.map(function(a){return qo(a,t,i)})}),at.prototype.reject=function(t){return this.filter(Cs(je(t)))},at.prototype.slice=function(t,i){t=Xe(t);var a=this;return a.__filtered__&&(t>0||i<0)?new at(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),i!==c&&(i=Xe(i),a=i<0?a.dropRight(-i):a.take(i-t)),a)},at.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},at.prototype.toArray=function(){return this.take(re)},ci(at.prototype,function(t,i){var a=/^(?:filter|find|map|reject)|While$/.test(i),h=/^(?:head|last)$/.test(i),x=L[h?"take"+(i=="last"?"Right":""):i],O=h||/^find/.test(i);x&&(L.prototype[i]=function(){var U=this.__wrapped__,G=h?[1]:arguments,X=U instanceof at,ue=G[0],le=X||ze(U),ve=function(st){var lt=x.apply(L,Ae([st],G));return h&&Le?lt[0]:lt};le&&a&&typeof ue=="function"&&ue.length!=1&&(X=le=!1);var Le=this.__chain__,Pe=!!this.__actions__.length,Ue=O&&!Le,Je=X&&!Pe;if(!O&&le){U=Je?U:new at(this);var We=t.apply(U,G);return We.__actions__.push({func:ws,args:[ve],thisArg:c}),new jn(We,Le)}return Ue&&Je?t.apply(this,G):(We=this.thru(ve),Ue?h?We.value()[0]:We.value():We)})}),p(["pop","push","shift","sort","splice","unshift"],function(t){var i=dt[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",h=/^(?:pop|shift)$/.test(t);L.prototype[t]=function(){var x=arguments;if(h&&!this.__chain__){var O=this.value();return i.apply(ze(O)?O:[],x)}return this[a](function(U){return i.apply(ze(U)?U:[],x)})}}),ci(at.prototype,function(t,i){var a=L[i];if(a){var h=a.name+"";Me.call(zr,h)||(zr[h]=[]),zr[h].push({name:i,func:a})}}),zr[ds(c,b).name]=[{name:"wrapper",func:c}],at.prototype.clone=zl,at.prototype.reverse=Ql,at.prototype.value=Xl,L.prototype.at=Sd,L.prototype.chain=Ed,L.prototype.commit=Ad,L.prototype.next=kd,L.prototype.plant=Dd,L.prototype.reverse=Od,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=Id,L.prototype.first=L.prototype.head,Do&&(L.prototype[Do]=Ld),L}),M=I();vn?((vn.exports=M)._=M,Ci._=M):xt._=M}).call(tl)})(to,to.exports)),to.exports}var ks,Ra;function no(){if(Ra)return ks;Ra=1;var $=Mr().forEach,C=769,c={};return Array.prototype.indexOf||(Array.prototype.indexOf=function(W,Z){for(var ee=Z||0,he=this.length;ee<he;ee++)if(this[ee]===W)return ee;return-1}),c.documentReady=function(W){this.addEvent(document,"DOMContentLoaded",W),this.addEvent(window,"load",W)},c.addEvent=function(W,Z,ee){W.addEventListener?W.addEventListener(Z,ee,!1):W.attachEvent&&W.attachEvent("on"+Z,ee)},c.removeEvent=function(W,Z,ee){W.removeEventListener?W.removeEventListener(Z,ee,!1):W.detachEvent&&W.detachEvent("on"+Z,ee)},c.target=function(W){return W.target||W.srcElement},c.triggerEvent=function(W,Z){var ee;document.createEvent?(ee=new Event(Z),W.dispatchEvent(ee)):(ee=document.createEventObject(),W.fireEvent("on"+Z,ee))},c.preventDefault=function(W){W.preventDefault?W.preventDefault():event.returnValue=!1},c.hasClass=function(W,Z){return W.className.split(/\s/).indexOf(Z)!==-1},c.addClass=function(W,Z){var ee=W.className;ee===""?W.className=Z:(ee=ee.split(" "),ee.indexOf(Z)!==-1&&this.stripClasses(ee,Z),ee.push(Z),W.className=ee.join(" "))},c.addClasses=function(W,Z){$(Z,function(ee){c.addClass(W,ee)})},c.stripClasses=function(W,Z){for(var ee=0;ee<W.length;ee++)W[ee]===Z&&(W.splice(ee,1),--ee)},c.removeClass=function(W,Z){var ee=W.className;ee!==""&&(ee=ee.split(" "),this.stripClasses(ee,Z),W.className=ee.join(" "))},c.getElementsByClass=function(W,Z,ee){if(W.getElementsByClassName)return W.getElementsByClassName(ee);var he=[];return $(W.getElementsByTagName(Z),function(Ee){c.hasClass(Ee,ee)&&he.push(Ee)}),he},c.once=function(W,Z,ee){W&&(W.started=W.started||{},W.started[Z]||(W.started[Z]=!0,ee(W)))},c.viewportWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},c.scrollY=function(){return window.scrollY||document.documentElement.scrollTop||document.body.scrollTop},c.isDesktop=function(){return c.viewportWidth()>=C},c.isJSWindow=function(){return window.opener!==null},c.getStyle=function(W,Z){var ee="";return document.defaultView&&document.defaultView.getComputedStyle?ee=document.defaultView.getComputedStyle(W,"").getPropertyValue(Z):W.currentStyle&&(Z=Z.replace(/\-(\w)/g,function(he,Ee){return Ee.toUpperCase()}),ee=W.currentStyle[Z]),ee},c.pagehide=function(W){"onpagehide"in window?c.addEvent(window,"pagehide",W):c.addEvent(window,"unload",W)},ks=c,ks}var Ls,Na;function nl(){if(Na)return Ls;Na=1;var $=Mr().forEach,C=Mr().groupBy,c="form-focus",W=no(),Z,ee="block-label",he="focused",Ee="selected";function ye(y){W.addClass(W.target(y).parentNode,he)}function we(y){W.removeClass(W.target(y).parentNode,he)}function qe(y,k){k=k||W.target(y),$(Z[k.name],function(b){b.checked?W.addClass(b.parentNode,Ee):W.removeClass(b.parentNode,Ee)})}function xe(y){if(W.hasClass(y,ee)){var k=y.getElementsByTagName("input")[0];k&&k.type&&k.type.match(/radio|checkbox/)&&(W.addEvent(k,"focus",ye),W.addEvent(k,"blur",we),W.addEvent(k,"click",qe),qe(null,k))}}function _e(y){W.addEvent(y,"focus",ye),W.addEvent(y,"blur",we)}function D(y){Z=C(document.getElementsByTagName("input"),"name");for(var k=0,b=y.length;k<b;k++)W.once(y[k],c,xe)}function A(){var y=document.getElementsByTagName("form"),k=window.location.hash.replace(/^#/,""),b=window.location.pathname.split("/").pop(),T,g,S=k&&b==="edit";k&&document.getElementById(k)&&S&&document.getElementById(k).focus(),k&&document.getElementById(k+"-group")&&S&&document.getElementById(k+"-group").scrollIntoView(),document.getElementById(k+"-day")&&y.length===1&&S&&document.getElementById(k+"-day").focus(),document.getElementById(k+"-amount")&&y.length===1&&S&&document.getElementById(k+"-amount").focus(),y.length>0&&(T=document.getElementsByTagName("label"),T&&D(T)),g=document.getElementsByTagName("summary");for(var H=0,K=g.length;H<K;H++)W.once(g[H],c,_e)}return Ls=A,Ls}var Ds,Ma;function il(){if(Ma)return Ds;Ma=1;var $=Mr().forEach,C=Mr().groupBy,c=no(),W,Z,ee="data-toggle",he="govuk-checkboxes__conditional--hidden",Ee="govuk-radios__conditional--hidden";function ye(xe,_e){_e=_e||c.target(xe);var D;$(Z[_e.name],function(A){var y=A.type.match(/checkbox/)?he:Ee,k=A.getAttribute("aria-controls"),b=document.getElementById(k);if(b)if(A.checked){b.setAttribute("aria-hidden","false"),c.removeClass(b,y),D=b.id;var T=b.querySelectorAll("input,textarea")[0];A===_e&&T&&T.focus()}else D!==b.id&&(b.setAttribute("aria-hidden","true"),c.addClass(b,y))})}function we(xe){var _e=xe.getAttribute(ee),D=document.getElementById(_e+"-panel")?_e+"-panel":_e,A=document.getElementById(D);A&&(xe.setAttribute("aria-controls",D),ye(null,xe)),c.addEvent(xe,"click",ye)}function qe(){var xe=document.getElementsByTagName("form"),_e;if(xe.length>0){W=document.querySelectorAll("input,textarea"),Z=C(W,"name");for(var D=0,A=W.length;D<A;D++)_e=W[D],_e.type.match(/radio|checkbox/)&&c.once(_e,"progressive-reveal",we)}}return Ds=qe,Ds}var Os,Pa;function rl(){if(Pa)return Os;Pa=1;var $=Mr().forEach,C=no(),c="VALIDATION",W;function Z(ye){var we=C.target(ye),qe=we.getAttribute("href").replace(/^#/,""),xe=document.getElementById(qe+"-group")||document.getElementById(qe),_e;if(xe&&(xe.getElementsByTagName("input").length?_e=xe.getElementsByTagName("input"):xe.getElementsByTagName("textarea").length?_e=xe.getElementsByTagName("textarea"):xe.getElementsByTagName("select").length&&(_e=xe.getElementsByTagName("select")),_e))if(_e[0].getAttribute("type")==="hidden"){var D=xe.querySelectorAll("input[type=text]");D[0].focus()}else _e[0].focus()}function ee(ye){ye.keyCode===32&&Z(ye)}function he(ye){ye.focus();var we=ye.getElementsByTagName("a");$(we,function(qe){C.addEvent(qe,"click",Z),C.addEvent(qe,"keydown",ee)})}function Ee(){var ye=[];document.getElementById("content")&&(ye=C.getElementsByClass(document.getElementById("content"),"div","validation-summary")),ye.length&&(W=ye[0],C.once(W,c,function(we){he(we)}))}return Os=Ee,Os}var qa={},Ha;function ol(){return Ha||(Ha=1,(function(){var $=typeof document.createElement("details").open=="boolean";function C(he,Ee,ye){he.addEventListener?he.addEventListener(Ee,function(we){ye(we,we.target)},!1):he.attachEvent&&he.attachEvent("on"+Ee,function(we){ye(we,we.srcElement)})}function c(he,Ee){C(he,"keypress",function(ye,we){we.nodeName==="SUMMARY"&&ye.keyCode===32&&(ye.preventDefault?ye.preventDefault():ye.returnValue=!1)}),C(he,"keyup",function(ye,we){(ye.keyCode===13||ye.keyCode===32)&&Ee(ye,we)}),C(he,"mouseup",function(ye,we){Ee(ye,we)})}function W(he,Ee){do if(!he||he.nodeName.toLowerCase()===Ee)break;while(he=he.parentNode);return he}var Z=!1;function ee(he){if(Z||(Z=!0,(he=document.getElementsByTagName("details")).length===0))return;var Ee=he.length,ye=0;for(ye;ye<Ee;ye++){var we=he[ye];we.__summary=we.getElementsByTagName("summary").item(0),we.__content=we.getElementsByTagName("div").item(0),we.__content.id||(we.__content.id="details-content-"+ye),we.setAttribute("role","group"),we.__summary.setAttribute("role","button"),we.__summary.setAttribute("aria-controls",we.__content.id),$||(we.__summary.tabIndex=0);var qe=we.getAttribute("open")!==null;if(qe===!0?(we.__summary.setAttribute("aria-expanded","true"),we.__content.setAttribute("aria-hidden","false")):(we.__summary.setAttribute("aria-expanded","false"),we.__content.setAttribute("aria-hidden","true"),$||(we.__content.style.display="none")),we.__summary.__details=we,!$){var xe=document.createElement("i");qe===!0?(xe.className="arrow arrow-open",xe.appendChild(document.createTextNode("▼"))):(xe.className="arrow arrow-closed",xe.appendChild(document.createTextNode("►"))),we.__summary.__twisty=we.__summary.insertBefore(xe,we.__summary.firstChild),we.__summary.__twisty.setAttribute("aria-hidden","true")}}function _e(D){var A=D.__details.__summary.getAttribute("aria-expanded")==="true",y=D.__details.__content.getAttribute("aria-hidden")==="true";if(D.__details.__summary.setAttribute("aria-expanded",A?"false":"true"),D.__details.__content.setAttribute("aria-hidden",y?"false":"true"),!$){D.__details.__content.style.display=A?"none":"";var k=D.__details.getAttribute("open")!==null;k?D.__details.removeAttribute("open"):D.__details.setAttribute("open","open")}return D.__twisty&&(D.__twisty.firstChild.nodeValue=A?"►":"▼",D.__twisty.setAttribute("class",A?"arrow arrow-closed":"arrow arrow-open")),!0}c(document,function(D,A){return(A=W(A,"summary"))?_e(A):!0})}C(document,"DOMContentLoaded",ee),C(window,"load",ee)})()),qa}var Is,Ba;function sl(){if(Ba)return Is;Ba=1;var $=no();C.prototype.updateCount=function(){var W=this.$textarea.value.length,Z=" characters",ee=" remaining";(this.maxLength-W===1||W-this.maxLength===1)&&(Z=" character"),this.maxLength-W<0&&(ee=" too many");function he(ye){for(var we=/(\d+)(\d{3})/;we.test(ye);)ye=ye.replace(we,"$1,$2");return ye}var Ee=he(Math.abs(this.maxLength-W).toString());this.$maxlengthHint.innerHTML="You have "+Ee+Z+ee,W>=this.maxLength+1?($.removeClass(this.$maxlengthHint,"govuk-hint"),$.addClass(this.$maxlengthHint,"govuk-error-message"),$.addClass(this.$textarea,"textarea-error")):($.addClass(this.$maxlengthHint,"govuk-hint"),$.removeClass(this.$maxlengthHint,"govuk-error-message"),$.removeClass(this.$textarea,"textarea-error"))},C.prototype.checkIfLengthChanged=function(){this.$textarea.length!==this.oldLength&&(this.updateCount(),this.oldLength=this.$textarea.value.length)},C.prototype.handleFocus=function(){this.lengthChecker=setInterval(this.checkIfLengthChanged.bind(this),1e3)},C.prototype.handleBlur=function(){clearInterval(this.lengthChecker)},C.prototype.init=function(){this.updateCount(),this.$textarea.removeAttribute("maxlength"),$.addEvent(this.$textarea,"input",this.updateCount.bind(this)),$.addEvent(this.$textarea,"focus",this.handleFocus.bind(this)),$.addEvent(this.$textarea,"blur",this.handleBlur.bind(this))};function C(W){this.$textarea=W,this.$maxlengthHint=document.querySelector("[id="+this.$textarea.id+"-maxlength-hint]"),this.maxLength=parseInt(this.$textarea.getAttribute("maxlength")),this.oldLength=0}function c(){for(var W=document.getElementsByTagName("textarea"),Z=0;Z<W.length;Z++)W[Z].hasAttribute("maxlength")&&new C(W[Z]).init()}return Is=c,Is}var Rs,Fa;function al(){return Fa||(Fa=1,Rs={helpers:no(),formFocus:nl(),progressiveReveal:il(),validation:rl(),detailsSummary:function(){ol()},characterCount:sl()}),Rs}var io={exports:{}},ul=io.exports,$a;function fl(){return $a||($a=1,(function($,C){(function(c,W){W(C)})(ul,(function(c){var W="4.10.1";function Z(m,N){if(window.NodeList.prototype.forEach)return m.forEach(N);for(var F=0;F<m.length;F++)N.call(window,m[F],F,m)}function ee(){var m=new Date().getTime();return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(m+=window.performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(N){var F=(m+Math.random()*16)%16|0;return m=Math.floor(m/16),(N==="x"?F:F&3|8).toString(16)})}function he(){for(var m=function(me){var ce={},te=function(be,ge){for(var De in be)if(Object.prototype.hasOwnProperty.call(be,De)){var Ke=be[De],Ge=ge?ge+"."+De:De;typeof Ke=="object"?te(Ke,Ge):ce[Ge]=Ke}};return te(me),ce},N={},F=0;F<arguments.length;F++){var ne=m(arguments[F]);for(var re in ne)Object.prototype.hasOwnProperty.call(ne,re)&&(N[re]=ne[re])}return N}function Ee(m,N){if(!m||typeof m!="object")throw new Error('Provide a `configObject` of type "object".');var F={};for(var ne in m){var re=ne.split(".");if(Object.prototype.hasOwnProperty.call(m,ne)&&re[0]===N){re.length>1&&re.shift();var me=re.join(".");F[me]=m[ne]}}return F}(function(m){var N="defineProperty"in Object&&(function(){try{var F={};return Object.defineProperty(F,"test",{value:42}),!0}catch{return!1}})();N||(function(F){var ne=Object.prototype.hasOwnProperty("__defineGetter__"),re="Getters & setters cannot be defined on this javascript engine",me="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(te,be,ge){if(F&&(te===window||te===document||te===Element.prototype||te instanceof Element))return F(te,be,ge);if(te===null||!(te instanceof Object||typeof te=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(ge instanceof Object))throw new TypeError("Property description must be an object");var De=String(be),Ke="value"in ge||"writable"in ge,Ge="get"in ge&&typeof ge.get,Fe="set"in ge&&typeof ge.set;if(Ge){if(Ge!=="function")throw new TypeError("Getter must be a function");if(!ne)throw new TypeError(re);if(Ke)throw new TypeError(me);Object.__defineGetter__.call(te,De,ge.get)}else te[De]=ge.value;if(Fe){if(Fe!=="function")throw new TypeError("Setter must be a function");if(!ne)throw new TypeError(re);if(Ke)throw new TypeError(me);Object.__defineSetter__.call(te,De,ge.set)}return"value"in ge&&(te[De]=ge.value),te}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Document"in this;N||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Element"in this&&"HTMLElement"in this;N||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var F=document.appendChild(document.createElement("body")),ne=F.appendChild(document.createElement("iframe")),re=ne.contentWindow.document,me=Element.prototype=re.appendChild(re.createElement("*")),ce={},te=function(Fe,He){var Ze=Fe.childNodes||[],Qe=-1,Be,et,Ye;if(Fe.nodeType===1&&Fe.constructor!==Element){Fe.constructor=Element;for(Be in ce)et=ce[Be],Fe[Be]=et}for(;Ye=He&&Ze[++Qe];)te(Ye,He);return Fe},be=document.getElementsByTagName("*"),ge=document.createElement,De,Ke=100;me.attachEvent("onpropertychange",function(Fe){for(var He=Fe.propertyName,Ze=!ce.hasOwnProperty(He),Qe=me[He],Be=ce[He],et=-1,Ye;Ye=be[++et];)Ye.nodeType===1&&(Ze||Ye[He]===Be)&&(Ye[He]=Qe);ce[He]=Qe}),me.constructor=Element,me.hasAttribute||(me.hasAttribute=function(He){return this.getAttribute(He)!==null});function Ge(){return Ke--||clearTimeout(De),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(te(document,!0),De&&document.body.prototype&&clearTimeout(De),!!document.body.prototype):!1}Ge()||(document.onreadystatechange=Ge,De=setInterval(Ge,25)),document.createElement=function(He){var Ze=ge(String(He).toLowerCase());return te(Ze)},document.removeChild(F)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N=(function(){if(!document.documentElement.dataset)return!1;var F=document.createElement("div");return F.setAttribute("data-a-b","c"),F.dataset&&F.dataset.aB=="c"})();N||Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var F=this,ne=this.attributes,re={},me=0;me<ne.length;me++){var ce=ne[me];if(ce&&ce.name&&/^data-\w[.\w-]*$/.test(ce.name)){var te=ce.name,be=ce.value,ge=te.substr(5).replace(/-./g,function(De){return De.charAt(1).toUpperCase()});"__defineGetter__"in Object.prototype&&"__defineSetter__"in Object.prototype?Object.defineProperty(re,ge,{enumerable:!0,get:(function(){return this.value}).bind({value:be||""}),set:(function(Ke,Ge){typeof Ge<"u"?this.setAttribute(Ke,Ge):this.removeAttribute(Ke)}).bind(F,te)}):re[ge]=be}}return re}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="trim"in String.prototype;N||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});function ye(m){if(typeof m!="string")return m;var N=m.trim();return N==="true"?!0:N==="false"?!1:N.length>0&&isFinite(Number(N))?Number(N):m}function we(m){var N={};for(var F in m)N[F]=ye(m[F]);return N}function qe(m,N){this.translations=m||{},this.locale=N&&N.locale||document.documentElement.lang||"en"}qe.prototype.t=function(m,N){if(!m)throw new Error("i18n: lookup key missing");N&&typeof N.count=="number"&&(m=m+"."+this.getPluralSuffix(m,N.count));var F=this.translations[m];if(typeof F=="string")if(F.match(/%{(.\S+)}/)){if(!N)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(F,N)}else return F;else return m},qe.prototype.replacePlaceholders=function(m,N){var F;return this.hasIntlNumberFormatSupport()&&(F=new Intl.NumberFormat(this.locale)),m.replace(/%{(.\S+)}/g,function(ne,re){if(Object.prototype.hasOwnProperty.call(N,re)){var me=N[re];return me===!1||typeof me!="number"&&typeof me!="string"?"":typeof me=="number"?F?F.format(me):me.toString():me}else throw new Error("i18n: no data found to replace "+ne+" placeholder in string")})},qe.prototype.hasIntlPluralRulesSupport=function(){return!!(window.Intl&&"PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)},qe.prototype.hasIntlNumberFormatSupport=function(){return!!(window.Intl&&"NumberFormat"in window.Intl&&Intl.NumberFormat.supportedLocalesOf(this.locale).length)},qe.prototype.getPluralSuffix=function(m,N){if(N=Number(N),!isFinite(N))return"other";var F;if(this.hasIntlPluralRulesSupport()?F=new Intl.PluralRules(this.locale).select(N):F=this.selectPluralFormUsingFallbackRules(N),m+"."+F in this.translations)return F;if(m+".other"in this.translations)return console&&"warn"in console&&console.warn('i18n: Missing plural form ".'+F+'" for "'+this.locale+'" locale. Falling back to ".other".'),"other";throw new Error('i18n: Plural form ".other" is required for "'+this.locale+'" locale')},qe.prototype.selectPluralFormUsingFallbackRules=function(m){m=Math.abs(Math.floor(m));var N=this.getPluralRulesForLocale();return N?qe.pluralRules[N](m):"other"},qe.prototype.getPluralRulesForLocale=function(){var m=this.locale,N=m.split("-")[0];for(var F in qe.pluralRulesMap)if(Object.prototype.hasOwnProperty.call(qe.pluralRulesMap,F)){for(var ne=qe.pluralRulesMap[F],re=0;re<ne.length;re++)if(ne[re]===m||ne[re]===N)return F}},qe.pluralRulesMap={arabic:["ar"],chinese:["my","zh","id","ja","jv","ko","ms","th","vi"],french:["hy","bn","fr","gu","hi","fa","pa","zu"],german:["af","sq","az","eu","bg","ca","da","nl","en","et","fi","ka","de","el","hu","lb","no","so","sw","sv","ta","te","tr","ur"],irish:["ga"],russian:["ru","uk"],scottish:["gd"],spanish:["pt-PT","it","es"],welsh:["cy"]},qe.pluralRules={arabic:function(m){return m===0?"zero":m===1?"one":m===2?"two":m%100>=3&&m%100<=10?"few":m%100>=11&&m%100<=99?"many":"other"},chinese:function(){return"other"},french:function(m){return m===0||m===1?"one":"other"},german:function(m){return m===1?"one":"other"},irish:function(m){return m===1?"one":m===2?"two":m>=3&&m<=6?"few":m>=7&&m<=10?"many":"other"},russian:function(m){var N=m%100,F=N%10;return F===1&&N!==11?"one":F>=2&&F<=4&&!(N>=12&&N<=14)?"few":F===0||F>=5&&F<=9||N>=11&&N<=14?"many":"other"},scottish:function(m){return m===1||m===11?"one":m===2||m===12?"two":m>=3&&m<=10||m>=13&&m<=19?"few":"other"},spanish:function(m){return m===1?"one":m%1e6===0&&m!==0?"many":"other"},welsh:function(m){return m===0?"zero":m===1?"one":m===2?"two":m===3?"few":m===6?"many":"other"}},(function(m){var N="DOMTokenList"in this&&(function(F){return"classList"in F?!F.classList.toggle("x",!1)&&!F.className:!0})(document.createElement("x"));N||(function(F){var ne="DOMTokenList"in F&&F.DOMTokenList;(!ne||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(F.DOMTokenList=(function(){var re=!0,me=function(te,be,ge,De){Object.defineProperty?Object.defineProperty(te,be,{configurable:re===!1?!0:!!De,get:ge}):te.__defineGetter__(be,ge)};try{me({},"support")}catch{re=!1}var ce=function(te,be){var ge=this,De=[],Ke={},Ge=0,Fe=0,He=function(Be){me(ge,Be,function(){return Qe(),De[Be]},!1)},Ze=function(){if(Ge>=Fe)for(;Fe<Ge;++Fe)He(Fe)},Qe=function(){var Be,et,Ye=arguments,rt=/\s+/;if(Ye.length){for(et=0;et<Ye.length;++et)if(rt.test(Ye[et]))throw Be=new SyntaxError('String "'+Ye[et]+'" contains an invalid character'),Be.code=5,Be.name="InvalidCharacterError",Be}for(typeof te[be]=="object"?De=(""+te[be].baseVal).replace(/^\s+|\s+$/g,"").split(rt):De=(""+te[be]).replace(/^\s+|\s+$/g,"").split(rt),De[0]===""&&(De=[]),Ke={},et=0;et<De.length;++et)Ke[De[et]]=!0;Ge=De.length,Ze()};return Qe(),me(ge,"length",function(){return Qe(),Ge}),ge.toLocaleString=ge.toString=function(){return Qe(),De.join(" ")},ge.item=function(Be){return Qe(),De[Be]},ge.contains=function(Be){return Qe(),!!Ke[Be]},ge.add=function(){Qe.apply(ge,Be=arguments);for(var Be,et,Ye=0,rt=Be.length;Ye<rt;++Ye)et=Be[Ye],Ke[et]||(De.push(et),Ke[et]=!0);Ge!==De.length&&(Ge=De.length>>>0,typeof te[be]=="object"?te[be].baseVal=De.join(" "):te[be]=De.join(" "),Ze())},ge.remove=function(){Qe.apply(ge,Be=arguments);for(var Be,et={},Ye=0,rt=[];Ye<Be.length;++Ye)et[Be[Ye]]=!0,delete Ke[Be[Ye]];for(Ye=0;Ye<De.length;++Ye)et[De[Ye]]||rt.push(De[Ye]);De=rt,Ge=rt.length>>>0,typeof te[be]=="object"?te[be].baseVal=De.join(" "):te[be]=De.join(" "),Ze()},ge.toggle=function(Be,et){return Qe.apply(ge,[Be]),m!==et?et?(ge.add(Be),!0):(ge.remove(Be),!1):Ke[Be]?(ge.remove(Be),!1):(ge.add(Be),!0)},ge};return ce})()),(function(){var re=document.createElement("span");"classList"in re&&(re.classList.toggle("x",!1),re.classList.contains("x")&&(re.classList.constructor.prototype.toggle=function(ce){var te=arguments[1];if(te===m){var be=!this.contains(ce);return this[be?"add":"remove"](ce),be}return te=!!te,this[te?"add":"remove"](ce),te}))})(),(function(){var re=document.createElement("span");if("classList"in re&&(re.classList.add("a","b"),!re.classList.contains("b"))){var me=re.classList.constructor.prototype.add;re.classList.constructor.prototype.add=function(){for(var ce=arguments,te=arguments.length,be=0;be<te;be++)me.call(this,ce[be])}}})(),(function(){var re=document.createElement("span");if("classList"in re&&(re.classList.add("a"),re.classList.add("b"),re.classList.remove("a","b"),!!re.classList.contains("b"))){var me=re.classList.constructor.prototype.remove;re.classList.constructor.prototype.remove=function(){for(var ce=arguments,te=arguments.length,be=0;be<te;be++)me.call(this,ce[be])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var F=document.createElement("span");return F.classList.add("a","b"),F.classList.contains("b")})();N||(function(F){var ne=!0,re=function(ce,te,be,ge){Object.defineProperty?Object.defineProperty(ce,te,{configurable:ne===!1?!0:!!ge,get:be}):ce.__defineGetter__(te,be)};try{re({},"support")}catch{ne=!1}var me=function(ce,te,be){re(ce.prototype,te,function(){var ge,De=this,Ke="__defineGetter__DEFINE_PROPERTY"+te;if(De[Ke])return ge;if(De[Ke]=!0,ne===!1){for(var Ge,Fe=me.mirror||document.createElement("div"),He=Fe.childNodes,Ze=He.length,Qe=0;Qe<Ze;++Qe)if(He[Qe]._R===De){Ge=He[Qe];break}Ge||(Ge=Fe.appendChild(document.createElement("div"))),ge=DOMTokenList.call(Ge,De,be)}else ge=new DOMTokenList(De,be);return re(De,te,function(){return ge}),delete De[Ke],ge},!0)};me(F.Element,"classList","className"),me(F.HTMLElement,"classList","className"),me(F.HTMLLinkElement,"relList","rel"),me(F.HTMLAnchorElement,"relList","rel"),me(F.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"matches"in document.documentElement;N||(Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(ne){for(var re=this,me=(re.document||re.ownerDocument).querySelectorAll(ne),ce=0;me[ce]&&me[ce]!==re;)++ce;return!!me[ce]})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"closest"in document.documentElement;N||(Element.prototype.closest=function(ne){for(var re=this;re;){if(re.matches(ne))return re;re="SVGElement"in window&&re instanceof SVGElement?re.parentNode:re.parentElement}return null})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="Window"in this;N||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(F){F.constructor?F.Window=F.constructor:(F.Window=F.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N=(function(F){if(!("Event"in F))return!1;if(typeof F.Event=="function")return!0;try{return new Event("click"),!0}catch{return!1}})(this);N||(function(){var F={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function ne(me,ce){for(var te=-1,be=me.length;++te<be;)if(te in me&&me[te]===ce)return te;return-1}var re=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(ce,te){if(!ce)throw new Error("Not enough arguments");var be;if("createEvent"in document){be=document.createEvent("Event");var ge=te&&te.bubbles!==m?te.bubbles:!1,De=te&&te.cancelable!==m?te.cancelable:!1;return be.initEvent(ce,ge,De),be}return be=document.createEventObject(),be.type=ce,be.bubbles=te&&te.bubbles!==m?te.bubbles:!1,be.cancelable=te&&te.cancelable!==m?te.cancelable:!1,be},re&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:re}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var ce=this,te=arguments[0],be=arguments[1];if(ce===window&&te in F)throw new Error("In IE8 the event: "+te+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");ce._events||(ce._events={}),ce._events[te]||(ce._events[te]=function(ge){var De=ce._events[ge.type].list,Ke=De.slice(),Ge=-1,Fe=Ke.length,He;for(ge.preventDefault=function(){ge.cancelable!==!1&&(ge.returnValue=!1)},ge.stopPropagation=function(){ge.cancelBubble=!0},ge.stopImmediatePropagation=function(){ge.cancelBubble=!0,ge.cancelImmediate=!0},ge.currentTarget=ce,ge.relatedTarget=ge.fromElement||null,ge.target=ge.target||ge.srcElement||ce,ge.timeStamp=new Date().getTime(),ge.clientX&&(ge.pageX=ge.clientX+document.documentElement.scrollLeft,ge.pageY=ge.clientY+document.documentElement.scrollTop);++Ge<Fe&&!ge.cancelImmediate;)Ge in Ke&&(He=Ke[Ge],ne(De,He)!==-1&&typeof He=="function"&&He.call(ce,ge))},ce._events[te].list=[],ce.attachEvent&&ce.attachEvent("on"+te,ce._events[te])),ce._events[te].list.push(be)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var ce=this,te=arguments[0],be=arguments[1],ge;ce._events&&ce._events[te]&&ce._events[te].list&&(ge=ne(ce._events[te].list,be),ge!==-1&&(ce._events[te].list.splice(ge,1),ce._events[te].list.length||(ce.detachEvent&&ce.detachEvent("on"+te,ce._events[te]),delete ce._events[te])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(ce){if(!arguments.length)throw new Error("Not enough arguments");if(!ce||typeof ce.type!="string")throw new Error("DOM Events Exception 0");var te=this,be=ce.type;try{if(!ce.bubbles){ce.cancelBubble=!0;var ge=function(De){De.cancelBubble=!0,(te||window).detachEvent("on"+be,ge)};this.attachEvent("on"+be,ge)}this.fireEvent("on"+be,ce)}catch{ce.target=te;do ce.currentTarget=te,"_events"in te&&typeof te._events[be]=="function"&&te._events[be].call(te,ce),typeof te["on"+be]=="function"&&te["on"+be].call(te,ce),te=te.nodeType===9?te.parentWindow:te.parentNode;while(te&&!ce.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="bind"in Function.prototype;N||Object.defineProperty(Function.prototype,"bind",{value:function(ne){var re=Array,me=Object,ce=me.prototype,te=re.prototype,be=function(){},ge=ce.toString,De=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke,Ge=Function.prototype.toString,Fe=function(ie){try{return Ge.call(ie),!0}catch{return!1}},He="[object Function]",Ze="[object GeneratorFunction]";Ke=function(ie){if(typeof ie!="function")return!1;if(De)return Fe(ie);var ut=ge.call(ie);return ut===He||ut===Ze};var Qe=te.slice,Be=te.concat,et=te.push,Ye=Math.max,rt=this;if(!Ke(rt))throw new TypeError("Function.prototype.bind called on incompatible "+rt);for(var St=Qe.call(arguments,1),ii,Vn=function(){if(this instanceof ii){var jt=rt.apply(this,Be.call(St,Qe.call(arguments)));return me(jt)===jt?jt:this}else return rt.apply(ne,Be.call(St,Qe.call(arguments)))},tn=Ye(0,rt.length-St.length),bt=[],$t=0;$t<tn;$t++)et.call(bt,"$"+$t);return ii=Function("binder","return function ("+bt.join(",")+"){ return binder.apply(this, arguments); }")(Vn),rt.prototype&&(be.prototype=rt.prototype,ii.prototype=new be,be.prototype=null),ii}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});var xe={hideAllSections:"Hide all sections",hideSection:"Hide",hideSectionAriaLabel:"Hide this section",showAllSections:"Show all sections",showSection:"Show",showSectionAriaLabel:"Show this section"};function _e(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={i18n:xe,rememberExpanded:!0};this.config=he(F,N||{},we(m.dataset)),this.i18n=new qe(Ee(this.config,"i18n")),this.controlsClass="govuk-accordion__controls",this.showAllClass="govuk-accordion__show-all",this.showAllTextClass="govuk-accordion__show-all-text",this.sectionClass="govuk-accordion__section",this.sectionExpandedClass="govuk-accordion__section--expanded",this.sectionButtonClass="govuk-accordion__section-button",this.sectionHeaderClass="govuk-accordion__section-header",this.sectionHeadingClass="govuk-accordion__section-heading",this.sectionHeadingDividerClass="govuk-accordion__section-heading-divider",this.sectionHeadingTextClass="govuk-accordion__section-heading-text",this.sectionHeadingTextFocusClass="govuk-accordion__section-heading-text-focus",this.sectionShowHideToggleClass="govuk-accordion__section-toggle",this.sectionShowHideToggleFocusClass="govuk-accordion__section-toggle-focus",this.sectionShowHideTextClass="govuk-accordion__section-toggle-text",this.upChevronIconClass="govuk-accordion-nav__chevron",this.downChevronIconClass="govuk-accordion-nav__chevron--down",this.sectionSummaryClass="govuk-accordion__section-summary",this.sectionSummaryFocusClass="govuk-accordion__section-summary-focus",this.sectionContentClass="govuk-accordion__section-content";var ne=this.$module.querySelectorAll("."+this.sectionClass);if(!ne.length)return this;this.$sections=ne,this.browserSupportsSessionStorage=D.checkForSessionStorage(),this.$showAllButton=null,this.$showAllIcon=null,this.$showAllText=null}_e.prototype.init=function(){if(!(!this.$module||!this.$sections)){this.initControls(),this.initSectionHeaders();var m=this.checkIfAllSectionsOpen();this.updateShowAllButton(m)}},_e.prototype.initControls=function(){this.$showAllButton=document.createElement("button"),this.$showAllButton.setAttribute("type","button"),this.$showAllButton.setAttribute("class",this.showAllClass),this.$showAllButton.setAttribute("aria-expanded","false"),this.$showAllIcon=document.createElement("span"),this.$showAllIcon.classList.add(this.upChevronIconClass),this.$showAllButton.appendChild(this.$showAllIcon);var m=document.createElement("div");m.setAttribute("class",this.controlsClass),m.appendChild(this.$showAllButton),this.$module.insertBefore(m,this.$module.firstChild),this.$showAllText=document.createElement("span"),this.$showAllText.classList.add(this.showAllTextClass),this.$showAllButton.appendChild(this.$showAllText),this.$showAllButton.addEventListener("click",this.onShowOrHideAllToggle.bind(this)),"onbeforematch"in document&&document.addEventListener("beforematch",this.onBeforeMatch.bind(this))},_e.prototype.initSectionHeaders=function(){var m=this,N=this.$sections;Z(N,function(F,ne){var re=F.querySelector("."+m.sectionHeaderClass);re&&(m.constructHeaderMarkup(re,ne),m.setExpanded(m.isExpanded(F),F),re.addEventListener("click",m.onSectionToggle.bind(m,F)),m.setInitialState(F))})},_e.prototype.constructHeaderMarkup=function(m,N){var F=m.querySelector("."+this.sectionButtonClass),ne=m.querySelector("."+this.sectionHeadingClass),re=m.querySelector("."+this.sectionSummaryClass);if(!(!F||!ne)){var me=document.createElement("button");me.setAttribute("type","button"),me.setAttribute("aria-controls",this.$module.id+"-content-"+(N+1).toString());for(var ce=0;ce<F.attributes.length;ce++){var te=F.attributes.item(ce);te.nodeName!=="id"&&me.setAttribute(te.nodeName,te.nodeValue)}var be=document.createElement("span");be.classList.add(this.sectionHeadingTextClass),be.id=F.id;var ge=document.createElement("span");ge.classList.add(this.sectionHeadingTextFocusClass),be.appendChild(ge),ge.innerHTML=F.innerHTML;var De=document.createElement("span");De.classList.add(this.sectionShowHideToggleClass),De.setAttribute("data-nosnippet","");var Ke=document.createElement("span");Ke.classList.add(this.sectionShowHideToggleFocusClass),De.appendChild(Ke);var Ge=document.createElement("span"),Fe=document.createElement("span");if(Fe.classList.add(this.upChevronIconClass),Ke.appendChild(Fe),Ge.classList.add(this.sectionShowHideTextClass),Ke.appendChild(Ge),me.appendChild(be),me.appendChild(this.getButtonPunctuationEl()),re){var He=document.createElement("span"),Ze=document.createElement("span");Ze.classList.add(this.sectionSummaryFocusClass),He.appendChild(Ze);for(var Qe=0,Be=re.attributes.length;Qe<Be;++Qe){var et=re.attributes.item(Qe).nodeName,Ye=re.attributes.item(Qe).nodeValue;He.setAttribute(et,Ye)}Ze.innerHTML=re.innerHTML,re.parentNode.replaceChild(He,re),me.appendChild(He),me.appendChild(this.getButtonPunctuationEl())}me.appendChild(De),ne.removeChild(F),ne.appendChild(me)}},_e.prototype.onBeforeMatch=function(m){var N=m.target;if(N instanceof Element){var F=N.closest("."+this.sectionClass);F&&this.setExpanded(!0,F)}},_e.prototype.onSectionToggle=function(m){var N=this.isExpanded(m);this.setExpanded(!N,m),this.storeState(m)},_e.prototype.onShowOrHideAllToggle=function(){var m=this,N=this.$sections,F=!this.checkIfAllSectionsOpen();Z(N,function(ne){m.setExpanded(F,ne),m.storeState(ne)}),m.updateShowAllButton(F)},_e.prototype.setExpanded=function(m,N){var F=N.querySelector("."+this.upChevronIconClass),ne=N.querySelector("."+this.sectionShowHideTextClass),re=N.querySelector("."+this.sectionButtonClass),me=N.querySelector("."+this.sectionContentClass);if(!(!F||!(ne instanceof HTMLElement)||!re||!me)){var ce=m?this.i18n.t("hideSection"):this.i18n.t("showSection");ne.innerText=ce,re.setAttribute("aria-expanded",m.toString());var te=[],be=N.querySelector("."+this.sectionHeadingTextClass);be instanceof HTMLElement&&te.push(be.innerText.trim());var ge=N.querySelector("."+this.sectionSummaryClass);ge instanceof HTMLElement&&te.push(ge.innerText.trim());var De=m?this.i18n.t("hideSectionAriaLabel"):this.i18n.t("showSectionAriaLabel");te.push(De),re.setAttribute("aria-label",te.join(" , ")),m?(me.removeAttribute("hidden"),N.classList.add(this.sectionExpandedClass),F.classList.remove(this.downChevronIconClass)):(me.setAttribute("hidden","until-found"),N.classList.remove(this.sectionExpandedClass),F.classList.add(this.downChevronIconClass));var Ke=this.checkIfAllSectionsOpen();this.updateShowAllButton(Ke)}},_e.prototype.isExpanded=function(m){return m.classList.contains(this.sectionExpandedClass)},_e.prototype.checkIfAllSectionsOpen=function(){var m=this.$sections.length,N=this.$module.querySelectorAll("."+this.sectionExpandedClass).length,F=m===N;return F},_e.prototype.updateShowAllButton=function(m){var N=m?this.i18n.t("hideAllSections"):this.i18n.t("showAllSections");this.$showAllButton.setAttribute("aria-expanded",m.toString()),this.$showAllText.innerText=N,m?this.$showAllIcon.classList.remove(this.downChevronIconClass):this.$showAllIcon.classList.add(this.downChevronIconClass)};var D={checkForSessionStorage:function(){var m="this is the test string",N;try{return window.sessionStorage.setItem(m,m),N=window.sessionStorage.getItem(m)===m.toString(),window.sessionStorage.removeItem(m),N}catch{return!1}}};_e.prototype.storeState=function(m){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){var N=m.querySelector("."+this.sectionButtonClass);if(N){var F=N.getAttribute("aria-controls"),ne=N.getAttribute("aria-expanded");F&&ne&&window.sessionStorage.setItem(F,ne)}}},_e.prototype.setInitialState=function(m){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){var N=m.querySelector("."+this.sectionButtonClass);if(N){var F=N.getAttribute("aria-controls"),ne=F?window.sessionStorage.getItem(F):null;ne!==null&&this.setExpanded(ne==="true",m)}}},_e.prototype.getButtonPunctuationEl=function(){var m=document.createElement("span");return m.classList.add("govuk-visually-hidden",this.sectionHeadingDividerClass),m.innerHTML=", ",m};var A=32,y=1;function k(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m,this.debounceFormSubmitTimer=null;var F={preventDoubleClick:!1};this.config=he(F,N||{},we(m.dataset))}k.prototype.init=function(){this.$module&&(this.$module.addEventListener("keydown",this.handleKeyDown),this.$module.addEventListener("click",this.debounce.bind(this)))},k.prototype.handleKeyDown=function(m){var N=m.target;m.keyCode===A&&N instanceof HTMLElement&&N.getAttribute("role")==="button"&&(m.preventDefault(),N.click())},k.prototype.debounce=function(m){if(this.config.preventDoubleClick){if(this.debounceFormSubmitTimer)return m.preventDefault(),!1;this.debounceFormSubmitTimer=setTimeout((function(){this.debounceFormSubmitTimer=null}).bind(this),y*1e3)}};function b(m,N){var F=m.closest("["+N+"]");return F?F.getAttribute(N):null}(function(m){var N="Date"in self&&"now"in self.Date&&"getTime"in self.Date.prototype;N||(Date.now=function(){return new Date().getTime()})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});var T={charactersUnderLimit:{one:"You have %{count} character remaining",other:"You have %{count} characters remaining"},charactersAtLimit:"You have 0 characters remaining",charactersOverLimit:{one:"You have %{count} character too many",other:"You have %{count} characters too many"},wordsUnderLimit:{one:"You have %{count} word remaining",other:"You have %{count} words remaining"},wordsAtLimit:"You have 0 words remaining",wordsOverLimit:{one:"You have %{count} word too many",other:"You have %{count} words too many"},textareaDescription:{other:""}};function g(m,N){if(!(m instanceof HTMLElement))return this;var F=m.querySelector(".govuk-js-character-count");if(!(F instanceof HTMLTextAreaElement||F instanceof HTMLInputElement))return this;var ne={threshold:0,i18n:T},re=we(m.dataset),me={};if(("maxwords"in re||"maxlength"in re)&&(me={maxlength:!1,maxwords:!1}),this.config=he(ne,N||{},me,re),this.i18n=new qe(Ee(this.config,"i18n"),{locale:b(m,"lang")}),this.maxLength=1/0,"maxwords"in this.config&&this.config.maxwords)this.maxLength=this.config.maxwords;else if("maxlength"in this.config&&this.config.maxlength)this.maxLength=this.config.maxlength;else return;this.$module=m,this.$textarea=F,this.$visibleCountMessage=null,this.$screenReaderCountMessage=null,this.lastInputTimestamp=null,this.lastInputValue="",this.valueChecker=null}g.prototype.init=function(){if(!(!this.$module||!this.$textarea)){var m=this.$textarea,N=document.getElementById(m.id+"-info");if(N){N.innerText.match(/^\s*$/)&&(N.innerText=this.i18n.t("textareaDescription",{count:this.maxLength})),m.insertAdjacentElement("afterend",N);var F=document.createElement("div");F.className="govuk-character-count__sr-status govuk-visually-hidden",F.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=F,N.insertAdjacentElement("afterend",F);var ne=document.createElement("div");ne.className=N.className,ne.classList.add("govuk-character-count__status"),ne.setAttribute("aria-hidden","true"),this.$visibleCountMessage=ne,N.insertAdjacentElement("afterend",ne),N.classList.add("govuk-visually-hidden"),m.removeAttribute("maxlength"),this.bindChangeEvents(),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.updateCountMessage.bind(this)),this.updateCountMessage()}}},g.prototype.bindChangeEvents=function(){var m=this.$textarea;m.addEventListener("keyup",this.handleKeyUp.bind(this)),m.addEventListener("focus",this.handleFocus.bind(this)),m.addEventListener("blur",this.handleBlur.bind(this))},g.prototype.handleKeyUp=function(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()},g.prototype.handleFocus=function(){this.valueChecker=setInterval((function(){(!this.lastInputTimestamp||Date.now()-500>=this.lastInputTimestamp)&&this.updateIfValueChanged()}).bind(this),1e3)},g.prototype.handleBlur=function(){clearInterval(this.valueChecker)},g.prototype.updateIfValueChanged=function(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())},g.prototype.updateCountMessage=function(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()},g.prototype.updateVisibleCountMessage=function(){var m=this.$textarea,N=this.$visibleCountMessage,F=this.maxLength-this.count(m.value);this.isOverThreshold()?N.classList.remove("govuk-character-count__message--disabled"):N.classList.add("govuk-character-count__message--disabled"),F<0?(m.classList.add("govuk-textarea--error"),N.classList.remove("govuk-hint"),N.classList.add("govuk-error-message")):(m.classList.remove("govuk-textarea--error"),N.classList.remove("govuk-error-message"),N.classList.add("govuk-hint")),N.innerText=this.getCountMessage()},g.prototype.updateScreenReaderCountMessage=function(){var m=this.$screenReaderCountMessage;this.isOverThreshold()?m.removeAttribute("aria-hidden"):m.setAttribute("aria-hidden","true"),m.innerText=this.getCountMessage()},g.prototype.count=function(m){if("maxwords"in this.config&&this.config.maxwords){var N=m.match(/\S+/g)||[];return N.length}else return m.length},g.prototype.getCountMessage=function(){var m=this.maxLength-this.count(this.$textarea.value),N="maxwords"in this.config&&this.config.maxwords?"words":"characters";return this.formatCountMessage(m,N)},g.prototype.formatCountMessage=function(m,N){if(m===0)return this.i18n.t(N+"AtLimit");var F=m<0?"OverLimit":"UnderLimit";return this.i18n.t(N+F,{count:Math.abs(m)})},g.prototype.isOverThreshold=function(){if(!this.config.threshold)return!0;var m=this.$textarea,N=this.count(m.value),F=this.maxLength,ne=F*this.config.threshold/100;return ne<=N};function S(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll('input[type="checkbox"]');if(!N.length)return this;this.$module=m,this.$inputs=N}S.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var m=this.$module,N=this.$inputs;Z(N,function(F){var ne=F.getAttribute("data-aria-controls");!ne||!document.getElementById(ne)||(F.setAttribute("aria-controls",ne),F.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),m.addEventListener("click",this.handleClick.bind(this))}},S.prototype.syncAllConditionalReveals=function(){Z(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},S.prototype.syncConditionalRevealWithInputState=function(m){var N=m.getAttribute("aria-controls");if(N){var F=document.getElementById(N);if(F&&F.classList.contains("govuk-checkboxes__conditional")){var ne=m.checked;m.setAttribute("aria-expanded",ne.toString()),F.classList.toggle("govuk-checkboxes__conditional--hidden",!ne)}}},S.prototype.unCheckAllInputsExcept=function(m){var N=this,F=document.querySelectorAll('input[type="checkbox"][name="'+m.name+'"]');Z(F,function(ne){var re=m.form===ne.form;re&&ne!==m&&(ne.checked=!1,N.syncConditionalRevealWithInputState(ne))})},S.prototype.unCheckExclusiveInputs=function(m){var N=this,F=document.querySelectorAll('input[data-behaviour="exclusive"][type="checkbox"][name="'+m.name+'"]');Z(F,function(ne){var re=m.form===ne.form;re&&(ne.checked=!1,N.syncConditionalRevealWithInputState(ne))})},S.prototype.handleClick=function(m){var N=m.target;if(!(!(N instanceof HTMLInputElement)||N.type!=="checkbox")){var F=N.getAttribute("aria-controls");if(F&&this.syncConditionalRevealWithInputState(N),!!N.checked){var ne=N.getAttribute("data-behaviour")==="exclusive";ne?this.unCheckAllInputsExcept(N):this.unCheckExclusiveInputs(N)}}};var H=13,K=32;function o(m){if(!(m instanceof HTMLElement))return this;this.$module=m,this.$summary=null,this.$content=null}o.prototype.init=function(){if(this.$module){var m="HTMLDetailsElement"in window&&this.$module instanceof HTMLDetailsElement;m||this.polyfillDetails()}},o.prototype.polyfillDetails=function(){var m=this.$module,N=this.$summary=m.getElementsByTagName("summary").item(0),F=this.$content=m.getElementsByTagName("div").item(0);!N||!F||(F.id||(F.id="details-content-"+ee()),m.setAttribute("role","group"),N.setAttribute("role","button"),N.setAttribute("aria-controls",F.id),N.tabIndex=0,this.$module.hasAttribute("open")?N.setAttribute("aria-expanded","true"):(N.setAttribute("aria-expanded","false"),F.style.display="none"),this.polyfillHandleInputs(this.polyfillSetAttributes.bind(this)))},o.prototype.polyfillSetAttributes=function(){return this.$module.hasAttribute("open")?(this.$module.removeAttribute("open"),this.$summary.setAttribute("aria-expanded","false"),this.$content.style.display="none"):(this.$module.setAttribute("open","open"),this.$summary.setAttribute("aria-expanded","true"),this.$content.style.display=""),!0},o.prototype.polyfillHandleInputs=function(m){this.$summary.addEventListener("keypress",function(N){var F=N.target;(N.keyCode===H||N.keyCode===K)&&F instanceof HTMLElement&&F.nodeName.toLowerCase()==="summary"&&(N.preventDefault(),F.click?F.click():m(N))}),this.$summary.addEventListener("keyup",function(N){var F=N.target;N.keyCode===K&&F instanceof HTMLElement&&F.nodeName.toLowerCase()==="summary"&&N.preventDefault()}),this.$summary.addEventListener("click",m)};function Y(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={disableAutoFocus:!1};this.config=he(F,N||{},we(m.dataset))}Y.prototype.init=function(){if(this.$module){var m=this.$module;this.setFocus(),m.addEventListener("click",this.handleClick.bind(this))}},Y.prototype.setFocus=function(){var m=this.$module;this.config.disableAutoFocus||(m.setAttribute("tabindex","-1"),m.addEventListener("blur",function(){m.removeAttribute("tabindex")}),m.focus())},Y.prototype.handleClick=function(m){var N=m.target;this.focusTarget(N)&&m.preventDefault()},Y.prototype.focusTarget=function(m){if(!(m instanceof HTMLAnchorElement))return!1;var N=this.getFragmentFromUrl(m.href);if(!N)return!1;var F=document.getElementById(N);if(!F)return!1;var ne=this.getAssociatedLegendOrLabel(F);return ne?(ne.scrollIntoView(),F.focus({preventScroll:!0}),!0):!1},Y.prototype.getFragmentFromUrl=function(m){if(m.indexOf("#")!==-1)return m.split("#").pop()},Y.prototype.getAssociatedLegendOrLabel=function(m){var N=m.closest("fieldset");if(N){var F=N.getElementsByTagName("legend");if(F.length){var ne=F[0];if(m instanceof HTMLInputElement&&(m.type==="checkbox"||m.type==="radio"))return ne;var re=ne.getBoundingClientRect().top,me=m.getBoundingClientRect();if(me.height&&window.innerHeight){var ce=me.top+me.height;if(ce-re<window.innerHeight/2)return ne}}}return document.querySelector("label[for='"+m.getAttribute("id")+"']")||m.closest("label")};var J={activated:"Loading.",timedOut:"Exit this page expired.",pressTwoMoreTimes:"Shift, press 2 more times to exit.",pressOneMoreTime:"Shift, press 1 more time to exit."};function fe(m,N){var F={i18n:J};if(!(m instanceof HTMLElement))return this;var ne=m.querySelector(".govuk-exit-this-page__button");if(!(ne instanceof HTMLElement))return this;this.config=he(F,N||{},we(m.dataset)),this.i18n=new qe(Ee(this.config,"i18n")),this.$module=m,this.$button=ne,this.$skiplinkButton=document.querySelector(".govuk-js-exit-this-page-skiplink"),this.$updateSpan=null,this.$indicatorContainer=null,this.$overlay=null,this.keypressCounter=0,this.lastKeyWasModified=!1,this.timeoutTime=5e3,this.keypressTimeoutId=null,this.timeoutMessageId=null}fe.prototype.initUpdateSpan=function(){this.$updateSpan=document.createElement("span"),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.className="govuk-visually-hidden",this.$module.appendChild(this.$updateSpan)},fe.prototype.initButtonClickHandler=function(){this.$button.addEventListener("click",this.handleClick.bind(this)),this.$skiplinkButton&&this.$skiplinkButton.addEventListener("click",this.handleClick.bind(this))},fe.prototype.buildIndicator=function(){this.$indicatorContainer=document.createElement("div"),this.$indicatorContainer.className="govuk-exit-this-page__indicator",this.$indicatorContainer.setAttribute("aria-hidden","true");for(var m=0;m<3;m++){var N=document.createElement("div");N.className="govuk-exit-this-page__indicator-light",this.$indicatorContainer.appendChild(N)}this.$button.appendChild(this.$indicatorContainer)},fe.prototype.updateIndicator=function(){this.keypressCounter>0?this.$indicatorContainer.classList.add("govuk-exit-this-page__indicator--visible"):this.$indicatorContainer.classList.remove("govuk-exit-this-page__indicator--visible");var m=this.$indicatorContainer.querySelectorAll(".govuk-exit-this-page__indicator-light");Z(m,(function(N,F){N.classList.toggle("govuk-exit-this-page__indicator-light--on",F<this.keypressCounter)}).bind(this))},fe.prototype.exitPage=function(){this.$updateSpan.innerText="",document.body.classList.add("govuk-exit-this-page-hide-content"),this.$overlay=document.createElement("div"),this.$overlay.className="govuk-exit-this-page-overlay",this.$overlay.setAttribute("role","alert"),document.body.appendChild(this.$overlay),this.$overlay.innerText=this.i18n.t("activated"),window.location.href=this.$button.getAttribute("href")},fe.prototype.handleClick=function(m){m.preventDefault(),this.exitPage()},fe.prototype.handleKeypress=function(m){(m.key==="Shift"||m.keyCode===16||m.which===16)&&!this.lastKeyWasModified?(this.keypressCounter+=1,this.updateIndicator(),this.timeoutMessageId!==null&&(clearTimeout(this.timeoutMessageId),this.timeoutMessageId=null),this.keypressCounter>=3?(this.keypressCounter=0,this.keypressTimeoutId!==null&&(clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null),this.exitPage()):this.keypressCounter===1?this.$updateSpan.innerText=this.i18n.t("pressTwoMoreTimes"):this.$updateSpan.innerText=this.i18n.t("pressOneMoreTime"),this.setKeypressTimer()):this.keypressTimeoutId!==null&&this.resetKeypressTimer(),this.lastKeyWasModified=m.shiftKey},fe.prototype.setKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=setTimeout(this.resetKeypressTimer.bind(this),this.timeoutTime)},fe.prototype.resetKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null,this.keypressCounter=0,this.$updateSpan.innerText=this.i18n.t("timedOut"),this.timeoutMessageId=setTimeout((function(){this.$updateSpan.innerText=""}).bind(this),this.timeoutTime),this.updateIndicator()},fe.prototype.resetPage=function(){document.body.classList.remove("govuk-exit-this-page-hide-content"),this.$overlay&&(this.$overlay.remove(),this.$overlay=null),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.innerText="",this.updateIndicator(),this.keypressTimeoutId&&clearTimeout(this.keypressTimeoutId),this.timeoutMessageId&&clearTimeout(this.timeoutMessageId)},fe.prototype.init=function(){this.buildIndicator(),this.initUpdateSpan(),this.initButtonClickHandler(),"govukFrontendExitThisPageKeypress"in document.body.dataset||(document.addEventListener("keyup",this.handleKeypress.bind(this),!0),document.body.dataset.govukFrontendExitThisPageKeypress="true"),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.resetPage.bind(this))};function Ie(m){if(!(m instanceof HTMLElement))return this;this.$module=m,this.$menuButton=m.querySelector(".govuk-js-header-toggle"),this.$menu=this.$menuButton&&m.querySelector("#"+this.$menuButton.getAttribute("aria-controls")),this.menuIsOpen=!1,this.mql=null}Ie.prototype.init=function(){!this.$module||!this.$menuButton||!this.$menu||("matchMedia"in window?(this.mql=window.matchMedia("(min-width: 48.0625em)"),"addEventListener"in this.mql?this.mql.addEventListener("change",this.syncState.bind(this)):this.mql.addListener(this.syncState.bind(this)),this.syncState(),this.$menuButton.addEventListener("click",this.handleMenuButtonClick.bind(this))):this.$menuButton.setAttribute("hidden",""))},Ie.prototype.syncState=function(){this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden",""))},Ie.prototype.handleMenuButtonClick=function(){this.menuIsOpen=!this.menuIsOpen,this.syncState()};function nt(m,N){if(!(m instanceof HTMLElement))return this;this.$module=m;var F={disableAutoFocus:!1};this.config=he(F,N||{},we(m.dataset))}nt.prototype.init=function(){this.$module&&this.setFocus()},nt.prototype.setFocus=function(){var m=this.$module;this.config.disableAutoFocus||m.getAttribute("role")==="alert"&&(m.getAttribute("tabindex")||(m.setAttribute("tabindex","-1"),m.addEventListener("blur",function(){m.removeAttribute("tabindex")})),m.focus())};function Ce(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll('input[type="radio"]');if(!N.length)return this;this.$module=m,this.$inputs=N}Ce.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var m=this.$module,N=this.$inputs;Z(N,function(F){var ne=F.getAttribute("data-aria-controls");!ne||!document.getElementById(ne)||(F.setAttribute("aria-controls",ne),F.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),m.addEventListener("click",this.handleClick.bind(this))}},Ce.prototype.syncAllConditionalReveals=function(){Z(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},Ce.prototype.syncConditionalRevealWithInputState=function(m){var N=m.getAttribute("aria-controls");if(N){var F=document.getElementById(N);if(F&&F.classList.contains("govuk-radios__conditional")){var ne=m.checked;m.setAttribute("aria-expanded",ne.toString()),F.classList.toggle("govuk-radios__conditional--hidden",!ne)}}},Ce.prototype.handleClick=function(m){var N=this,F=m.target;if(!(!(F instanceof HTMLInputElement)||F.type!=="radio")){var ne=document.querySelectorAll('input[type="radio"][aria-controls]'),re=F.form,me=F.name;Z(ne,function(ce){var te=ce.form===re,be=ce.name===me;be&&te&&N.syncConditionalRevealWithInputState(ce)})}};function Tt(m){if(!(m instanceof HTMLAnchorElement))return this;this.$module=m,this.$linkedElement=null,this.linkedElementListener=!1}Tt.prototype.init=function(){if(this.$module){var m=this.getLinkedElement();m&&(this.$linkedElement=m,this.$module.addEventListener("click",this.focusLinkedElement.bind(this)))}},Tt.prototype.getLinkedElement=function(){var m=this.getFragmentFromUrl();return m?document.getElementById(m):null},Tt.prototype.focusLinkedElement=function(){var m=this.$linkedElement;m.getAttribute("tabindex")||(m.setAttribute("tabindex","-1"),m.classList.add("govuk-skip-link-focused-element"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",this.removeFocusProperties.bind(this)),this.linkedElementListener=!0)),m.focus()},Tt.prototype.removeFocusProperties=function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("govuk-skip-link-focused-element")},Tt.prototype.getFragmentFromUrl=function(){if(this.$module.hash)return this.$module.hash.split("#").pop()},(function(m){var N="document"in this&&"nextElementSibling"in document.documentElement;N||Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var F=this.nextSibling;F&&F.nodeType!==1;)F=F.nextSibling;return F}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{}),(function(m){var N="document"in this&&"previousElementSibling"in document.documentElement;N||Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var F=this.previousSibling;F&&F.nodeType!==1;)F=F.previousSibling;return F}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof ct=="object"&&ct||{});function it(m){if(!(m instanceof HTMLElement))return this;var N=m.querySelectorAll("a.govuk-tabs__tab");if(!N.length)return this;this.$module=m,this.$tabs=N,this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden",this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.boundOnHashChange=this.onHashChange.bind(this),this.changingHash=!1}it.prototype.init=function(){!this.$module||!this.$tabs||(typeof window.matchMedia=="function"?this.setupResponsiveChecks():this.setup())},it.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 40.0625em)"),this.mql.addListener(this.checkMode.bind(this)),this.checkMode()},it.prototype.checkMode=function(){this.mql.matches?this.setup():this.teardown()},it.prototype.setup=function(){var m=this,N=this.$module,F=this.$tabs,ne=N.querySelector(".govuk-tabs__list"),re=N.querySelectorAll(".govuk-tabs__list-item");if(!(!F||!ne||!re)){ne.setAttribute("role","tablist"),Z(re,function(ce){ce.setAttribute("role","presentation")}),Z(F,function(ce){m.setAttributes(ce),ce.addEventListener("click",m.boundTabClick,!0),ce.addEventListener("keydown",m.boundTabKeydown,!0),m.hideTab(ce)});var me=this.getTab(window.location.hash)||this.$tabs[0];me&&(this.showTab(me),window.addEventListener("hashchange",this.boundOnHashChange,!0))}},it.prototype.teardown=function(){var m=this,N=this.$module,F=this.$tabs,ne=N.querySelector(".govuk-tabs__list"),re=N.querySelectorAll("a.govuk-tabs__list-item");!F||!ne||!re||(ne.removeAttribute("role"),Z(re,function(me){me.removeAttribute("role")}),Z(F,function(me){me.removeEventListener("click",m.boundTabClick,!0),me.removeEventListener("keydown",m.boundTabKeydown,!0),m.unsetAttributes(me)}),window.removeEventListener("hashchange",this.boundOnHashChange,!0))},it.prototype.onHashChange=function(){var m=window.location.hash,N=this.getTab(m);if(N){if(this.changingHash){this.changingHash=!1;return}var F=this.getCurrentTab();F&&(this.hideTab(F),this.showTab(N),N.focus())}},it.prototype.hideTab=function(m){this.unhighlightTab(m),this.hidePanel(m)},it.prototype.showTab=function(m){this.highlightTab(m),this.showPanel(m)},it.prototype.getTab=function(m){return this.$module.querySelector('a.govuk-tabs__tab[href="'+m+'"]')},it.prototype.setAttributes=function(m){var N=this.getHref(m).slice(1);m.setAttribute("id","tab_"+N),m.setAttribute("role","tab"),m.setAttribute("aria-controls",N),m.setAttribute("aria-selected","false"),m.setAttribute("tabindex","-1");var F=this.getPanel(m);F&&(F.setAttribute("role","tabpanel"),F.setAttribute("aria-labelledby",m.id),F.classList.add(this.jsHiddenClass))},it.prototype.unsetAttributes=function(m){m.removeAttribute("id"),m.removeAttribute("role"),m.removeAttribute("aria-controls"),m.removeAttribute("aria-selected"),m.removeAttribute("tabindex");var N=this.getPanel(m);N&&(N.removeAttribute("role"),N.removeAttribute("aria-labelledby"),N.classList.remove(this.jsHiddenClass))},it.prototype.onTabClick=function(m){var N=this.getCurrentTab(),F=m.currentTarget;!N||!(F instanceof HTMLAnchorElement)||(m.preventDefault(),this.hideTab(N),this.showTab(F),this.createHistoryEntry(F))},it.prototype.createHistoryEntry=function(m){var N=this.getPanel(m);if(N){var F=N.id;N.id="",this.changingHash=!0,window.location.hash=this.getHref(m).slice(1),N.id=F}},it.prototype.onTabKeydown=function(m){switch(m.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),m.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),m.preventDefault();break}},it.prototype.activateNextTab=function(){var m=this.getCurrentTab();if(!(!m||!m.parentElement)){var N=m.parentElement.nextElementSibling;if(N){var F=N.querySelector("a.govuk-tabs__tab");F&&(this.hideTab(m),this.showTab(F),F.focus(),this.createHistoryEntry(F))}}},it.prototype.activatePreviousTab=function(){var m=this.getCurrentTab();if(!(!m||!m.parentElement)){var N=m.parentElement.previousElementSibling;if(N){var F=N.querySelector("a.govuk-tabs__tab");F&&(this.hideTab(m),this.showTab(F),F.focus(),this.createHistoryEntry(F))}}},it.prototype.getPanel=function(m){return this.$module.querySelector(this.getHref(m))},it.prototype.showPanel=function(m){var N=this.getPanel(m);N&&N.classList.remove(this.jsHiddenClass)},it.prototype.hidePanel=function(m){var N=this.getPanel(m);N&&N.classList.add(this.jsHiddenClass)},it.prototype.unhighlightTab=function(m){m.parentElement&&(m.setAttribute("aria-selected","false"),m.parentElement.classList.remove("govuk-tabs__list-item--selected"),m.setAttribute("tabindex","-1"))},it.prototype.highlightTab=function(m){m.parentElement&&(m.setAttribute("aria-selected","true"),m.parentElement.classList.add("govuk-tabs__list-item--selected"),m.setAttribute("tabindex","0"))},it.prototype.getCurrentTab=function(){return this.$module.querySelector(".govuk-tabs__list-item--selected a.govuk-tabs__tab")},it.prototype.getHref=function(m){var N=m.getAttribute("href"),F=N.slice(N.indexOf("#"),N.length);return F};function On(m){m=typeof m<"u"?m:{};var N=m.scope instanceof HTMLElement?m.scope:document,F=N.querySelectorAll('[data-module="govuk-accordion"]');Z(F,function(He){new _e(He,m.accordion).init()});var ne=N.querySelectorAll('[data-module="govuk-button"]');Z(ne,function(He){new k(He,m.button).init()});var re=N.querySelectorAll('[data-module="govuk-character-count"]');Z(re,function(He){new g(He,m.characterCount).init()});var me=N.querySelectorAll('[data-module="govuk-checkboxes"]');Z(me,function(He){new S(He).init()});var ce=N.querySelectorAll('[data-module="govuk-details"]');Z(ce,function(He){new o(He).init()});var te=N.querySelector('[data-module="govuk-error-summary"]');te&&new Y(te,m.errorSummary).init();var be=N.querySelectorAll('[data-module="govuk-exit-this-page"]');Z(be,function(He){new fe(He,m.exitThisPage).init()});var ge=N.querySelector('[data-module="govuk-header"]');ge&&new Ie(ge).init();var De=N.querySelectorAll('[data-module="govuk-notification-banner"]');Z(De,function(He){new nt(He,m.notificationBanner).init()});var Ke=N.querySelectorAll('[data-module="govuk-radios"]');Z(Ke,function(He){new Ce(He).init()});var Ge=N.querySelector('[data-module="govuk-skip-link"]');Ge&&new Tt(Ge).init();var Fe=N.querySelectorAll('[data-module="govuk-tabs"]');Z(Fe,function(He){new it(He).init()})}c.initAll=On,c.version=W,c.Accordion=_e,c.Button=k,c.Details=o,c.CharacterCount=g,c.Checkboxes=S,c.ErrorSummary=Y,c.ExitThisPage=fe,c.Header=Ie,c.NotificationBanner=nt,c.Radios=Ce,c.SkipLink=Tt,c.Tabs=it}))})(io,io.exports)),io.exports}var ja={},Ua;function ll(){return Ua||(Ua=1,function(){const C=document.getElementById("skip-to-main"),c=C.hash.split("#")[1]?C.hash.split("#")[1]:"main-content";c==="main-content"&&C.setAttribute("href","#main-content"),c&&(C.onclick=function(W){setTimeout(()=>{document.getElementById(c).focus()},10)})}()),ja}var ro={},Wa;function cl(){return Wa||(Wa=1,(function(){const $=this;typeof $.GOVUK>"u"&&($.GOVUK={}),GOVUK.cookie=function(C,c,W){return typeof c<"u"?c===!1||c===null?GOVUK.setCookie(C,"",{days:-1}):GOVUK.setCookie(C,c,W):GOVUK.getCookie(C)},GOVUK.setCookie=function(C,c,W){typeof W>"u"&&(W={});let Z=C+"="+c+"; path=/";if(W.days){const ee=new Date;ee.setTime(ee.getTime()+W.days*24*60*60*1e3),Z=Z+"; expires="+ee.toGMTString()}document.location.protocol==="https:"&&(Z=Z+"; Secure"),document.cookie=Z},GOVUK.getCookie=function(C){const c=C+"=",W=document.cookie.split(";");for(let Z=0,ee=W.length;Z<ee;Z++){let he=W[Z];for(;he.charAt(0)===" ";)he=he.substring(1,he.length);if(he.indexOf(c)===0)return decodeURIComponent(he.substring(c.length))}return null}}).call(ro),(function(){const $=this;typeof $.GOVUK>"u"&&($.GOVUK={}),GOVUK.addCookieMessage=function(){const C=document.getElementById("global-cookie-message");C&&GOVUK.cookie("seen_cookie_message")===null&&(C.style.display="block",GOVUK.cookie("seen_cookie_message","yes",{days:28}),document.addEventListener("DOMContentLoaded",function(W){GOVUK.analytics&&typeof GOVUK.analytics.trackEvent=="function"&&GOVUK.analytics.trackEvent("cookieBanner","Cookie banner shown",{value:1,nonInteraction:!0})}))}}).call(ro),(function(){if(window.GOVUK&&GOVUK.addCookieMessage&&GOVUK.addCookieMessage(),document.querySelectorAll&&document.addEventListener){const $=document.querySelectorAll(".js-header-toggle");let C,c;for(C=0,c=$.length;C<c;C++)$[C].addEventListener("click",function(W){W.preventDefault();const Z=document.getElementById(this.getAttribute("href").substr(1)),ee=Z.getAttribute("class")||"",he=this.getAttribute("class")||"";ee.indexOf("js-visible")!==-1?Z.setAttribute("class",ee.replace(/(^|\s)js-visible(\s|$)/,"")):Z.setAttribute("class",ee+" js-visible"),he.indexOf("js-visible")!==-1?this.setAttribute("class",he.replace(/(^|\s)js-visible(\s|$)/,"")):this.setAttribute("class",he+" js-visible"),this.setAttribute("aria-expanded",this.getAttribute("aria-expanded")!=="true"),Z.setAttribute("aria-hidden",Z.getAttribute("aria-hidden")==="false")})}}).call(ro)),ro}var Ns,Ka;function hl(){if(Ka)return Ns;Ka=1;function $(xe){const _e=document.getElementById(xe);if(_e===null)return;const D=_e.getElementsByClassName("js-disabled");for(let A=0;A<D.length;A++)D[A].style.display="none"}function C(xe){const _e=document.getElementById(xe);if(_e===null)return;const D=_e.getElementsByClassName("js-enabled");for(let A=0;A<D.length;A++)D[A].style.display="block"}function c(xe){GOVUK.cookie("cookie_preferences",JSON.stringify(xe),{days:30}),xe.usage||(GOVUK.cookie("_ga",null),GOVUK.cookie("_gat",null),GOVUK.cookie("_gid",null))}function W(){document.getElementById("cookie-banner-info").style.display="none",document.getElementById("cookie-banner-actions").style.display="none";let xe;document.getElementById("cookie-banner-submitted-accepted").dataset.acceptCookies==="true"?xe=document.getElementById("cookie-banner-submitted-accepted"):xe=document.getElementById("cookie-banner-submitted-rejected"),xe.style.display="block",xe.focus()}function Z(){document.getElementById("cookie-banner").style.display="none"}function ee(){const xe=document.getElementById("cookie-banner-submitted-accepted");document.getElementById("accept-cookies-button").addEventListener("click",function(){c({essential:!0,usage:!0}),W(),sessionStorage.setItem("reloading","true"),window.location=document.URL}),document.getElementById("reject-cookies-button").addEventListener("click",function(){c({essential:!0,usage:!1}),xe.dataset.acceptCookies="false",W()}),document.getElementById("hide-accept-cookie-banner").addEventListener("click",Z),document.getElementById("hide-reject-cookie-banner").addEventListener("click",Z)}function he(){if(GOVUK.cookie("cookie_preferences")!==null)return;const _e=document.getElementById("global-cookie-message"),D=document.getElementById("cookie-banner");_e!==null&&D!==null&&($("global-cookie-message"),C("global-cookie-message"),_e.style.display="block",ee())}function Ee(xe){xe.preventDefault(),c({essential:!0,usage:document.getElementById("radio-1").checked});const _e=document.getElementById("cookie-notification"),D=document.getElementById("cookie-banner");D!==null&&(D.style.display="none"),_e!==null&&(_e.style.display="block",_e.focus())}function ye(){const xe=JSON.parse(GOVUK.cookie("cookie_preferences"));let _e;xe!==null&&xe.usage!==void 0&&typeof xe.usage=="boolean"?_e=xe.usage:_e=!1,document.getElementById("radio-1").checked=_e,document.getElementById("radio-2").checked=!_e,document.getElementById("save-cookie-settings").addEventListener("click",Ee)}function we(){document.getElementById("cookie-settings")!==null&&($("cookie-settings"),C("cookie-settings"),ye())}function qe(){window.onload=function(){if(sessionStorage.getItem("reloading")){sessionStorage.removeItem("reloading");const _e=document.getElementById("global-cookie-message"),D=document.getElementById("cookie-banner");_e!==null&&D!==null&&(_e.style.display="block"),ee(),W()}}}return Ns={initialiseCookieBanner:he,initialiseCookiePage:we,onLoad:qe},Ns}var Ga={},Wo={exports:{}};/*!
|
|
28
28
|
* jQuery JavaScript Library v3.7.1
|
|
29
29
|
* https://jquery.com/
|
|
30
30
|
*
|