PageSourceSearch

https://www.minimax.com/static/main.js

js minimax.com collected 2026-10-09 23:19:28 UTC 511,099 bytes, 50 lines download raw bytes

1import{g as sn,a as Rr,j as Ja,c as eo}from"./jquery.js";function Gd(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}function to(n,s){for(var c=0;c<s.length;c++){const u=s[c];if(typeof u!="string"&&!Array.isArray(u)){for(const l in u)if(l!=="default"&&!(l in n)){const i=Object.getOwnPropertyDescriptor(u,l);i&&Object.defineProperty(n,l,i.get?i:{enumerable:!0,get:()=>u[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var Xe="top",st="bottom",nt="right",Qe="left",ds="auto",vi=[Xe,st,nt,Qe],Ut="start",ui="end",Br="clippingParents",nn="viewport",oi="popper",Fr="reference",Ks=vi.reduce(function(n,s){return n.concat([s+"-"+Ut,s+"-"+ui])},[]),rn=[].concat(vi,[ds]).reduce(function(n,s){return n.concat([s,s+"-"+Ut,s+"-"+ui])},[]),jr="beforeRead",zr="read",Hr="afterRead",Vr="beforeMain",qr="main",Wr="afterMain",Yr="beforeWrite",Ur="write",Kr="afterWrite",Gr=[jr,zr,Hr,Vr,qr,Wr,Yr,Ur,Kr];function yt(n){return n?(n.nodeName||"").toLowerCase():null}function rt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var s=n.ownerDocument;return s&&s.defaultView||window}return n}function Kt(n){var s=rt(n).Element;return n instanceof s||n instanceof Element}function ot(n){var s=rt(n).HTMLElement;return n instanceof s||n instanceof HTMLElement}function an(n){if(typeof ShadowRoot>"u")return!1;var s=rt(n).ShadowRoot;return n instanceof s||n instanceof ShadowRoot}function io(n){var s=n.state;Object.keys(s.elements).forEach(function(c){var u=s.styles[c]||{},l=s.attributes[c]||{},i=s.elements[c];!ot(i)||!yt(i)||(Object.assign(i.style,u),Object.keys(l).forEach(function(r){var t=l[r];t===!1?i.removeAttribute(r):i.setAttribute(r,t===!0?"":t)}))})}function so(n){var s=n.state,c={popper:{position:s.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(s.elements.popper.style,c.popper),s.styles=c,s.elements.arrow&&Object.assign(s.elements.arrow.style,c.arrow),function(){Object.keys(s.elements).forEach(function(u){var l=s.elements[u],i=s.attributes[u]||{},r=Object.keys(s.styles.hasOwnProperty(u)?s.styles[u]:c[u]),t=r.reduce(function(e,a){return e[a]="",e},{});
vendor: 15,854 bytes, line 1
1!ot(l)||!yt(l)||(Object.assign(l.style,t),Object.keys(i).forEach(function(e){l.removeAttribute(e)}))})}}const on={name:"applyStyles",enabled:!0,phase:"write",fn:io,effect:so,requires:["computeStyles"]};function _t(n){return n.split("-")[0]}var Wt=Math.max,ls=Math.min,di=Math.round;function Gs(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(s){return s.brand+"/"+s.version}).join(" "):navigator.userAgent}function Xr(){return!/^((?!chrome|android).)*safari/i.test(Gs())}function fi(n,s,c){s===void 0&&(s=!1),c===void 0&&(c=!1);var u=n.getBoundingClientRect(),l=1,i=1;s&&ot(n)&&(l=n.offsetWidth>0&&di(u.width)/n.offsetWidth||1,i=n.offsetHeight>0&&di(u.height)/n.offsetHeight||1);var r=Kt(n)?rt(n):window,t=r.visualViewport,e=!Xr()&&c,a=(u.left+(e&&t?t.offsetLeft:0))/l,o=(u.top+(e&&t?t.offsetTop:0))/i,f=u.width/l,g=u.height/i;return{width:f,height:g,top:o,right:a+f,bottom:o+g,left:a,x:a,y:o}}function ln(n){var s=fi(n),c=n.offsetWidth,u=n.offsetHeight;return Math.abs(s.width-c)<=1&&(c=s.width),Math.abs(s.height-u)<=1&&(u=s.height),{x:n.offsetLeft,y:n.offsetTop,width:c,height:u}}function Qr(n,s){var c=s.getRootNode&&s.getRootNode();if(n.contains(s))return!0;if(c&&an(c)){var u=s;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function Ct(n){return rt(n).getComputedStyle(n)}function no(n){return["table","td","th"].indexOf(yt(n))>=0}function Pt(n){return((Kt(n)?n.ownerDocument:n.document)||window.document).documentElement}function fs(n){return yt(n)==="html"?n:n.assignedSlot||n.parentNode||(an(n)?n.host:null)||Pt(n)}function Vn(n){return!ot(n)||Ct(n).position==="fixed"?null:n.offsetParent}function ro(n){var s=/firefox/i.test(Gs()),c=/Trident/i.test(Gs());if(c&&ot(n)){var u=Ct(n);if(u.position==="fixed")return null}var l=fs(n);for(an(l)&&(l=l.host);ot(l)&&["html","body"].indexOf(yt(l))<0;){var i=Ct(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||s&&i.willChange==="filter"||s&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Pi(n){for(var s=rt(n),c=Vn(n);c&&no(c)&&Ct(c).position==="static";)c=Vn(c);return c&&(yt(c)==="html"||yt(c)==="body"&&Ct(c).position==="static")?s:c||ro(n)||s}function cn(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Ni(n,s,c){return Wt(n,ls(s,c))}function ao(n,s,c){var u=Ni(n,s,c);return u>c?c:u}function Zr(){return{top:0,right:0,bottom:0,left:0}}function Jr(n){return Object.assign({},Zr(),n)}function ea(n,s){return s.reduce(function(c,u){return c[u]=n,c},{})}var oo=function(s,c){return s=typeof s=="function"?s(Object.assign({},c.rects,{placement:c.placement})):s,Jr(typeof s!="number"?s:ea(s,vi))};function lo(n){var s,c=n.state,u=n.name,l=n.options,i=c.elements.arrow,r=c.modifiersData.popperOffsets,t=_t(c.placement),e=cn(t),a=[Qe,nt].indexOf(t)>=0,o=a?"height":"width";if(!(!i||!r)){var f=oo(l.padding,c),g=ln(i),y=e==="y"?Xe:Qe,E=e==="y"?st:nt,k=c.rects.reference[o]+c.rects.reference[e]-r[e]-c.rects.popper[o],D=r[e]-c.rects.reference[e],R=Pi(i),b=R?e==="y"?R.clientHeight||0:R.clientWidth||0:0,p=k/2-D/2,O=f[y],N=b-g[o]-f[E],C=b/2-g[o]/2+p,B=Ni(O,C,N),F=e;c.modifiersData[u]=(s={},s[F]=B,s.centerOffset=B-C,s)}}function co(n){var s=n.state,c=n.options,u=c.element,l=u===void 0?"[data-popper-arrow]":u;l!=null&&(typeof l=="string"&&(l=s.elements.popper.querySelector(l),!l)||Qr(s.elements.popper,l)&&(s.elements.arrow=l))}const ta={name:"arrow",enabled:!0,phase:"main",fn:lo,effect:co,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pi(n){return n.split("-")[1]}var ho={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uo(n,s){var c=n.x,u=n.y,l=s.devicePixelRatio||1;return{x:di(c*l)/l||0,y:di(u*l)/l||0}}function qn(n){var s,c=n.popper,u=n.popperRect,l=n.placement,i=n.variation,r=n.offsets,t=n.position,e=n.gpuAcceleration,a=n.adaptive,o=n.roundOffsets,f=n.isFixed,g=r.x,y=g===void 0?0:g,E=r.y,k=E===void 0?0:E,D=typeof o=="function"?o({x:y,y:k}):{x:y,y:k};y=D.x,k=D.y;var R=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),p=Qe,O=Xe,N=window;if(a){var C=Pi(c),B="clientHeight",F="clientWidth";if(C===rt(c)&&(C=Pt(c),Ct(C).position!=="static"&&t==="absolute"&&(B="scrollHeight",F="scrollWidth")),C=C,l===Xe||(l===Qe||l===nt)&&i===ui){O=st;var V=f&&C===N&&N.visualViewport?N.visualViewport.height:C[B];k-=V-u.height,k*=e?1:-1}if(l===Qe||(l===Xe||l===st)&&i===ui){p=nt;var te=f&&C===N&&N.visualViewport?N.visualViewport.width:C[F];y-=te-u.width,y*=e?1:-1}}var W=Object.assign({position:t},a&&ho),U=o===!0?uo({x:y,y:k},rt(c)):{x:y,y:k};if(y=U.x,k=U.y,e){var ne;return Object.assign({},W,(ne={},ne[O]=b?"0":"",ne[p]=R?"0":"",ne.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+k+"px)":"translate3d("+y+"px, "+k+"px, 0)",ne))}return Object.assign({},W,(s={},s[O]=b?k+"px":"",s[p]=R?y+"px":"",s.transform="",s))}function fo(n){var s=n.state,c=n.options,u=c.gpuAcceleration,l=u===void 0?!0:u,i=c.adaptive,r=i===void 0?!0:i,t=c.roundOffsets,e=t===void 0?!0:t,a={placement:_t(s.placement),variation:pi(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:l,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,qn(Object.assign({},a,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:r,roundOffsets:e})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,qn(Object.assign({},a,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}const hn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fo,data:{}};var Ki={passive:!0};function po(n){var s=n.state,c=n.instance,u=n.options,l=u.scroll,i=l===void 0?!0:l,r=u.resize,t=r===void 0?!0:r,e=rt(s.elements.popper),a=[].concat(s.scrollParents.reference,s.scrollParents.popper);return i&&a.forEach(function(o){o.addEventListener("scroll",c.update,Ki)}),t&&e.addEventListener("resize",c.update,Ki),function(){i&&a.forEach(function(o){o.removeEventListener("scroll",c.update,Ki)}),t&&e.removeEventListener("resize",c.update,Ki)}}const un={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:po,data:{}};var go={left:"right",right:"left",bottom:"top",top:"bottom"};function ns(n){return n.replace(/left|right|bottom|top/g,function(s){return go[s]})}var mo={start:"end",end:"start"};function Wn(n){return n.replace(/start|end/g,function(s){return mo[s]})}function dn(n){var s=rt(n),c=s.pageXOffset,u=s.pageYOffset;return{scrollLeft:c,scrollTop:u}}function fn(n){return fi(Pt(n)).left+dn(n).scrollLeft}function _o(n,s){var c=rt(n),u=Pt(n),l=c.visualViewport,i=u.clientWidth,r=u.clientHeight,t=0,e=0;if(l){i=l.width,r=l.height;var a=Xr();(a||!a&&s==="fixed")&&(t=l.offsetLeft,e=l.offsetTop)}return{width:i,height:r,x:t+fn(n),y:e}}function vo(n){var s,c=Pt(n),u=dn(n),l=(s=n.ownerDocument)==null?void 0:s.body,i=Wt(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=Wt(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),t=-u.scrollLeft+fn(n),e=-u.scrollTop;return Ct(l||c).direction==="rtl"&&(t+=Wt(c.clientWidth,l?l.clientWidth:0)-i),{width:i,height:r,x:t,y:e}}function pn(n){var s=Ct(n),c=s.overflow,u=s.overflowX,l=s.overflowY;return/auto|scroll|overlay|hidden/.test(c+l+u)}function ia(n){return["html","body","#document"].indexOf(yt(n))>=0?n.ownerDocument.body:ot(n)&&pn(n)?n:ia(fs(n))}function Ii(n,s){var c;s===void 0&&(s=[]);var u=ia(n),l=u===((c=n.ownerDocument)==null?void 0:c.body),i=rt(u),r=l?[i].concat(i.visualViewport||[],pn(u)?u:[]):u,t=s.concat(r);return l?t:t.concat(Ii(fs(r)))}function Xs(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function yo(n,s){var c=fi(n,!1,s==="fixed");return c.top=c.top+n.clientTop,c.left=c.left+n.clientLeft,c.bottom=c.top+n.clientHeight,c.right=c.left+n.clientWidth,c.width=n.clientWidth,c.height=n.clientHeight,c.x=c.left,c.y=c.top,c}function Yn(n,s,c){return s===nn?Xs(_o(n,c)):Kt(s)?yo(s,c):Xs(vo(Pt(n)))}function bo(n){var s=Ii(fs(n)),c=["absolute","fixed"].indexOf(Ct(n).position)>=0,u=c&&ot(n)?Pi(n):n;return Kt(u)?s.filter(function(l){return Kt(l)&&Qr(l,u)&&yt(l)!=="body"}):[]}function wo(n,s,c,u){var l=s==="clippingParents"?bo(n):[].concat(s),i=[].concat(l,[c]),r=i[0],t=i.reduce(function(e,a){var o=Yn(n,a,u);return e.top=Wt(o.top,e.top),e.right=ls(o.right,e.right),e.bottom=ls(o.bottom,e.bottom),e.left=Wt(o.left,e.left),e},Yn(n,r,u));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function sa(n){var s=n.reference,c=n.element,u=n.placement,l=u?_t(u):null,i=u?pi(u):null,r=s.x+s.width/2-c.width/2,t=s.y+s.height/2-c.height/2,e;switch(l){case Xe:e={x:r,y:s.y-c.height};break;case st:e={x:r,y:s.y+s.height};break;case nt:e={x:s.x+s.width,y:t};break;case Qe:e={x:s.x-c.width,y:t};break;default:e={x:s.x,y:s.y}}var a=l?cn(l):null;if(a!=null){var o=a==="y"?"height":"width";switch(i){case Ut:e[a]=e[a]-(s[o]/2-c[o]/2);break;case ui:e[a]=e[a]+(s[o]/2-c[o]/2);break}}return e}function gi(n,s){s===void 0&&(s={});var c=s,u=c.placement,l=u===void 0?n.placement:u,i=c.strategy,r=i===void 0?n.strategy:i,t=c.boundary,e=t===void 0?Br:t,a=c.rootBoundary,o=a===void 0?nn:a,f=c.elementContext,g=f===void 0?oi:f,y=c.altBoundary,E=y===void 0?!1:y,k=c.padding,D=k===void 0?0:k,R=Jr(typeof D!="number"?D:ea(D,vi)),b=g===oi?Fr:oi,p=n.rects.popper,O=n.elements[E?b:g],N=wo(Kt(O)?O:O.contextElement||Pt(n.elements.popper),e,o,r),C=fi(n.elements.reference),B=sa({reference:C,element:p,strategy:"absolute",placement:l}),F=Xs(Object.assign({},p,B)),V=g===oi?F:C,te={top:N.top-V.top+R.top,bottom:V.bottom-N.bottom+R.bottom,left:N.left-V.left+R.left,right:V.right-N.right+R.right},W=n.modifiersData.offset;if(g===oi&&W){var U=W[l];Object.keys(te).forEach(function(ne){var K=[nt,st].indexOf(ne)>=0?1:-1,se=[Xe,st].indexOf(ne)>=0?"y":"x";te[ne]+=U[se]*K})}return te}function xo(n,s){s===void 0&&(s={});var c=s,u=c.placement,l=c.boundary,i=c.rootBoundary,r=c.padding,t=c.flipVariations,e=c.allowedAutoPlacements,a=e===void 0?rn:e,o=pi(u),f=o?t?Ks:Ks.filter(function(E){return pi(E)===o}):vi,g=f.filter(function(E){return a.indexOf(E)>=0});g.length===0&&(g=f);var y=g.reduce(function(E,k){return E[k]=gi(n,{placement:k,boundary:l,rootBoundary:i,padding:r})[_t(k)],E},{});return Object.keys(y).sort(function(E,k){return y[E]-y[k]})}function ko(n){if(_t(n)===ds)return[];var s=ns(n);return[Wn(n),s,Wn(s)]}function Co(n){var s=n.state,c=n.options,u=n.name;if(!s.modifiersData[u]._skip){for(var l=c.mainAxis,i=l===void 0?!0:l,r=c.altAxis,t=r===void 0?!0:r,e=c.fallbackPlacements,a=c.padding,o=c.boundary,f=c.rootBoundary,g=c.altBoundary,y=c.flipVariations,E=y===void 0?!0:y,k=c.allowedAutoPlacements,D=s.options.placement,R=_t(D),b=R===D,p=e||(b||!E?[ns(D)]:ko(D)),O=[D].concat(p).reduce(function(S,M){return S.concat(_t(M)===ds?xo(s,{placement:M,boundary:o,rootBoundary:f,padding:a,flipVariations:E,allowedAutoPlacements:k}):M)},[]),N=s.rects.reference,C=s.rects.popper,B=new Map,F=!0,V=O[0],te=0;te<O.length;te++){var W=O[te],U=_t(W),ne=pi(W)===Ut,K=[Xe,st].indexOf(U)>=0,se=K?"width":"height",_e=gi(s,{placement:W,boundary:o,rootBoundary:f,altBoundary:g,padding:a}),ke=K?ne?nt:Qe:ne?st:Xe;N[se]>C[se]&&(ke=ns(ke));var me=ns(ke),ye=[];if(i&&ye.push(_e[U]<=0),t&&ye.push(_e[ke]<=0,_e[me]<=0),ye.every(function(S){return S})){V=W,F=!1;break}B.set(W,ye)}if(F)for(var $e=E?3:1,T=function(M){var j=O.find(function(z){var Y=B.get(z);if(Y)return Y.slice(0,M).every(function(q){return q})});if(j)return V=j,"break"},x=$e;x>0;x--){var v=T(x);if(v==="break")break}s.placement!==V&&(s.modifiersData[u]._skip=!0,s.placement=V,s.reset=!0)}}const na={name:"flip",enabled:!0,phase:"main",fn:Co,requiresIfExists:["offset"],data:{_skip:!1}};function Un(n,s,c){return c===void 0&&(c={x:0,y:0}),{top:n.top-s.height-c.y,right:n.right-s.width+c.x,bottom:n.bottom-s.height+c.y,left:n.left-s.width-c.x}}function Kn(n){return[Xe,nt,st,Qe].some(function(s){return n[s]>=0})}function Eo(n){var s=n.state,c=n.name,u=s.rects.reference,l=s.rects.popper,i=s.modifiersData.preventOverflow,r=gi(s,{elementContext:"reference"}),t=gi(s,{altBoundary:!0}),e=Un(r,u),a=Un(t,l,i),o=Kn(e),f=Kn(a);s.modifiersData[c]={referenceClippingOffsets:e,popperEscapeOffsets:a,isReferenceHidden:o,hasPopperEscaped:f},s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":f})}const ra={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Eo};function To(n,s,c){var u=_t(n),l=[Qe,Xe].indexOf(u)>=0?-1:1,i=typeof c=="function"?c(Object.assign({},s,{placement:n})):c,r=i[0],t=i[1];return r=r||0,t=(t||0)*l,[Qe,nt].indexOf(u)>=0?{x:t,y:r}:{x:r,y:t}}function So(n){var s=n.state,c=n.options,u=n.name,l=c.offset,i=l===void 0?[0,0]:l,r=rn.reduce(function(o,f){return o[f]=To(f,s.rects,i),o},{}),t=r[s.placement],e=t.x,a=t.y;s.modifiersData.popperOffsets!=null&&(s.modifiersData.popperOffsets.x+=e,s.modifiersData.popperOffsets.y+=a),s.modifiersData[u]=r}const aa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:So};function Ao(n){var s=n.state,c=n.name;s.modifiersData[c]=sa({reference:s.rects.reference,element:s.rects.popper,strategy:"absolute",placement:s.placement})}const gn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ao,data:{}};function Do(n){return n==="x"?"y":"x"}function Oo(n){var s=n.state,c=n.options,u=n.name,l=c.mainAxis,i=l===void 0?!0:l,r=c.altAxis,t=r===void 0?!1:r,e=c.boundary,a=c.rootBoundary,o=c.altBoundary,f=c.padding,g=c.tether,y=g===void 0?!0:g,E=c.tetherOffset,k=E===void 0?0:E,D=gi(s,{boundary:e,rootBoundary:a,padding:f,altBoundary:o}),R=_t(s.placement),b=pi(s.placement),p=!b,O=cn(R),N=Do(O),C=s.modifiersData.popperOffsets,B=s.rects.reference,F=s.rects.popper,V=typeof k=="function"?k(Object.assign({},s.rects,{placement:s.placement})):k,te=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,U={x:0,y:0};if(C){if(i){var ne,K=O==="y"?Xe:Qe,se=O==="y"?st:nt,_e=O==="y"?"height":"width",ke=C[O],me=ke+D[K],ye=ke-D[se],$e=y?-F[_e]/2:0,T=b===Ut?B[_e]:F[_e],x=b===Ut?-F[_e]:-B[_e],v=s.elements.arrow,S=y&&v?ln(v):{width:0,height:0},M=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:Zr(),j=M[K],z=M[se],Y=Ni(0,B[_e],S[_e]),q=p?B[_e]/2-$e-Y-j-te.mainAxis:T-Y-j-te.mainAxis,G=p?-B[_e]/2+$e+Y+z+te.mainAxis:x+Y+z+te.mainAxis,ee=s.elements.arrow&&Pi(s.elements.arrow),he=ee?O==="y"?ee.clientTop||0:ee.clientLeft||0:0,fe=(ne=W==null?void 0:W[O])!=null?ne:0,pe=ke+q-fe-he,Ce=ke+G-fe,Te=Ni(y?ls(me,pe):me,ke,y?Wt(ye,Ce):ye);C[O]=Te,U[O]=Te-ke}if(t){var Ae,Me=O==="x"?Xe:Qe,Ee=O==="x"?st:nt,Se=C[N],xe=N==="y"?"height":"width",ge=Se+D[Me],ve=Se-D[Ee],we=[Xe,Qe].indexOf(R)!==-1,Ne=(Ae=W==null?void 0:W[N])!=null?Ae:0,He=we?ge:Se-B[xe]-F[xe]-Ne+te.altAxis,ze=we?Se+B[xe]+F[xe]-Ne-te.altAxis:ve,Fe=y&&we?ao(He,Se,ze):Ni(y?He:ge,Se,y?ze:ve);C[N]=Fe,U[N]=Fe-Se}s.modifiersData[u]=U}}const oa={name:"preventOverflow",enabled:!0,phase:"main",fn:Oo,requiresIfExists:["offset"]};function Mo(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function No(n){return n===rt(n)||!ot(n)?dn(n):Mo(n)}function Io(n){var s=n.getBoundingClientRect(),c=di(s.width)/n.offsetWidth||1,u=di(s.height)/n.offsetHeight||1;return c!==1||u!==1}function Lo(n,s,c){c===void 0&&(c=!1);var u=ot(s),l=ot(s)&&Io(s),i=Pt(s),r=fi(n,l,c),t={scrollLeft:0,scrollTop:0},e={x:0,y:0};return(u||!u&&!c)&&((yt(s)!=="body"||pn(i))&&(t=No(s)),ot(s)?(e=fi(s,!0),e.x+=s.clientLeft,e.y+=s.clientTop):i&&(e.x=fn(i))),{x:r.left+t.scrollLeft-e.x,y:r.top+t.scrollTop-e.y,width:r.width,height:r.height}}function $o(n){var s=new Map,c=new Set,u=[];
vendor: 3,923 bytes, lines 1-5
1n.forEach(function(i){s.set(i.name,i)});function l(i){c.add(i.name);var r=[].concat(i.requires||[],i.requiresIfExists||[]);r.forEach(function(t){if(!c.has(t)){var e=s.get(t);e&&l(e)}}),u.push(i)}return n.forEach(function(i){c.has(i.name)||l(i)}),u}function Po(n){var s=$o(n);return Gr.reduce(function(c,u){return c.concat(s.filter(function(l){return l.phase===u}))},[])}function Ro(n){var s;return function(){return s||(s=new Promise(function(c){Promise.resolve().then(function(){s=void 0,c(n())})})),s}}function Bo(n){var s=n.reduce(function(c,u){var l=c[u.name];return c[u.name]=l?Object.assign({},l,u,{options:Object.assign({},l.options,u.options),data:Object.assign({},l.data,u.data)}):u,c},{});return Object.keys(s).map(function(c){return s[c]})}var Gn={placement:"bottom",modifiers:[],strategy:"absolute"};function Xn(){for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return!s.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function ps(n){n===void 0&&(n={});var s=n,c=s.defaultModifiers,u=c===void 0?[]:c,l=s.defaultOptions,i=l===void 0?Gn:l;return function(t,e,a){a===void 0&&(a=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gn,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},f=[],g=!1,y={state:o,setOptions:function(R){var b=typeof R=="function"?R(o.options):R;k(),o.options=Object.assign({},i,o.options,b),o.scrollParents={reference:Kt(t)?Ii(t):t.contextElement?Ii(t.contextElement):[],popper:Ii(e)};var p=Po(Bo([].concat(u,o.options.modifiers)));return o.orderedModifiers=p.filter(function(O){return O.enabled}),E(),y.update()},forceUpdate:function(){if(!g){var R=o.elements,b=R.reference,p=R.popper;if(Xn(b,p)){o.rects={reference:Lo(b,Pi(p),o.options.strategy==="fixed"),popper:ln(p)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(te){return o.modifiersData[te.name]=Object.assign({},te.data)});for(var O=0;O<o.orderedModifiers.length;O++){if(o.reset===!0){o.reset=!1,O=-1;continue}var N=o.orderedModifiers[O],C=N.fn,B=N.options,F=B===void 0?{}:B,V=N.name;typeof C=="function"&&(o=C({state:o,options:F,name:V,instance:y})||o)}}}},update:Ro(function(){return new Promise(function(D){y.forceUpdate(),D(o)})}),destroy:function(){k(),g=!0}};if(!Xn(t,e))return y;y.setOptions(a).then(function(D){!g&&a.onFirstUpdate&&a.onFirstUpdate(D)});function E(){o.orderedModifiers.forEach(function(D){var R=D.name,b=D.options,p=b===void 0?{}:b,O=D.effect;if(typeof O=="function"){var N=O({state:o,name:R,instance:y,options:p}),C=function(){};f.push(N||C)}})}function k(){f.forEach(function(D){return D()}),f=[]}return y}}var Fo=ps(),jo=[un,gn,hn,on],zo=ps({defaultModifiers:jo}),Ho=[un,gn,hn,on,aa,na,oa,ta,ra],mn=ps({defaultModifiers:Ho});const la=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Wr,afterRead:Hr,afterWrite:Kr,applyStyles:on,arrow:ta,auto:ds,basePlacements:vi,beforeMain:Vr,beforeRead:jr,beforeWrite:Yr,bottom:st,clippingParents:Br,computeStyles:hn,createPopper:mn,createPopperBase:Fo,createPopperLite:zo,detectOverflow:gi,end:ui,eventListeners:un,flip:na,hide:ra,left:Qe,main:qr,modifierPhases:Gr,offset:aa,placements:rn,popper:oi,popperGenerator:ps,popperOffsets:gn,preventOverflow:oa,read:zr,reference:Fr,right:nt,start:Ut,top:Xe,variationPlacements:Ks,viewport:nn,write:Ur},Symbol.toStringTag,{value:"Module"}));/*!
2  * Bootstrap v5.3.3 (https://getbootstrap.com/)
3  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5  */const Ot=new Map,As={set(n,s,c){Ot.has(n)||Ot.set(n,new Map);const u=Ot.get(n);if(!u.has(s)&&u.size!==0){console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(u.keys())[0],"."));return}u.set(s,c)},get(n,s){return Ot.has(n)&&Ot.get(n).get(s)||null}
5,remove(n,s){if(!Ot.has(n))return;const c=Ot.get(n);c.delete(s),c.size===0&&Ot.delete(n)}},Vo=1e6,qo=1e3,Qs="transitionend",ca=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(s,c)=>"#".concat(CSS.escape(c)))),n),Wo=n=>n==null?"".concat(n):Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),Yo=n=>{do n+=Math.floor(Math.random()*Vo);while(document.getElementById(n));return n},Uo=n=>{if(!n)return 0;let{transitionDuration:s,transitionDelay:c}=window.getComputedStyle(n);const u=Number.parseFloat(s),l=Number.parseFloat(c);return!u&&!l?0:(s=s.split(",")[0],c=c.split(",")[0],(Number.parseFloat(s)+Number.parseFloat(c))*qo)},ha=n=>{n.dispatchEvent(new Event(Qs))},xt=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Nt=n=>xt(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(ca(n)):null,yi=n=>{if(!xt(n)||n.getClientRects().length===0)return!1;const s=getComputedStyle(n).getPropertyValue("visibility")==="visible",c=n.closest("details:not([open])");if(!c)return s;if(c!==n){const u=n.closest("summary");if(u&&u.parentNode!==c||u===null)return!1}return s},It=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",ua=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const s=n.getRootNode();return s instanceof ShadowRoot?s:null}return n instanceof ShadowRoot?n:n.parentNode?ua(n.parentNode):null},cs=()=>{},Ri=n=>{n.offsetHeight},da=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ds=[],Ko=n=>{document.readyState==="loading"?(Ds.length||document.addEventListener("DOMContentLoaded",()=>{for(const s of Ds)s()}),Ds.push(n)):n()},lt=()=>document.documentElement.dir==="rtl",ht=n=>{Ko(()=>{const s=da();if(s){const c=n.NAME,u=s.fn[c];s.fn[c]=n.jQueryInterface,s.fn[c].Constructor=n,s.fn[c].noConflict=()=>(s.fn[c]=u,n.jQueryInterface)}})},et=(n,s=[],c=n)=>typeof n=="function"?n(...s):c,fa=(n,s,c=!0)=>{if(!c){et(n);return}const l=Uo(s)+5;let i=!1;const r=({target:t})=>{t===s&&(i=!0,s.removeEventListener(Qs,r),et(n))};s.addEventListener(Qs,r),setTimeout(()=>{i||ha(s)},l)},_n=(n,s,c,u)=>{const l=n.length;let i=n.indexOf(s);return i===-1?!c&&u?n[l-1]:n[0]:(i+=c?1:-1,u&&(i=(i+l)%l),n[Math.max(0,Math.min(i,l-1))])},Go=/[^.]*(?=\..*)\.|.*/,Xo=/\..*/,Qo=/::\d+$/,Os={};let Qn=1;
5const pa={mouseenter:"mouseover",mouseleave:"mouseout"},Zo=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ma(n,s){return s&&"".concat(s,"::").concat(Qn++)||n.uidEvent||Qn++}function _a(n){const s=ma(n);return n.uidEvent=s,Os[s]=Os[s]||{},Os[s]}function Jo(n,s){return function c(u){return vn(u,{delegateTarget:n}),c.oneOff&&ue.off(n,u.type,s),s.apply(n,[u])}}function el(n,s,c){return function u(l){const i=n.querySelectorAll(s);for(let{target:r}=l;r&&r!==this;r=r.parentNode)for(const t of i)if(t===r)return vn(l,{delegateTarget:r}),u.oneOff&&ue.off(n,l.type,s,c),c.apply(r,[l])}}function va(n,s,c=null){return Object.values(n).find(u=>u.callable===s&&u.delegationSelector===c)}function ya(n,s,c){const u=typeof s=="string",l=u?c:s||c;let i=ba(n);return Zo.has(i)||(i=n),[u,l,i]}function Zn(n,s,c,u,l){if(typeof s!="string"||!n)return;let[i,r,t]=ya(s,c,u);s in pa&&(r=(E=>function(k){if(!k.relatedTarget||k.relatedTarget!==k.delegateTarget&&!k.delegateTarget.contains(k.relatedTarget))return E.call(this,k)})(r));const e=_a(n),a=e[t]||(e[t]={}),o=va(a,r,i?c:null);if(o){o.oneOff=o.oneOff&&l;return}const f=ma(r,s.replace(Go,"")),g=i?el(n,c,r):Jo(n,r);g.delegationSelector=i?c:null,g.callable=r,g.oneOff=l,g.uidEvent=f,a[f]=g,n.addEventListener(t,g,i)}function Zs(n,s,c,u,l){const i=va(s[c],u,l);i&&(n.removeEventListener(c,i,!!l),delete s[c][i.uidEvent])}function tl(n,s,c,u){const l=s[c]||{};for(const[i,r]of Object.entries(l))i.includes(u)&&Zs(n,s,c,r.callable,r.delegationSelector)}function ba(n){return n=n.replace(Xo,""),pa[n]||n}const ue={on(n,s,c,u){Zn(n,s,c,u,!1)},one(n,s,c,u){Zn(n,s,c,u,!0)},off(n,s,c,u){if(typeof s!="string"||!n)return;const[l,i,r]=ya(s,c,u),t=r!==s,e=_a(n),a=e[r]||{},o=s.startsWith(".");if(typeof i<"u"){if(!Object.keys(a).length)return;Zs(n,e,r,i,l?c:null);return}if(o)for(const f of Object.keys(e))tl(n,e,f,s.slice(1));for(const[f,g]of Object.entries(a)){const y=f.replace(Qo,"");(!t||s.includes(y))&&Zs(n,e,r,g.callable,g.delegationSelector)}},trigger(n,s,c){if(typeof s!="string"||!n)return null;const u=da(),l=ba(s),i=s!==l;let r=null,t=!0,e=!0,a=!1;i&&u&&(r=u.Event(s,c),u(n).trigger(r),t=!r.isPropagationStopped(),e=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const o=vn(new Event(s,{bubbles:t,cancelable:!0}),c);return a&&o.preventDefault(),e&&n.dispatchEvent(o),o.defaultPrevented&&r&&r.preventDefault(),o}};function vn(n,s={}){for(const[c,u]of Object.entries(s))try{n[c]=u}catch(l){Object.defineProperty(n,c,{configurable:!0,get(){return u}})}return n}function Jn(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch(s){return n}}function Ms(n){return n.replace(/[A-Z]/g,s=>"-".concat(s.toLowerCase()))}const kt={setDataAttribute(n,s,c){n.setAttribute("data-bs-".concat(Ms(s)),c)},removeDataAttribute(n,s){n.removeAttribute("data-bs-".concat(Ms(s)))},getDataAttributes(n){if(!n)return{};const s={},c=Object.keys(n.dataset).filter(u=>u.startsWith("bs")&&!u.startsWith("bsConfig"));for(const u of c){let l=u.replace(/^bs/,"");l=l.charAt(0).toLowerCase()+l.slice(1,l.length),s[l]=Jn(n.dataset[u])}return s},getDataAttribute(n,s){return Jn(n.getAttribute("data-bs-".concat(Ms(s))))}};class Bi{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(s){return s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s}_mergeConfigObj(s,c){const u=xt(c)?kt.getDataAttribute(c,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...xt(c)?kt.getDataAttributes(c):{},...typeof s=="object"?s:{}}}_typeCheckConfig(s,c=this.constructor.DefaultType){for(const[u,l]of Object.entries(c)){const i=s[u],r=xt(i)?"element":Wo(i);if(!new RegExp(l).test(r))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(u,'" provided type "').concat(r,'" but expected type "').concat(l,'".'))}}}const il="5.3.3";class pt extends Bi{constructor(s,c){super(),s=Nt(s),s&&(this._element=s,this._config=this._getConfig(c),As.set(this._element,this.constructor.DATA_KEY,this))}dispose(){As.remove(this._element,this.constructor.DATA_KEY),ue.off(this._element,this.constructor.EVENT_KEY);for(const s of Object.getOwnPropertyNames(this))this[s]=null}_queueCallback(s,c,u=!0){fa(s,c,u)}_getConfig(s){return s=this._mergeConfigObj(s,this._element),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}static getInstance(s){return As.get(Nt(s),this.DATA_KEY)}static getOrCreateInstance(s,c={}){return this.getInstance(s)||new this(s,typeof c=="object"?c:null)}static get VERSION(){return il}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(s){return"".concat(s).concat(this.EVENT_KEY)}}const Ns=n=>{let s=n.getAttribute("data-bs-target");if(!s||s==="#"){let c=n.getAttribute("href");if(!c||!c.includes("#")&&!c.startsWith("."))return null;c.includes("#")&&!c.startsWith("#")&&(c="#".concat(c.split("#")[1])),s=c&&c!=="#"?c.trim():null}return s?s.split(",").map(c=>ca(c)).join(","):null},De={find(n,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,n))},findOne(n,s=document.documentElement){return Element.prototype.querySelector.call(s,n)},children(n,s){return[].concat(...n.children).filter(c=>c.matches(s))},parents(n,s){const c=[];let u=n.parentNode.closest(s);for(;u;)c.push(u),u=u.parentNode.closest(s);return c},prev(n,s){let c=n.previousElementSibling;for(;c;){if(c.matches(s))return[c];c=c.previousElementSibling}return[]},next(n,s){let c=n.nextElementSibling;for(;c;){if(c.matches(s))return[c];c=c.nextElementSibling}return[]},focusableChildren(n){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(c=>"".concat(c,':not([tabindex^="-"])')).join(",");return this.find(s,n).filter(c=>!It(c)&&yi(c))},getSelectorFromElement(n){const s=Ns(n);return s&&De.findOne(s)?s:null},getElementFromSelector(n){const s=Ns(n);return s?De.findOne(s):null},getMultipleElementsFromSelector(n){const s=Ns(n);return s?De.find(s):[]}},gs=(n,s="hide")=>{const c="click.dismiss".concat(n.EVENT_KEY),u=n.NAME;ue.on(document,c,'[data-bs-dismiss="'.concat(u,'"]'),function(l){if(["A","AREA"].includes(this.tagName)&&l.preventDefault(),It(this))return;const i=De.getElementFromSelector(this)||this.closest(".".concat(u));n.getOrCreateInstance(i)[s]()})},sl="alert",nl="bs.alert",wa=".".concat(nl),rl="close".concat(wa),al="closed".concat(wa),ol="fade",ll="show";class ms extends pt{static get NAME(){return sl}close(){if(ue.trigger(this._element,rl).defaultPrevented)return;this._element.classList.remove(ll);const c=this._element.classList.contains(ol);this._queueCallback(()=>this._destroyElement(),this._element,c)}_destroyElement(){this._element.remove(),ue.trigger(this._element,al),this.dispose()}static jQueryInterface(s){return this.each(function(){const c=ms.getOrCreateInstance(this);if(typeof s=="string"){if(c[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError('No method n
5amed "'.concat(s,'"'));c[s](this)}})}}gs(ms,"close");ht(ms);const cl="button",hl="bs.button",ul=".".concat(hl),dl=".data-api",fl="active",er='[data-bs-toggle="button"]',pl="click".concat(ul).concat(dl);class _s extends pt{static get NAME(){return cl}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(fl))}static jQueryInterface(s){return this.each(function(){const c=_s.getOrCreateInstance(this);s==="toggle"&&c[s]()})}}ue.on(document,pl,er,n=>{n.preventDefault();const s=n.target.closest(er);_s.getOrCreateInstance(s).toggle()});ht(_s);const gl="swipe",bi=".bs.swipe",ml="touchstart".concat(bi),_l="touchmove".concat(bi),vl="touchend".concat(bi),yl="pointerdown".concat(bi),bl="pointerup".concat(bi),wl="touch",xl="pen",kl="pointer-event",Cl=40,El={endCallback:null,leftCallback:null,rightCallback:null},Tl={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class hs extends Bi{constructor(s,c){super(),this._element=s,!(!s||!hs.isSupported())&&(this._config=this._getConfig(c),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return El}static get DefaultType(){return Tl}static get NAME(){return gl}dispose(){ue.off(this._element,bi)}_start(s){if(!this._supportPointerEvents){this._deltaX=s.touches[0].clientX;return}this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX)}_end(s){this._eventIsPointerPenTouch(s)&&(this._deltaX=s.clientX-this._deltaX),this._handleSwipe(),et(this._config.endCallback)}_move(s){this._deltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this._deltaX}_handleSwipe(){const s=Math.abs(this._deltaX);if(s<=Cl)return;const c=s/this._deltaX;this._deltaX=0,c&&et(c>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ue.on(this._element,yl,s=>this._start(s)),ue.on(this._element,bl,s=>this._end(s)),this._element.classList.add(kl)):(ue.on(this._element,ml,s=>this._start(s)),ue.on(this._element,_l,s=>this._move(s)),ue.on(this._element,vl,s=>this._end(s)))}_eventIsPointerPenTouch(s){return this._supportPointerEvents&&(s.pointerType===xl||s.pointerType===wl)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Sl="carousel",Al="bs.carousel",Rt=".".concat(Al),xa=".data-api",Dl="ArrowLeft",Ol="ArrowRight",Ml=500,Ai="next",ri="prev",li="left",rs="right",Nl="slide".concat(Rt),Is="slid".concat(Rt),Il="keydown".concat(Rt),Ll="mouseenter".concat(Rt),$l="mouseleave".concat(Rt),Pl="dragstart".concat(Rt),Rl="load".concat(Rt).concat(xa),Bl="click".concat(Rt).concat(xa),ka="carousel",Gi="active",Fl="slide",jl="carousel-item-end",zl="carousel-item-start",Hl="carousel-item-next",Vl="carousel-item-prev",Ca=".active",Ea=".carousel-item",ql=Ca+Ea,Wl=".carousel-item img",Yl=".carousel-indicators",Ul="[data-bs-slide], [data-bs-slide-to]",Kl='[data-bs-ride="carousel"]',Gl={[Dl]:rs,[Ol]:li},Xl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ql={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Fi extends pt{constructor(s,c){super(s,c),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=De.findOne(Yl,this._element),this._addEventListeners(),this._config.ride===ka&&this.cycle()}static get Default(){return Xl}static get DefaultType(){return Ql}static get NAME(){return Sl}next(){this._slide(Ai)}nextWhenVisible(){!document.hidden&&yi(this._element)&&this.next()}prev(){this._slide(ri)}pause(){this._isSliding&&ha(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ue.one(this._element,Is,()=>this.cycle());return}this.cycle()}}to(s){const c=this._getItems();if(s>c.length-1||s<0)return;if(this._isSliding){ue.one(this._element,Is,()=>this.to(s));return}const u=this._getItemIndex(this._getActive());if(u===s)return;const l=s>u?Ai:ri;this._slide(l,c[s])}
vendor: 9,652 bytes, line 5
5dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(s){return s.defaultInterval=s.interval,s}_addEventListeners(){this._config.keyboard&&ue.on(this._element,Il,s=>this._keydown(s)),this._config.pause==="hover"&&(ue.on(this._element,Ll,()=>this.pause()),ue.on(this._element,$l,()=>this._maybeEnableCycle())),this._config.touch&&hs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const u of De.find(Wl,this._element))ue.on(u,Pl,l=>l.preventDefault());const c={leftCallback:()=>this._slide(this._directionToOrder(li)),rightCallback:()=>this._slide(this._directionToOrder(rs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Ml+this._config.interval))}};this._swipeHelper=new hs(this._element,c)}_keydown(s){if(/input|textarea/i.test(s.target.tagName))return;const c=Gl[s.key];c&&(s.preventDefault(),this._slide(this._directionToOrder(c)))}_getItemIndex(s){return this._getItems().indexOf(s)}_setActiveIndicatorElement(s){if(!this._indicatorsElement)return;const c=De.findOne(Ca,this._indicatorsElement);c.classList.remove(Gi),c.removeAttribute("aria-current");const u=De.findOne('[data-bs-slide-to="'.concat(s,'"]'),this._indicatorsElement);u&&(u.classList.add(Gi),u.setAttribute("aria-current","true"))}_updateInterval(){const s=this._activeElement||this._getActive();if(!s)return;const c=Number.parseInt(s.getAttribute("data-bs-interval"),10);this._config.interval=c||this._config.defaultInterval}_slide(s,c=null){if(this._isSliding)return;const u=this._getActive(),l=s===Ai,i=c||_n(this._getItems(),u,l,this._config.wrap);if(i===u)return;const r=this._getItemIndex(i),t=y=>ue.trigger(this._element,y,{relatedTarget:i,direction:this._orderToDirection(s),from:this._getItemIndex(u),to:r});if(t(Nl).defaultPrevented||!u||!i)return;const a=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=i;const o=l?zl:jl,f=l?Hl:Vl;i.classList.add(f),Ri(i),u.classList.add(o),i.classList.add(o);const g=()=>{i.classList.remove(o,f),i.classList.add(Gi),u.classList.remove(Gi,f,o),this._isSliding=!1,t(Is)};this._queueCallback(g,u,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains(Fl)}_getActive(){return De.findOne(ql,this._element)}_getItems(){return De.find(Ea,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(s){return lt()?s===li?ri:Ai:s===li?Ai:ri}_orderToDirection(s){return lt()?s===ri?li:rs:s===ri?rs:li}static jQueryInterface(s){return this.each(function(){const c=Fi.getOrCreateInstance(this,s);if(typeof s=="number"){c.to(s);return}if(typeof s=="string"){if(c[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError('No method named "'.concat(s,'"'));c[s]()}})}}ue.on(document,Bl,Ul,function(n){const s=De.getElementFromSelector(this);if(!s||!s.classList.contains(ka))return;n.preventDefault();const c=Fi.getOrCreateInstance(s),u=this.getAttribute("data-bs-slide-to");if(u){c.to(u),c._maybeEnableCycle();return}if(kt.getDataAttribute(this,"slide")==="next"){c.next(),c._maybeEnableCycle();return}c.prev(),c._maybeEnableCycle()});ue.on(window,Rl,()=>{const n=De.find(Kl);for(const s of n)Fi.getOrCreateInstance(s)});ht(Fi);const Zl="collapse",Jl="bs.collapse",ji=".".concat(Jl),ec=".data-api",tc="show".concat(ji),ic="shown".concat(ji),sc="hide".concat(ji),nc="hidden".concat(ji),rc="click".concat(ji).concat(ec),Ls="show",hi="collapse",Xi="collapsing",ac="collapsed",oc=":scope .".concat(hi," .").concat(hi),lc="collapse-horizontal",cc="width",hc="height",uc=".collapse.show, .collapse.collapsing",Js='[data-bs-toggle="collapse"]',dc={parent:null,toggle:!0},fc={parent:"(null|element)",toggle:"boolean"};class Li extends pt{constructor(s,c){super(s,c),this._isTransitioning=!1,this._triggerArray=[];const u=De.find(Js);for(const l of u){const i=De.getSelectorFromElement(l),r=De.find(i).filter(t=>t===this._element);i!==null&&r.length&&this._triggerArray.push(l)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return dc}static get DefaultType(){return fc}static get NAME(){return Zl}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let s=[];if(this._config.parent&&(s=this._getFirstLevelChildren(uc).filter(t=>t!==this._element).map(t=>Li.getOrCreateInstance(t,{toggle:!1}))),s.length&&s[0]._isTransitioning||ue.trigger(this._element,tc).defaultPrevented)return;for(const t of s)t.hide();const u=this._getDimension();this._element.classList.remove(hi),this._element.classList.add(Xi),this._element.style[u]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const l=()=>{this._isTransitioning=!1,this._element.classList.remove(Xi),this._element.classList.add(hi,Ls),this._element.style[u]="",ue.trigger(this._element,ic)},i=u[0].toUpperCase()+u.slice(1),r="scroll".concat(i);this._queueCallback(l,this._element,!0),this._element.style[u]="".concat(this._element[r],"px")}hide(){if(this._isTransitioning||!this._isShown()||ue.trigger(this._element,sc).defaultPrevented)return;const c=this._getDimension();this._element.style[c]="".concat(this._element.getBoundingClientRect()[c],"px"),Ri(this._element),this._element.classList.add(Xi),this._element.classList.remove(hi,Ls);for(const l of this._triggerArray){const i=De.getElementFromSelector(l);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([l],!1)}this._isTransitioning=!0;const u=()=>{this._isTransitioning=!1,this._element.classList.remove(Xi),this._element.classList.add(hi),ue.trigger(this._element,nc)};this._element.style[c]="",this._queueCallback(u,this._element,!0)}_isShown(s=this._element){return s.classList.contains(Ls)}_configAfterMerge(s){return s.toggle=!!s.toggle,s.parent=Nt(s.parent),s}_getDimension(){return this._element.classList.contains(lc)?cc:hc}_initializeChildren(){if(!this._config.parent)return;const s=this._getFirstLevelChildren(Js);for(const c of s){const u=De.getElementFromSelector(c);u&&this._addAriaAndCollapsedClass([c],this._isShown(u))}}_getFirstLevelChildren(s){const c=De.find(oc,this._config.parent);return De.find(s,this._config.parent).filter(u=>!c.includes(u))}_addAriaAndCollapsedClass(s,c){if(s.length)for(const u of s)u.classList.toggle(ac,!c),u.setAttribute("aria-expanded",c)}static jQueryInterface(s){const c={};return typeof s=="string"&&/show|hide/.test(s)&&(c.toggle=!1),this.each(function(){const u=Li.getOrCreateInstance(this,c);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));u[s]()}})}}ue.on(document,rc,Js,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const s of De.getMultipleElementsFromSelector(this))Li.getOrCreateInstance(s,{toggle:!1}).toggle()});ht(Li);const tr="dropdown",pc="bs.dropdown",Gt=".".concat(pc),yn=".data-api",gc="Escape",ir="Tab",mc="ArrowUp",sr="ArrowDown",_c=2,vc="hide".concat(Gt),yc="hidden".concat(Gt),bc="show".concat(Gt),wc="shown".concat(Gt),Ta="click".concat(Gt).concat(yn),Sa="keydown".concat(Gt).concat(yn),xc="keyup".concat(Gt).concat(yn),ci="show",kc="dropup",Cc="dropend",Ec="dropstart",Tc="dropup-center",Sc="dropdown-center",Vt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ac="".concat(Vt,".").concat(ci),as=".dropdown-menu",Dc=".navbar",Oc=".navbar-nav",Mc=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Nc=lt()?"top-end":"top-start",Ic=lt()?"top-start":"top-end",Lc=lt()?"bottom-end":"bottom-start",$c=lt()?"bottom-start":"bottom-end",Pc=lt()?"left-start":"right-start",Rc=lt()?"right-start":"left-start",Bc="top",Fc="bottom",jc={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zc={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class vt extends pt{constructor(s,c){super(s,c),this._popper=null,this._parent=this._element.parentNode,this._menu=De.next(this._element,as)[0]||De.prev(this._element,as)[0]||De.findOne(as,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return jc}static get DefaultType(){return zc}static get NAME(){return tr}toggle(){return this._isShown()?this.hide():this.show()}show(){if(It(this._element)||this._isShown())return;const s={relatedTarget:this._element};if(!ue.trigger(this._element,bc,s).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Oc))for(const u of[].concat(...document.body.children))ue.on(u,"mouseover",cs);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ci),this._element.classList.add(ci),ue.trigger(this._element,wc,s)}}hide(){if(It(this._element)||!this._isShown())return;const s={relatedTarget:this._element};this._completeHide(s)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(s){if(!ue.trigger(this._element,vc,s).defaultPrevented){if("ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))ue.off(u,"mouseover",cs);this._popper&&this._popper.destroy(),this._menu.classList.remove(ci),this._element.classList.remove(ci),this._element.setAttribute("aria-expanded","fal
5se"),kt.removeDataAttribute(this._menu,"popper"),ue.trigger(this._element,yc,s)}}_getConfig(s){if(s=super._getConfig(s),typeof s.reference=="object"&&!xt(s.reference)&&typeof s.reference.getBoundingClientRect!="function")throw new TypeError("".concat(tr.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return s}_createPopper(){if(typeof la>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let s=this._element;this._config.reference==="parent"?s=this._parent:xt(this._config.reference)?s=Nt(this._config.reference):typeof this._config.reference=="object"&&(s=this._config.reference);const c=this._getPopperConfig();this._popper=mn(s,this._menu,c)}_isShown(){return this._menu.classList.contains(ci)}_getPlacement(){const s=this._parent;if(s.classList.contains(Cc))return Pc;if(s.classList.contains(Ec))return Rc;if(s.classList.contains(Tc))return Bc;if(s.classList.contains(Sc))return Fc;const c=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return s.classList.contains(kc)?c?Ic:Nc:c?$c:Lc}_detectNavbar(){return this._element.closest(Dc)!==null}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(c=>Number.parseInt(c,10)):typeof s=="function"?c=>s(c,this._element):s}_getPopperConfig(){const s={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(kt.setDataAttribute(this._menu,"popper","static"),s.modifiers=[{name:"applyStyles",enabled:!1}]),{...s,...et(this._config.popperConfig,[s])}}_selectMenuItem({key:s,target:c}){const u=De.find(Mc,this._menu).filter(l=>yi(l));u.length&&_n(u,c,s===sr,!u.includes(c)).focus()}static jQueryInterface(s){return this.each(function(){const c=vt.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof c[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));c[s]()}})}static clearMenus(s){if(s.button===_c||s.type==="keyup"&&s.key!==ir)return;const c=De.find(Ac);for(const u of c){const l=vt.getInstance(u);if(!l||l._config.autoClose===!1)continue;const i=s.composedPath(),r=i.includes(l._menu);if(i.includes(l._element)||l._config.autoClose==="inside"&&!r||l._config.autoClose==="outside"&&r||l._menu.contains(s.target)&&(s.type==="keyup"&&s.key===ir||/input|select|option|textarea|form/i.test(s.target.tagName)))continue;const t={relatedTarget:l._element};s.type==="click"&&(t.clickEvent=s),l._completeHide(t)}}static dataApiKeydownHandler(s){const c=/input|textarea/i.test(s.target.tagName),u=s.key===gc,l=[mc,sr].includes(s.key);if(!l&&!u||c&&!u)return;s.preventDefault();const i=this.matches(Vt)?this:De.prev(this,Vt)[0]||De.next(this,Vt)[0]||De.findOne(Vt,s.delegateTarget.parentNode),r=vt.getOrCreateInstance(i);if(l){s.stopPropagation(),r.show(),r._selectMenuItem(s);return}r._isShown()&&(s.stopPropagation(),r.hide(),i.focus())}}ue.on(document,Sa,Vt,vt.dataApiKeydownHandler);ue.on(document,Sa,as,vt.dataApiKeydownHandler);ue.on(document,Ta,vt.clearMenus);ue.on(document,xc,vt.clearMenus);ue.on(document,Ta,Vt,function(n){n.preventDefault(),vt.getOrCreateInstance(this).toggle()});ht(vt);const Aa="backdrop",Hc="fade",nr="show",rr="mousedown.bs.".concat(Aa),Vc={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},qc={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Da extends Bi{constructor(s){super(),this._config=this._getConfig(s),this._isAppended=!1,this._element=null}static get Default(){return Vc}static get DefaultType(){return qc}static get NAME(){return Aa}show(s){if(!this._config.isVisible){et(s);return}this._append();const c=this._getElement();this._config.isAnimated&&Ri(c),c.classList.add(nr),this._emulateAnimation(()=>{et(s)})}hide(s){if(!this._config.isVisible){et(s);return}this._getElement().classList.remove(nr),this._emulateAnimation(()=>{this.dispose(),et(s)})}dispose(){this._isAppended&&(ue.off(this._element,rr),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const s=document.createElement("div");s.className=this._config.className,this._config.isAnimated&&s.classList.add(Hc),this._element=s}return this._element}_configAfterMerge(s){return s.rootElement=Nt(s.rootElement),s}_append(){if(this._isAppended)return;const s=this._getElement();this._config.rootElement.append(s),ue.on(s,rr,()=>{et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(s){fa(s,this._getElement(),this._config.isAnimated)}}const Wc="focustrap",Yc="bs.focustrap",us=".".concat(Yc),Uc="focusin".concat(us),Kc="keydown.tab".concat(us),Gc="Tab",Xc="forward",ar="backward",Qc={autofocus:!0,trapElement:null},Zc={autofocus:"boolean",trapElement:"element"};class Oa extends Bi{constructor(s){super(),this._config=this._getConfig(s),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Qc}static get DefaultType(){return Zc}static get NAME(){return Wc}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ue.off(document,us),ue.on(document,Uc,s=>this._handleFocusin(s)),ue.on(document,Kc,s=>this._handleKeydown(s)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ue.off(document,us))}_handleFocusin(s){const{trapElement:c}=this._config;if(s.target===document||s.target===c||c.contains(s.target))return;const u=De.focusableChildren(c);u.length===0?c.focus():this._lastTabNavDirection===ar?u[u.length-1].focus():u[0].focus()}_handleKeydown(s){s.key===Gc&&(this._lastTabNavDirection=s.shiftKey?ar:Xc)}}const or=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",lr=".sticky-top",Qi="padding-right",cr="margin-right";class en{constructor(){this._element=document.body}getWidth(){const s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}hide(){const s=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Qi,c=>c+s),this._setElementAttributes(or,Qi,c=>c+s),this._setElementAttributes(lr,cr,c=>c-s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Qi),this._resetElementAttributes(or,Qi),this._resetElementAttributes(lr,cr)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(s,c,u){const l=this.getWidth(),i=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+l)return;this._saveInitialAttribute(r,c);const t=window.getComputedStyle(r).getPropertyValue(c);r.style.setProperty(c,"".concat(u(Number.parseFloat(t)),"px"))};this._applyManipulationCallback(s,i)}_saveInitialAttribute(s,c){const u=s.style.getPropertyValue(c);u&&kt.setDataAttribute(s,c,u)}_resetElementAttributes(s,c){const u=l=>{const i=kt.getDataAttribute(l,c);if(i===null){l.style.removeProperty(c);return}kt.removeDataAttribute(l,c),l.style.setProperty(c,i)};this._applyManipulationCallback(s,u)}
vendor: 4,128 bytes, line 5
5_applyManipulationCallback(s,c){if(xt(s)){c(s);return}for(const u of De.find(s,this._element))c(u)}}const Jc="modal",eh="bs.modal",ct=".".concat(eh),th=".data-api",ih="Escape",sh="hide".concat(ct),nh="hidePrevented".concat(ct),Ma="hidden".concat(ct),Na="show".concat(ct),rh="shown".concat(ct),ah="resize".concat(ct),oh="click.dismiss".concat(ct),lh="mousedown.dismiss".concat(ct),ch="keydown.dismiss".concat(ct),hh="click".concat(ct).concat(th),hr="modal-open",uh="fade",ur="show",$s="modal-static",dh=".modal.show",fh=".modal-dialog",ph=".modal-body",gh='[data-bs-toggle="modal"]',mh={backdrop:!0,focus:!0,keyboard:!0},_h={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mi extends pt{constructor(s,c){super(s,c),this._dialog=De.findOne(fh,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new en,this._addEventListeners()}static get Default(){return mh}static get DefaultType(){return _h}static get NAME(){return Jc}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){this._isShown||this._isTransitioning||ue.trigger(this._element,Na,{relatedTarget:s}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(hr),this._adjustDialog(),this._backdrop.show(()=>this._showElement(s)))}hide(){!this._isShown||this._isTransitioning||ue.trigger(this._element,sh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ur),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ue.off(window,ct),ue.off(this._dialog,ct),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Da({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Oa({trapElement:this._element})}_showElement(s){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const c=De.findOne(ph,this._dialog);c&&(c.scrollTop=0),Ri(this._element),this._element.classList.add(ur);const u=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ue.trigger(this._element,rh,{relatedTarget:s})};this._queueCallback(u,this._dialog,this._isAnimated())}_addEventListeners(){ue.on(this._element,ch,s=>{if(s.key===ih){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ue.on(window,ah,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ue.on(this._element,lh,s=>{ue.one(this._element,oh,c=>{if(!(this._element!==s.target||this._element!==c.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(hr),this._resetAdjustments(),this._scrollBar.reset(),ue.trigger(this._element,Ma)})}_isAnimated(){return this._element.classList.contains(uh)}_triggerBackdropTransition(){if(ue.trigger(this._element,nh).defaultPrevented)return;const c=this._element.scrollHeight>document.documentElement.clientHeight,u=this._element.style.overflowY;u==="hidden"||this._element.classList.contains($s)||(c||(this._element.style.overflowY="hidden"),this._element.classList.add($s),this._queueCallback(()=>{this._element.classList.remove($s),this._queueCallback(()=>{this._element.style.overflowY=u},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const s=this._element.scrollHeight>document.documentElement.clientHeight,c=this._scrollBar.getWidth(),u=c>0;if(u&&!s){const l=lt()?"paddingLeft":"paddingRight";this._element.style[l]="".concat(c,"px")}
5if(!u&&s){const l=lt()?"paddingRight":"paddingLeft";this._element.style[l]="".concat(c,"px")}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(s,c){return this.each(function(){const u=mi.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof u[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));u[s](c)}})}}ue.on(document,hh,gh,function(n){const s=De.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ue.one(s,Na,l=>{l.defaultPrevented||ue.one(s,Ma,()=>{yi(this)&&this.focus()})});const c=De.findOne(dh);c&&mi.getInstance(c).hide(),mi.getOrCreateInstance(s).toggle(this)});gs(mi);ht(mi);const vh="offcanvas",yh="bs.offcanvas",Et=".".concat(yh),Ia=".data-api",bh="load".concat(Et).concat(Ia),wh="Escape",dr="show",fr="showing",pr="hiding",xh="offcanvas-backdrop",La=".offcanvas.show",kh="show".concat(Et),Ch="shown".concat(Et),Eh="hide".concat(Et),gr="hidePrevented".concat(Et),$a="hidden".concat(Et),Th="resize".concat(Et),Sh="click".concat(Et).concat(Ia),Ah="keydown.dismiss".concat(Et),Dh='[data-bs-toggle="offcanvas"]',Oh={backdrop:!0,keyboard:!0,scroll:!1},Mh={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Lt extends pt{constructor(s,c){super(s,c),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Oh}static get DefaultType(){return Mh}static get NAME(){return vh}toggle(s){return this._isShown?this.hide():this.show(s)}show(s){if(this._isShown||ue.trigger(this._element,kh,{relatedTarget:s}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new en().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(fr);const u=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(dr),this._element.classList.remove(fr),ue.trigger(this._element,Ch,{relatedTarget:s})};this._queueCallback(u,this._element,!0)}hide(){if(!this._isShown||ue.trigger(this._element,Eh).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(pr),this._backdrop.hide();const c=()=>{this._element.classList.remove(dr,pr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new en().reset(),ue.trigger(this._element,$a)};this._queueCallback(c,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const s=()=>
5{if(this._config.backdrop==="static"){ue.trigger(this._element,gr);return}this.hide()},c=!!this._config.backdrop;return new Da({className:xh,isVisible:c,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:c?s:null})}_initializeFocusTrap(){return new Oa({trapElement:this._element})}_addEventListeners(){ue.on(this._element,Ah,s=>{if(s.key===wh){if(this._config.keyboard){this.hide();return}ue.trigger(this._element,gr)}})}static jQueryInterface(s){return this.each(function(){const c=Lt.getOrCreateInstance(this,s);if(typeof s=="string"){if(c[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError('No method named "'.concat(s,'"'));c[s](this)}})}}ue.on(document,Sh,Dh,function(n){const s=De.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),It(this))return;ue.one(s,$a,()=>{yi(this)&&this.focus()});const c=De.findOne(La);c&&c!==s&&Lt.getInstance(c).hide(),Lt.getOrCreateInstance(s).toggle(this)});ue.on(window,bh,()=>{for(const n of De.find(La))Lt.getOrCreateInstance(n).show()});ue.on(window,Th,()=>
vendor: 16,108 bytes, line 5
5{for(const n of De.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Lt.getOrCreateInstance(n).hide()});gs(Lt);ht(Lt);const Nh=/^aria-[\w-]*$/i,Pa={"*":["class","dir","id","lang","role",Nh],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ih=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Lh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,$h=(n,s)=>{const c=n.nodeName.toLowerCase();return s.includes(c)?Ih.has(c)?!!Lh.test(n.nodeValue):!0:s.filter(u=>u instanceof RegExp).some(u=>u.test(c))};function Ph(n,s,c){if(!n.length)return n;if(c&&typeof c=="function")return c(n);const l=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...l.body.querySelectorAll("*"));for(const r of i){const t=r.nodeName.toLowerCase();if(!Object.keys(s).includes(t)){r.remove();continue}const e=[].concat(...r.attributes),a=[].concat(s["*"]||[],s[t]||[]);for(const o of e)$h(o,a)||r.removeAttribute(o.nodeName)}return l.body.innerHTML}const Rh="TemplateFactory",Bh={allowList:Pa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Fh={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},jh={entry:"(string|element|function|null)",selector:"(string|element)"};class zh extends Bi{constructor(s){super(),this._config=this._getConfig(s)}static get Default(){return Bh}static get DefaultType(){return Fh}static get NAME(){return Rh}getContent(){return Object.values(this._config.content).map(s=>this._resolvePossibleFunction(s)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(s){return this._checkContent(s),this._config.content={...this._config.content,...s},this}toHtml(){const s=document.createElement("div");s.innerHTML=this._maybeSanitize(this._config.template);for(const[l,i]of Object.entries(this._config.content))this._setContent(s,i,l);const c=s.children[0],u=this._resolvePossibleFunction(this._config.extraClass);return u&&c.classList.add(...u.split(" ")),c}_typeCheckConfig(s){super._typeCheckConfig(s),this._checkContent(s.content)}_checkContent(s){for(const[c,u]of Object.entries(s))super._typeCheckConfig({selector:c,entry:u},jh)}_setContent(s,c,u){const l=De.findOne(u,s);if(l){if(c=this._resolvePossibleFunction(c),!c){l.remove();return}if(xt(c)){this._putElementInTemplate(Nt(c),l);return}if(this._config.html){l.innerHTML=this._maybeSanitize(c);return}l.textContent=c}}_maybeSanitize(s){return this._config.sanitize?Ph(s,this._config.allowList,this._config.sanitizeFn):s}_resolvePossibleFunction(s){return et(s,[this])}_putElementInTemplate(s,c){if(this._config.html){c.innerHTML="",c.append(s);return}c.textContent=s.textContent}}const Hh="tooltip",Vh=new Set(["sanitize","allowList","sanitizeFn"]),Ps="fade",qh="modal",Zi="show",Wh=".tooltip-inner",mr=".".concat(qh),_r="hide.bs.modal",Di="hover",Rs="focus",Yh="click",Uh="manual",Kh="hide",Gh="hidden",Xh="show",Qh="shown",Zh="inserted",Jh="click",eu="focusin",tu="focusout",iu="mouseenter",su="mouseleave",nu={AUTO:"auto",TOP:"top",RIGHT:lt()?"left":"right",BOTTOM:"bottom",LEFT:lt()?"right":"left"},ru={allowList:Pa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},au={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class wi extends pt{constructor(s,c){if(typeof la>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(s,c),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ru}static get DefaultType(){return au}static get NAME(){return Hh}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ue.off(this._element.closest(mr),_r,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const s=ue.trigger(this._element,this.constructor.eventName(Xh)),u=(ua(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(s.defaultPrevented||!u)return;this._disposePopper();const l=this._getTipElement();this._element.setAttribute("aria-describedby",l.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(l),ue.trigger(this._element,this.constructor.eventName(Zh))),this._popper=this._createPopper(l),l.classList.add(Zi),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))ue.on(t,"mouseover",cs);const r=()=>{ue.trigger(this._element,this.constructor.eventName(Qh)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ue.trigger(this._element,this.constructor.eventName(Kh)).defaultPrevented)return;if(this._getTipElement().classList.remove(Zi),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ue.off(l,"mouseover",cs);this._activeTrigger[Yh]=!1,this._activeTrigger[Rs]=!1,this._activeTrigger[Di]=!1,this._isHovered=null;const u=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ue.trigger(this._element,this.constructor.eventName(Gh)))};this._queueCallback(u,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(s){const c=this._getTemplateFactory(s).toHtml();if(!c)return null;c.classList.remove(Ps,Zi),c.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const u=Yo(this.constructor.NAME).toString();return c.setAttribute("id",u),this._isAnimated()&&c.classList.add(Ps),c}setContent(s){this._newContent=s,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(s){return this._templateFactory?this._templateFactory.changeContent(s):this._templateFactory=new zh({...this._config,content:s,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Wh]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(s){return this.constructor.getOrCreateInstance(s.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ps)}_isShown(){return this.tip&&this.tip.classList.contains(Zi)}_createPopper(s){const c=et(this._config.placement,[this,s,this._element]),u=nu[c.toUpperCase()];return mn(this._element,s,this._getPopperConfig(u))}_getOffset(){const{offset:s}=this._config;return typeof s=="string"?s.split(",").map(c=>Number.parseInt(c,10)):typeof s=="function"?c=>s(c,this._element):s}_resolvePossibleFunction(s){return et(s,[this._element])}_getPopperConfig(s){const c={placement:s,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:u=>{this._getTipElement().setAttribute("data-popper-placement",u.state.placement)}}]};return{...c,...et(this._config.popperConfig,[c])}}_setListeners(){const s=this._config.trigger.split(" ");for(const c of s)if(c==="click")ue.on(this._element,this.constructor.eventName(Jh),this._config.selector,u=>{this._initializeOnDelegatedTarget(u).toggle()});else if(c!==Uh){const u=c===Di?this.constructor.eventName(iu):this.constructor.eventName(eu),l=c===Di?this.constructor.eventName(su):this.constructor.eventName(tu);ue.on(this._element,u,this._config.selector,i=>{const r=this._initializeOnDelegatedTarget(i);r._activeTrigger[i.type==="focusin"?Rs:Di]=!0,r._enter()}),ue.on(this._element,l,this._config.selector,i=>{const r=this._initializeOnDelegatedTarget(i);r._activeTrigger[i.type==="focusout"?Rs:Di]=r._element.contains(i.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ue.on(this._element.closest(mr),_r,this._hideModalHandler)}_fixTitle(){const s=this._element.getAttribute("title");s&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",s),this._element.setAttribute("data-bs-original-title",s),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(s,c){clearTimeout(this._timeout),this._timeout=setTimeout(s,c)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(s){const c=kt.getDataAttributes(this._element);for(const u of Object.keys(c))Vh.has(u)&&delete c[u];return s={...c,...typeof s=="object"&&s?s:{}},s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s.container=s.container===!1?document.body:Nt(s.container),typeof s.delay=="number"&&(s.delay={show:s.delay,hide:s.delay}),typeof s.title=="number"&&(s.title=s.title.toString()),typeof s.content=="number"&&(s.content=s.content.toString()),s}_getDelegateConfig(){const s={};for(const[c,u]of Object.entries(this._config))this.constructor.Default[c]!==u&&(s[c]=u);return s.selector=!1,s.trigger="manual",s}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(s){return this.each(function(){const c=wi.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof c[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));c[s]()}})}}ht(wi);const ou="popover",lu=".popover-header",cu=".popover-body",hu={...wi.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},uu={...wi.DefaultType,content:"(null|string|element|function)"};class bn extends wi{static get Default(){return hu}static get DefaultType(){return uu}static get NAME(){return ou}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lu]:this._getTitle(),[cu]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(s){return this.each(function(){const c=bn.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof c[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));c[s]()}})}}ht(bn);const du="scrollspy",fu="bs.scrollspy",wn=".".concat(fu),pu=".data-api",gu="activate".concat(wn),vr="click".concat(wn),mu="load".concat(wn).concat(pu),_u="dropdown-item",ai="active",vu='[data-bs-spy="scroll"]',Bs="[href]",yu=".nav, .list-group",yr=".nav-link",bu=".nav-item",wu=".list-group-item",xu="".concat(yr,", ").concat(bu," > ").concat(yr,", ").concat(wu),ku=".dropdown",Cu=".dropdown-toggle",Eu={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Tu={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class vs extends pt{constructor(s,c){super(s,c),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Eu}static get DefaultType(){return Tu}static get NAME(){return du}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const s of this._observableSections.values())this._observer.observe(s)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(s){return s.target=Nt(s.target)||document.body,s.rootMargin=s.offset?"".concat(s.offset,"px 0px -30%"):s.rootMargin,typeof s.threshold=="string"&&(s.threshold=s.threshold.split(",").map(c=>Number.parseFloat(c))),s}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ue.off(this._config.target,vr),ue.on(this._config.target,vr,Bs,s=>{const c=this._observableSections.get(s.target.hash);if(c){s.preventDefault();const u=this._rootElement||window,l=c.offsetTop-this._element.offsetTop;if(u.scrollTo){u.scrollTo({top:l,behavior:"smooth"});return}u.scrollTop=l}}))}_getNewObserver(){const s={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(c=>this._observerCallback(c),s)}_observerCallback(s){const c=r=>this._targetLinks.get("#".concat(r.target.id)),u=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(c(r))},l=(this._rootElement||document.documentElement).scrollTop,i=l>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=l;for(const r of s){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(c(r));continue}const t=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&t){if(u(r),!l)return;continue}!i&&!t&&u(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const s=De.find(Bs,this._config.target);for(const c of s){if(!c.hash||It(c))continue;const u=De.findOne(decodeURI(c.hash),this._element);yi(u)&&(this._targetLinks.set(decodeURI(c.hash),c),this._observableSections.set(c.hash,u))}}_process(s){this._activeTarget!==s&&(this._clearActiveClass(this._config.target),this._activeTarget=s,s.classList.add(ai),this._activateParents(s),ue.trigger(this._element,gu,{relatedTarget:s}))}_activateParents(s){if(s.classList.contains(_u)){De.findOne(Cu,s.closest(ku)).classList.add(ai);return}for(const c of De.parents(s,yu))for(const u of De.prev(c,xu))u.classList.add(ai)}_clearActiveClass(s){s.classList.remove(ai);const c=De.find("".concat(Bs,".").concat(ai),s);for(const u of c)u.classList.remove(ai)}static jQueryInterface(s){return this.each(function(){const c=vs.getOrCreateInstance(this,s);if(typeof s=="string"){if(c[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError('No method n
5amed "'.concat(s,'"'));c[s]()}})}}ue.on(window,mu,()=>{for(const n of De.find(vu))vs.getOrCreateInstance(n)});ht(vs);const Su="tab",Au="bs.tab",Xt=".".concat(Au),Du="hide".concat(Xt),Ou="hidden".concat(Xt),Mu="show".concat(Xt),Nu="shown".concat(Xt),Iu="click".concat(Xt),Lu="keydown".concat(Xt),$u="load".concat(Xt),Pu="ArrowLeft",br="ArrowRight",Ru="ArrowUp",wr="ArrowDown",Fs="Home",xr="End",qt="active",kr="fade",js="show",Bu="dropdown",Ra=".dropdown-toggle",Fu=".dropdown-menu",zs=":not(".concat(Ra,")"),ju='.list-group, .nav, [role="tablist"]',zu=".nav-item, .list-group-item",Hu=".nav-link".concat(zs,", .list-group-item").concat(zs,', [role="tab"]').concat(zs),Ba='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Hs="".concat(Hu,", ").concat(Ba),Vu=".".concat(qt,'[data-bs-toggle="tab"], .').concat(qt,'[data-bs-toggle="pill"], .').concat(qt,'[data-bs-toggle="list"]');class _i extends pt{constructor(s){super(s),this._parent=this._element.closest(ju),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ue.on(this._element,Lu,c=>this._keydown(c)))}static get NAME(){return Su}show(){const s=this._element;if(this._elemIsActive(s))return;const c=this._getActiveElem(),u=c?ue.trigger(c,Du,{relatedTarget:s}):null;ue.trigger(s,Mu,{relatedTarget:c}).defaultPrevented||u&&u.defaultPrevented||(this._deactivate(c,s),this._activate(s,c))}_activate(s,c){if(!s)return;s.classList.add(qt),this._activate(De.getElementFromSelector(s));const u=()=>{if(s.getAttribute("role")!=="tab"){s.classList.add(js);return}s.removeAttribute("tabindex"),s.setAttribute("aria-selected",!0),this._toggleDropDown(s,!0),ue.trigger(s,Nu,{relatedTarget:c})};this._queueCallback(u,s,s.classList.contains(kr))}_deactivate(s,c){if(!s)return;s.classList.remove(qt),s.blur(),this._deactivate(De.getElementFromSelector(s));const u=()=>{if(s.getAttribute("role")!=="tab"){s.classList.remove(js);return}s.setAttribute("aria-selected",!1),s.setAttribute("tabindex","-1"),this._toggleDropDown(s,!1),ue.trigger(s,Ou,{relatedTarget:c})};this._queueCallback(u,s,s.classList.contains(kr))}_keydown(s){if(![Pu,br,Ru,wr,Fs,xr].includes(s.key))return;s.stopPropagation(),s.preventDefault();const c=this._getChildren().filter(l=>!It(l));let u;if([Fs,xr].includes(s.key))u=c[s.key===Fs?0:c.length-1];else{const l=[br,wr].includes(s.key);u=_n(c,s.target,l,!0)}u&&(u.focus({preventScroll:!0}),_i.getOrCreateInstance(u).show())}_getChildren(){return De.find(Hs,this._parent)}_getActiveElem(){return this._getChildren().find(s=>this._elemIsActive(s))||null}_setInitialAttributes(s,c){this._setAttributeIfNotExists(s,"role","tablist");for(const u of c)this._setInitialAttributesOnChild(u)}_setInitialAttributesOnChild(s){s=this._getInnerElement(s);const c=this._elemIsActive(s),u=this._getOuterElement(s);s.setAttribute("aria-selected",c),u!==s&&this._setAttributeIfNotExists(u,"role","presentation"),c||s.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(s,"role","tab"),this._setInitialAttributesOnTargetPanel(s)}_setInitialAttributesOnTargetPanel(s){const c=De.getElementFromSelector(s);c&&(this._setAttributeIfNotExists(c,"role","tabpanel"),s.id&&this._setAttributeIfNotExists(c,"aria-labelledby","".concat(s.id)))}_toggleDropDown(s,c){const u=this._getOuterElement(s);if(!u.classList.contains(Bu))return;const l=(i,r)=>{const t=De.findOne(i,u);t&&t.classList.toggle(r,c)};l(Ra,qt),l(Fu,js),u.setAttribute("aria-expanded",c)}_setAttributeIfNotExists(s,c,u){s.hasAttribute(c)||s.setAttribute(c,u)}_elemIsActive(s){return s.classList.contains(qt)}_getInnerElement(s){return s.matches(Hs)?s:De.findOne(Hs,s)}_getOuterElement(s){return s.closest(zu)||s}static jQueryInterface(s){return this.each(function(){const c=_i.getOrCreateInstance(this);if(typeof s=="string"){if(c[s]===void 0||s.startsWith("_")||s==="constructor")throw new TypeError('No method named "'.concat(s,'"'));c[s]()}})}}ue.on(document,Iu,Ba,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!It(this)&&_i.getOrCreateInstance(this).show()});ue.on(window,$u,()=>
vendor: 2,510 bytes, lines 5-6
5{for(const n of De.find(Vu))_i.getOrCreateInstance(n)});ht(_i);const qu="toast",Wu="bs.toast",Bt=".".concat(Wu),Yu="mouseover".concat(Bt),Uu="mouseout".concat(Bt),Ku="focusin".concat(Bt),Gu="focusout".concat(Bt),Xu="hide".concat(Bt),Qu="hidden".concat(Bt),Zu="show".concat(Bt),Ju="shown".concat(Bt),ed="fade",Cr="hide",Ji="show",es="showing",td={animation:"boolean",autohide:"boolean",delay:"number"},id={animation:!0,autohide:!0,delay:5e3};class ys extends pt{constructor(s,c){super(s,c),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return id}static get DefaultType(){return td}static get NAME(){return qu}show(){if(ue.trigger(this._element,Zu).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ed);const c=()=>{this._element.classList.remove(es),ue.trigger(this._element,Ju),this._maybeScheduleHide()};this._element.classList.remove(Cr),Ri(this._element),this._element.classList.add(Ji,es),this._queueCallback(c,this._element,this._config.animation)}hide(){if(!this.isShown()||ue.trigger(this._element,Xu).defaultPrevented)return;const c=()=>{this._element.classList.add(Cr),this._element.classList.remove(es,Ji),ue.trigger(this._element,Qu)};this._element.classList.add(es),this._queueCallback(c,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ji),super.dispose()}isShown(){return this._element.classList.contains(Ji)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(s,c){switch(s.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=c;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=c;break}}if(c){this._clearTimeout();return}const u=s.relatedTarget;this._element===u||this._element.contains(u)||this._maybeScheduleHide()}_setListeners(){ue.on(this._element,Yu,s=>this._onInteraction(s,!0)),ue.on(this._element,Uu,s=>this._onInteraction(s,!1)),ue.on(this._element,Ku,s=>this._onInteraction(s,!0)),ue.on(this._element,Gu,s=>this._onInteraction(s,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(s){return this.each(function(){const c=ys.getOrCreateInstance(this,s);if(typeof s=="string"){if(typeof c[s]>"u")throw new TypeError('No method named "'.concat(s,'"'));c[s](this)}})}}gs(ys);ht(ys);/**
6 * Owl carousel
vendor: 13,182 bytes, lines 7-16
7 * @version 2.3.4
8 * @author Bartosz Wojciechowski
9 * @author David Deutsch
10 * @license The MIT License (MIT)
11 * @todo Lazy Load Icon
12 * @todo prevent animationend bubling
13 * @todo itemsScaleUp
14 * @todo Test Zepto
15 * @todo stagePadding calculate wrong active classes
16 */(function(n,s,c,u){function l(i,r){this.settings=null,this.options=n.extend({},l.Defaults,r),this.$element=n(i),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},n.each(["onResize","onThrottledResize"],n.proxy(function(t,e){this._handlers[e]=n.proxy(this[e],this)},this)),n.each(l.Plugins,n.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),n.each(l.Workers,n.proxy(function(t,e){this._pipe.push({filter:e.filter,run:n.proxy(e.run,this)})},this)),this.setup(),this.initialize()}l.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:s,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},l.Width={Default:"default",Inner:"inner",Outer:"outer"},l.Type={Event:"event",State:"state"},l.Plugins={},l.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(i){i.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(i){var r=this.settings.margin||"",t=!this.settings.autoWidth,e=this.settings.rtl,a={width:"auto","margin-left":e?r:"","margin-right":e?"":r};!t&&this.$stage.children().css(a),i.css=a}},{filter:["width","items","settings"],run:function(i){var r=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,t=null,e=this._items.length,a=!this.settings.autoWidth,o=[];for(i.items={merge:!1,width:r};e--;)t=this._mergers[e],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,i.items.merge=t>1||i.items.merge,o[e]=a?r*t:this._items[e].width();this._widths=o}},{filter:["items","settings"],run:function(){var i=[],r=this._items,t=this.settings,e=Math.max(t.items*2,4),a=Math.ceil(r.length/2)*2,o=t.loop&&r.length?t.rewind?e:Math.max(e,a):0,f="",g="";for(o/=2;o>0;)i.push(this.normalize(i.length/2,!0)),f=f+r[i[i.length-1]][0].outerHTML,i.push(this.normalize(r.length-1-(i.length-1)/2,!0)),g=r[i[i.length-1]][0].outerHTML+g,o-=1;this._clones=i,n(f).addClass("cloned").appendTo(this.$stage),n(g).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var i=this.settings.rtl?1:-1,r=this._clones.length+this._items.length,t=-1,e=0,a=0,o=[];++t<r;)e=o[t-1]||0,a=this._widths[this.relative(t)]+this.settings.margin,o.push(e+a*i);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var i=this.settings.stagePadding,r=this._coordinates,t={width:Math.ceil(Math.abs(r[r.length-1]))+i*2,"padding-left":i||"","padding-right":i||""};this.$stage.css(t)}},{filter:["width","items","settings"],run:function(i){var r=this._coordinates.length,t=!this.settings.autoWidth,e=this.$stage.children();if(t&&i.items.merge)for(;r--;)i.css.width=this._widths[this.relative(r)],e.eq(r).css(i.css);else t&&(i.css.width=i.items.width,e.css(i.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(i){i.current=i.current?this.$stage.children().index(i.current):0,i.current=Math.max(this.minimum(),Math.min(this.maximum(),i.current)),this.reset(i.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var i=this.settings.rtl?1:-1,r=this.settings.stagePadding*2,t=this.coordinates(this.current())+r,e=t+this.width()*i,a,o,f=[],g,y;for(g=0,y=this._coordinates.length;g<y;g++)a=this._coordinates[g-1]||0,o=Math.abs(this._coordinates[g])+r*i,(this.op(a,"<=",t)&&this.op(a,">",e)||this.op(o,"<",t)&&this.op(o,">",e))&&f.push(g);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+f.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],l.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),!this.$stage.length&&(this.$element.addClass(this.options.loadingClass),this.$stage=n("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(n("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},l.prototype.initializeItems=function(){var i=this.$element.find(".owl-item");if(i.length){this._items=i.get().map(function(r){return n(r)}),this._mergers=this._items.map(function(){return 1}),this.refresh();return}this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},l.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var i,r,t;i=this.$element.find("img"),r=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:u,t=this.$element.children(r).width(),i.length&&t<=0&&this.preloadAutoWidthImages(i)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},l.prototype.isVisible=function(){return this.settings.checkVisibility?this.$element.is(":visible"):!0},l.prototype.setup=function(){var i=this.viewport(),r=this.options.responsive,t=-1,e=null;r?(n.each(r,function(a){a<=i&&a>t&&(t=Number(a))}),e=n.extend({},this.options,r[t]),typeof e.stagePadding=="function"&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+t))):e=n.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=t,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},l.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(i){var r=this.trigger("prepare",{content:i});return r.data||(r.data=n("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(i)),this.trigger("prepared",{content:r.data}),r.data},l.prototype.update=function(){for(var i=0,r=this._pipe.length,t=n.proxy(function(a){return this[a]},this._invalidated),e={};i<r;)(this._invalidated.all||n.grep(this._pipe[i].filter,t).length>0)&&this._pipe[i].run(e),i++;this._invalidated={},!this.is("valid")&&this.enter("valid")},l.prototype.width=function(i){switch(i=i||l.Width.Default,i){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}},l.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},l.prototype.onThrottledResize=function(){s.clearTimeout(this.resizeTimer),this.resizeTimer=s.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){if(!this._items.length||this._width===this.$element.width()||!this.isVisible())return!1;if(this.enter("resizing"),this.trigger("resize").isDefaultPrevented())return this.leave("resizing"),!1;this.invalidate("width"),this.refresh(),this.leave("resizing"),this.trigger("resized")},l.prototype.registerEventHandlers=function(){n.support.transition&&this.$stage.on(n.support.transition.end+".owl.core",n.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(s,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",n.proxy(this.onDragEnd,this)))},l.prototype.onDragStart=function(i){var r=null;i.which!==3&&(n.support.transform?(r=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),r={x:r[r.length===16?12:4],y:r[r.length===16?13:5]}):(r=this.$stage.position(),r={x:this.settings.rtl?r.left+this.$stage.width()-this.width()+this.settings.margin:r.left,y:r.top}),this.is("animating")&&(n.support.transform?this.animate(r.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,i.type==="mousedown"),this.speed(0),this._drag.time=new Date().getTime(),this._drag.target=n(i.target),this._drag.stage.start=r,this._drag.stage.current=r,this._drag.pointer=this.pointer(i),n(c).on("mouseup.owl.core touchend.owl.core",n.proxy(this.onDragEnd,this)),n(c).one("mousemove.owl.core touchmove.owl.core",n.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));n(c).on("mousemove.owl.core touchmove.owl.core",n.proxy(this.onDragMove,this)),!(Math.abs(e.x)<Math.abs(e.y)&&this.is("valid"))&&(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},l.prototype.onDragMove=function(i){var r=null,t=null,e=null,a=this.difference(this._drag.pointer,this.pointer(i)),o=this.difference(this._drag.stage.start,a);this.is("dragging")&&(i.preventDefault(),this.settings.loop?(r=this.coordinates(this.minimum()),t=this.coordinates(this.maximum()+1)-r,o.x=((o.x-r)%t+t)%t+r):(r=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),t=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),e=this.settings.pullDrag?-1*a.x/5:0,o.x=Math.max(Math.min(o.x,r+e),t+e)),this._drag.stage.current=o,this.animate(o.x))},l.prototype.onDragEnd=function(i){var r=this.difference(this._drag.pointer,this.pointer(i)),t=this._drag.stage.current,e=r.x>0^this.settings.rtl?"left":"right";n(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(r.x!==0&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(t.x,r.x!==0?e:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=e,(Math.abs(r.x)>3||new Date().getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},l.prototype.closest=function(i,r){var t=-1,e=30,a=this.width(),o=this.coordinates();return this.settings.freeDrag||n.each(o,n.proxy(function(f,g){return r==="left"&&i>g-e&&i<g+e?t=f:r==="right"&&i>g-a-e&&i<g-a+e?t=f+1:this.op(i,"<",g)&&this.op(i,">",o[f+1]!==u?o[f+1]:g-a)&&(t=r==="left"?f+1:f),t===-1},this)),this.settings.loop||(this.op(i,">",o[this.minimum()])?t=i=this.minimum():this.op(i,"<",o[this.maximum()])&&(t=i=this.maximum())),t},l.prototype.animate=function(i){var r=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),r&&(this.enter("animating"),this.trigger("translate")),n.support.transform3d&&n.support.transition?this.$stage.css({transform:"translate3d("+i+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):r?this.$stage.animate({left:i+"px"},this.speed(),this.settings.fallbackEasing,n.proxy(this.onTransitionEnd,this)):this.$stage.css({left:i+"px"})},l.prototype.is=function(i){return this._states.current[i]&&this._states.current[i]>0},l.prototype.current=function(i){if(i===u)return this._current;if(this._items.length===0)return u;if(i=this.normalize(i),this._current!==i){var r=this.trigger("change",{property:{name:"position",value:i}});r.data!==u&&(i=this.normalize(r.data)),this._current=i,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}
vendor: 6,038 bytes, line 16
16,l.prototype.invalidate=function(i){return n.type(i)==="string"&&(this._invalidated[i]=!0,this.is("valid")&&this.leave("valid")),n.map(this._invalidated,function(r,t){return t})},l.prototype.reset=function(i){i=this.normalize(i),i!==u&&(this._speed=0,this._current=i,this.suppress(["translate","translated"]),this.animate(this.coordinates(i)),this.release(["translate","translated"]))},l.prototype.normalize=function(i,r){var t=this._items.length,e=r?0:this._clones.length;return!this.isNumeric(i)||t<1?i=u:(i<0||i>=t+e)&&(i=((i-e/2)%t+t)%t+e/2),i},l.prototype.relative=function(i){return i-=this._clones.length/2,this.normalize(i,!0)},l.prototype.maximum=function(i){var r=this.settings,t=this._coordinates.length,e,a,o;if(r.loop)t=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length,e)for(a=this._items[--e].width(),o=this.$element.width();e--&&(a+=this._items[e].width()+this.settings.margin,!(a>o)););t=e+1}else r.center?t=this._items.length-1:t=this._items.length-r.items;return i&&(t-=this._clones.length/2),Math.max(t,0)},l.prototype.minimum=function(i){return i?0:this._clones.length/2},l.prototype.items=function(i){return i===u?this._items.slice():(i=this.normalize(i,!0),this._items[i])},l.prototype.mergers=function(i){return i===u?this._mergers.slice():(i=this.normalize(i,!0),this._mergers[i])},l.prototype.clones=function(i){var r=this._clones.length/2,t=r+this._items.length,e=function(a){return a%2===0?t+a/2:r-(a+1)/2};return i===u?n.map(this._clones,function(a,o){return e(o)}):n.map(this._clones,function(a,o){return a===i?e(o):null})},l.prototype.speed=function(i){return i!==u&&(this._speed=i),this._speed},l.prototype.coordinates=function(i){var r=1,t=i-1,e;return i===u?n.map(this._coordinates,n.proxy(function(a,o){return this.coordinates(o)},this)):(this.settings.center?(this.settings.rtl&&(r=-1,t=i+1),e=this._coordinates[i],e+=(this.width()-e+(this._coordinates[t]||0))/2*r):e=this._coordinates[t]||0,e=Math.ceil(e),e)},l.prototype.duration=function(i,r,t){return t===0?0:Math.min(Math.max(Math.abs(r-i),1),6)*Math.abs(t||this.settings.smartSpeed)},l.prototype.to=function(i,r){var t=this.current(),e=null,a=i-this.relative(t),o=(a>0)-(a<0),f=this._items.length,g=this.minimum(),y=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(a)>f/2&&(a+=o*-1*f),i=t+a,e=((i-g)%f+f)%f+g,e!==i&&e-a<=y&&e-a>0&&(t=e-a,i=e,this.reset(t))):this.settings.rewind?(y+=1,i=(i%y+y)%y):i=Math.max(g,Math.min(y,i)),this.speed(this.duration(t,i,r)),this.current(i),this.isVisible()&&this.update()},l.prototype.next=function(i){i=i||!1,this.to(this.relative(this.current())+1,i)},l.prototype.prev=function(i){i=i||!1,this.to(this.relative(this.current())-1,i)},l.prototype.onTransitionEnd=function(i){if(i!==u&&(i.stopPropagation(),(i.target||i.srcElement||i.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},l.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==s?i=n(this.options.responsiveBaseElement).width():s.innerWidth?i=s.innerWidth:c.documentElement&&c.documentElement.clientWidth?i=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},l.prototype.replace=function(i){this.$stage.empty(),this._items=[],i&&(i=i instanceof jQuery?i:n(i)),this.settings.nestedItemSelector&&(i=i.find("."+this.settings.nestedItemSelector)),i.filter(function(){return this.nodeType===1}).each(n.proxy(function(r,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},l.prototype.add=function(i,r){var t=this.relative(this._current);r=r===u?this._items.length:this.normalize(r,!0),i=i instanceof jQuery?i:n(i),this.trigger("add",{content:i,position:r}),i=this.prepare(i),this._items.length===0||r===this._items.length?(this._items.length===0&&this.$stage.append(i),this._items.length!==0&&this._items[r-1].after(i),this._items.push(i),this._mergers.push(i.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)):(this._items[r].before(i),this._items.splice(r,0,i),this._mergers.splice(r,0,i.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)),this._items[t]&&this.reset(this._items[t].index()),this.invalidate("items"),this.trigger("added",{content:i,position:r})},l.prototype.remove=function(i){i=this.normalize(i,!0),i!==u&&(this.trigger("remove",{content:this._items[i],position:i}),this._items[i].remove(),this._items.splice(i,1),this._mergers.splice(i,1),this.invalidate("items"),this.trigger("removed",{content:null,position:i}))},l.prototype.preloadAutoWidthImages=function(i){i.each(n.proxy(function(r,t){this.enter("pre-loading"),t=n(t),n(new Image).one("load",n.proxy(function(e){t.attr("src",e.target.src),t.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",t.attr("src")||t.attr("data-src")||t.attr("data-src-retina"))},this))},l.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),n(c).off(".owl.core"),this.settings.responsive!==!1&&(s.clearTimeout(this.resizeTimer),this.off(s,"resize",this._handlers.onThrottledResize));for(var i in this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},l.prototype.op=function(i,r,t){var e=this.settings.rtl;switch(r){case"<":return e?i>t:i<t;
vendor: 23,299 bytes, line 16
16case">":return e?i<t:i>t;case">=":return e?i<=t:i>=t;case"<=":return e?i>=t:i<=t}},l.prototype.on=function(i,r,t,e){i.addEventListener?i.addEventListener(r,t,e):i.attachEvent&&i.attachEvent("on"+r,t)},l.prototype.off=function(i,r,t,e){i.removeEventListener?i.removeEventListener(r,t,e):i.detachEvent&&i.detachEvent("on"+r,t)},l.prototype.trigger=function(i,r,t,e,a){var o={item:{count:this._items.length,index:this.current()}},f=n.camelCase(n.grep(["on",i,t],function(y){return y}).join("-").toLowerCase()),g=n.Event([i,"owl",t||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},o,r));return this._supress[i]||(n.each(this._plugins,function(y,E){E.onTrigger&&E.onTrigger(g)}),this.register({type:l.Type.Event,name:i}),this.$element.trigger(g),this.settings&&typeof this.settings[f]=="function"&&this.settings[f].call(this,g)),g},l.prototype.enter=function(i){n.each([i].concat(this._states.tags[i]||[]),n.proxy(function(r,t){this._states.current[t]===u&&(this._states.current[t]=0),this._states.current[t]++},this))},l.prototype.leave=function(i){n.each([i].concat(this._states.tags[i]||[]),n.proxy(function(r,t){this._states.current[t]--},this))},l.prototype.register=function(i){if(i.type===l.Type.Event){if(n.event.special[i.name]||(n.event.special[i.name]={}),!n.event.special[i.name].owl){var r=n.event.special[i.name]._default;n.event.special[i.name]._default=function(t){return r&&r.apply&&(!t.namespace||t.namespace.indexOf("owl")===-1)?r.apply(this,arguments):t.namespace&&t.namespace.indexOf("owl")>-1},n.event.special[i.name].owl=!0}}else i.type===l.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=n.grep(this._states.tags[i.name],n.proxy(function(t,e){return n.inArray(t,this._states.tags[i.name])===e},this)))},l.prototype.suppress=function(i){n.each(i,n.proxy(function(r,t){this._supress[t]=!0},this))},l.prototype.release=function(i){n.each(i,n.proxy(function(r,t){delete this._supress[t]},this))},l.prototype.pointer=function(i){var r={x:null,y:null};return i=i.originalEvent||i||s.event,i=i.touches&&i.touches.length?i.touches[0]:i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,i.pageX?(r.x=i.pageX,r.y=i.pageY):(r.x=i.clientX,r.y=i.clientY),r},l.prototype.isNumeric=function(i){return!isNaN(parseFloat(i))},l.prototype.difference=function(i,r){return{x:i.x-r.x,y:i.y-r.y}},n.fn.owlCarousel=function(i){var r=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=n(this),e=t.data("owl.carousel");e||(e=new l(this,typeof i=="object"&&i),t.data("owl.carousel",e),n.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(a,o){e.register({type:l.Type.Event,name:o}),e.$element.on(o+".owl.carousel.core",n.proxy(function(f){f.namespace&&f.relatedTarget!==this&&(this.suppress([o]),e[o].apply(this,[].slice.call(arguments,1)),this.release([o]))},e))})),typeof i=="string"&&i.charAt(0)!=="_"&&e[i].apply(e,r)})},n.fn.owlCarousel.Constructor=l})(window.Zepto||window.jQuery,window,document);(function(n,s,c,u){var l=function(i){this._core=i,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=n.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers)};l.Defaults={autoRefresh:!0,autoRefreshInterval:500},l.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=s.setInterval(n.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},l.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},l.prototype.destroy=function(){var i,r;s.clearInterval(this._interval);for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.AutoRefresh=l})(window.Zepto||window.jQuery,window);(function(n,s,c,u){var l=function(i){this._core=i,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":n.proxy(function(r){if(r.namespace&&!(!this._core.settings||!this._core.settings.lazyLoad)&&(r.property&&r.property.name=="position"||r.type=="initialized")){var t=this._core.settings,e=t.center&&Math.ceil(t.items/2)||t.items,a=t.center&&e*-1||0,o=(r.property&&r.property.value!==u?r.property.value:this._core.current())+a,f=this._core.clones().length,g=n.proxy(function(y,E){this.load(E)},this);for(t.lazyLoadEager>0&&(e+=t.lazyLoadEager,t.loop&&(o-=t.lazyLoadEager,e++));a++<e;)this.load(f/2+this._core.relative(o)),f&&n.each(this._core.clones(this._core.relative(o)),g),o++}},this)},this._core.options=n.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers)};l.Defaults={lazyLoad:!1,lazyLoadEager:0},l.prototype.load=function(i){var r=this._core.$stage.children().eq(i),t=r&&r.find(".owl-lazy");!t||n.inArray(r.get(0),this._loaded)>-1||(t.each(n.proxy(function(e,a){var o=n(a),f,g=s.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:g},"lazy"),o.is("img")?o.one("load.owl.lazy",n.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:g},"lazy")},this)).attr("src",g):o.is("source")?o.one("load.owl.lazy",n.proxy(function(){this._core.trigger("loaded",{element:o,url:g},"lazy")},this)).attr("srcset",g):(f=new Image,f.onload=n.proxy(function(){o.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:g},"lazy")},this),f.src=g)},this)),this._loaded.push(r.get(0)))},l.prototype.destroy=function(){var i,r;for(i in this.handlers)this._core.$element.off(i,this.handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.Lazy=l})(window.Zepto||window.jQuery,window);(function(n,s,c,u){var l=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.property.name==="position"&&this.update()},this),"loaded.owl.lazy":n.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=n.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var r=this;n(s).on("load",function(){r._core.settings.autoHeight&&r.update()}),n(s).resize(function(){r._core.settings.autoHeight&&(r._intervalId!=null&&clearTimeout(r._intervalId),r._intervalId=setTimeout(function(){r.update()},250))})};l.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},l.prototype.update=function(){var i=this._core._current,r=i+this._core.settings.items,t=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(i,r),a=[],o=0;n.each(e,function(f,g){a.push(n(g).height())}),o=Math.max.apply(null,a),o<=1&&t&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},l.prototype.destroy=function(){var i,r;for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.AutoHeight=l})(window.Zepto||window.jQuery,window);(function(n,s,c,u){var l=function(i){this._core=i,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":n.proxy(function(r){r.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.video&&this.isInFullScreen()&&r.preventDefault()},this),"refreshed.owl.carousel":n.proxy(function(r){r.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":n.proxy(function(r){r.namespace&&r.property.name==="position"&&this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(r){if(r.namespace){var t=n(r.content).find(".owl-video");t.length&&(t.css("display","none"),this.fetch(t,n(r.content)))}},this)},this._core.options=n.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(r){this.play(r)},this))};l.Defaults={video:!1,videoHeight:!1,videoWidth:!1},l.prototype.fetch=function(i,r){var t=function(){return i.attr("data-vimeo-id")?"vimeo":i.attr("data-vzaar-id")?"vzaar":"youtube"}(),e=i.attr("data-vimeo-id")||i.attr("data-youtube-id")||i.attr("data-vzaar-id"),a=i.attr("data-width")||this._core.settings.videoWidth,o=i.attr("data-height")||this._core.settings.videoHeight,f=i.attr("href");if(f){if(e=f.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),e[3].indexOf("youtu")>-1)t="youtube";else if(e[3].indexOf("vimeo")>-1)t="vimeo";else if(e[3].indexOf("vzaar")>-1)t="vzaar";else throw new Error("Video URL not supported.");e=e[6]}else throw new Error("Missing video URL.");this._videos[f]={type:t,id:e,width:a,height:o},r.attr("data-video",f),this.thumbnail(i,this._videos[f])},l.prototype.thumbnail=function(i,r){var t,e,a,o=r.width&&r.height?"width:"+r.width+"px;height:"+r.height+"px;":"",f=i.find("img"),g="src",y="",E=this._core.settings,k=function(D){e='<div class="owl-video-play-icon"></div>',E.lazyLoad?t=n("<div/>",{class:"owl-video-tn "+y,srcType:D}):t=n("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+D+")"}),i.after(t),i.after(e)};if(i.wrap(n("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(g="data-src",y="owl-lazy"),f.length)return k(f.attr(g)),f.remove(),!1;r.type==="youtube"?(a="//img.youtube.com/vi/"+r.id+"/hqdefault.jpg",k(a)):r.type==="vimeo"?n.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+r.id+".json",jsonp:"callback",dataType:"jsonp",success:function(D){a=D[0].thumbnail_large,k(a)}}):r.type==="vzaar"&&n.ajax({type:"GET",url:"//vzaar.com/api/videos/"+r.id+".json",jsonp:"callback",dataType:"jsonp",success:function(D){a=D.framegrab_url,k(a)}})},l.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},l.prototype.play=function(i){var r=n(i.target),t=r.closest("."+this._core.settings.itemClass),e=this._videos[t.attr("data-video")],a=e.width||"100%",o=e.height||this._core.$stage.height(),f;this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),f=n('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),f.attr("height",o),f.attr("width",a),e.type==="youtube"?f.attr("src","//www.youtube.com/embed/"+e.id+"?autoplay=1&rel=0&v="+e.id):e.type==="vimeo"?f.attr("src","//player.vimeo.com/video/"+e.id+"?autoplay=1"):e.type==="vzaar"&&f.attr("src","//view.vzaar.com/"+e.id+"/player?autoplay=true"),n(f).wrap('<div class="owl-video-frame" />').insertAfter(t.find(".owl-video")),this._playing=t.addClass("owl-video-playing"))},l.prototype.isInFullScreen=function(){var i=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return i&&n(i).parent().hasClass("owl-video-frame")},l.prototype.destroy=function(){var i,r;this._core.$element.off("click.owl.video");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.Video=l})(window.Zepto||window.jQuery,window,document);(function(n,s,c,u){var l=function(i){this.core=i,this.core.options=n.extend({},l.Defaults,this.core.options),this.swapping=!0,this.previous=u,this.next=u,this.handlers={"change.owl.carousel":n.proxy(function(r){r.namespace&&r.property.name=="position"&&(this.previous=this.core.current(),this.next=r.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":n.proxy(function(r){r.namespace&&(this.swapping=r.type=="translated")},this),"translate.owl.carousel":n.proxy(function(r){r.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};l.Defaults={animateOut:!1,animateIn:!1},l.prototype.swap=function(){if(this.core.settings.items===1&&!(!n.support.animation||!n.support.transition)){this.core.speed(0);var i,r=n.proxy(this.clear,this),t=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(i=this.core.coordinates(this.previous)-this.core.coordinates(this.next),t.one(n.support.animation.end,r).css({left:i+"px"}).addClass("animated owl-animated-out").addClass(o)),a&&e.one(n.support.animation.end,r).addClass("animated owl-animated-in").addClass(a))}},l.prototype.clear=function(i){n(i.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},l.prototype.destroy=function(){var i,r;for(i in this.handlers)this.core.$element.off(i,this.handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.Animate=l})(window.Zepto||window.jQuery);(function(n,s,c,u){var l=function(i){this._core=i,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(r){r.namespace&&r.property.name==="settings"?this._core.settings.autoplay?this.play():this.stop():r.namespace&&r.property.name==="position"&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(r,t,e){r.namespace&&this.play(t,e)},this),"stop.owl.autoplay":n.proxy(function(r){r.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},l.Defaults,this._core.options)};l.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},l.prototype._next=function(i){this._call=s.setTimeout(n.proxy(this._next,this,i),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),!(this._core.is("interacting")||c.hidden)&&this._core.next(i||this._core.settings.autoplaySpeed)},l.prototype.read=function(){return new Date().getTime()-this._time},l.prototype.play=function(i,r){var t;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,t=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%i-t,this._timeout=i,this._call=s.setTimeout(n.proxy(this._next,this,r),i-t)},l.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},l.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},l.prototype.destroy=function(){var i,r;this.stop();for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=l})(window.Zepto||window.jQuery,window,document);(function(n,s,c,u){var l=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+n(r.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.dotsData&&this._templates.splice(r.position,0,this._templates.pop())},this),"remove.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.dotsData&&this._templates.splice(r.position,1)},this),"changed.owl.carousel":n.proxy(function(r){r.namespace&&r.property.name=="position"&&this.draw()},this),"initialized.owl.carousel":n.proxy(function(r){r.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":n.proxy(function(r){r.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=n.extend({},l.Defaults,this._core.options),this.$element.on(this._handlers)};l.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},l.prototype.initialize=function(){var i,r=this._core.settings;this._controls.$relative=(r.navContainer?n(r.navContainer):n("<div>").addClass(r.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=n("<"+r.navElement+">").addClass(r.navClass[0]).html(r.navText[0]).prependTo(this._controls.$relative).on("click",n.proxy(function(t){this.prev(r.navSpeed)},this)),this._controls.$next=n("<"+r.navElement+">").addClass(r.navClass[1]).html(r.navText[1]).appendTo(this._controls.$relative).on("click",n.proxy(function(t){this.next(r.navSpeed)},this)),r.dotsData||(this._templates=[n('<button role="button">').addClass(r.dotClass).append(n("<span>")).prop("outerHTML")]),this._controls.$absolute=(r.dotsContainer?n(r.dotsContainer):n("<div>").addClass(r.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",n.proxy(function(t){var e=n(t.target).parent().is(this._controls.$absolute)?n(t.target).index():n(t.target).parent().index();t.preventDefault(),this.to(e,r.dotsSpeed)},this));for(i in this._overrides)this._core[i]=n.proxy(this[i],this)},l.prototype.destroy=function(){var i,r,t,e,a;a=this._core.settings;for(i in this._handlers)this.$element.off(i,this._handlers[i]);for(r in this._controls)r==="$relative"&&a.navContainer?this._controls[r].html(""):this._controls[r].remove();for(e in this.overides)this._core[e]=this._overrides[e];for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)},l.prototype.update=function(){var i,r,t=this._core.clones().length/2,e=t+this._core.items().length,a=this._core.maximum(!0),o=this._core.settings,f=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if(o.slideBy!=="page"&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||o.slideBy=="page")for(this._pages=[],i=t,r=0,0;i<e;i++){if(r>=f||r===0){if(this._pages.push({start:Math.min(a,i-t),end:i-t+f-1}),Math.min(a,i-t)===a)break;r=0}r+=this._core.mergers(this._core.relative(i))}},l.prototype.draw=function(){var i,r=this._core.settings,t=this._core.items().length<=r.items,e=this._core.relative(this._core.current()),a=r.loop||r.rewind;this._controls.$relative.toggleClass("disabled",!r.nav||t),r.nav&&(this._controls.$previous.toggleClass("disabled",!a&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!r.dots||t),r.dots&&(i=this._pages.length-this._controls.$absolute.children().length,r.dotsData&&i!==0?this._controls.$absolute.html(this._templates.join("")):i>0?this._controls.$absolute.append(new Array(i+1).join(this._templates[0])):i<0&&this._controls.$absolute.children().slice(i).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(n.inArray(this.current(),this._pages)).addClass("active"))},l.prototype.onTrigger=function(i){var r=this._core.settings;i.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:r&&(r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items)}},l.prototype.current=function(){var i=this._core.relative(this._core.current());return n.grep(this._pages,n.proxy(function(r,t){return r.start<=i&&r.end>=i},this)).pop()},l.prototype.getPosition=function(i){var r,t,e=this._core.settings;return e.slideBy=="page"?(r=n.inArray(this.current(),this._pages),t=this._pages.length,i?++r:--r,r=this._pages[(r%t+t)%t].start):(r=this._core.relative(this._core.current()),t=this._core.items().length,i?r+=e.slideBy:r-=e.slideBy),r},l.prototype.next=function(i){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),i)},l.prototype.prev=function(i){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),i)},l.prototype.to=function(i,r,t){var e;!t&&this._pages.length?(e=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(i%e+e)%e].start,r)):n.proxy(this._overrides.to,this._core)(i,r)},n.fn.owlCarousel.Constructor.Plugins.Navigation=l})(window.Zepto||window.jQuery);(function(n,s,c,u){var l=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(r){r.namespace&&this._core.settings.startPosition==="URLHash"&&n(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(r){if(r.namespace){var t=n(r.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!t)return;this._hashes[t]=r.content}},this),"changed.owl.carousel":n.proxy(function(r){if(r.namespace&&r.property.name==="position"){var t=this._core.items(this._core.relative(this._core.current())),e=n.map(this._hashes,function(a,o){return a===t?o:null}).join();if(!e||s.location.hash.slice(1)===e)return;s.location.hash=e}},th
16is)},this._core.options=n.extend({},l.Defaults,this._core.options),this.$element.on(this._handlers),n(s).on("hashchange.owl.navigation",n.proxy(function(r){var t=s.location.hash.substring(1),e=this._core.$stage.children(),a=this._hashes[t]&&e.index(this._hashes[t]);a===u||a===this._core.current()||this._core.to(this._core.relative(a),!1,!0)},this))};l.Defaults={URLhashListener:!1},l.prototype.destroy=function(){var i,r;n(s).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=l})(window.Zepto||window.jQuery,window);(function(n,s,c,u){var l=n("<support>").get(0).style,i="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},t={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};function e(o,f){var g=!1,y=o.charAt(0).toUpperCase()+o.slice(1);return n.each((o+" "+i.join(y+" ")+y).split(" "),function(E,k){if(l[k]!==u)return g=f?k:!0,!1}),g}function a(o){return e(o,!0)}t.csstransitions()&&(n.support.transition=new String(a("transition")),n.support.transition.end=r.transition.end[n.support.transition]),t.cssanimations()&&(n.support.animation=new String(a("animation")),n.support.animation.end=r.animation.end[n.support.animation]),t.csstransforms()&&(n.support.transform=new String(a("transform")),n.support.transform3d=t.csstransforms3d())})(window.Zepto||window.jQuery);(function(){var n,s,c,u,l=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){for(var a in e)r.call(e,a)&&(t[a]=e[a]);function o(){this.constructor=t}return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t},r={}.hasOwnProperty;u=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(e){return e.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(e):this.add_option(e)},t.prototype.add_group=function(e){var a,o,f,g,y,E;for(a=this.parsed.length,this.parsed.push({array_index:a,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),y=e.childNodes,E=[],o=0,f=y.length;o<f;o++)g=y[o],E.push(this.add_option(g,a,e.disabled));return E},t.prototype.add_option=function(e,a,o){if(e.nodeName.toUpperCase()==="OPTION")return e.text!==""?(a!=null&&(this.parsed[a].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:o===!0?o:e.disabled,group_array_index:a,group_label:a!=null?this.parsed[a].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t}(),u.select_to_array=function(t){var e,a,o,f,g;for(f=new u,g=t.childNodes,a=0,o=g.length;a<o;a++)e=g[a],f.add_node(e);return f.parsed},s=function(){function t(e,a){this.form_field=e,this.options=a!=null?a:{},this.label_click_handler=l(this.label_click_handler,this),t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){return this.click_test_action=function(e){return function(a){return e.test_active_click(a)}}(this),this.activate_action=function(e){return function(a){return e.activate_field(a)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0,this.group_search=this.options.group_search!=null?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0,this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=this.options.hide_results_on_select!=null?this.options.hide_results_on_select:!0},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(e){return this.include_group_label_in_selected&&e.group_label!=null?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout(function(a){return function(){return a.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(a){return function(){return a.blur_test()}}(this),100)},t.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},t.prototype.results_option_build=function(e){var a,o,f,g,y,E,k;for(a="",k=0,E=this.results_data,g=0,y=E.length;g<y&&(o=E[g],f="",o.group?f=this.result_add_group(o):f=this.result_add_option(o),f!==""&&(k++,a+=f),e!=null&&e.first&&(o.selected&&this.is_multiple?this.choice_build(o):o.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(o))),!(k>=this.max_shown_results));g++);return a},t.prototype.result_add_option=function(e){var a,o;return!e.search_match||!this.include_option_in_results(e)?"":(a=[],
16!e.disabled&&!(e.selected&&this.is_multiple)&&a.push("active-result"),e.disabled&&!(e.selected&&this.is_multiple)&&a.push("disabled-result"),e.selected&&a.push("result-selected"),e.group_array_index!=null&&a.push("group-option"),e.classes!==""&&a.push(e.classes),o=document.createElement("li"),o.className=a.join(" "),e.style&&(o.style.cssText=e.style),o.setAttribute("data-option-array-index",e.array_index),o.innerHTML=e.highlighted_html||e.html,e.title&&(o.title=e.title),this.outerHTML(o))},t.prototype.result_add_group=function(e){var a,o;return!(e.search_match||e.group_match)||!(e.active_options>0)?"":(a=[],a.push("group-result"),e.classes&&a.push(e.classes),o=document.createElement("li"),o.className=a.join(" "),o.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(o.title=e.title),this.outerHTML(o))},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var e,a,o,f,g;for(o=this.results_data,g=[],e=0,a=o.length;e<a;e++)f=o[e],f.selected?g.push(f.selected=!1):g.push(void 0);return g},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(e){var a,o,f,g,y,E,k,D,R,b,p,O,N,C,B;for(this.no_results_clear(),b=0,k=this.get_search_text(),a=k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),R=this.get_search_regex(a),D=this.results_data,f=0,g=D.length;f<g;f++)y=D[f],y.search_match=!1,p=null,O=null,y.highlighted_html="",this.include_option_in_results(y)&&(y.group&&(y.group_match=!1,y.active_options=0),y.group_array_index!=null&&this.results_data[y.group_array_index]&&(p=this.results_data[y.group_array_index],p.active_options===0&&p.search_match&&(b+=1),p.active_options+=1),B=y.group?y.label:y.text,y.group&&!this.group_search||(O=this.search_string_match(B,R),y.search_match=O!=null,y.search_match&&!y.group&&(b+=1),y.search_match?(k.length&&(N=O.index,E=B.slice(0,N),o=B.slice(N,N+k.length),C=B.slice(N+k.length),y.highlighted_html=this.escape_html(E)+"<em>"+this.escape_html(o)+"</em>"+this.escape_html(C)),p!=null&&(p.group_match=!0)):y.group_array_index!=null&&this.results_data[y.group_array_index].search_match&&(y.search_match=!0)));if(this.result_clear_highlight(),b<1&&k.length)return this.update_results_content(""),this.no_results(k);if(this.update_results_content(this.results_option_build()),!(e!=null&&e.skip_highlight))return this.winnow_results_set_highlight()},t.prototype.get_search_regex=function(e){var a,o;return o=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(o="^"+o),a=this.case_sensitive_search?"":"i",new RegExp(o,a)},t.prototype.search_string_match=function(e,a){var o;return o=a.exec(e),!this.search_contains&&(o!=null&&o[1])&&(o.index+=1),o},t.prototype.choices_count=function(){var e,a,o,f;if(this.selected_option_count!=null)return this.selected_option_count;for(this.selected_option_count=0,f=this.form_field.options,e=0,a=f.length;e<a;e++)o=f[e],o.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!(this.results_showing||this.is_disabled))return this.results_show()},t.prototype.keydown_checker=function(e){var a,o;switch(o=(a=e.which)!=null?a:e.keyCode,this.search_field_scale(),o!==8&&this.pending_backstroke&&this.clear_backstroke(),o){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:this.results_showing&&e.preventDefault();break;case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow();break}},t.prototype.keyup_checker=function(e){var a,o;switch(o=(a=e.which)!=null?a:e.keyCode,this.search_field_scale(),o){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search();break}},t.prototype.clipboard_event_checker=function(e){if(!this.is_disabled)return setTimeout(function(a){return function(){return a.results_search()}}(this),50)},t.prototype.container_width=function(){return this.options.width!=null?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected||!this.display_disabled_options&&e.disabled||e.empty)},t.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},t.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},t.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},t.prototype.outerHTML=function(e){var a;return e.outerHTML?e.outerHTML:(a=document.createElement("div"),a.appendChild(e),a.innerHTML)},t.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n  <span>'+this.default_text+'</span>\n  <div><b></b></div>\n</a>\n<div class="chosen-drop">\n  <div class="chosen-search">\n    <input class="chosen-search-input" type="text" autocomplete="off" />\n  </div>\n  <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n  <li class="search-field">\n    <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n  </li>\n</ul>\n<div class="chosen-drop">\n  <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_no_results_html=function(e){return'<li class="no-results">\n  '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},t.browser_is_supported=function(){return window.navigator.appName==="Microsoft Internet Explorer"?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),n=jQuery,n.fn.extend({chosen:function(t){return s.browser_is_supported()?this.each(function(e){var a,o;if(a=n(this),o=a.data("chosen"),t==="destroy"){o instanceof c&&o.destroy();return}o instanceof c||a.data("chosen",new c(this,t))}):this}}),c=function(t){i(e,t);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.setup=function(){return this.form_field_jq=n(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},e.prototype.set_up_html=function(){var a,o;return a=["chosen-container"],a.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&a.push(this.form_field.className),this.is_rtl&&a.push("chosen-rtl"),o={class:a.join(" "),title:this.form_field.title},this.form_field.id.length&&(o.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=n("<div />",o),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},e.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},e.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(a){return function(o){a.container_mousedown(o)}}(this)),this.container.on("touchend.chosen",function(a){return function(o){a.container_mouseup(o)}}(this)),this.container.on("mousedown.chosen",function(a){return function(o){a.container_mousedown(o)}}(this)),this.container.on("mouseup.chosen",function(a){return function(o){a.container_mouseup(o)}}(this)),this.container.on("mouseenter.chosen",function(a){return function(o){a.mouse_enter(o)}}(this)),this.container.on("mouseleave.chosen",function(a){return function(o){a.mouse_leave(o)}}(this)),this.search_results.on("mouseup.chosen",function(a){return function(o){a.search_results_mouseup(o)}}(this)),this.search_results.on("mouseover.chosen",function(a){return function(o){a.search_results_mouseover(o)}}(this)),this.search_results.on("mouseout.chosen",function(a){return function(o){a.search_results_mouseout(o)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(a){return function(o){a.search_results_mousewheel(o)}}(this)),this.search_results.on("touchstart.chosen",function(a){return function(o){a.search_results_touchstart(o)}}(this)),this.search_results.on("touchmove.chosen",function(a){return function(o){a.search_results_touchmove(o)}}(this)),this.search_results.on("touchend.chosen",function(a){return function(o){a.search_results_touchend(o)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(a){return function(o){a.results_update_field(o)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(a){return function(o){a.activate_field(o)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(a){return function(o){a.container_mousedown(o)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(a){return function(o){a.close_field(o)}}(this)),this.search_field.on("blur.chosen",function(a){return function(o){a.input_blur(o)}}(this)),this.search_field.on("keyup.chosen",function(a){return function(o){a.keyup_checker(o)}}(this)),this.search_field.on("keydown.chosen",function(a){return function(o){a.keydown_checker(o)}}(this)),this.search_field.on("focus.chosen",function(a){return function(o){a.input_focus(o)}}(this)),this.search_field.on("cut.chosen",function(a){return function(o){a.clipboard_event_checker(o)}}(this)),this.search_field.on("paste.chosen",function(a){return function(o){a.clipboard_event_checker(o)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(a){return function(o){a.choices_click(o)}}(this)):this.container.on("click.chosen",function(a){a.preventDefault()})},e.prototype.destroy=function(){return n(this.container[0].ownerDocument).off("
16click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},e.prototype.search_field_disabled=function(){if(this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled)return this.close_field();if(!this.is_multiple)return this.selected_item.on("focus.chosen",this.activate_field)},e.prototype.container_mousedown=function(a){var o;if(!this.is_disabled&&(a&&((o=a.type)==="mousedown"||o==="touchstart")&&!this.results_showing&&a.preventDefault(),!(a!=null&&n(a.target).hasClass("search-choice-close"))))return this.active_field?!this.is_multiple&&a&&(n(a.target)[0]===this.selected_item[0]||n(a.target).parents("a.chosen-single").length)&&(a.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),n(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},e.prototype.container_mouseup=function(a){if(a.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(a)},e.prototype.search_results_mousewheel=function(a){var o;if(a.originalEvent&&(o=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),o!=null)return a.preventDefault(),a.type==="DOMMouseScroll"&&(o=o*40),this.search_results.scrollTop(o+this.search_results.scrollTop())},e.prototype.blur_test=function(a){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},e.prototype.close_field=function(){return n(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},e.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},e.prototype.test_active_click=function(a){var o;return o=n(a.target).closest(".chosen-container"),o.length&&this.container[0]===o[0]?this.active_field=!0:this.close_field()},e.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=u.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},e.prototype.result_do_highlight=function(a){var o,f,g,y,E;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),g=parseInt(this.search_results.css("maxHeight"),10),E=this.search_results.scrollTop(),y=g+E,f=this.result_highlight.position().top+this.search_results.scrollTop(),o=f+this.result_highlight.outerHeight(),o>=y)return this.search_results.scrollTop(o-g>0?o-g:0);if(f<E)return this.search_results.scrollTop(f)}},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},e.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},e.prototype.update_results_content=function(a){return this.search_results.html(a)},e.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},e.prototype.set_tab_index=function(a){var o;if(this.form_field.tabIndex)return o=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=o},e.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=n("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},e.prototype.search_results_mouseup=function(a){var o;if(o=n(a.target).hasClass("active-result")?n(a.target):n(a.target).parents(".active-result").first(),o.length)return this.result_highlight=o,this.result_select(a),this.search_field.focus()},e.prototype.search_results_mouseover=function(a){var o;if(o=n(a.target).hasClass("active-result")?n(a.target):n(a.target).parents(".active-result").first(),o)return this.result_do_highlight(o)}
16,e.prototype.search_results_mouseout=function(a){if(n(a.target).hasClass("active-result")||n(a.target).parents(".active-result").first())return this.result_clear_highlight()},e.prototype.choice_build=function(a){var o,f;return o=n("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(a)+"</span>"),a.disabled?o.addClass("search-choice-disabled"):(f=n("<a />",{class:"search-choice-close","data-option-array-index":a.array_index}),f.on("click.chosen",function(g){return function(y){return g.choice_destroy_link_click(y)}}(this)),o.append(f)),this.search_container.before(o)},e.prototype.choice_destroy_link_click=function(a){if(a.preventDefault(),a.stopPropagation(),!this.is_disabled)return this.choice_destroy(n(a.target))},e.prototype.choice_destroy=function(a){if(this.result_deselect(a[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()},e.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},e.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},e.prototype.result_select=function(a){var o,f;if(this.result_highlight)return o=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?o.removeClass("active-result"):this.reset_single_select_options(),o.addClass("result-selected"),f=this.results_data[o[0].getAttribute("data-option-array-index")],f.selected=!0,this.form_field.options[f.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(f):this.single_set_selected_text(this.choice_label(f)),this.is_multiple&&(!this.hide_results_on_select||a.metaKey||a.ctrlKey)?a.metaKey||a.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[f.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,a.preventDefault(),this.search_field_scale())},e.prototype.single_set_selected_text=function(a){return a==null&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(a)},e.prototype.result_deselect=function(a){var o;return o=this.results_data[a],this.form_field.options[o.options_index].disabled?!1:(o.selected=!1,this.form_field.options[o.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[o.options_index].value}),this.search_field_scale(),!0)},e.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},e.prototype.get_search_field_value=function(){return this.search_field.val()},e.prototype.get_search_text=function(){return n.trim(this.get_search_field_value())},e.prototype.escape_html=function(a){return n("<div/>").text(a).html()},e.prototype.winnow_results_set_highlight=function(){var a,o;if(o=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=o.length?o.first():this.search_results.find(".active-result").first(),a!=null)return this.result_do_highlight(a)},e.prototype.no_results=function(a){var o;return o=this.get_no_results_html(a),this.search_results.append(o),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},e.prototype.keydown_arrow=function(){var a;if(this.results_showing&&this.result_highlight){if(a=this.result_highlight.nextAll("li.active-result").first(),a)return this.result_do_highlight(a)}else return this.results_show()},e.prototype.keyup_arrow=function(){var a;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())},e.prototype.keydown_backstroke=function(){var a;if(this.pending_backstroke)return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke();if(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled"))return this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},e.prototype.search_field_scale=function(){var a,o,f,g,y,E,k;if(this.is_multiple){for(y={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},E=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"],o=0,f=E.length;o<f;o++)g=E[o],y[g]=this.search_field.css(g);return a=n("<div />").css(y),a.text(this.get_search_field_value()),n("body").append(a),k=a.width()+25,a.remove(),this.container.is(":visible")&&(k=Math.min(this.container.outerWidth()-10,k)),this.search_field.width(k)}},e.prototype.trigger_form_field_change=function(a){return this.form_field_jq.trigger("input",a),this.form_field_jq.trigger("change",a)},e}(s)}).call(void 0);/*!
17 * jQuery UI Datepicker 1.13.3
18 * https://jqueryui.com
19 *
20 * Copyright OpenJS Foundation and other contributors
21 * Released under the MIT license.
22 * https://jquery.org/license
23 */(function(n){typeof define=="function"&&define.amd?define(["jquery","../version","../keycode"],n):n(jQuery)})(function(n){n.extend(n.ui,{datepicker:{version:"1.13.3"}});var s;function c(t){for(var e,a;t.length&&t[0]!==document;){if(e=t.css("position"),(e==="absolute"||e==="relative"||e==="fixed")&&(a=parseInt(t.css("zIndex"),10),!isNaN(a)&&a!==0))return a;t=t.parent()}return 0}function u(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 4,330 bytes, line 23
23ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},n.extend(this._defaults,this.regional[""]),this.regional.en=n.extend(!0,{},this.regional[""]),this.regional["en-US"]=n.extend(!0,{},this.regional.en),this.dpDiv=l(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}n.extend(u.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var a,o,f;a=t.nodeName.toLowerCase(),o=a==="div"||a==="span",t.id||(this.uuid+=1,t.id="dp"+this.uuid),f=this._newInst(n(t),o),f.settings=n.extend({},e||{}),a==="input"?this._connectDatepicker(t,f):o&&this._inlineDatepicker(t,f)},_newInst:function(t,e){var a=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:a,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?l(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var a=n(t);e.append=n([]),e.trigger=n([]),!a.hasClass(this.markerClassName)&&(this._attachments(a,e),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),n.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var a,o,f,g=this._get(e,"appendText"),y=this._get(e,"isRTL");e.append&&e.append.remove(),g&&(e.append=n("<span>").addClass(this._appendClass).text(g),t[y?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),a=this._get(e,"showOn"),(a==="focus"||a==="both")&&t.on("focus",this._showDatepicker),(a==="button"||a==="both")&&(o=this._get(e,"buttonText"),f=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=n("<img>").addClass(this._triggerClass).attr({src:f,alt:o,title:o}):(e.trigger=n("<button type='button'>").addClass(this._triggerClass),f?e.trigger.html(n("<img>").attr({src:f,alt:o,title:o})):e.trigger.text(o)),t[y?"before":"after"](e.trigger),e.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():(n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]&&n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,a,o,f,g=new Date(2009,11,20),y=this._get(t,"dateFormat");y.match(/[DM]/)&&(e=function(E){for(a=0,o=0,f=0;f<E.length;f++)E[f].length>a&&(a=E[f].length,o=f);return o},g.setMonth(e(this._get(t,y.match(/MM/)?"monthNames":"monthNamesShort"))),g.setDate(e(this._get(t,y.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())),t.input.attr("size",this._formatDate(t,g).length)}},_inlineDatepicker:function(t,e){var a=n(t);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(e.dpDiv),n.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,a,o,f){var g,y,E,k,D,R=this._dialogInst;return R||(this.uuid+=1,g="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+g+"' style='position: absolute; top: -100px; width: 0px;'/>
23"),this._dialogInput.on("keydown",this._doKeyDown),n("body").append(this._dialogInput),R=this._dialogInst=this._newInst(this._dialogInput,!1),R.settings={},n.data(this._dialogInput[0],"datepicker",R)),r(R.settings,o||{}),e=e&&e.constructor===Date?this._formatDate(R,e):e,this._dialogInput.val(e),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(y=document.documentElement.clientWidth,E=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,D=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[y/2-100+k,E/2-150+D]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),R.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",R),this},_destroyDatepicker:function(t){var e,a=n(t),o=n.data(t,"datepicker");a.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),e==="input"?(o.append.remove(),o.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(e==="div"||e==="span")&&a.removeClass(this.markerClassName).empty(),s===o&&(s=null,this._curInst=null))},_enableDatepicker:function(t){var e,a,o=n(t),f=n.data(t,"datepicker");o.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),e==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(e==="div"||e==="span")&&(a=o.children("."+this._inlineClass),a.children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(g){return g===t?null:g}))},_disableDatepicker:function(t){var e,a,o=n(t),f=n.data(t,"datepicker");o.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),e==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(e==="div"||e==="span")&&(a=o.children("."+this._inlineClass),a.children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(g){return g===t?null:g}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,a){var o,f,g,y,E=this._getInst(t);if(arguments.length===2&&typeof e=="string")return e==="defaults"?n.extend({},n.datepicker._defaults):E?e==="all"?n.extend({},E.settings):this._get(E,e):null;o=e||{},typeof e=="string"&&(o={},o[e]=a),E&&(this._curInst===E&&this._hideDatepicker(),f=this._getDateDatepicker(t,!0),g=this._getMinMaxDate(E,"min"),y=this._getMinMaxDate(E,"max"),r(E.settings,o),g!==null&&o.dateFormat!==void 0&&o.minDate===void 0&&(E.settings.minDate=this._formatDate(E,g)),y!==null&&o.dateFormat!==void 0&&o.maxDate===void 0&&(E.settings.maxDate=this._formatDate(E,y)),"disabled"in o&&(o.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),E),this._autoSize(E),this._setDate(E,f),this._updateAlternate(E),this._updateDatepicker(E))},_changeDatepicker:function(t,e,a){this._optionDatepicker(t,e,a)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var a=this._getInst(t);a&&(this._setDate(a,e),this._updateDatepicker(a),this._updateAlternate(a))},_getDateDatepicker:function(t,e){var a=this._getInst(t);return a&&!a.inline&&this._setDateFromField(a,e),a?this._getDate(a):null},_doKeyDown:function(t){var e,a,o,f=n.datepicker._getInst(t.target),g=!0,y=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker(),g=!1;break;case 13:return o=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",f.dpDiv),o[0]&&n.datepicker._selectDay(t.target,f.selectedMonth,f.selectedYear,o[0]),e=n.datepicker._get(f,"onSelect"),e?(a=n.datepicker._formatDate(f),e.apply(f.input?f.input[0]:null,[a,f])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(f,"stepBigMonths"):-n.datepicker._get(f,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(f,"stepBigMonths"):+n.datepicker._get(f,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target),g=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target),g=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,y?1:-1,"D"),g=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(f,"stepBigMonths"):-n.datepicker._get(f,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D"),g=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,y?-1:1,"D"),g=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(f,"stepBigMonths"):+n.datepicker._get(f,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D"),g=t.ctrlKey||t.metaKey;break;default:g=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):g=!1;g&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,a,o=n.datepicker._getInst(t.target);if(n.datepicker._get(o,"constrainInput"))return e=n.datepicker._possibleChars(n.datepicker._get(o,"dateFormat")),a=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||a<" "||!e||e.indexOf(a)>-1},_doKeyUp:function(t){var e,a=n.datepicker._getInst(t.target);if(a.input.val()!==a.lastVal)try{e=n.datepicker.parseDate(n.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,n.datepicker._getFormatConfig(a)),e&&(n.datepicker._setDateFromField(a),n.datepicker._updateAlternate(
vendor: 25,285 bytes, line 23
23a),n.datepicker._updateDatepicker(a))}catch(o){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!(n.datepicker._isDisabledDatepicker(t)||n.datepicker._lastInput===t)){var e,a,o,f,g,y,E;e=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==e&&(n.datepicker._curInst.dpDiv.stop(!0,!0),e&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),a=n.datepicker._get(e,"beforeShow"),o=a?a.apply(t,[t,e]):{},o!==!1&&(r(e.settings,o),e.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(e),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),f=!1,n(t).parents().each(function(){return f|=n(this).css("position")==="fixed",!f}),g={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(e),g=n.datepicker._checkOffset(e,g,f),e.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":f?"fixed":"absolute",display:"none",left:g.left+"px",top:g.top+"px"}),e.inline||(y=n.datepicker._get(e,"showAnim"),E=n.datepicker._get(e,"duration"),e.dpDiv.css("z-index",c(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[y]?e.dpDiv.show(y,n.datepicker._get(e,"showOptions"),E):e.dpDiv[y||"show"](y?E:null),n.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),n.datepicker._curInst=e))}},_updateDatepicker:function(t){this.maxRows=4,s=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,a=this._getNumberOfMonths(t),o=a[1],f=17,g=t.dpDiv.find("."+this._dayOverClass+" a"),y=n.datepicker._get(t,"onUpdateDatepicker");g.length>0&&i.apply(g.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",f*o+"em"),t.dpDiv[(a[0]!==1||a[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),y&&y.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,a){var o=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),g=t.input?t.input.outerWidth():0,y=t.input?t.input.outerHeight():0,E=document.documentElement.clientWidth+(a?0:n(document).scrollLeft()),k=document.documentElement.clientHeight+(a?0:n(document).scrollTop());return e.left-=this._get(t,"isRTL")?o-g:0,e.left-=a&&e.left===t.input.offset().left?n(document).scrollLeft():0,e.top-=a&&e.top===t.input.offset().top+y?n(document).scrollTop():0,e.left-=Math.min(e.left,e.left+o>E&&E>o?Math.abs(e.left+o-E):0),e.top-=Math.min(e.top,e.top+f>k&&k>f?Math.abs(f+y):0),e},_findPos:function(t){for(var e,a=this._getInst(t),o=this._get(a,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.pseudos.hidden(t));)t=t[o?"previousSibling":"nextSibling"];return e=n(t).offset(),[e.left,e.top]},_hideDatepicker:function(t){var e,a,o,f,g=this._curInst;!g||t&&g!==n.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(g,"showAnim"),a=this._get(g,"duration"),o=function(){n.datepicker._tidyDialog(g)},n.effects&&(n.effects.effect[e]||n.effects[e])?g.dpDiv.hide(e,n.datepicker._get(g,"showOptions"),a,o):g.dpDiv[e==="slideDown"?"slideUp":e==="fadeIn"?"fadeOut":"hide"](e?a:null,o),e||o(),this._datepickerShowing=!1,f=this._get(g,"onClose"),f&&f.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var e=n(t.target),a=n.datepicker._getInst(e[0]);(e[0].id!==n.datepicker._mainDivId&&e.parents("#"+n.datepicker._mainDivId).length===0&&!e.hasClass(n.datepicker.markerClassName)&&!e.closest("."+n.datepicker._triggerClass).length&&n.datepicker._datepickerShowing&&!(n.datepicker._inDialog&&n.blockUI)||e.hasClass(n.datepicker.markerClassName)&&n.datepicker._curInst!==a)&&n.datepicker._hideDatepicker()}},_adjustDate:function(t,e,a){var o=n(t),f=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(f,e,a),this._updateDatepicker(f))},_gotoToday:function(t){var e,a=n(t),o=this._getInst(a[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(e=new Date,o.selectedDay=e.getDate(),o.drawMonth=o.selectedMonth=e.getMonth(),o.drawYear=o.selectedYear=e.getFullYear()),this._notifyChange(o),this._adjustDate(a)},_selectMonthYear:function(t,e,a){var o=n(t),f=this._getInst(o[0]);f["selected"+(a==="M"?"Month":"Year")]=f["draw"+(a==="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(o)},_selectDay:function(t,e,a,o){var f,g=n(t);n(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=parseInt(n("a",o).attr("data-date")),f.selectedMonth=f.currentMonth=e,f.selectedYear=f.currentYear=a,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var e=n(t);this._selectDate(e,"")},_selectDate:function(t,e){var a,o=n(t),f=this._getInst(o[0]);e=e!=null?e:this._formatDate(f),f.input&&f.input.val(e),this._updateAlternate(f),a=this._get(f,"onSelect"),a?a.apply(f.input?f.input[0]:null,[e,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],typeof f.input[0]!="object"&&f.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,a,o,f=this._get(t,"altField");f&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),a=this._getDate(t),o=this.formatDate(e,a,this._getFormatConfig(t)),n(document).find(f).val(o))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,a=new Date(t.getTime());return a.setDate(a.getDate()+4-(a.getDay()||7)),e=a.getTime(),a.setMonth(0),a.setDate(1),Math.floor(Math.round((e-a)/864e5)/7)+1},parseDate:function(t,e,a){if(t==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;var o,f,g,y=0,E=(a?a.shortYearCutoff:null)||this._defaults.shortYearCutoff,k=typeof E!="string"?E:new Date().getFullYear()%100+parseInt(E,10),D=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,R=(a?a.dayNames:null)||this._defaults.dayNames,b=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,p=(a?a.monthNames:null)||this._defaults.monthNames,O=-1,N=-1,C=-1,B=-1,F=!1,V,te=function(K){var se=o+1<t.length&&t.charAt(o+1)===K;return se&&o++,se},W=function(K){var se=te(K),_e=K==="@"?14:K==="!"?20:K==="y"&&se?4:K==="o"?3:2,ke=K==="y"?_e:1,me=new RegExp("^\\d{"+ke+","+_e+"}"),ye=e.substring(y).match(me);if(!ye)throw"Missing number at position "+y;return y+=ye[0].length,parseInt(ye[0],10)},U=function(K,se,_e){var ke=-1,me=n.map(te(K)?_e:se,function(ye,$e){return[[$e,ye]]}).sort(function(ye,$e){return-(ye[1].length-$e[1].length)});if(n.each(me,function(ye,$e){var T=$e[1];if(e.substr(y,T.length).toLowerCase()===T.toLowerCase())return ke=$e[0],y+=T.length,!1}),ke!==-1)return ke+1;throw"Unknown name at position "+y},ne=function(){if(e.charAt(y)!==t.charAt(o))throw"Unexpected literal at position "+y;y++};for(o=0;o<t.length;o++)if(F)t.charAt(o)==="'"&&!te("'")?F=!1:ne();else switch(t.charAt(o)){case"d":C=W("d");break;case"D":U("D",D,R);break;case"o":B=W("o");break;case"m":N=W("m");break;case"M":N=U("M",b,p);break;case"y":O=W("y");break;case"@":V=new Date(W("@")),O=V.getFullYear(),N=V.getMonth()+1,C=V.getDate();break;case"!":V=new Date((W("!")-this._ticksTo1970)/1e4),O=V.getFullYear(),N=V.getMonth()+1,C=V.getDate();break;case"'":te("'")?ne():F=!0;break;default:ne()}if(y<e.length&&(g=e.substr(y),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(O===-1?O=new Date().getFullYear():O<100&&(O+=new Date().getFullYear()-new Date().getFullYear()%100+(O<=k?0:-100)),B>-1){N=1,C=B;do{if(f=this._getDaysInMonth(O,N-1),C<=f)break;N++,C-=f}while(!0)}if(V=this._daylightSavingAdjust(new Date(O,N-1,C)),V.getFullYear()!==O||V.getMonth()+1!==N||V.getDate()!==C)throw"Invalid date";return V},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";var o,f=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,g=(a?a.dayNames:null)||this._defaults.dayNames,y=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,E=(a?a.monthNames:null)||this._defaults.monthNames,k=function(O){var N=o+1<t.length&&t.charAt(o+1)===O;return N&&o++,N},D=function(O,N,C){var B=""+N;if(k(O))for(;B.length<C;)B="0"+B;return B},R=function(O,N,C,B){return k(O)?B[N]:C[N]},b="",p=!1;if(e)for(o=0;o<t.length;o++)if(p)t.charAt(o)==="'"&&!k("'")?p=!1:b+=t.charAt(o);else switch(t.charAt(o)){case"d":b+=D("d",e.getDate(),2);break;case"D":b+=R("D",e.getDay(),f,g);break;case"o":b+=D("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":b+=D("m",e.getMonth()+1,2);break;case"M":b+=R("M",e.getMonth(),y,E);break;case"y":b+=k("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":b+=e.getTime();break;case"!":b+=e.getTime()*1e4+this._ticksTo1970;break;case"'":k("'")?b+="'":p=!0;break;default:b+=t.charAt(o)}return b},_possibleChars:function(t){var e,a="",o=!1,f=function(g){var y=e+1<t.length&&t.charAt(e+1)===g;return y&&e++,y};for(e=0;e<t.length;e++)if(o)t.charAt(e)==="'"&&!f("'")?o=!1:a+=t.charAt(e);else switch(t.charAt(e)){case"d":case"m":case"y":case"@":a+="0123456789";break;case"D":case"M":return null;case"'":f("'")?a+="'":o=!0;break;default:a+=t.charAt(e)}return a},_get:function(t,e){return t.settings[e]!==void 0?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var a=this._get(t,"dateFormat"),o=t.lastVal=t.input?t.input.val():null,f=this._getDefaultDate(t),g=f,y=this._getFormatConfig(t);try{g=this.parseDate(a,o,y)||f}catch(E){o=e?"":o}t.selectedDay=g.getDate(),t.drawMonth=t.selectedMonth=g.getMonth(),t.drawYear=t.selectedYear=g.getFullYear(),t.currentDay=o?g.getDate():0,t.currentMonth=o?g.getMonth():0,t.currentYear=o?g.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,a){var o=function(y){var E=new Date;return E.setDate(E.getDate()+y),E},f=function(y){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),y,n.datepicker._getFormatConfig(t))}catch(O){}for(var E=(y.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,k=E.getFullYear(),D=E.getMonth(),R=E.getDate(),b=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,p=b.exec(y);p;){switch(p[2]||"d"){case"d":case"D":R+=parseInt(p[1],10);break;case"w":case"W":R+=parseInt(p[1],10)*7;break;case"m":case"M":D+=parseInt(p[1],10),R=Math.min(R,n.datepicker._getDaysInMonth(k,D));break;case"y":case"Y":k+=parseInt(p[1],10),R=Math.min(R,n.datepicker._getDaysInMonth(k,D));break}p=b.exec(y)}return new Date(k,D,R)},g=e==null||e===""?a:typeof e=="string"?f(e):typeof e=="number"?isNaN(e)?a:o(e):new Date(e.getTime());return g=g&&g.toString()==="Invalid Date"?a:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,a){var o=!e,f=t.selectedMonth,g=t.selectedYear,y=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=y.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=y.getMonth(),t.drawYear=t.selectedYear=t.currentYear=y.getFullYear(),(f!==t.selectedMonth||g!==t.selectedYear)&&!a&&this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(o?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&t.input.val()===""?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),a="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var o={prev:function(){n.datepicker._adjustDate(a,-e,"M")},next:function(){n.datepicker._adjustDate(a,+e,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(a)},selectDay:function(){return n.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(a,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),o[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,a,o,f,g,y,E,k,D,R,b,p,O,N,C,B,F,V,te,W,U,ne,K,se,_e,ke,me,ye,$e,T,x,v,S,M,j,z,Y,q,G,ee=new Date,he=this._daylightSavingAdjust(new Date(ee.getFullYear(),ee.getMonth(),ee.getDate())),fe=this._get(t,"isRTL"),pe=this._get(t,"showButtonPanel"),Ce=this._get(t,"hideIfNoPrevNext"),Te=this._get(t,"navigationAsDateFormat"),Ae=this._getNumberOfMonths(t),Me=this._get(t,"showCurrentAtPos"),Ee=this._get(t,"stepMonths"),Se=Ae[0]!==1||Ae[1]!==1,xe=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),ge=this._getMinMaxDate(t,"min"),ve=this._getMinMaxDate(t,"max"),we=t.drawMonth-Me,Ne=t.drawYear;if(we<0&&(we+=12,Ne--),ve)for(e=this._daylightSavingAdjust(new Date(ve.getFullYear(),ve.getMonth()-Ae[0]*Ae[1]+1,ve.getDate())),e=ge&&e<ge?ge:e;this._daylightSavingAdjust(new Date(Ne,we,1))>e;)we--,we<0&&(we=11,Ne--);for(t.drawMonth=we,t.drawYear=Ne,a=this._get(t,"prevText"),a=Te?this.formatDate(a,this._daylightSavingAdjust(new Date(Ne,we-Ee,1)),this._getFormatConfig(t)):a,this._canAdjustMonth(t,-1,Ne,we)?o=n("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:a}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(fe?"e":"w")).text(a))[0].outerHTML:Ce?o="":o=n("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:a}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(fe?"e":"w")).text(a))[0].outerHTML,f=this._get(t,"nextText"),f=Te?this.formatDate(f,this._daylightSavingAdjust(new Date(Ne,we+Ee,1)),this._getFormatConfig(t)):f,this._canAdjustMonth(t,1,Ne,we)?g=n("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:f}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(fe?"w":"e")).text(f))[0].outerHTML:Ce?g="":g=n("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:f}).append(n("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(fe?"w":"e")).text(f))[0].outerHTML,y=this._get(t,"currentText"),E=this._get(t,"gotoCurrent")&&t.currentDay?xe:he,y=Te?this.formatDate(y,E,this._getFormatConfig(t)):y,k="",t.inline||(k=n("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),D="",pe&&(D=n("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(fe?k:"").append(this._isInRange(t,E)?n("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(y):"").append(fe?"":k)[0].outerHTML),R=parseInt(this._get(t,"firstDay"),10),R=isNaN(R)?0:R,b=this._get(t,"showWeek"),p=this._get(t,"dayNames"),O=this._get(t,"dayNamesMin"),N=this._get(t,"monthNames"),C=this._get(t,"monthNamesShort"),B=this._get(t,"beforeShowDay"),F=this._get(t,"showOtherMonths"),V=this._get(t,"selectOtherMonths"),te=this._getDefaultDate(t),W="",ne=0;ne<Ae[0];ne++){for(K="",this.maxRows=4,se=0;se<Ae[1];se++){if(_e=this._daylightSavingAdjust(new Date(Ne,we,t.selectedDay)),ke=" ui-corner-all",me="",Se){if(me+="<div class='ui-datepicker-group",Ae[1]>1)switch(se){case 0:me+=" ui-datepicker-group-first",ke=" ui-corner-"+(fe?"right":"left");break;case Ae[1]-1:me+=" ui-datepicker-group-last",ke=" ui-corner-"+(fe?"left":"right");break;default:me+=" ui-datepicker-group-middle",ke="";break}me+="'>"}for(me+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+ke+"'>"+(/all|left/.test(ke)&&ne===0?fe?g:o:"")+(/all|right/.test(ke)&&ne===0?fe?o:g:"")+this._generateMonthYearHeader(t,we,Ne,ge,ve,ne>0||se>0,N,C)+"</div><table class='ui-datepicker-calendar'><thead><tr>",ye=b?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",U=0;U<7;U++)$e=(U+R)%7,ye+="<th scope='col'"+((U+R+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[$e]+"'>"+O[$e]+"</span></th>";for(me+=ye+"</tr></thead><tbody>",T=this._getDaysInMonth(Ne,we),Ne===t.selectedYear&&we===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,T)),x=(this._getFirstDayOfMonth(Ne,we)-R+7)%7,v=Math.ceil((x+T)/7),S=Se&&this.maxRows>v?this.maxRows:v,this.maxRows=S,M=this._daylightSavingAdjust(new Date(Ne,we,1-x)),j=0;j<S;j++){for(me+="<tr>",z=b?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(M)+"</td>":"",U=0;U<7;U++)Y=B?B.apply(t.input?t.input[0]:null,[M]):[!0,""],q=M.getMonth()!==we,G=q&&!V||!Y[0]||ge&&M<ge||ve&&M>ve,z+="<td class='"+((U+R+6)%7>=5?" ui-datepicker-week-end":"")+(q?" ui-datepicker-other-month":"")+(M.getTime()===_e.getTime()&&we===t.selectedMonth&&t._keyEvent||te.getTime()===M.getTime()&&te.getTime()===_e.getTime()?" "+this._dayOverClass:"")+(G?" "+this._unselectableClass+" ui-state-disabled":"")+(q&&!F?"":" "+Y[1]+(M.getTime()===xe.getTime()?" "+this._currentClass:"")+(M.getTime()===he.getTime()?" ui-datepicker-today":""))+"'"+((!q||F)&&Y[2]?" title='"+Y[2].replace(/'/g,"&#39;")+"'":"")+(G?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(q&&!F?"&#xa0;":G?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===he.getTime()?" ui-state-highlight":"")+(M.getTime()===xe.getTime()?" ui-state-active":"")+(q?" ui-priority-secondary":"")+"' href='#' aria-current='"+(M.getTime()===xe.getTime()?"true":"false")+"' data-date='"+M.getDate()+"'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);me+=z+"</tr>"}we++,we>11&&(we=0,Ne++),me+="</tbody></table>"+(Se?"</div>"+(Ae[0]>0&&se===Ae[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),K+=me}W+=K}return W+=D,t._keyEvent=!1,W},_generateMonthYearHeader:function(t,e,a,o,f,g,y,E){var k,D,R,b,p,O,N,C,B=this._get(t,"changeMonth"),F=this._get(t,"changeYear"),V=this._get(t,"showMonthAfterYear"),te=this._get(t,"selectMonthLabel"),W=this._get(t,"selectYearLabel"),U="<div class='ui-datepicker-title'>",ne="";if(g||!B)ne+="<span class='ui-datepicker-month'>"+y[e]+"</span>";else{for(k=o&&o.getFullYear()===a,D=f&&f.getFullYear()===a,ne+="<select class='ui-datepicker-month' aria-label='"+te+"' data-handler='selectMonth' data-event='change'>",R=0;R<12;R++)(!k||R>=o.getMonth())&&(!D||R<=f.getMonth())&&(ne+="<option value='"+R+"'"+(R===e?" selected='selected'":"")+">"+E[R]+"</option>");ne+="</select>"}if(V||(U+=ne+(g||!(B&&F)?"&#xa0;":"")),!t.yearshtml)if(t.yearshtml="",g||!F)U+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(b=this._get(t,"yearRange").split(":"),p=new Date().getFullYear(),O=function(K){var se=K.match(/c[+\-].*/)?a+parseInt(K.substring(1),10):K.match(/[+\-].*/)?p+parseInt(K,10):parseInt(K,10);return isNaN(se)?p:se},N=O(b[0]),C=Math.max(N,O(b[1]||"")),N=o?Math.max(N,o.getFullYear()):N,C=f?Math.min(C,f.getFullYear()):C,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+W+"' data-handler='selectYear' data-event='change'>";N<=C;N++)t.yearshtml+="<option value='"+N+"'"+(N===a?" selected='selected'":"")+">"+N+"</option>";t.yearshtml+="</select>",U+=t.yearshtml,t.yearshtml=null}return U+=this._get(t,"yearSuffix"),V&&(U+=(g||!(B&&F)?"&#xa0;":"")+ne),U+="</div>",U},_adjustInstDate:function(t,e,a){var o=t.selectedYear+(a==="Y"?e:0),f=t.selectedMonth+(a==="M"?e:0),g=Math.min(t.selectedDay,this._getDaysInMonth(o,f))+(a==="D"?e:0),y=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(o,f,g)));t.selectedDay=y.getDate(),t.drawMonth=t.selectedMonth=y.getMonth(),t.drawYear=t.selectedYear=y.getFullYear(),(a==="M"||a==="Y")&&this._notifyChange(t)},_restrictMinMax:function(t,e){var a=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),f=a&&e<a?a:e;return o&&f>o?o:f},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return e==null?[1,1]:typeof e=="number"?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,a,o){var f=this._getNumberOfMonths(t),g=this._daylightSavingAdjust(new Date(a,o+(e<0?e:f[0]*f[1]),1));return e<0&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth())),this._isInRange(t,g)},_isInRange:function(t,e){var a,o,f=this._getMinMaxDate(t,"min"),g=this._getMinMaxDate(t,"max"),y=null,E=null,k=this._get(t,"yearRange");return k&&(a=k.split(":"),o=new Date().getFullYear(),y=parseInt(a[0],10),E=parseInt(a[1],10),a[0].match(/[+\-].*/)&&(y+=o),a[1].match(/[+\-].*/)&&(E+=o)),(!f||e.getTime()>=f.getTime())&&(!g||e.getTime()<=g.getTime())&&(!y||e.getFullYear()>=y)&&(!E||e.getFullYear()<=E)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e=typeof e!="string"?e:new Date().getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,a,o){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var f=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(o,a,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),f,this._getFormatConfig(t))}});function l(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){n(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,i)}function i(){n.datepicker._isDisabledDatepicker(s.inline?s.dpDiv.parent()[0]:s.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function r(t,e){n.extend(t,e);for(var a in e)e[a]==null&&(t[a]=e[a]);return t}return n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).on("mousedown",n.datepicker._checkExternalClick),n.datepicker.initialized=!0),n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(e)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(e)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(e)):n.datepicker._attachDatepicker(this,t)})},n.datepicker=new u,n.datepicker.initialized=!1,n.datepicker.uuid=new Date().getTime(),n.datepicker.version="1.13.3",n.datepicker});function ts(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}
23var Fa={exports:{}};(function(n,s){(function(c){n.exports=c()})(function(){return function c(u,l,i){function r(a,o){if(!l[a]){if(!u[a]){var f=typeof ts=="function"&&ts;if(!o&&f)return f(a,!0);if(t)return t(a,!0);var g=new Error("Cannot find module '"+a+"'");throw g.code="MODULE_NOT_FOUND",g}var y=l[a]={exports:{}};u[a][0].call(y.exports,function(E){var k=u[a][1][E];return r(k||E)},y,y.exports,c,u,l,i)}return l[a].exports}for(var t=typeof ts=="function"&&ts,e=0;e<i.length;e++)r(i[e]);return r}({1:[function(c,u,l){u.exports=function(i){var r,t,e,a=-1;if(i.lines.length>1&&i.style.alignContent==="flex-start")for(r=0;e=i.lines[++a];)e.crossStart=r,r+=e.cross;else if(i.lines.length>1&&i.style.alignContent==="flex-end")for(r=i.flexStyle.crossSpace;e=i.lines[++a];)e.crossStart=r,r+=e.cross;else if(i.lines.length>1&&i.style.alignContent==="center")for(r=i.flexStyle.crossSpace/2;e=i.lines[++a];)e.crossStart=r,r+=e.cross;else if(i.lines.length>1&&i.style.alignContent==="space-between")for(t=i.flexStyle.crossSpace/(i.lines.length-1),r=0;e=i.lines[++a];)e.crossStart=r,r+=e.cross+t;else if(i.lines.length>1&&i.style.alignContent==="space-around")for(t=2*i.flexStyle.crossSpace/(2*i.lines.length),r=t/2;e=i.lines[++a];)e.crossStart=r,r+=e.cross+t;else for(t=i.flexStyle.crossSpace/i.lines.length,r=i.flexStyle.crossInnerBefore;e=i.lines[++a];)e.crossStart=r,e.cross+=t,r+=e.cross}},{}],2:[function(c,u,l){u.exports=function(i){for(var r,t=-1;line=i.lines[++t];)for(r=-1;child=line.children[++r];){var e=child.style.alignSelf;e==="auto"&&(e=i.style.alignItems),e==="flex-start"?child.flexStyle.crossStart=line.crossStart:e==="flex-end"?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:e==="center"?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(c,u,l){u.exports=function(i,r){var t=r==="row"||r==="row-reverse",e=i.mainAxis;if(e){var a=t&&e==="inline"||!t&&e==="block";a||(i.flexStyle={main:i.flexStyle.cross,cross:i.flexStyle.main,mainOffset:i.flexStyle.crossOffset,crossOffset:i.flexStyle.mainOffset,mainBefore:i.flexStyle.crossBefore,mainAfter:i.flexStyle.crossAfter,crossBefore:i.flexStyle.mainBefore,crossAfter:i.flexStyle.mainAfter,mainInnerBefore:i.flexStyle.crossInnerBefore,mainInnerAfter:i.flexStyle.crossInnerAfter,crossInnerBefore:i.flexStyle.mainInnerBefore,crossInnerAfter:i.flexStyle.mainInnerAfter,mainBorderBefore:i.flexStyle.crossBorderBefore,mainBorderAfter:i.flexStyle.crossBorderAfter,crossBorderBefore:i.flexStyle.mainBorderBefore,crossBorderAfter:i.flexStyle.mainBorderAfter})}else t?i.flexStyle={main:i.style.width,cross:i.style.height,mainOffset:i.style.offsetWidth,crossOffset:i.style.offsetHeight,mainBefore:i.style.marginLeft,mainAfter:i.style.marginRight,crossBefore:i.style.marginTop,crossAfter:i.style.marginBottom,mainInnerBefore:i.style.paddingLeft,mainInnerAfter:i.style.paddingRight,crossInnerBefore:i.style.paddingTop,crossInnerAfter:i.style.paddingBottom,mainBorderBefore:i.style.borderLeftWidth,mainBorderAfter:i.style.borderRightWidth,crossBorderBefore:i.style.borderTopWidth,crossBorderAfter:i.style.borderBottomWidth}:i.flexStyle={main:i.style.height,cross:i.style.width,mainOffset:i.style.offsetHeight,crossOffset:i.style.offsetWidth,mainBefore:i.style.marginTop,mainAfter:i.style.marginBottom,crossBefore:i.style.marginLeft,crossAfter:i.style.marginRight,mainInnerBefore:i.style.paddingTop,mainInnerAfter:i.style.paddingBottom,crossInnerBefore:i.style.paddingLeft,crossInnerAfter:i.style.paddingRight,mainBorderBefore:i.style.borderTopWidth,mainBorderAfter:i.style.borderBottomWidth,crossBorderBefore:i.style.borderLeftWidth,crossBorderAfter:i.style.borderRightWidth},i.style.boxSizing==="content-box"&&(typeof i.flexStyle.main=="number"&&(i.flexStyle.main+=i.flexStyle.mainInnerBefore+i.flexStyle.mainInnerAfter+i.flexStyle.mainBorderBefore+i.flexStyle.mainBorderAfter),typeof i.flexStyle.cross=="number"&&(i.flexStyle.cross+=i.flexStyle.crossInnerBefore+i.flexStyle.crossInnerAfter+i.flexStyle.crossBorderBefore+i.flexStyle.crossBorderAfter));
vendor: 11,133 bytes, line 23
23i.mainAxis=t?"inline":"block",i.crossAxis=t?"block":"inline",typeof i.style.flexBasis=="number"&&(i.flexStyle.main=i.style.flexBasis+i.flexStyle.mainInnerBefore+i.flexStyle.mainInnerAfter+i.flexStyle.mainBorderBefore+i.flexStyle.mainBorderAfter),i.flexStyle.mainOuter=i.flexStyle.main,i.flexStyle.crossOuter=i.flexStyle.cross,i.flexStyle.mainOuter==="auto"&&(i.flexStyle.mainOuter=i.flexStyle.mainOffset),i.flexStyle.crossOuter==="auto"&&(i.flexStyle.crossOuter=i.flexStyle.crossOffset),typeof i.flexStyle.mainBefore=="number"&&(i.flexStyle.mainOuter+=i.flexStyle.mainBefore),typeof i.flexStyle.mainAfter=="number"&&(i.flexStyle.mainOuter+=i.flexStyle.mainAfter),typeof i.flexStyle.crossBefore=="number"&&(i.flexStyle.crossOuter+=i.flexStyle.crossBefore),typeof i.flexStyle.crossAfter=="number"&&(i.flexStyle.crossOuter+=i.flexStyle.crossAfter)}},{}],4:[function(c,u,l){var i=c("../reduce");u.exports=function(r){if(r.mainSpace>0){var t=i(r.children,function(e,a){return e+parseFloat(a.style.flexGrow)},0);t>0&&(r.main=i(r.children,function(e,a){return a.flexStyle.main==="auto"?a.flexStyle.main=a.flexStyle.mainOffset+parseFloat(a.style.flexGrow)/t*r.mainSpace:a.flexStyle.main+=parseFloat(a.style.flexGrow)/t*r.mainSpace,a.flexStyle.mainOuter=a.flexStyle.main+a.flexStyle.mainBefore+a.flexStyle.mainAfter,e+a.flexStyle.mainOuter},0),r.mainSpace=0)}}},{"../reduce":12}],5:[function(c,u,l){var i=c("../reduce");u.exports=function(r){if(r.mainSpace<0){var t=i(r.children,function(e,a){return e+parseFloat(a.style.flexShrink)},0);t>0&&(r.main=i(r.children,function(e,a){return a.flexStyle.main+=parseFloat(a.style.flexShrink)/t*r.mainSpace,a.flexStyle.mainOuter=a.flexStyle.main+a.flexStyle.mainBefore+a.flexStyle.mainAfter,e+a.flexStyle.mainOuter},0),r.mainSpace=0)}}},{"../reduce":12}],6:[function(c,u,l){var i=c("../reduce");u.exports=function(r){var t;r.lines=[t={main:0,cross:0,children:[]}];for(var e,a=-1;e=r.children[++a];)r.style.flexWrap==="nowrap"||t.children.length===0||r.flexStyle.main==="auto"||r.flexStyle.main-r.flexStyle.mainInnerBefore-r.flexStyle.mainInnerAfter-r.flexStyle.mainBorderBefore-r.flexStyle.mainBorderAfter>=t.main+e.flexStyle.mainOuter?(t.main+=e.flexStyle.mainOuter,t.cross=Math.max(t.cross,e.flexStyle.crossOuter)):r.lines.push(t={main:e.flexStyle.mainOuter,cross:e.flexStyle.crossOuter,children:[]}),t.children.push(e);r.flexStyle.mainLines=i(r.lines,function(o,f){return Math.max(o,f.main)},0),r.flexStyle.crossLines=i(r.lines,function(o,f){return o+f.cross},0),r.flexStyle.main==="auto"&&(r.flexStyle.main=Math.max(r.flexStyle.mainOffset,r.flexStyle.mainLines+r.flexStyle.mainInnerBefore+r.flexStyle.mainInnerAfter+r.flexStyle.mainBorderBefore+r.flexStyle.mainBorderAfter)),r.flexStyle.cross==="auto"&&(r.flexStyle.cross=Math.max(r.flexStyle.crossOffset,r.flexStyle.crossLines+r.flexStyle.crossInnerBefore+r.flexStyle.crossInnerAfter+r.flexStyle.crossBorderBefore+r.flexStyle.crossBorderAfter)),r.flexStyle.crossSpace=r.flexStyle.cross-r.flexStyle.crossInnerBefore-r.flexStyle.crossInnerAfter-r.flexStyle.crossBorderBefore-r.flexStyle.crossBorderAfter-r.flexStyle.crossLines,r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter,r.flexStyle.crossOuter=r.flexStyle.cross+r.flexStyle.crossBefore+r.flexStyle.crossAfter}},{"../reduce":12}],7:[function(c,u,l){function i(r){for(var t,e=-1;t=r.children[++e];)c("./flex-direction")(t,r.style.flexDirection);c("./flex-direction")(r,r.style.flexDirection),c("./order")(r),c("./flexbox-lines")(r),c("./align-content")(r),e=-1;for(var a;a=r.lines[++e];)a.mainSpace=r.flexStyle.main-r.flexStyle.mainInnerBefore-r.flexStyle.mainInnerAfter-r.flexStyle.mainBorderBefore-r.flexStyle.mainBorderAfter-a.main,c("./flex-grow")(a),c("./flex-shrink")(a),c("./margin-main")(a),c("./margin-cross")(a),c("./justify-content")(a,r.style.justifyContent,r);c("./align-items")(r)}u.exports=i},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(c,u,l){u.exports=function(i,r,t){var e,a,o,f=t.flexStyle.mainInnerBefore,g=-1;if(r==="flex-end")for(e=i.mainSpace,e+=f;o=i.children[++g];)o.flexStyle.mainStart=e,e+=o.flexStyle.mainOuter;else if(r==="center")for(e=i.mainSpace/2,e+=f;o=i.children[++g];)o.flexStyle.mainStart=e,e+=o.flexStyle.mainOuter;else if(r==="space-between")for(a=i.mainSpace/(i.children.length-1),e=0,e+=f;o=i.children[++g];)o.flexStyle.mainStart=e,e+=o.flexStyle.mainOuter+a;else if(r==="space-around")for(a=2*i.mainSpace/(2*i.children.length),e=a/2,e+=f;o=i.children[++g];)o.flexStyle.mainStart=e,e+=o.flexStyle.mainOuter+a;else for(e=0,e+=f;o=i.children[++g];)o.flexStyle.mainStart=e,e+=o.flexStyle.mainOuter}},{}],9:[function(c,u,l){u.exports=function(i){for(var r,t=-1;r=i.children[++t];){var e=0;r.flexStyle.crossBefore==="auto"&&++e,r.flexStyle.crossAfter==="auto"&&++e;var a=i.cross-r.flexStyle.crossOuter;r.flexStyle.crossBefore==="auto"&&(r.flexStyle.crossBefore=a/e),r.flexStyle.crossAfter==="auto"&&(r.flexStyle.crossAfter=a/e),r.flexStyle.cross==="auto"?r.flexStyle.crossOuter=r.flexStyle.crossOffset+r.flexStyle.crossBefore+r.flexStyle.crossAfter:r.flexStyle.crossOuter=r.flexStyle.cross+r.flexStyle.crossBefore+r.flexStyle.crossAfter}}},{}],10:[function(c,u,l){u.exports=function(i){for(var r,t=0,e=-1;r=i.children[++e];)r.flexStyle.mainBefore==="auto"&&++t,r.flexStyle.mainAfter==="auto"&&++t;if(t>0){for(e=-1;r=i.children[++e];)r.flexStyle.mainBefore==="auto"&&(r.flexStyle.mainBefore=i.mainSpace/t),r.flexStyle.mainAfter==="auto"&&(r.flexStyle.mainAfter=i.mainSpace/t),r.flexStyle.main==="auto"?r.flexStyle.mainOuter=r.flexStyle.mainOffset+r.flexStyle.mainBefore+r.flexStyle.mainAfter:r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter;i.mainSpace=0}}},{}],11:[function(c,u,l){var i=/^(column|row)-reverse$/;u.exports=function(r){r.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),i.test(r.style.flexDirection)&&r.children.reverse()}},{}],12:[function(c,u,l){function i(r,t,e){for(var a=r.length,o=-1;++o<a;)o in r&&(e=t(e,r[o],o));return e}u.exports=i},{}],13:[function(c,u,l){function i(o){a(e(o))}var r=c("./read"),t=c("./write"),e=c("./readAll"),a=c("./writeAll");u.exports=i,u.exports.read=r,u.exports.write=t,u.exports.readAll=e,u.exports.writeAll=a},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(c,u,l){function i(f,g,y){var E=f[g],k=String(E).match(t);if(!k){var D=g.match(o);if(D){var R=f["border"+D[1]+"Style"];return R==="none"?0:a[E]||0}return E}var b=k[1],p=k[2];return p==="px"?1*b:p==="cm"?.3937*b*96:p==="in"?96*b:p==="mm"?.3937*b*96/10:p==="pc"?12*b*96/72:p==="pt"?96*b/72:p==="rem"?16*b:r(E,y)}function r(f,g){e.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+f+"!important",g.parentNode.insertBefore(e,g.nextSibling);var y=e.offsetWidth;return g.parentNode.removeChild(e),y}u.exports=i;var t=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,e=document.createElement("div"),a={medium:4,none:0,thick:6,thin:2},o=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(c,u,l){function i(g){var y={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"},E=g instanceof Element;if(E){var k=g.hasAttribute("data-style"),D=k?g.getAttribute("data-style"):g.getAttribute("style")||"";k||g.setAttribute("data-style",D);var R=window.getComputedStyle&&getComputedStyle(g)||{};e(y,R);var b=g.currentStyle||{};r(y,b),t(y,D);for(var p in y)y[p]=f(y,p,g);var O=g.getBoundingClientRect();y.offsetHeight=O.height||g.offsetHeight,y.offsetWidth=O.width||g.offsetWidth}var N={element:g,style:y};return N}function r(g,y){for(var E in g){var k=E in y;if(k)g[E]=y[E];else{var D=E.replace(/[A-Z]/g,"-$&").toLowerCase(),R=D in y;R&&(g[E]=y[D])}}var b="-js-display"in y;b&&(g.display=y["-js-display"])}function t(g,y){for(var E;E=a.exec(y);){var k=E[1].toLowerCase().replace(/-[a-z]/g,function(D){return D.slice(1).toUpperCase()});g[k]=E[2]}}function e(g,y){for(var E in g){var k=E in y;k&&!o.test(E)&&(g[E]=y[E])}}u.exports=i;var a=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,o=/^(alignSelf|height|width)$/,f=c("./getComputedLength")},{"./getComputedLength":14}],16:[function(c,u,l){function i(f){var g=[];return r(f,g),g}function r(f,g){for(var y,E=t(f),k=[],D=-1;y=f.childNodes[++D];){var R=y.nodeType===3&&!/^\s*$/.test(y.nodeValue);if(E&&R){var b=y;y=f.insertBefore(document.createElement("flex-item"),b),y.appendChild(b)}var p=y instanceof Element;if(p){var O=r(y,g);if(E){var N=y.style;N.display="inline-block",N.position="absolute",O.style=e(y).style,k.push(O)}}}var C={element:f,children:k};return E&&(C.style=e(f).style,g.push(C)),C}function t(f){var g=f instanceof Element,y=g&&f.getAttribute("data-style"),E=g&&f.currentStyle&&f.currentStyle["-js-display"],k=a.test(y)||o.test(E);return k}u.exports=i;var e=c("../read"),a=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,o=/^(inline-)?flex$/i},{"../read":15}],17:[function(c,u,l){function i(e){t(e);var a=e.element.style,o=e.mainAxis==="inline"?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="relative",a.width=r(e.flexStyle[o[0]]-e.flexStyle[o[0]+"InnerBefore"]-e.flexStyle[o[0]+"InnerAfter"]-e.flexStyle[o[0]+"BorderBefore"]-e.flexStyle[o[0]+"BorderAfter"]),a.height=r(e.flexStyle[o[1]]-e.flexStyle[o[1]+"InnerBefore"]-e.flexStyle[o[1]+"InnerAfter"]-e.flexStyle[o[1]+"BorderBefore"]-e.flexStyle[o[1]+"BorderAfter"]);for(var f,g=-1;f=e.children[++g];){var y=f.element.style,E=f.mainAxis==="inline"?["main","cross"]:["cross","main"];y.boxSizing="content-box",y.display="block",y.position="absolute",f.flexStyle[E[0]]!=="auto"&&(y.width=r(f.flexStyle[E[0]]-f.flexStyle[E[0]+"InnerBefore"]-f.flexStyle[E[0]+"InnerAfter"]-f.flexStyle[E[0]+"BorderBefore"]-f.flexStyle[E[0]+"BorderAfter"])),f.flexStyle[E[1]]!=="auto"&&(y.height=r(f.flexStyle[E[1]]-f.flexStyle[E[1]+"InnerBefore"]-f.flexStyle[E[1]+"InnerAfter"]-f.flexStyle[E[1]+"BorderBefore"]-f.flexStyle[E[1]+"BorderAfter"])),y.top=r(f.flexStyle[E[1]+"Start"]),y.left=r(f.flexStyle[E[0]+"Start"]),y.marginTop=r(f.flexStyle[E[1]+"Before"]),y.marginRight=r(f.flexStyle[E[0]+"After"]),y.marginBottom=r(f.flexStyle[E[1]+"After"]),y.marginLeft=r(f.flexStyle[E[0]+"Before"])}}function r(e){return typeof e=="string"?e:Math.max(e,0)+"px"}u.exports=i;var t=c("../flexbox")},{"../flexbox":7}],18:[function(c,u,l){function i(t){for(var e,a=-1;e=t[++a];)r(e)}
23u.exports=i;var r=c("../write")},{"../write":17}]},{},[13])(13)})})(Fa);var sd=Fa.exports;const nd=sn(sd);var rd={exports:{}};const ad=Rr(Ja);/*!
24 * jQuery Validation Plugin v1.20.0
25 *
26 * https://jqueryvalidation.org/
27 *
28 * Copyright (c) 2023 Jörn Zaefferer
29 * Released under the MIT license
30 */(function(n){(function(s){n.exports?n.exports=s(ad):s(jQuery)})(function(s){s.extend(s.fn,{validate:function(i){if(!this.length){i&&i.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var r=s.data(this[0],"validator");return r||(this.attr("novalidate","novalidate"),r=new s.validator(i,this[0]),s.data(this[0],"validator",r),r.settings.onsubmit&&(this.on("click.validate",":submit",function(t){r.submitButton=t.currentTarget,s(this).hasClass("cancel")&&(r.cancelSubmit=!0),s(this).attr("formnovalidate")!==void 0&&(r.cancelSubmit=!0)}),this.on("submit.validate",function(t){r.settings.debug&&t.preventDefault();function e(){var a,o;return r.submitButton&&(r.settings.submitHandler||r.formSubmitted)&&(a=s("<input type='hidden'/>").attr("name",r.submitButton.name).val(s(r.submitButton).val()).appendTo(r.currentForm)),r.settings.submitHandler&&!r.settings.debug?(o=r.settings.submitHandler.call(r,r.currentForm,t),a&&a.remove(),o!==void 0?o:!1):!0}return r.cancelSubmit?(r.cancelSubmit=!1,e()):r.form()?r.pendingRequest?(r.formSubmitted=!0,!1):e():(r.focusInvalid(),!1)})),r)},valid:function(){var i,r,t;return s(this[0]).is("form")?i=this.validate().form():(t=[],i=!0,r=s(this[0].form).validate(),this.each(function(){i=r.element(this)&&i,i||(t=t.concat(r.errorList))}),r.errorList=t),i},rules:function(i,r){var t=this[0],e=typeof this.attr("contenteditable")<"u"&&this.attr("contenteditable")!=="false",a,o,f,g,y,E;if(t!=null&&(!t.form&&e&&(t.form=this.closest("form")[0],t.name=this.attr("name")),t.form!=null)){if(i)switch(a=s.data(t.form,"validator").settings,o=a.rules,f=s.validator.staticRules(t),i){case"add":s.extend(f,s.validator.normalizeRule(r)),delete f.messages,o[t.name]=f,r.messages&&(a.messages[t.name]=s.extend(a.messages[t.name],r.messages));break;case"remove":return r?(E={},s.each(r.split(/\s/),function(k,D){E[D]=f[D],delete f[D]}),E):(delete o[t.name],f)}return g=s.validator.normalizeRules(s.extend({},s.validator.classRules(t),s.validator.attributeRules(t),s.validator.dataRules(t),s.validator.staticRules(t)),t),g.required&&(y=g.required,delete g.required,g=s.extend({required:y},g)),g.remote&&(y=g.remote,delete g.remote,g=s.extend(g,{remote:y})),g}}});var c=function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};s.extend(s.expr.pseudos||s.expr[":"],{blank:function(i){return!c(""+s(i).val())},filled:function(i){var r=s(i).val();return r!==null&&!!c(""+r)},unchecked:function(i){return!s(i).prop("checked")}}),s.validator=function(i,r){this.settings=s.extend(!0,{},s.validator.defaults,i),this.currentForm=r,this.init()},s.validator.format=function(i,r){return arguments.length===1?function(){var t=s.makeArray(arguments);return t.unshift(i),s.validator.format.apply(this,t)}:(r===void 0||(arguments.length>2&&r.constructor!==Array&&(r=s.makeArray(arguments).slice(1)),r.constructor!==Array&&(r=[r]),s.each(r,function(t,e){i=i.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})})),i)},s.extend(s.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:s([]),errorLabelContainer:s([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(i){this.lastActive=i,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,i,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(i)))},onfocusout:function(i){!this.checkable(i)&&(i.name in this.submitted||!this.optional(i))&&this.element(i)},onkeyup:function(i,r){var t=[16,17,18,20,35,36,37,38,39,40,45,144,225];r.which===9&&this.elementValue(i)===""||s.inArray(r.keyCode,t)!==-1||(i.name in this.submitted||i.name in this.invalid)&&this.element(i)}
vendor: 4,620 bytes, line 30
30,onclick:function(i){i.name in this.submitted?this.element(i):i.parentNode.name in this.submitted&&this.element(i.parentNode)},highlight:function(i,r,t){i.type==="radio"?this.findByName(i.name).addClass(r).removeClass(t):s(i).addClass(r).removeClass(t)},unhighlight:function(i,r,t){i.type==="radio"?this.findByName(i.name).removeClass(r).addClass(t):s(i).removeClass(r).addClass(t)}},setDefaults:function(i){s.extend(s.validator.defaults,i)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:s.validator.format("Please enter no more than {0} characters."),minlength:s.validator.format("Please enter at least {0} characters."),rangelength:s.validator.format("Please enter a value between {0} and {1} characters long."),range:s.validator.format("Please enter a value between {0} and {1}."),max:s.validator.format("Please enter a value less than or equal to {0}."),min:s.validator.format("Please enter a value greater than or equal to {0}."),step:s.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=s(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||s(this.currentForm),this.containers=s(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.currentForm,r=this.groups={},t;s.each(this.settings.groups,function(a,o){typeof o=="string"&&(o=o.split(/\s/)),s.each(o,function(f,g){r[g]=a})}),t=this.settings.rules,s.each(t,function(a,o){t[a]=s.validator.normalizeRule(o)});function e(a){var o=typeof s(this).attr("contenteditable")<"u"&&s(this).attr("contenteditable")!=="false";if(!this.form&&o&&(this.form=s(this).closest("form")[0],this.name=s(this).attr("name")),i===this.form){var f=s.data(this.form,"validator"),g="on"+a.type.replace(/^validate/,""),y=f.settings;y[g]&&!s(this).is(y.ignore)&&y[g].call(f,this,a)}}s(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&s(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),s.extend(this.submitted,this.errorMap),this.invalid=s.extend({},this.errorMap),this.valid()||s(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var i=0,r=this.currentElements=this.elements();r[i];i++)this.check(r[i]);return this.valid()},element:function(i){var r=this.clean(i),t=this.validationTargetFor(r),e=this,a=!0,o,f;return t===void 0?delete this.invalid[r.name]:(this.prepareElement(t),this.currentElements=s(t),f=this.groups[t.name],f&&s.each(this.groups,function(g,y){y===f&&g!==t.name&&(r=e.validationTargetFor(e.clean(e.findByName(g))),r&&r.name in e.invalid&&(e.currentElements.push(r),a=e.check(r)&&a))}),o=this.check(t)!==!1,a=a&&o,o?this.invalid[t.name]=!1:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),s(i).attr("aria-invalid",!o)),a},showErrors:function(i){if(i){var r=this;s.extend(this.errorMap,i),this.errorList=s.map(this.errorMap,function(t,e){return{message:t,element:r.findByName(e)[0]}}),this.successList=s.grep(this.successList,function(t){return!(t.name in i)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){s.fn.resetForm&&s(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var i=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(i)},resetElements:function(i){var r;if(this.settings.unhighlight)for(r=0;i[r];r++)this.settings.unhighlight.call(this,i[r],this.settings.errorClass,""),this.findByName(i[r].name).removeClass(this.settings.val
30idClass);else i.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(i){var r=0,t;for(t in i)i[t]!==void 0&&i[t]!==null&&i[t]!==!1&&r++;return r},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(i){i.not(this.containers).text(""),this.addWrapper(i).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{s(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(i){}},findLastActive:function(){var i=this.lastActive;return i&&s.grep(this.errorList,function(r){return r.element.name===i.name}).length===1&&i},elements:function(){var i=this,r={};return s(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var t=this.name||s(this).attr("name"),e=typeof s(this).attr("contenteditable")<"u"&&s(this).attr("contenteditable")!=="false";return!t&&i.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=s(this).closest("form")[0],this.name=t),this.form!==i.currentForm||t in r||!i.objectLength(s(this).rules())?!1:(r[t]=!0,!0)})},clean:function(i){return s(i)[0]},errors:function(){var i=this.settings.errorClass.split(" ").join(".");return s(this.settings.errorElement+"."+i,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=s([]),this.toHide=s([])},reset:function(){this.resetInternals(),this.currentElements=s([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(i){this.reset(),this.toHide=this.errorsFor(i)},elementValue:function(i){var r=s(i),t=i.type,e=typeof r.attr("contenteditable")<"u"&&r.attr("contenteditable")!=="false",a,o;return t==="radio"||t==="checkbox"?this.findByName(i.name).filter(":checked").val():t==="number"&&typeof i.validity<"u"?i.validity.badInput?"NaN":r.val():(e?a=r.text():a=r.val(),t==="file"?a.substr(0,12)==="C:\\fakepath\\"?a.substr(12):(o=a.lastIndexOf("/"),o>=0||(o=a.lastIndexOf("\\"),o>=0)?a.substr(o+1):a):typeof a=="string"?a.replace(/\r/g,""):a)},check:function(i){i=this.validationTargetFor(this.clean(i));var r=s(i).rules(),t=s.map(r,function(E,k){return k}).length,e=!1,a=this.elementValue(i),o,f,g,y;this.abortRequest(i),typeof r.normalizer=="function"?y=r.normalizer
30:typeof this.settings.normalizer=="function"&&(y=this.settings.normalizer),y&&(a=y.call(i,a),delete r.normalizer);for(f in r){g={method:f,parameters:r[f]};try{if(o=s.validator.methods[f].call(this,a,i,g.parameters),o==="dependency-mismatch"&&t===1){e=!0;continue}if(e=!1,o==="pending"){this.toHide=this.toHide.not(this.errorsFor(i));return}if(!o)return this.formatAndAdd(i,g),!1}catch(E){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+i.id+", check the '"+g.method+"' method.",E),E instanceof TypeError&&(E.message+=".  Exception occurred when checking element "+i.id+", check the '"+g.method+"' method."),E}}if(!e)return this.objectLength(r)&&this.successList.push(i),!0},customDataMessage:function(i,r){return s(i).data("msg"+r.charAt(0).toUpperCase()+r.substring(1).toLowerCase())||s(i).data("msg")},customMessage:function(i,r){var t=this.settings.messages[i];return t&&(t.constructor===String?t:t[r])},findDefined:function(){for(var i=0;i<arguments.length;i++)if(arguments[i]!==void 0)return arguments[i]},defaultMessage:function(i,r){typeof r=="string"&&(r={method:r});var t=this.findDefined(this.customMessage(i.name,r.method),this.customDataMessage(i,r.method),!this.settings.ignoreTitle&&i.title||void 0,s.validator.messages[r.method],"<strong>Warning: No message defined for "+i.name+"</strong>"),e=/\$?\{(\d+)\}/g;return typeof t=="function"?t=t.call(this,r.parameters,i):e.test(t)&&(t=s.validator.format(t.replace(e,"{$1}"),r.parameters)),t},formatAndAdd:function(i,r){var t=this.defaultMessage(i,r);this.errorList.push({message:t,element:i,method:r.method}),this.errorMap[i.name]=t,this.submitted[i.name]=t},addWrapper:function(i){return this.settings.wrapper&&(i=i.add(i.parent(this.settings.wrapper))),i},defaultShowErrors:function(){var i,r,t;for(i=0;this.errorList[i];i++)t=this.errorList[i],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(i=0;this.successList[i];i++)this.showLabel(this.successList[i]);if(this.settings.unhighlight)for(i=0,r=this.validElements();r[i];i++)this.settings.unhighlight.call(this,r[i],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return s(this.errorList).map(function(){return this.element})},showLabel:function(i,r){var t,e,a,o,f=this.errorsFor(i),g=this.idOrName(i),y=s(i).attr("aria-describedby");f.length?(f.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?f.text(r||""):f.html(r||"")):(f=s("<"+this.settings.errorElement+">").attr("id",g+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?f.text(r||""):f.html(r||""),t=f,this.settings.wrapper&&(t=f.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(t):this.settings.errorPlacement?this.settings.errorPlacement.call(this,t,s(i)):t.insertAfter(i),f.is("label")?f.attr("for",g):f.parents("label[for='"+this.escapeCssMeta(g)+"']").length===0&&(a=f.attr("id"),y?y.match(new RegExp("\\b"+this.escapeCssMeta(a)+"\\b"))||(y+=" "+a):y=a,s(i).attr("aria-describedby",y),e=this.groups[i.name],e&&(o=this,s.each(o.groups,function(E,k){k===e&&s("[name='"+o.escapeCssMeta(E)+"']",o.currentForm).attr("aria-describedby",f.attr("id"))})))),!r&&this.settings.success&&(f.text(""),typeof this.settings.success=="string"?f.addClass(this.settings.success):this.settings.success(f,i)),this.toShow=this.toShow.add(f)},errorsFor:function(i){var r=this.escapeCssMeta(this.idOrName(i)),t=s(i).attr("aria-describedby"),e="label[for='"+r+"'], label[for='"+r+"'] *";return t&&(e=e+", #"+this.escapeCssMeta(t).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(i){return i===void 0?"":i.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(i){return this.groups[i.name]||(this.checkable(i)?i.name:i.id||i.name)}
30,validationTargetFor:function(i){return this.checkable(i)&&(i=this.findByName(i.name)),s(i).not(this.settings.ignore)[0]},checkable:function(i){return/radio|checkbox/i.test(i.type)},findByName:function(i){return s(this.currentForm).find("[name='"+this.escapeCssMeta(i)+"']")},getLength:function(i,r){switch(r.nodeName.toLowerCase()){case"select":return s("option:selected",r).length;case"input":if(this.checkable(r))return this.findByName(r.name).filter(":checked").length}return i.length},depend:function(i,r){return this.dependTypes[typeof i]?this.dependTypes[typeof i](i,r):!0},dependTypes:{boolean:function(i){return i},string:function(i,r){return!!s(i,r.form).length},function:function(i,r){return i(r)}},optional:function(i){var r=this.elementValue(i);return!s.validator.methods.required.call(this,r,i)&&"dependency-mismatch"},elementAjaxPort:function(i){return"validate"+i.name},startRequest:function(i){this.pending[i.name]||(this.pendingRequest++,s(i).addClass(this.settings.pendingClass),this.pending[i.name]=!0)},stopRequest:function(i,r){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[i.name],s(i).removeClass(this.settings.pendingClass),r&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0?(s(this.currentForm).trigger("submit"),this.submitButton&&s("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!r&&this.pendingRequest===0&&this.formSubmitted&&(s(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(i){var r;this.pending[i.name]&&(r=this.elementAjaxPort(i),s.ajaxAbort(r),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[i.name],s(i).removeClass(this.settings.pendingClass))},previousValue:function(i,r){return r=typeof r=="string"&&r||"remote",s.data(i,"previousValue")||s.data(i,"previousValue",{old:null,valid:!0,message:this.defaultMessage(i,{method:r})})},destroy:function(){this.resetForm(),s(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(i,r){i.constructor===String?this.classRuleSettings[i]=r:s.extend(this.classRuleSettings,i)},classRules:function(i){var r={},t=s(i).attr("class");return t&&s.each(t.split(" "),function(){this in s.validator.classRuleSettings&&s.extend(r,s.validator.classRuleSettings[this])}),r},normalizeAttributeRule:function(i,r,t,e){/min|max|step/.test(t)&&(r===null||/number|range|text/.test(r))&&(e=Number(e),isNaN(e)&&(e=void 0)),e||e===0?i[t]=e:r===t&&r!=="range"&&(i[r==="date"?"dateISO":t]=!0)},attributeRules:function(i){var r={},t=s(i),e=i.getAttribute("type"),a,o;for(a in s.validator.methods)a==="required"?(o=i.getAttribute(a),o===""&&(o=!0),o=!!o):o=t.attr(a),this.normalizeAttributeRule(r,e,a,o);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(i){var r={},t=s(i),e=i.getAttribute("type"),a,o;for(a in s.validator.methods)o=t.data("rule"+a.charAt(0).toUpperCase()+a.substring(1).toLowerCase()),o===""&&(o=!0),this.normalizeAttributeRule(r,e,a,o);return r},staticRules:function(i){var r={},t=s.data(i.form,"validator");return t.settings.rules&&(r=s.validator.normalizeRule(t.settings.rules[i.name])||{}),r},normalizeRules:function(i,r){return s.each(i,function(t,e){if(e===!1){delete i[t];return}if(e.param||e.depends){var a=!0;switch(typeof e.depends){case"string":a=!!s(e.depends,r.form).length;break;case"function":a=e.depends.call(r,r);break}a?i[t]=e.param!==void 0?e.param:!0:(s.data(r.form,"validator").resetElements(s(r)),delete i[t])}}),s.each(i,function(t,e){i[t]=typeof e=="function"&&t!=="normalizer"?e(r):e}
30),s.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),s.each(["rangelength","range"],function(){var t;i[this]&&(Array.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:typeof i[this]=="string"&&(t=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(t[0]),Number(t[1])]))}),s.validator.autoCreateRanges&&(i.min!=null&&i.max!=null&&(i.range=[i.min,i.max],delete i.min,delete i.max),i.minlength!=null&&i.maxlength!=null&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(i){if(typeof i=="string"){var r={};s.each(i.split(/\s/),function(){r[this]=!0}),i=r}return i},addMethod:function(i,r,t){s.validator.methods[i]=r,s.validator.messages[i]=t!==void 0?t:s.validator.messages[i],r.length<3&&s.validator.addClassRules(i,s.validator.normalizeRule(i))},methods:{required:function(i,r,t){if(!this.depend(t,r))return"dependency-mismatch";if(r.nodeName.toLowerCase()==="select"){var e=s(r).val();return e&&e.length>0}return this.checkable(r)?this.getLength(i,r)>0:i!=null&&i.length>0},email:function(i,r){return this.optional(r)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(i)},url:function(i,r){return this.optional(r)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(i)},date:function(){var i=!1;return function(r,t){return i||(i=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(t)||!/Invalid|NaN/.test(new Date(r).toString())}}(),dateISO:function(i,r){return this.optional(r)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(i)},number:function(i,r){return this.optional(r)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(i)},digits:function(i,r){return this.optional(r)||/^\d+$/.test(i)},minlength:function(i,r,t){var e=Array.isArray(i)?i.length:this.getLength(i,r);return this.optional(r)||e>=t},maxlength:function(i,r,t){var e=Array.isArray(i)?i.length:this.getLength(i,r);return this.optional(r)||e<=t},rangelength:function(i,r,t){var e=Array.isArray(i)?i.length:this.getLength(i,r);return this.optional(r)||e>=t[0]&&e<=t[1]},min:function(i,r,t){return this.optional(r)||i>=t},max:function(i,r,t){return this.optional(r)||i<=t},range:function(i,r,t){return this.optional(r)||i>=t[0]&&i<=t[1]},step:function(i,r,t){var e=s(r).attr("type"),a="Step attribute on input type "+e+" is not supported.",o=["text","number","range"],f=new RegExp("\\b"+e+"\\b"),g=e&&!f.test(o.join()),y=function(R){var b=(""+R).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},E=function(R){return Math.round(R*Math.pow(10,D))},k=!0,D;if(g)throw new Error(a);return D=y(t),(y(i)>D||E(i)%E(t)!==0)&&(k=!1),this.optional(r)||k},equalTo:function(i,r,t){var e=s(t);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){s(r).valid()}),i===e.val()},remote:function(i,r,t,e){if(this.optional(r))return"dependency-mismatch";e=typeof e=="string"&&e||"remote";var a=this.previousValue(r,e),o,f,g;return this.settings.messages[r.name]||(this.settings.messages[r.name]={}),a.originalMessage=a.originalMessage||this.settings.messages[r.name][e],this.settings.messages[r.name][e]=a.message,t=typeof t=="string"&&{url:t}||t,g=s.param(s.extend({data:i}
30,t.data)),a.old===g?a.valid:(a.old=g,o=this,this.startRequest(r),f={},f[r.name]=i,s.ajax(s.extend(!0,{mode:"abort",port:this.elementAjaxPort(r),dataType:"json",data:f,context:o.currentForm,success:function(y){var E=y===!0||y==="true",k,D,R;o.settings.messages[r.name][e]=a.originalMessage,E?(R=o.formSubmitted,o.toHide=o.errorsFor(r),o.formSubmitted=R,o.successList.push(r),o.invalid[r.name]=!1,o.showErrors()):(k={},D=y||o.defaultMessage(r,{method:e,parameters:i}),k[r.name]=a.message=D,o.invalid[r.name]=!0,o.showErrors(k)),a.valid=E,o.stopRequest(r,E)}},t)),"pending")}}});var u={},l;return s.ajaxPrefilter?s.ajaxPrefilter(function(i,r,t){var e=i.port;i.mode==="abort"&&(s.ajaxAbort(e),u[e]=t)}):(l=s.ajax,s.ajax=function(i){var r=("mode"in i?i:s.ajaxSettings).mode,t=("port"in i?i:s.ajaxSettings).port;return r==="abort"?(s.ajaxAbort(t),u[t]=l.apply(this,arguments),u[t]):l.apply(this,arguments)}),s.ajaxAbort=function(i){u[i]&&(u[i].abort(),delete u[i])},s})})(rd);/*!
31 * jQuery UI Widget 1.13.3
32 * https://jqueryui.com
33 *
34 * Copyright OpenJS Foundation and other contributors
35 * Released under the MIT license.
36 * https://jquery.org/license
37 */(function(n){typeof define=="function"&&define.amd?define(["jquery","./version"],n):n(jQuery)})(function(n){var s=0,c=Array.prototype.hasOwnProperty,u=Array.prototype.slice;return n.cleanData=function(l){return function(i){var r,t,e;for(e=0;(t=i[e])!=null;e++)r=n._data(t,"events"),r&&r.remove&&n(t).triggerHandler("remove");l(i)}}(n.cleanData),n.widget=function(l,i,r){var t,e,a,o={},f=l.split(".")[0];l=l.split(".")[1];var g=f+"-"+l;return r||(r=i,i=n.Widget),Array.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr.pseudos[g.toLowerCase()]=function(y){return!!n.data(y,g)},n[f]=n[f]||{},t=n[f][l],e=n[f][l]=function(y,E){if(!this||!this._createWidget)return new e(y,E);arguments.length&&this._createWidget(y,E)},n.extend(e,t,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),a=new i,a.options=n.widget.extend({},a.options),n.each(r,function(y,E){if(typeof E!="function"){o[y]=E;return}o[y]=function(){function k(){return i.prototype[y].apply(this,arguments)}function D(R){return i.prototype[y].apply(this,R)}return function(){var R=this._super,b=this._superApply,p;return this._super=k,this._superApply=D,p=E.apply(this,arguments),this._super=R,this._superApply=b,p}}()}),e.prototype=n.widget.extend(a,{widgetEventPrefix:t&&a.widgetEventPrefix||l},o,{constructor:e,namespace:f,widgetName:l,widgetFullName:g}),t?(n.each(t._childConstructors,function(y,E){var k=E.prototype;n.widget(k.namespace+"."+k.widgetName,e,E._proto)}),delete t._childConstructors):i._childConstructors.push(e),n.widget.bridge(l,e),e},n.widget.extend=function(l){for(var i=u.call(arguments,1),r=0,t=i.length,e,a;r<t;r++)for(e in i[r])a=i[r][e],c.call(i[r],e)&&a!==void 0&&(n.isPlainObject(a)?l[e]=n.isPlainObject(l[e])?n.widget.extend({},l[e],a):n.widget.extend({},a):l[e]=a);return l},n.widget.bridge=function(l,i){var r=i.prototype.widgetFullName||l;n.fn[l]=function(t){var e=typeof t=="string",a=u.call(arguments,1),o=this;return e?!this.length&&t==="instance"?o=void 0:this.each(function(){var f,g=n.data(this,r);if(t==="instance")return o=g,!1;if(!g)return n.error("cannot call methods on "+l+" prior to initialization; attempted to call method '"+t+"'");if(typeof g[t]!="function"||t.charAt(0)==="_")return n.error("no such method '"+t+"' for "+l+" widget instance");if(f=g[t].apply(g,a),f!==g&&f!==void 0)return o=f&&f.jquery?o.pushStack(f.get()):f,!1}):(a.length&&(t=n.widget.extend.apply(null,[t].concat(a))),this.each(function(){var f=n.data(this,r);f?(f.option(t||{}),f._init&&f._init()):n.data(this,r,new i(t,this))})),o}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(l,i){i=n(i||this.defaultElement||this)[0],this.element=n(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=n(),this.hoverable=n(),this.focusable=n(),this.classesElementLookup={},i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(r){r.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this.options=n.widget.extend({},this.options,this._getCreateOptions(),l),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var l=this;this._destroy(),n.each(this.classesElementLookup,function(i,r){l._removeClass(r,i)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(l,i){var r=l,t,e,a;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof l=="string")if(r={},t=l.split("."),l=t.shift(),t.length){for(e=r[l]=n.widget.extend({},this.options[l]),a=0;a<t.length-1;a++)e[t[a]]=e[t[a]]||{},e=e[t[a]];if(l=t.pop(),arguments.length===1)return e[l]===void 0?null:e[l];e[l]=i}else{if(arguments.length===1)return this.options[l]===void 0?null:this.options[l];r[l]=i}return this._setOptions(r),this},_setOptions:function(l){var i;for(i in l)this._setOption(i,l[i]);return this},_setOption:function(l,i){return l==="classes"&&this._setOptionClasses(i),this.options[l]=i,l==="disabled"&&this._setOptionDisabled(i),this},_setOptionClasses:function(l){var i,r,t;
vendor: 4,083 bytes, line 37
37for(i in l)t=this.classesElementLookup[i],!(l[i]===this.options.classes[i]||!t||!t.length)&&(r=n(t.get()),this._removeClass(t,i),r.addClass(this._classes({element:r,keys:i,classes:l,add:!0})))},_setOptionDisabled:function(l){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!l),l&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(l){var i=[],r=this;l=n.extend({element:this.element,classes:this.options.classes||{}},l);function t(){var a=[];l.element.each(function(o,f){var g=n.map(r.classesElementLookup,function(y){return y}).some(function(y){return y.is(f)});g||a.push(f)}),r._on(n(a),{remove:"_untrackClassesElement"})}function e(a,o){var f,g;for(g=0;g<a.length;g++)f=r.classesElementLookup[a[g]]||n(),l.add?(t(),f=n(n.uniqueSort(f.get().concat(l.element.get())))):f=n(f.not(l.element).get()),r.classesElementLookup[a[g]]=f,i.push(a[g]),o&&l.classes[a[g]]&&i.push(l.classes[a[g]])}return l.keys&&e(l.keys.match(/\S+/g)||[],!0),l.extra&&e(l.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(l){var i=this;n.each(i.classesElementLookup,function(r,t){n.inArray(l.target,t)!==-1&&(i.classesElementLookup[r]=n(t.not(l.target).get()))}),this._off(n(l.target))},_removeClass:function(l,i,r){return this._toggleClass(l,i,r,!1)},_addClass:function(l,i,r){return this._toggleClass(l,i,r,!0)},_toggleClass:function(l,i,r,t){t=typeof t=="boolean"?t:r;var e=typeof l=="string"||l===null,a={extra:e?i:r,keys:e?l:i,element:e?this.element:l,add:t};return a.element.toggleClass(this._classes(a),t),this},_on:function(l,i,r){var t,e=this;typeof l!="boolean"&&(r=i,i=l,l=!1),r?(i=t=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,t=this.widget()),n.each(r,function(a,o){function f(){if(!(!l&&(e.options.disabled===!0||n(this).hasClass("ui-state-disabled"))))return(typeof o=="string"?e[o]:o).apply(e,arguments)}typeof o!="string"&&(f.guid=o.guid=o.guid||f.guid||n.guid++);var g=a.match(/^([\w:-]*)\s*(.*)$/),y=g[1]+e.eventNamespace,E=g[2];E?t.on(y,E,f):i.on(y,f)})},_off:function(l,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,l.off(i),this.bindings=n(this.bindings.not(l).get()),this.focusable=n(this.focusable.not(l).get()),this.hoverable=n(this.hoverable.not(l).get())},_delay:function(l,i){function r(){return(typeof l=="string"?t[l]:l).apply(t,arguments)}var t=this;return setTimeout(r,i||0)},_hoverable:function(l){this.hoverable=this.hoverable.add(l),this._on(l,{mouseenter:function(i){this._addClass(n(i.currentTarget),null,"ui-state-hover")},mouseleave:function(i){this._removeClass(n(i.currentTarget),null,"ui-state-hover")}})},_focusable:function(l){this.focusable=this.focusable.add(l),this._on(l,{focusin:function(i){this._addClass(n(i.currentTarget),null,"ui-state-focus")},focusout:function(i){this._removeClass(n(i.currentTarget),null,"ui-state-focus")}})},_trigger:function(l,i,r){var t,e,a=this.options[l];if(r=r||{},i=n.Event(i),i.type=(l===this.widgetEventPrefix?l:this.widgetEventPrefix+l).toLowerCase(),i.target=this.element[0],e=i.originalEvent,e)for(t in e)t in i||(i[t]=e[t]);return this.element.trigger(i,r),!(typeof a=="function"&&a.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(l,i){n.Widget.prototype["_"+l]=function(r,t,e){typeof t=="string"&&(t={effect:t});var a,o=t?t===!0||typeof t=="number"?i:t.effect||i:l;t=t||{},typeof t=="number"?t={duration:t}:t===!0&&(t={}),a=!n.isEmptyObject(t),t.complete=e,t.delay&&r.delay(t.delay),a&&n.effects&&n.effects.effect[o]?r[l](t):o!==l&&r[o]?r[o](t.duration,t.easing,e):r.queue(function(f){n(this)[l](),e&&e.call(r[0]),f()})}}),n.widget});var ja={exports:{}},Vs={exports:{}},Er;function od(){return Er||(Er=1,function(n,s){(function(c,u){n.exports=u()})(window,function(){return function(c){var u={};function l(i){if(u[i])return u[i].exports;var r=u[i]={i,l:!1,exports:{}};
vendor: 33,272 bytes, line 37
37return c[i].call(r.exports,r,r.exports,l),r.l=!0,r.exports}return l.m=c,l.c=u,l.d=function(i,r,t){l.o(i,r)||Object.defineProperty(i,r,{enumerable:!0,get:t})},l.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l.t=function(i,r){if(1&r&&(i=l(i)),8&r||4&r&&typeof i=="object"&&i&&i.__esModule)return i;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:i}),2&r&&typeof i!="string")for(var e in i)l.d(t,e,(function(a){return i[a]}).bind(null,e));return t},l.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(r,"a",r),r},l.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)},l.p="",l(l.s=1)}([function(c,u,l){var i,r;i=[l(2)],(r=(function(t){function e(h){if(e.is(h,"function"))return a?h():t.on("raphael.DOMload",h);if(e.is(h,ye))return e._engine.create[b](e,h.splice(0,3+e.is(h[0],me))).add(h);var d=Array.prototype.slice.call(arguments,0);if(e.is(d[d.length-1],"function")){var m=d.pop();return a?m.call(e._engine.create[b](e,d)):t.on("raphael.DOMload",function(){m.call(e._engine.create[b](e,d))})}return e._engine.create[b](e,arguments)}e.version="2.3.0",e.eve=t;var a,o,f=/[, ]+/,g={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},y=/\{(\d+)\}/g,E="hasOwnProperty",k={doc:document,win:window},D={was:Object.prototype[E].call(k.win,"Raphael"),is:k.win.Raphael},R=function(){this.ca=this.customAttributes={}},b="apply",p="concat",O="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,N="",C=" ",B=String,F="split",V="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[F](C),te={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},W=B.prototype.toLowerCase,U=Math,ne=U.max,K=U.min,se=U.abs,_e=U.pow,ke=U.PI,me="number",ye="array",$e=Object.prototype.toString,T=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),x={NaN:1,Infinity:1,"-Infinity":1},v=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,S=U.round,M=parseFloat,j=parseInt,z=B.prototype.toUpperCase,Y=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},q=e._availableAnimAttrs={blur:me,"clip-rect":"csv",cx:me,cy:me,fill:"colour","fill-opacity":me,"font-size":me,height:me,opacity:me,path:"path",r:me,rx:me,ry:me,stroke:"colour","stroke-opacity":me,"stroke-width":me,transform:"transform",width:me,x:me,y:me},G=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,ee={hs:1,rg:1},he=/,?([achlmqrstvxz]),?/gi,fe=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,pe=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Ce=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,Te=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),Ae=function(h,d){return M(h)-M(d)},Me=function(h){return h},Ee=e._rectPath=function(h,d,m,_,w){return w?[["M",h+w,d],["l",m-2*w,0],["a",w,w,0,0,1,w,w],["l",0,_-2*w],["a",w,w,0,0,1,-w,w],["l",2*w-m,0],["a",w,w,0,0,1,-w,-w],["l",0,2*w-_],["a",w,w,0,0,1,w,-w],["z"]]:[["M",h,d],["l",m,0],["l",0,_],["l",-m,0],["z"]]},Se=function(h,d,m,_){return _==null&&(_=m),[["M",h,d],["m",0,-_],["a",m,_,0,1,1,0,2*_],["a",m,_,0,1,1,0,-2*_],["z"]]},xe=e._getPath={path:function(h){return h.attr("path")},circle:function(h){var d=h.attrs;return Se(d.cx,d.cy,d.r)},ellipse:function(h){var d=h.attrs;return Se(d.cx,d.cy,d.rx,d.ry)},rect:function(h){var d=h.attrs;return Ee(d.x,d.y,d.width,d.height,d.r)},image:function(h){var d=h.attrs;return Ee(d.x,d.y,d.width,d.height)},text:function(h){var d=h._getBBox();return Ee(d.x,d.y,d.width,d.height)},set:function(h){var d=h._getBBox();return Ee(d.x,d.y,d.width,d.height)}},ge=e.mapPath=function(h,d){if(!d)return h;var m,_,w,A,L,I,P;for(w=0,L=(h=Ci(h)).length;w<L;w++)for(A=1,I=(P=h[w]).length;A<I;A+=2)m=d.x(P[A],P[A+1]),_=d.y(P[A],P[A+1]),P[A]=m,P[A+1]=_;return h};if(e._g=k,e.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",e.type=="VML"){var ve,we=k.doc.createElement("div");if(we.innerHTML='<v:shape adj="1"/>',(ve=we.firstChild).style.behavior="url(#default#VML)",!ve||typeof ve.adj!="object")return e.type=N;we=null}function Ne(h){if(typeof h=="function"||Object(h)!==h)return h;var d=new h.constructor;for(var m in h)h[E](m)&&(d[m]=Ne(h[m]));return d}e.svg=!(e.vml=e.type=="VML"),e._Paper=R,e.fn=o=R.prototype=e.prototype,e._id=0,e.is=function(h,d){return(d=W.call(d))=="finite"?!x[E](+h):d=="array"?h instanceof Array:d=="null"&&h===null||d==typeof h&&h!==null||d=="object"&&h===Object(h)||d=="array"&&Array.isArray&&Array.isArray(h)||$e.call(h).slice(8,-1).toLowerCase()==d},e.angle=function(h,d,m,_,w,A){if(w==null){var L=h-m,I=d-_;return L||I?(180+180*U.atan2(-I,-L)/ke+360)%360:0}return e.angle(h,d,w,A)-e.angle(m,_,w,A)},e.rad=function(h){return h%360*ke/180},e.deg=function(h){return Math.round(180*h/ke%360*1e3)/1e3},e.snapTo=function(h,d,m){if(m=e.is(m,"finite")?m:10,e.is(h,ye)){for(var _=h.length;_--;)if(se(h[_]-d)<=m)return h[_]}else{var w=d%(h=+h);if(w<m)return d-w;if(w>h-m)return d-w+h}return d};var He,ze;e.createUUID=(He=/[xy]/g,ze=function(h){var d=16*U.random()|0;return(h=="x"?d:3&d|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(He,ze).toUpperCase()}),e.setWindow=function(h){t("raphael.setWindow",e,k.win,h),k.win=h,k.doc=k.win.document,e._engine.initWin&&e._engine.initWin(k.win)};var Fe=function(h){if(e.vml){var d,m=/^\s+|\s+$/g;try{var _=new ActiveXObject("htmlfile");_.write("<body>"),_.close(),d=_.body}catch(L){d=createPopup().document.body}var w=d.createTextRange();Fe=je(function(L){try{d.style.color=B(L).replace(m,N);var I=w.queryCommandValue("ForeColor");return"#"+("000000"+(I=(255&I)<<16|65280&I|(16711680&I)>>>16).toString(16)).slice(-6)}catch(P){return"none"}})}else{var A=k.doc.createElement("i");A.title="Raphaël Colour Picker",A.style.display="none",k.doc.body.appendChild(A),Fe=je(function(L){return A.style.color=L,k.doc.defaultView.getComputedStyle(A,N).getPropertyValue("color")})}return Fe(h)},Ve=function(){return"hsb("+[this.h,this.s,this.b]+")"},qe=function(){return"hsl("+[this.h,this.s,this.l]+")"},Re=function(){return this.hex},Ke=function(h,d,m){if(d==null&&e.is(h,"object")&&"r"in h&&"g"in h&&"b"in h&&(m=h.b,d=h.g,h=h.r),d==null&&e.is(h,"string")){var _=e.getRGB(h);h=_.r,d=_.g,m=_.b}return(h>1||d>1||m>1)&&(h/=255,d/=255,m/=255),[h,d,m]},ut=function(h,d,m,_){var w={r:h*=255,g:d*=255,b:m*=255,hex:e.rgb(h,d,m),toString:Re};return e.is(_,"finite")&&(w.opacity=_),w};function je(h,d,m){return function _(){var w=Array.prototype.slice.call(arguments,0),A=w.join("␀"),L=_.cache=_.cache||{},I=_.count=_.count||[];return L[E](A)?(function(P,H){for(var Q=0,ae=P.length;Q<ae;Q++)if(P[Q]===H)return P.push(P.splice(Q,1)[0])}(I,A),m?m(L[A]):L[A]):(I.length>=1e3&&delete L[I.shift()],I.push(A),L[A]=h[b](d,w),m?m(L[A]):L[A])}}e.color=function(h){var d;return e.is(h,"object")&&"h"in h&&"s"in h&&"b"in h?(d=e.hsb2rgb(h),h.r=d.r,h.g=d.g,h.b=d.b,h.hex=d.hex):e.is(h,"object")&&"h"in h&&"s"in h&&"l"in h?(d=e.hsl2rgb(h),h.r=d.r,h.g=d.g,h.b=d.b,h.hex=d.hex):(e.is(h,"string")&&(h=e.getRGB(h)),e.is(h,"object")&&"r"in h&&"g"in h&&"b"in h?(d=e.rgb2hsl(h),h.h=d.h,h.s=d.s,h.l=d.l,d=e.rgb2hsb(h),h.v=d.b):(h={hex:"none"}).r=h.g=h.b=h.h=h.s=h.v=h.l=-1),h.toString=Re,h},e.hsb2rgb=function(h,d,m,_){var w,A,L,I,P;return this.is(h,"object")&&"h"in h&&"s"in h&&"b"in h&&(m=h.b,d=h.s,_=h.o,h=h.h),I=(P=m*d)*(1-se((h=(h*=360)%360/60)%2-1)),w=A=L=m-P,ut(w+=[P,I,0,0,I,P][h=~~h],A+=[I,P,P,I,0,0][h],L+=[0,0,I,P,P,I][h],_)},e.hsl2rgb=function(h,d,m,_){var w,A,L,I,P;return this.is(h,"object")&&"h"in h&&"s"in h&&"l"in h&&(m=h.l,d=h.s,h=h.h),(h>1||d>1||m>1)&&(h/=360,d/=100,m/=100),I=(P=2*d*(m<.5?m:1-m))*(1-se((h=(h*=360)%360/60)%2-1)),w=A=L=m-P/2,ut(w+=[P,I,0,0,I,P][h=~~h],A+=[I,P,P,I,0,0][h],L+=[0,0,I,P,P,I][h],_)},e.rgb2hsb=function(h,d,m){var _,w;return h=(m=Ke(h,d,m))[0],d=m[1],m=m[2],{h:(((w=(_=ne(h,d,m))-K(h,d,m))==0?null:_==h?(d-m)/w:_==d?(m-h)/w+2:(h-d)/w+4)+360)%6*60/360,s:w==0?0:w/_,b:_,toString:Ve}},e.rgb2hsl=function(h,d,m){var _,w,A,L;return h=(m=Ke(h,d,m))[0],d=m[1],m=m[2],_=((w=ne(h,d,m))+(A=K(h,d,m)))/2,{h:(((L=w-A)==0?null:w==h?(d-m)/L:w==d?(m-h)/L+2:(h-d)/L+4)+360)%6*60/360,s:L==0?0:_<.5?L/(2*_):L/(2-2*_),l:_,toString:qe}},e._path2string=function(){return this.join(",").replace(he,"$1")},e._preload=function(h,d){var m=k.doc.createElement("img");m.style.cssText="position:absolute;left:-9999em;top:-9999em",m.onload=function(){d.call(this),this.onload=null,k.doc.body.removeChild(this)},m.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(m),m.src=h};function tt(){return this.hex}function dt(h,d){for(var m=[],_=0,w=h.length;w-2*!d>_;_+=2){var A=[{x:+h[_-2],y:+h[_-1]},{x:+h[_],y:+h[_+1]},{x:+h[_+2],y:+h[_+3]},{x:+h[_+4],y:+h[_+5]}];d?_?w-4==_?A[3]={x:+h[0],y:+h[1]}:w-2==_&&(A[2]={x:+h[0],y:+h[1]},A[3]={x:+h[2],y:+h[3]}):A[0]={x:+h[w-2],y:+h[w-1]}:w-4==_?A[3]=A[2]:_||(A[0]={x:+h[_],y:+h[_+1]}),m.push(["C",(-A[0].x+6*A[1].x+A[2].x)/6,(-A[0].y+6*A[1].y+A[2].y)/6,(A[1].x+6*A[2].x-A[3].x)/6,(A[1].y+6*A[2].y-A[3].y)/6,A[2].x,A[2].y])}return m}e.getRGB=je(function(h){if(!h||(h=B(h)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:tt};if(h=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:tt};!ee[E](h.toLowerCase().substring(0,2))&&h.charAt()!="#"&&(h=Fe(h));var d,m,_,w,A,L,I=h.match(T);return I?(I[2]&&(_=j(I[2].substring(5),16),m=j(I[2].substring(3,5),16),d=j(I[2].substring(1,3),16)),I[3]&&(_=j((A=I[3].charAt(3))+A,16),m=j((A=I[3].charAt(2))+A,16),d=j((A=I[3].charAt(1))+A,16)),I[4]&&(L=I[4][F](G),d=M(L[0]),L[0].slice(-1)=="%"&&(d*=2.55),m=M(L[1]),L[1].slice(-1)=="%"&&(m*=2.55),_=M(L[2]),L[2].slice(-1)=="%"&&(_*=2.55),I[1].toLowerCase().slice(0,4)=="rgba"&&(w=M(L[3])),L[3]&&L[3].slice(-1)=="%"&&(w/=100)),I[5]?(L=I[5][F](G),d=M(L[0]),L[0].slice(-1)=="%"&&(d*=2.55),m=M(L[1]),L[1].slice(-1)=="%"&&(m*=2.55),_=M(L[2]),L[2].slice(-1)=="%"&&(_*=2.55),(L[0].slice(-3)=="deg"||L[0].slice(-1)=="°")&&(d/=360),I[1].toLowerCase().slice(0,4)=="hsba"&&(w=M(L[3])),L[3]&&L[3].slice(-1)=="%"&&(w/=100),e.hsb2rgb(d,m,_,w)):I[6]?(L=I[6][F](G),d=M(L[0]),L[0].slice(-1)=="%"&&(d*=2.55),m=M(L[1]),L[1].slice(-1)=="%"&&(m*=2.55),_=M(L[2]),L[2].slice(-1)=="%"&&(_*=2.55),(L[0].slice(-3)=="deg"||L[0].slice(-1)=="°")&&(d/=360),I[1].toLowerCase().slice(0,4)=="hsla"&&(w=M(L[3])),L[3]&&L[3].slice(-1)=="%"&&(w/=100),e.hsl2rgb(d,m,_,w)):((I={r:d,g:m,b:_,toString:tt}).hex="#"+(16777216|_|m<<8|d<<16).toString(16).slice(1),e.is(w,"finite")&&(I.opacity=w),I)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:tt}},e),e.hsb=je(function(h,d,m){return e.hsb2rgb(h,d,m).hex}),e.hsl=je(function(h,d,m){return e.hsl2rgb(h,d,m).hex}),e.rgb=je(function(h,d,m){function _(w){return w+.5|0}return"#"+(16777216|_(m)|_(d)<<8|_(h)<<16).toString(16).slice(1)}),e.getColor=function(h){var d=this.getColor.start=this.getColor.start||{h:0,s:1,b:h||.75},m=this.hsb2rgb(d.h,d.s,d.b);return d.h+=.075,d.h>1&&(d.h=0,d.s-=.2,d.s<=0&&(this.getColor.start={h:0,s:1,b:d.b})),m.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(h){if(!h)return null;var d=Ye(h);if(d.arr)return Ze(d.arr);var m={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},_=[];return e.is(h,ye)&&e.is(h[0],ye)&&(_=Ze(h)),_.length||B(h).replace(fe,function(w,A,L){var I=[],P=A.toLowerCase();if(L.replace(Ce,function(H,Q){Q&&I.push(+Q)}),P=="m"&&I.length>2&&(_.push([A][p](I.splice(0,2))),P="l",A=A=="m"?"l":"L"),P=="r")_.push([A][p](I));else for(;I.length>=m[P]&&(_.push([A][p](I.splice(0,m[P]))),m[P]););}),_.toString=e._path2string,d.arr=Ze(_),_},e.parseTransformString=je(function(h){if(!h)return null;var d=[];return e.is(h,ye)&&e.is(h[0],ye)&&(d=Ze(h)),d.length||B(h).replace(pe,function(m,_,w){var A=[];W.call(_),w.replace(Ce,function(L,I){I&&A.push(+I)}),d.push([_][p](A))}),d.toString=e._path2string,d},this,function(h){if(!h)return h;for(var d=[],m=0;m<h.length;m++){for(var _=[],w=0;w<h[m].length;w++)_.push(h[m][w]);d.push(_)}return d});var Ye=function(h){var d=Ye.ps=Ye.ps||{};return d[h]?d[h].sleep=100:d[h]={sleep:100},setTimeout(function(){for(var m in d)d[E](m)&&m!=h&&(d[m].sleep--,!d[m].sleep&&delete d[m])}),d[h]};function Ue(h,d,m,_,w){return h*(h*(-3*d+9*m-9*_+3*w)+6*d-12*m+6*_)-3*d+3*m}function ft(h,d,m,_,w,A,L,I,P){P==null&&(P=1);for(var H=(P=P>1?1:P<0?0:P)/2,Q=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],ae=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],J=0,X=0;X<12;X++){var ie=H*Q[X]+H,oe=Ue(ie,h,m,w,L),re=Ue(ie,d,_,A,I),Z=oe*oe+re*re;J+=ae[X]*U.sqrt(Z)}return H*J}function xi(h,d,m,_,w,A,L,I){if(!(ne(h,m)<K(w,L)||K(h,m)>ne(w,L)||ne(d,_)<K(A,I)||K(d,_)>ne(A,I))){var P=(h-m)*(A-I)-(d-_)*(w-L);if(P){var H=((h*_-d*m)*(w-L)-(h-m)*(w*I-A*L))/P,Q=((h*_-d*m)*(A-I)-(d-_)*(w*I-A*L))/P,ae=+H.toFixed(2),J=+Q.toFixed(2);if(!(ae<+K(h,m).toFixed(2)||ae>+ne(h,m).toFixed(2)||ae<+K(w,L).toFixed(2)||ae>+ne(w,L).toFixed(2)||J<+K(d,_).toFixed(2)||J>+ne(d,_).toFixed(2)||J<+K(A,I).toFixed(2)||J>+ne(A,I).toFixed(2)))return{x:H,y:Q}}}}function Qt(h,d,m){var _=e.bezierBBox(h),w=e.bezierBBox(d);if(!e.isBBoxIntersect(_,w))return m?0:[];for(var A=ft.apply(0,h),L=ft.apply(0,d),I=ne(~~(A/5),1),P=ne(~~(L/5),1),H=[],Q=[],ae={},J=m?0:[],X=0;X<I+1;X++){var ie=e.findDotsAtSegment.apply(e,h.concat(X/I));H.push({x:ie.x,y:ie.y,t:X/I})}for(X=0;X<P+1;X++)ie=e.findDotsAtSegment.apply(e,d.concat(X/P)),Q.push({x:ie.x,y:ie.y,t:X/P});for(X=0;X<I;X++)for(var oe=0;oe<P;oe++){var re=H[X],Z=H[X+1],be=Q[oe],le=Q[oe+1],de=se(Z.x-re.x)<.001?"y":"x",ce=se(le.x-be.x)<.001?"y":"x",Ie=xi(re.x,re.y,Z.x,Z.y,be.x,be.y,le.x,le.y);if(Ie){if(ae[Ie.x.toFixed(4)]==Ie.y.toFixed(4))continue;ae[Ie.x.toFixed(4)]=Ie.y.toFixed(4);var Oe=re.t+se((Ie[de]-re[de])/(Z[de]-re[de]))*(Z.t-re.t),Le=be.t+se((Ie[ce]-be[ce])/(le[ce]-be[ce]))*(le.t-be.t);Oe>=0&&Oe<=1.001&&Le>=0&&Le<=1.001&&(m?J++:J.push({x:Ie.x,y:Ie.y,t1:K(Oe,1),t2:K(Le,1)}))}}return J}function ki(h,d,m){h=e._path2curve(h),d=e._path2curve(d);for(var _,w,A,L,I,P,H,Q,ae,J,X=m?0:[],ie=0,oe=h.length;ie<oe;ie++){var re=h[ie];if(re[0]=="M")_=I=re[1],w=P=re[2];else{re[0]=="C"?(ae=[_,w].concat(re.slice(1)),_=ae[6],w=ae[7]):(ae=[_,w,_,w,I,P,I,P],_=I,w=P);for(var Z=0,be=d.length;Z<be;Z++){var le=d[Z];if(le[0]=="M")A=H=le[1],L=Q=le[2];else{le[0]=="C"?(J=[A,L].concat(le.slice(1)),A=J[6],L=J[7]):(J=[A,L,A,L,H,Q,H,Q],A=H,L=Q);var de=Qt(ae,J,m);if(m)X+=de;else{for(var ce=0,Ie=de.length;ce<Ie;ce++)de[ce].segment1=ie,de[ce].segment2=Z,de[ce].bez1=ae,de[ce].bez2=J;X=X.concat(de)}}}}}return X}e.findDotsAtSegment=function(h,d,m,_,w,A,L,I,P){var H=1-P,Q=_e(H,3),ae=_e(H,2),J=P*P,X=J*P,ie=Q*h+3*ae*P*m+3*H*P*P*w+X*L,oe=Q*d+3*ae*P*_+3*H*P*P*A+X*I,re=h+2*P*(m-h)+J*(w-2*m+h),Z=d+2*P*(_-d)+J*(A-2*_+d),be=m+2*P*(w-m)+J*(L-2*w+m),le=_+2*P*(A-_)+J*(I-2*A+_),de=H*h+P*m,ce=H*d+P*_,Ie=H*w+P*L,Oe=H*A+P*I,Le=90-180*U.atan2(re-be,Z-le)/ke;return(re>be||Z<le)&&(Le+=180),{x:ie,y:oe,m:{x:re,y:Z},n:{x:be,y:le},start:{x:de,y:ce},end:{x:Ie,y:Oe},alpha:Le}},e.bezierBBox=function(h,d,m,_,w,A,L,I){e.is(h,"array")||(h=[h,d,m,_,w,A,L,I]);var P=Vi.apply(null,h);return{x:P.min.x,y:P.min.y,x2:P.max.x,y2:P.max.y,width:P.max.x-P.min.x,height:P.max.y-P.min.y}},e.isPointInsideBBox=function(h,d,m){return d>=h.x&&d<=h.x2&&m>=h.y&&m<=h.y2},e.isBBoxIntersect=function(h,d){var m=e.isPointInsideBBox;return m(d,h.x,h.y)||m(d,h.x2,h.y)||m(d,h.x,h.y2)||m(d,h.x2,h.y2)||m(h,d.x,d.y)||m(h,d.x2,d.y)||m(h,d.x,d.y2)||m(h,d.x2,d.y2)||(h.x<d.x2&&h.x>d.x||d.x<h.x2&&d.x>h.x)&&(h.y<d.y2&&h.y>d.y||d.y<h.y2&&d.y>h.y)},e.pathIntersection=function(h,d){return ki(h,d)},e.pathIntersectionNumber=function(h,d){return ki(h,d,1)},e.isPointInsidePath=function(h,d,m){var _=e.pathBBox(h);return e.isPointInsideBBox(_,d,m)&&ki(h,[["M",d,m],["H",_.x2+10]],1)%2==1},e._removedFactory=function(h){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+h+"” of removed object",h)}};var Tt=e.pathBBox=function(h){var d=Ye(h);if(d.bbox)return Ne(d.bbox);if(!h)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var m,_=0,w=0,A=[],L=[],I=0,P=(h=Ci(h)).length;I<P;I++)if((m=h[I])[0]=="M")_=m[1],w=m[2],A.push(_),L.push(w);else{var H=Vi(_,w,m[1],m[2],m[3],m[4],m[5],m[6]);A=A[p](H.min.x,H.max.x),L=L[p](H.min.y,H.max.y),_=m[5],w=m[6]}var Q=K[b](0,A),ae=K[b](0,L),J=ne[b](0,A),X=ne[b](0,L),ie=J-Q,oe=X-ae,re={x:Q,y:ae,x2:J,y2:X,width:ie,height:oe,cx:Q+ie/2,cy:ae+oe/2};return d.bbox=Ne(re),re},Ze=function(h){var d=Ne(h);return d.toString=e._path2string,d},kn=e._pathToRelative=function(h){var d=Ye(h);if(d.rel)return Ze(d.rel);e.is(h,ye)&&e.is(h&&h[0],ye)||(h=e.parsePathString(h));var m=[],_=0,w=0,A=0,L=0,I=0;h[0][0]=="M"&&(A=_=h[0][1],L=w=h[0][2],I++,m.push(["M",_,w]));for(var P=I,H=h.length;P<H;P++){var Q=m[P]=[],ae=h[P];if(ae[0]!=W.call(ae[0]))switch(Q[0]=W.call(ae[0]),Q[0]){case"a":Q[1]=ae[1],Q[2]=ae[2],Q[3]=ae[3],Q[4]=ae[4],Q[5]=ae[5],Q[6]=+(ae[6]-_).toFixed(3),Q[7]=+(ae[7]-w).toFixed(3);break;case"v":Q[1]=+(ae[1]-w).toFixed(3);break;case"m":A=ae[1],L=ae[2];default:for(var J=1,X=ae.length;J<X;J++)Q[J]=+(ae[J]-(J%2?_:w)).toFixed(3)}else{Q=m[P]=[],ae[0]=="m"&&(A=ae[1]+_,L=ae[2]+w);for(var ie=0,oe=ae.length;ie<oe;ie++)m[P][ie]=ae[ie]}var re=m[P].length;switch(m[P][0]){case"z":_=A,w=L;break;case"h":_+=+m[P][re-1];break;case"v":w+=+m[P][re-1];break;default:_+=+m[P][re-2],w+=+m[P][re-1]}}return m.toString=e._path2string,d.rel=Ze(m),m},Zt=e._pathToAbsolute=function(h){var d=Ye(h);if(d.abs)return Ze(d.abs);if(e.is(h,ye)&&e.is(h&&h[0],ye)||(h=e.parsePathString(h)),!h||!h.length)return[["M",0,0]];var m=[],_=0,w=0,A=0,L=0,I=0;h[0][0]=="M"&&(A=_=+h[0][1],L=w=+h[0][2],I++,m[0]=["M",_,w]);for(var P,H,Q=h.length==3&&h[0][0]=="M"&&h[1][0].toUpperCase()=="R"&&h[2][0].toUpperCase()=="Z",ae=I,J=h.length;ae<J;ae++){if(m.push(P=[]),(H=h[ae])[0]!=z.call(H[0]))switch(P[0]=z.call(H[0]),P[0]){case"A":P[1]=H[1],P[2]=H[2],P[3]=H[3],P[4]=H[4],P[5]=H[5],P[6]=+(H[6]+_),P[7]=+(H[7]+w);break;case"V":P[1]=+H[1]+w;break;case"H":P[1]=+H[1]+_;break;case"R":for(var X=[_,w][p](H.slice(1)),ie=2,oe=X.length;ie<oe;ie++)X[ie]=+X[ie]+_,X[++ie]=+X[ie]+w;m.pop(),m=m[p](dt(X,Q));break;case"M":A=+H[1]+_,L=+H[2]+w;default:for(ie=1,oe=H.length;ie<oe;ie++)P[ie]=+H[ie]+(ie%2?_:w)}else if(H[0]=="R")X=[_,w][p](H.slice(1)),m.pop(),m=m[p](dt(X,Q)),P=["R"][p](H.slice(-2));else for(var re=0,Z=H.length;re<Z;re++)P[re]=H[re];switch(P[0]){case"Z":_=A,w=L;break;case"H":_=P[1];break;case"V":w=P[1];break;case"M":A=P[P.length-2],L=P[P.length-1];default:_=P[P.length-2],w=P[P.length-1]}}return m.toString=e._path2string,d.abs=Ze(m),m},Jt=function(h,d,m,_){return[h,d,m,_,m,_]},St=function(h,d,m,_,w,A){return[1/3*h+2/3*m,1/3*d+2/3*_,1/3*w+2/3*m,1/3*A+2/3*_,w,A]},Hi=function(h,d,m,_,w,A,L,I,P,H){var Q,ae=120*ke/180,J=ke/180*(+w||0),X=[],ie=je(function(zn,Hn,Ui){return{x:zn*U.cos(Ui)-Hn*U.sin(Ui),y:zn*U.sin(Ui)+Hn*U.cos(Ui)}});if(H)Oe=H[0],Le=H[1],ce=H[2],Ie=H[3];else{h=(Q=ie(h,d,-J)).x,d=Q.y,I=(Q=ie(I,P,-J)).x,P=Q.y;var oe=(h-I)/2,re=(d-P)/2,Z=oe*oe/(m*m)+re*re/(_*_);Z>1&&(m*=Z=U.sqrt(Z),_*=Z);var be=m*m,le=_*_,de=(A==L?-1:1)*U.sqrt(se((be*le-be*re*re-le*oe*oe)/(be*re*re+le*oe*oe))),ce=de*m*re/_+(h+I)/2,Ie=de*-_*oe/m+(d+P)/2,Oe=U.asin(((d-Ie)/_).toFixed(9)),Le=U.asin(((P-Ie)/_).toFixed(9));(Oe=h<ce?ke-Oe:Oe)<0&&(Oe=2*ke+Oe),(Le=I<ce?ke-Le:Le)<0&&(Le=2*ke+Le),L&&Oe>Le&&(Oe-=2*ke),!L&&Le>Oe&&(Le-=2*ke)}var ti=Le-Oe;if(se(ti)>ae){var Si=Le,Je=I,mt=P;Le=Oe+ae*(L&&Le>Oe?1:-1),I=ce+m*U.cos(Le),P=Ie+_*U.sin(Le),X=Hi(I,P,m,_,w,0,L,Je,mt,[Le,Si,ce,Ie])}ti=Le-Oe;var ii=U.cos(Oe),si=U.sin(Oe),Wi=U.cos(Le),wt=U.sin(Le),Ht=U.tan(ti/4),Yi=4/3*m*Ht,Pn=4/3*_*Ht,Rn=[h,d],ni=[h+Yi*si,d-Pn*ii],Bn=[I+Yi*wt,P-Pn*Wi],Fn=[I,P];if(ni[0]=2*Rn[0]-ni[0],ni[1]=2*Rn[1]-ni[1],H)return[ni,Bn,Fn][p](X);for(var jn=[],Dt=0,Za=(X=[ni,Bn,Fn][p](X).join()[F](",")).length;Dt<Za;Dt++)jn[Dt]=Dt%2?ie(X[Dt-1],X[Dt],J).y:ie(X[Dt],X[Dt+1],J).x;return jn},Ft=function(h,d,m,_,w,A,L,I,P){var H=1-P;return{x:_e(H,3)*h+3*_e(H,2)*P*m+3*H*P*P*w+_e(P,3)*L,y:_e(H,3)*d+3*_e(H,2)*P*_+3*H*P*P*A+_e(P,3)*I}},Vi=je(function(h,d,m,_,w,A,L,I){var P,H=w-2*m+h-(L-2*w+m),Q=2*(m-h)-2*(w-m),ae=h-m,J=(-Q+U.sqrt(Q*Q-4*H*ae))/2/H,X=(-Q-U.sqrt(Q*Q-4*H*ae))/2/H,ie=[d,I],oe=[h,L];return se(J)>"1e12"&&(J=.5),se(X)>"1e12"&&(X=.5),J>0&&J<1&&(P=Ft(h,d,m,_,w,A,L,I,J),oe.push(P.x),ie.push(P.y)),X>0&&X<1&&(P=Ft(h,d,m,_,w,A,L,I,X),oe.push(P.x),ie.push(P.y)),H=A-2*_+d-(I-2*A+_),ae=d-_,J=(-(Q=2*(_-d)-2*(A-_))+U.sqrt(Q*Q-4*H*ae))/2/H,X=(-Q-U.sqrt(Q*Q-4*H*ae))/2/H,se(J)>"1e12"&&(J=.5),se(X)>"1e12"&&(X=.5),J>0&&J<1&&(P=Ft(h,d,m,_,w,A,L,I,J),oe.push(P.x),ie.push(P.y)),X>0&&X<1&&(P=Ft(h,d,m,_,w,A,L,I,X),oe.push(P.x),ie.push(P.y)),{min:{x:K[b](0,oe),y:K[b](0,ie)},max:{x:ne[b](0,oe),y:ne[b](0,ie)}}}),Ci=e._path2curve=je(function(h,d){var m=!d&&Ye(h);if(!d&&m.curve)return Ze(m.curve);for(var _=Zt(h),w=d&&Zt(d),A={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},L={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},I=function(de,ce,Ie){var Oe,Le;if(!de)return["C",ce.x,ce.y,ce.x,ce.y,ce.x,ce.y];switch(!(de[0]in{T:1,Q:1})&&(ce.qx=ce.qy=null),de[0]){case"M":ce.X=de[1],ce.Y=de[2];break;case"A":de=["C"][p](Hi[b](0,[ce.x,ce.y][p](de.slice(1))));break;case"S":Ie=="C"||Ie=="S"?(Oe=2*ce.x-ce.bx,Le=2*ce.y-ce.by):(Oe=ce.x,Le=ce.y),de=["C",Oe,Le][p](de.slice(1));break;case"T":Ie=="Q"||Ie=="T"?(ce.qx=2*ce.x-ce.qx,ce.qy=2*ce.y-ce.qy):(ce.qx=ce.x,ce.qy=ce.y),de=["C"][p](St(ce.x,ce.y,ce.qx,ce.qy,de[1],de[2]));break;case"Q":ce.qx=de[1],ce.qy=de[2],de=["C"][p](St(ce.x,ce.y,de[1],de[2],de[3],de[4]));break;case"L":de=["C"][p](Jt(ce.x,ce.y,de[1],de[2]));break;case"H":de=["C"][p](Jt(ce.x,ce.y,de[1],ce.y));break;case"V":de=["C"][p](Jt(ce.x,ce.y,ce.x,de[1]));break;case"Z":de=["C"][p](Jt(ce.x,ce.y,ce.X,ce.Y))}return de},P=function(de,ce){if(de[ce].length>7){de[ce].shift();for(var Ie=de[ce];Ie.length;)Q[ce]="A",w&&(ae[ce]="A"),de.splice(ce++,0,["C"][p](Ie.splice(0,6)));de.splice(ce,1),oe=ne(_.length,w&&w.length||0)}},H=function(de,ce,Ie,Oe,Le){de&&ce&&de[Le][0]=="M"&&ce[Le][0]!="M"&&(ce.splice(Le,0,["M",Oe.x,Oe.y]),Ie.bx=0,Ie.by=0,Ie.x=de[Le][1],Ie.y=de[Le][2],oe=ne(_.length,w&&w.length||0))},Q=[],ae=[],J="",X="",ie=0,oe=ne(_.length,w&&w.length||0);ie<oe;ie++){_[ie]&&(J=_[ie][0]),J!="C"&&(Q[ie]=J,ie&&(X=Q[ie-1])),_[ie]=I(_[ie],A,X),Q[ie]!="A"&&J=="C"&&(Q[ie]="C"),P(_,ie),w&&(w[ie]&&(J=w[ie][0]),J!="C"&&(ae[ie]=J,ie&&(X=ae[ie-1])),w[ie]=I(w[ie],L,X),ae[ie]!="A"&&J=="C"&&(ae[ie]="C"),P(w,ie)),H(_,w,A,L,ie),H(w,_,L,A,ie);var re=_[ie],Z=w&&w[ie],be=re.length,le=w&&Z.length;A.x=re[be-2],A.y=re[be-1],A.bx=M(re[be-4])||A.x,A.by=M(re[be-3])||A.y,L.bx=w&&(M(Z[le-4])||L.x),L.by=w&&(M(Z[le-3])||L.y),L.x=w&&Z[le-2],L.y=w&&Z[le-1]}return w||(m.curve=Ze(_)),w?[_,w]:_},null,Ze),qi=(e._parseDots=je(function(h){for(var d=[],m=0,_=h.length;m<_;m++){var w={},A=h[m].match(/^([^:]*):?([\d\.]*)/);if(w.color=e.getRGB(A[1]),w.color.error)return null;w.opacity=w.color.opacity,w.color=w.color.hex,A[2]&&(w.offset=A[2]+"%"),d.push(w)}for(m=1,_=d.length-1;m<_;m++)if(!d[m].offset){for(var L=M(d[m-1].offset||0),I=0,P=m+1;P<_;P++)if(d[P].offset){I=d[P].offset;break}I||(I=100,P=_);for(var H=((I=M(I))-L)/(P-m+1);m<P;m++)L+=H,d[m].offset=L+"%"}return d}),e._tear=function(h,d){h==d.top&&(d.top=h.prev),h==d.bottom&&(d.bottom=h.next),h.next&&(h.next.prev=h.prev),h.prev&&(h.prev.next=h.next)}),qa=(e._tofront=function(h,d){d.top!==h&&(qi(h,d),h.next=null,h.prev=d.top,d.top.next=h,d.top=h)},e._toback=function(h,d){d.bottom!==h&&(qi(h,d),h.next=d.bottom,h.prev=null,d.bottom.prev=h,d.bottom=h)},e._insertafter=function(h,d,m){qi(h,m),d==m.top&&(m.top=h),d.next&&(d.next.prev=h),h.next=d.next,h.prev=d,d.next=h},e._insertbefore=function(h,d,m){qi(h,m),d==m.bottom&&(m.bottom=h),d.prev&&(d.prev.next=h),h.prev=d.prev,d.prev=h,h.next=d},e.toMatrix=function(h,d){var m=Tt(h),_={_:{transform:N},getBBox:function(){return m}};return Cn(_,d),_.matrix}),Cn=(e.transformPath=function(h,d){return ge(h,qa(h,d))},e._extractTransform=function(h,d){if(d==null)return h._.transform;d=B(d).replace(/\.{3}|\u2026/g,h._.transform||N);var m,_,w=e.parseTransformString(d),A=0,L=1,I=1,P=h._,H=new jt;if(P.transform=w||[],w)for(var Q=0,ae=w.length;Q<ae;Q++){var J,X,ie,oe,re,Z=w[Q],be=Z.length,le=B(Z[0]).toLowerCase(),de=Z[0]!=le,ce=de?H.invert():0;le=="t"&&be==3?de?(J=ce.x(0,0),X=ce.y(0,0),ie=ce.x(Z[1],Z[2]),oe=ce.y(Z[1],Z[2]),H.translate(ie-J,oe-X)):H.translate(Z[1],Z[2]):le=="r"?be==2?(re=re||h.getBBox(1),H.rotate(Z[1],re.x+re.width/2,re.y+re.height/2),A+=Z[1]):be==4&&(de?(ie=ce.x(Z[2],Z[3]),oe=ce.y(Z[2],Z[3]),H.rotate(Z[1],ie,oe)):H.rotate(Z[1],Z[2],Z[3]),A+=Z[1]):le=="s"?be==2||be==3?(re=re||h.getBBox(1),H.scale(Z[1],Z[be-1],re.x+re.width/2,re.y+re.height/2),L*=Z[1],I*=Z[be-1]):be==5&&(de?(ie=ce.x(Z[3],Z[4]),oe=ce.y(Z[3],Z[4]),H.scale(Z[1],Z[2],ie,oe)):H.scale(Z[1],Z[2],Z[3],Z[4]),L*=Z[1],I*=Z[2]):le=="m"&&be==7&&H.add(Z[1],Z[2],Z[3],Z[4],Z[5],Z[6]),P.dirtyT=1,h.matrix=H}h.matrix=H,P.sx=L,P.sy=I,P.deg=A,P.dx=m=H.e,P.dy=_=H.f,L==1&&I==1&&!A&&P.bbox?(P.bbox.x+=+m,P.bbox.y+=+_):P.dirtyT=1}),En=function(h){var d=h[0];switch(d.toLowerCase()){case"t":return[d,0,0];case"m":return[d,1,0,0,1,0,0];case"r":return h.length==4?[d,0,h[2],h[3]]:[d,0];case"s":return h.length==5?[d,1,1,h[3],h[4]]:h.length==3?[d,1,1]:[d,1]}},Wa=e._equaliseTransform=function(h,d){d=B(d).replace(/\.{3}|\u2026/g,h),h=e.parseTransformString(h)||[],d=e.parseTransformString(d)||[];for(var m,_,w,A,L=ne(h.length,d.length),I=[],P=[],H=0;H<L;H++){if(w=h[H]||En(d[H]),A=d[H]||En(w),w[0]!=A[0]||w[0].toLowerCase()=="r"&&(w[2]!=A[2]||w[3]!=A[3])||w[0].toLowerCase()=="s"&&(w[3]!=A[3]||w[4]!=A[4]))return;for(I[H]=[],P[H]=[],m=0,_=ne(w.length,A.length);m<_;m++)m in w&&(I[H][m]=w[m]),m in A&&(P[H][m]=A[m])}return{from:I,to:P}};function jt(h,d,m,_,w,A){h!=null?(this.a=+h,this.b=+d,this.c=+m,this.d=+_,this.e=+w,this.f=+A):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}e._getContainer=function(h,d,m,_){var w;if((w=_!=null||e.is(h,"object")?h:k.doc.getElementById(h))!=null)return w.tagName?d==null?{container:w,width:w.style.pixelWidth||w.offsetWidth,height:w.style.pixelHeight||w.offsetHeight}:{container:w,width:d,height:m}:{container:1,x:h,y:d,width:m,height:_}},e.pathToRelative=kn,e._engine={},e.path2curve=Ci,e.matrix=function(h,d,m,_,w,A){return new jt(h,d,m,_,w,A)},function(h){function d(_){return _[0]*_[0]+_[1]*_[1]}function m(_){var w=U.sqrt(d(_));_[0]&&(_[0]/=w),_[1]&&(_[1]/=w)}h.add=function(_,w,A,L,I,P){var H,Q,ae,J,X=[[],[],[]],ie=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],oe=[[_,A,I],[w,L,P],[0,0,1]];for(_&&_ instanceof jt&&(oe=[[_.a,_.c,_.e],[_.b,_.d,_.f],[0,0,1]]),H=0;H<3;H++)for(Q=0;Q<3;Q++){for(J=0,ae=0;ae<3;ae++)J+=ie[H][ae]*oe[ae][Q];X[H][Q]=J}this.a=X[0][0],this.b=X[1][0],this.c=X[0][1],this.d=X[1][1],this.e=X[0][2],this.f=X[1][2]},h.invert=function(){var _=this,w=_.a*_.d-_.b*_.c;return new jt(_.d/w,-_.b/w,-_.c/w,_.a/w,(_.c*_.f-_.d*_.e)/w,(_.b*_.e-_.a*_.f)/w)},h.clone=function(){return new jt(this.a,this.b,this.c,this.d,this.e,this.f)},h.translate=function(_,w){this.add(1,0,0,1,_,w)},h.scale=function(_,w,A,L){w==null&&(w=_),(A||L)&&this.add(1,0,0,1,A,L),this.add(_,0,0,w,0,0),(A||L)&&this.add(1,0,0,1,-A,-L)},h.rotate=function(_,w,A){_=e.rad(_),w=w||0,A=A||0;var L=+U.cos(_).toFixed(9),I=+U.sin(_).toFixed(9);this.add(L,I,-I,L,w,A),this.add(1,0,0,1,-w,-A)},h.x=function(_,w){return _*this.a+w*this.c+this.e},h.y=function(_,w){return _*this.b+w*this.d+this.f},h.get=function(_){return+this[B.fromCharCode(97+_)].toFixed(4)},h.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},h.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},h.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},h.split=function(){var _={};_.dx=this.e,_.dy=this.f;var w=[[this.a,this.c],[this.b,this.d]];_.scalex=U.sqrt(d(w[0])),m(w[0]),_.shear=w[0][0]*w[1][0]+w[0][1]*w[1][1],w[1]=[w[1][0]-w[0][0]*_.shear,w[1][1]-w[0][1]*_.shear],_.scaley=U.sqrt(d(w[1])),m(w[1]),_.shear/=_.scaley;var A=-w[0][1],L=w[1][1];return L<0?(_.rotate=e.deg(U.acos(L)),A<0&&(_.rotate=360-_.rotate)):_.rotate=e.deg(U.asin(A)),_.isSimple=!(+_.shear.toFixed(9)||_.scalex.toFixed(9)!=_.scaley.toFixed(9)&&_.rotate),_.isSuperSimple=!+_.shear.toFixed(9)&&_.scalex.toFixed(9)==_.scaley.toFixed(9)&&!_.rotate,_.noRotation=!+_.shear.toFixed(9)&&!_.rotate,_},h.toTransformString=function(_){var w=_||this[F]();return w.isSimple?(w.scalex=+w.scalex.toFixed(4),w.scaley=+w.scaley.toFixed(4),w.rotate=+w.rotate.toFixed(4),(w.dx||w.dy?"t"+[w.dx,w.dy]:N)+(w.scalex!=1||w.scaley!=1?"s"+[w.scalex,w.scaley,0,0]:N)+(w.rotate?"r"+[w.rotate,0,0]:N)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(jt.prototype);for(var Ya=function(){this.returnValue=!1},Ua=function(){return this.originalEvent.preventDefault()},Ka=function(){this.cancelBubble=!0},Ga=function(){return this.originalEvent.stopPropagation()},Tn=function(h){var d=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,m=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:h.clientX+m,y:h.clientY+d}},Xa=k.doc.addEventListener?function(h,d,m,_){var w=function(L){var I=Tn(L);return m.call(_,L,I.x,I.y)};if(h.addEventListener(d,w,!1),O&&te[d]){var A=function(L){for(var I=Tn(L),P=L,H=0,Q=L.targetTouches&&L.targetTouches.length;H<Q;H++)if(L.targetTouches[H].target==h){(L=L.targetTouches[H]).originalEvent=P,L.preventDefault=Ua,L.stopPropagation=Ga;break}return m.call(_,L,I.x,I.y)};h.addEventListener(te[d],A,!1)}return function(){return h.removeEventListener(d,w,!1),O&&te[d]&&h.removeEventListener(te[d],A,!1),!0}}:k.doc.attachEvent?function(h,d,m,_){var w=function(A){A=A||k.win.event;var L=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,I=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,P=A.clientX+I,H=A.clientY+L;return A.preventDefault=A.preventDefault||Ya,A.stopPropagation=A.stopPropagation||Ka,m.call(_,A,P,H)};return h.attachEvent("on"+d,w),function(){return h.detachEvent("on"+d,w),!0}}:void 0,At=[],bs=function(h){for(var d,m=h.clientX,_=h.clientY,w=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,A=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,L=At.length;L--;){if(d=At[L],O&&h.touches){for(var I,P=h.touches.length;P--;)if((I=h.touches[P]).identifier==d.el._drag.id){m=I.clientX,_=I.clientY,(h.originalEvent?h.originalEvent:h).preventDefault();break}}else h.preventDefault();var H,Q=d.el.node,ae=Q.nextSibling,J=Q.parentNode,X=Q.style.display;k.win.opera&&J.removeChild(Q),Q.style.display="none",H=d.el.paper.getElementByPoint(m,_),Q.style.display=X,k.win.opera&&(ae?J.insertBefore(Q,ae):J.appendChild(Q)),H&&t("ra
37phael.drag.over."+d.el.id,d.el,H),m+=A,_+=w,t("raphael.drag.move."+d.el.id,d.move_scope||d.el,m-d.el._drag.x,_-d.el._drag.y,m,_,h)}},ws=function(h){e.unmousemove(bs).unmouseup(ws);for(var d,m=At.length;m--;)(d=At[m]).el._drag={},t("raphael.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,h);At=[]},Be=e.el={},Sn=V.length;Sn--;)(function(h){e[h]=Be[h]=function(d,m){return e.is(d,"function")&&(this.events=this.events||[],this.events.push({name:h,f:d,unbind:Xa(this.shape||this.node||k.doc,h,d,m||this)})),this},e["un"+h]=Be["un"+h]=function(d){for(var m=this.events||[],_=m.length;_--;)m[_].name!=h||!e.is(d,"undefined")&&m[_].f!=d||(m[_].unbind(),m.splice(_,1),!m.length&&delete this.events);return this}})(V[Sn]);Be.data=function(h,d){var m=Te[this.id]=Te[this.id]||{};if(arguments.length==0)return m;if(arguments.length==1){if(e.is(h,"object")){for(var _ in h)h[E](_)&&this.data(_,h[_]);return this}return t("raphael.data.get."+this.id,this,m[h],h),m[h]}return m[h]=d,t("raphael.data.set."+this.id,this,d,h),this},Be.removeData=function(h){return h==null?delete Te[this.id]:Te[this.id]&&delete Te[this.id][h],this},Be.getData=function(){return Ne(Te[this.id]||{})},Be.hover=function(h,d,m,_){return this.mouseover(h,m).mouseout(d,_||m)},Be.unhover=function(h,d){return this.unmouseover(h).unmouseout(d)};var ei=[];Be.drag=function(h,d,m,_,w,A){function L(I){(I.originalEvent||I).preventDefault();var P=I.clientX,H=I.clientY,Q=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,ae=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=I.identifier,O&&I.touches){for(var J,X=I.touches.length;X--;)if(J=I.touches[X],this._drag.id=J.identifier,J.identifier==this._drag.id){P=J.clientX,H=J.clientY;break}}this._drag.x=P+ae,this._drag.y=H+Q,!At.length&&e.mousemove(bs).mouseup(ws),At.push({el:this,move_scope:_,start_scope:w,end_scope:A}),d&&t.on("raphael.drag.start."+this.id,d),h&&t.on("raphael.drag.move."+this.id,h),m&&t.on("raphael.drag.end."+this.id,m),t("raphael.drag.start."+this.id,w||_||this,this._drag.x,this._drag.y,I)}return this._drag={},ei.push({el:this,start:L}),this.mousedown(L),this},Be.onDragOver=function(h){h?t.on("raphael.drag.over."+this.id,h):t.unbind("raphael.drag.over."+this.id)},Be.undrag=function(){for(var h=ei.length;h--;)ei[h].el==this&&(this.unmousedown(ei[h].start),ei.splice(h,1),t.unbind("raphael.drag.*."+this.id));!ei.length&&e.unmousemove(bs).unmouseup(ws),At=[]},o.circle=function(h,d,m){var _=e._engine.circle(this,h||0,d||0,m||0);return this.__set__&&this.__set__.push(_),_},o.rect=function(h,d,m,_,w){var A=e._engine.rect(this,h||0,d||0,m||0,_||0,w||0);return this.__set__&&this.__set__.push(A),A},o.ellipse=function(h,d,m,_){var w=e._engine.ellipse(this,h||0,d||0,m||0,_||0);return this.__set__&&this.__set__.push(w),w},o.path=function(h){h&&!e.is(h,"string")&&!e.is(h[0],ye)&&(h+=N);var d=e._engine.path(e.format[b](e,arguments),this);return this.__set__&&this.__set__.push(d),d},o.image=function(h,d,m,_,w){var A=e._engine.image(this,h||"about:blank",d||0,m||0,_||0,w||0);return this.__set__&&this.__set__.push(A),A},o.text=function(h,d,m){var _=e._engine.text(this,h||0,d||0,B(m));return this.__set__&&this.__set__.push(_),_},o.set=function(h){!e.is(h,"array")&&(h=Array.prototype.splice.call(arguments,0,arguments.length));var d=new Ti(h);return this.__set__&&this.__set__.push(d),d.paper=this,d.type="set",d},o.setStart=function(h){this.__set__=h||this.set()},o.setFinish=function(h){var d=this.__set__;return delete this.__set__,d},o.getSize=function(){var h=this.canvas.parentNode;return{width:h.offsetWidth,height:h.offsetHeight}},o.setSize=function(h,d){return e._engine.setSize.call(this,h,d)},o.setViewBox=function(h,d,m,_,w){return e._engine.setViewBox.call(this,h,d,m,_,w)},o.top=o.bottom=null,o.raphael=e;function An(){return this.x+C+this.y+C+this.width+" × "+this.height}o.getElementByPoint=function(h,d){var m,_,w,A,L,I,P,H=this.canvas,Q=k.doc.elementFromPoint(h,d);if(k.win.opera&&Q.tagName=="svg"){var ae=(_=(m=H).getBoundingClientRect(),w=m.ownerDocument,A=w.body,L=w.documentElement,I=L.clientTop||A.clientTop||0,P=L.clientLeft||A.clientLeft||0,{y:_.top+(k.win.pageYOffset||L.scrollTop||A.scrollTop)-I,x:_.left+(k.win.pageXOffset||L.scrollLeft||A.scrollLeft)-P}),J=H.createSVGRect();J.x=h-ae.x,J.y=d-ae.y,J.width=J.height=1;var X=H.getIntersectionList(J,null);X.length&&(Q=X[X.length-1])}if(!Q)return null;for(;Q.parentNode&&Q!=H.parentNode&&!Q.raphael;)Q=Q.parentNode;return Q==this.canvas.parentNode&&(Q=H),Q=Q&&Q.raphael?this.getById(Q.raphaelid):null},o.getElementsByBBox=function(h){var d=this.set();return this.forEach(function(m){e.isBBoxIntersect(m.getBBox(),h)&&d.push(m)}),d},o.getById=function(h){for(var d=this.bottom;d;){if(d.id==h)return d;d=d.next}return null},o.forEach=function(h,d){for(var m=this.bottom;m;){if(h.call(d,m)===!1)return this;m=m.next}return this},o.getElementsByPoint=function(h,d){var m=this.set();return this.forEach(function(_){_.isPointInside(h,d)&&m.push(_)}),m},Be.isPointInside=function(h,d){var m=this.realPath=xe[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(m=e.transformPath(m,this.attr("transform"))),e.
vendor: 21,485 bytes, line 37
37isPointInsidePath(m,h,d)},Be.getBBox=function(h){if(this.removed)return{};var d=this._;return h?(!d.dirty&&d.bboxwt||(this.realPath=xe[this.type](this),d.bboxwt=Tt(this.realPath),d.bboxwt.toString=An,d.dirty=0),d.bboxwt):((d.dirty||d.dirtyT||!d.bbox)&&(!d.dirty&&this.realPath||(d.bboxwt=0,this.realPath=xe[this.type](this)),d.bbox=Tt(ge(this.realPath,this.matrix)),d.bbox.toString=An,d.dirty=d.dirtyT=0),d.bbox)},Be.clone=function(){if(this.removed)return null;var h=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(h),h},Be.glow=function(h){if(this.type=="text")return null;var d={width:((h=h||{}).width||10)+(+this.attr("stroke-width")||1),fill:h.fill||!1,opacity:h.opacity==null?.5:h.opacity,offsetx:h.offsetx||0,offsety:h.offsety||0,color:h.color||"#000"},m=d.width/2,_=this.paper,w=_.set(),A=this.realPath||xe[this.type](this);A=this.matrix?ge(A,this.matrix):A;for(var L=1;L<m+1;L++)w.push(_.path(A).attr({stroke:d.color,fill:d.fill?d.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(d.width/m*L).toFixed(3),opacity:+(d.opacity/m).toFixed(3)}));return w.insertBefore(this).translate(d.offsetx,d.offsety)};var xs=function(h,d,m,_,w,A,L,I,P){return P==null?ft(h,d,m,_,w,A,L,I):e.findDotsAtSegment(h,d,m,_,w,A,L,I,function(H,Q,ae,J,X,ie,oe,re,Z){if(!(Z<0||ft(H,Q,ae,J,X,ie,oe,re)<Z)){var be,le=.5,de=1-le;for(be=ft(H,Q,ae,J,X,ie,oe,re,de);se(be-Z)>.01;)be=ft(H,Q,ae,J,X,ie,oe,re,de+=(be<Z?1:-1)*(le/=2));return de}}(h,d,m,_,w,A,L,I,P))},ks=function(h,d){return function(m,_,w){for(var A,L,I,P,H,Q="",ae={},J=0,X=0,ie=(m=Ci(m)).length;X<ie;X++){if((I=m[X])[0]=="M")A=+I[1],L=+I[2];else{if(J+(P=xs(A,L,I[1],I[2],I[3],I[4],I[5],I[6]))>_){if(d&&!ae.start){if(Q+=["C"+(H=xs(A,L,I[1],I[2],I[3],I[4],I[5],I[6],_-J)).start.x,H.start.y,H.m.x,H.m.y,H.x,H.y],w)return Q;ae.start=Q,Q=["M"+H.x,H.y+"C"+H.n.x,H.n.y,H.end.x,H.end.y,I[5],I[6]].join(),J+=P,A=+I[5],L=+I[6];continue}if(!h&&!d)return{x:(H=xs(A,L,I[1],I[2],I[3],I[4],I[5],I[6],_-J)).x,y:H.y,alpha:H.alpha}}J+=P,A=+I[5],L=+I[6]}Q+=I.shift()+I}return ae.end=Q,(H=h?J:d?ae:e.findDotsAtSegment(A,L,I[0],I[1],I[2],I[3],I[4],I[5],1)).alpha&&(H={x:H.x,y:H.y,alpha:H.alpha}),H}},Dn=ks(1),On=ks(),Cs=ks(0,1);e.getTotalLength=Dn,e.getPointAtLength=On,e.getSubpath=function(h,d,m){if(this.getTotalLength(h)-m<1e-6)return Cs(h,d).end;var _=Cs(h,m,1);return d?Cs(_,d).end:_},Be.getTotalLength=function(){var h=this.getPath();if(h)return this.node.getTotalLength?this.node.getTotalLength():Dn(h)},Be.getPointAtLength=function(h){var d=this.getPath();if(d)return On(d,h)},Be.getPath=function(){var h,d=e._getPath[this.type];if(this.type!="text"&&this.type!="set")return d&&(h=d(this)),h},Be.getSubpath=function(h,d){var m=this.getPath();if(m)return e.getSubpath(m,h,d)};var it=e.easing_formulas={linear:function(h){return h},"<":function(h){return _e(h,1.7)},">":function(h){return _e(h,.48)},"<>":function(h){var d=.48-h/1.04,m=U.sqrt(.1734+d*d),_=m-d,w=-m-d,A=_e(se(_),1/3)*(_<0?-1:1)+_e(se(w),1/3)*(w<0?-1:1)+.5;return 3*(1-A)*A*A+A*A*A},backIn:function(h){var d=1.70158;return h*h*((d+1)*h-d)},backOut:function(h){var d=1.70158;return(h-=1)*h*((d+1)*h+d)+1},elastic:function(h){return h==!!h?h:_e(2,-10*h)*U.sin(2*ke*(h-.075)/.3)+1},bounce:function(h){var d=7.5625,m=2.75;return h<1/m?d*h*h:h<2/m?d*(h-=1.5/m)*h+.75:h<2.5/m?d*(h-=2.25/m)*h+.9375:d*(h-=2.625/m)*h+.984375}};it.easeIn=it["ease-in"]=it["<"],it.easeOut=it["ease-out"]=it[">"],it.easeInOut=it["ease-in-out"]=it["<>"],it["back-in"]=it.backIn,it["back-out"]=it.backOut;var Pe=[],Mn=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(h){setTimeout(h,16)},Es=function(){for(var h=+new Date,d=0;d<Pe.length;d++){var m=Pe[d];if(!m.el.removed&&!m.paused){var _,w,A=h-m.start,L=m.ms,I=m.easing,P=m.from,H=m.diff,Q=m.to,ae=(m.t,m.el),J={},X={};if(m.initstatus?(A=(m.initstatus*m.anim.top-m.prev)/(m.percent-m.prev)*L,m.status=m.initstatus,delete m.initstatus,m.stop&&Pe.splice(d--,1)):m.status=(m.prev+(m.percent-m.prev)*(A/L))/m.anim.top,!(A<0))if(A<L){var ie=I(A/L);for(var oe in P)if(P[E](oe)){switch(q[oe]){case me:_=+P[oe]+ie*L*H[oe];break;case"colour":_="rgb("+[Ts(S(P[oe].r+ie*L*H[oe].r)),Ts(S(P[oe].g+ie*L*H[oe].g)),Ts(S(P[oe].b+ie*L*H[oe].b))].join(",")+")";break;case"path":_=[];for(var re=0,Z=P[oe].length;re<Z;re++){_[re]=[P[oe][re][0]];for(var be=1,le=P[oe][re].length;be<le;be++)_[re][be]=+P[oe][re][be]+ie*L*H[oe][re][be];_[re]=_[re].join(C)}_=_.join(C);break;case"transform":if(H[oe].real)for(_=[],re=0,Z=P[oe].length;re<Z;re++)for(_[re]=[P[oe][re][0]],be=1,le=P[oe][re].length;be<le;be++)_[re][be]=P[oe][re][be]+ie*L*H[oe][re][be];else{var de=function(Ie){return+P[oe][Ie]+ie*L*H[oe][Ie]};_=[["m",de(0),de(1),de(2),de(3),de(4),de(5)]]}break;case"csv":if(oe=="clip-rect")for(_=[],re=4;re--;)_[re]=+P[oe][re]+ie*L*H[oe][re];break;default:var ce=[][p](P[oe]);for(_=[],re=ae.paper.customAttributes[oe].length;re--;)_[re]=+ce[re]+ie*L*H[oe][re]}J[oe]=_}ae.attr(J),function(Ie,Oe,Le){setTimeout(function(){t("raphael.anim.frame."+Ie,Oe,Le)})}(ae.id,ae,m.anim)}else{if(function(Ie,Oe,Le){setTimeout(function(){t("raphael.anim.frame."+Oe.id,Oe,Le),t("raphael.anim.finish."+Oe.id,Oe,Le),e.is(Ie,"function")&&Ie.call(Oe)})}(m.callback,ae,m.anim),ae.attr(Q),Pe.splice(d--,1),m.repeat>1&&!m.next){for(w in Q)Q[E](w)&&(X[w]=m.totalOrigin[w]);m.el.attr(X),Ei(m.anim,m.el,m.anim.percents[0],null,m.totalOrigin,m.repeat-1)}m.next&&!m.stop&&Ei(m.anim,m.el,m.next,null,m.totalOrigin,m.repeat)}}}Pe.length&&Mn(Es)},Ts=function(h){return h>255?255:h<0?0:h};function Qa(h,d,m,_,w,A){var L=3*d,I=3*(_-d)-L,P=1-L-I,H=3*m,Q=3*(w-m)-H,ae=1-H-Q;function J(X){return((P*X+I)*X+L)*X}return function(X,ie){var oe=function(re,Z){var be,le,de,ce,Ie,Oe;for(de=re,Oe=0;Oe<8;Oe++){if(ce=J(de)-re,se(ce)<Z)return de;if(se(Ie=(3*P*de+2*I)*de+L)<1e-6)break;de-=ce/Ie}if(le=1,(de=re)<(be=0))return be;if(de>le)return le;for(;be<le;){if(ce=J(de),se(ce-re)<Z)return de;re>ce?be=de:le=de,de=(le-be)/2+be}return de}(X,ie);return((ae*oe+Q)*oe+H)*oe}(h,1/(200*A))}function bt(h,d){var m=[],_={};if(this.ms=d,this.times=1,h){for(var w in h)h[E](w)&&(_[M(w)]=h[w],m.push(M(w)));m.sort(Ae)}this.anim=_,this.top=m[m.length-1],this.percents=m}function Ei(h,d,m,_,w,A){m=M(m);var L,I,P,H,Q,ae,J=h.ms,X={},ie={},oe={};if(_)for(Z=0,be=Pe.length;Z<be;Z++){var re=Pe[Z];if(re.el.id==d.id&&re.anim==h){re.percent!=m?(Pe.splice(Z,1),P=1):I=re,d.attr(re.totalOrigin);break}}else _=+ie;for(var Z=0,be=h.percents.length;Z<be;Z++){if(h.percents[Z]==m||h.percents[Z]>_*h.top){m=h.percents[Z],Q=h.percents[Z-1]||0,J=J/h.top*(m-Q),H=h.percents[Z+1],L=h.anim[m];break}_&&d.attr(h.anim[h.percents[Z]])}if(L){if(I)I.initstatus=_,I.start=new Date-I.ms*_;else{for(var le in L)if(L[E](le)&&(q[E](le)||d.paper.customAttributes[E](le)))switch(X[le]=d.attr(le),X[le]==null&&(X[le]=Y[le]),ie[le]=L[le],q[le]){case me:oe[le]=(ie[le]-X[le])/J;break;case"colour":X[le]=e.getRGB(X[le]);var de=e.getRGB(ie[le]);oe[le]={r:(de.r-X[le].r)/J,g:(de.g-X[le].g)/J,b:(de.b-X[le].b)/J};break;case"path":var ce=Ci(X[le],ie[le]),Ie=ce[1];for(X[le]=ce[0],oe[le]=[],Z=0,be=X[le].length;Z<be;Z++){oe[le][Z]=[0];for(var Oe=1,Le=X[le][Z].length;Oe<Le;Oe++)oe[le][Z][Oe]=(Ie[Z][Oe]-X[le][Z][Oe])/J}break;case"transform":var ti=d._,Si=Wa(ti[le],ie[le]);if(Si)for(X[le]=Si.from,ie[le]=Si.to,oe[le]=[],oe[le].real=!0,Z=0,be=X[le].length;Z<be;Z++)for(oe[le][Z]=[X[le][Z][0]],Oe=1,Le=X[le][Z].length;Oe<Le;Oe++)oe[le][Z][Oe]=(ie[le][Z][Oe]-X[le][Z][Oe])/J;else{var Je=d.matrix||new jt,mt={_:{transform:ti.transform},getBBox:function(){return d.getBBox(1)}};X[le]=[Je.a,Je.b,Je.c,Je.d,Je.e,Je.f],Cn(mt,ie[le]),ie[le]=mt._.transform,oe[le]=[(mt.matrix.a-Je.a)/J,(mt.matrix.b-Je.b)/J,(mt.matrix.c-Je.c)/J,(mt.matrix.d-Je.d)/J,(mt.matrix.e-Je.e)/J,(mt.matrix.f-Je.f)/J]}break;case"csv":var ii=B(L[le])[F](f),si=B(X[le])[F](f);if(le=="clip-rect")for(X[le]=si,oe[le]=[],Z=si.length;Z--;)oe[le][Z]=(ii[Z]-X[le][Z])/J;ie[le]=ii;break;default:for(ii=[][p](L[le]),si=[][p](X[le]),oe[le]=[],Z=d.paper.customAttributes[le].length;Z--;)oe[le][Z]=((ii[Z]||0)-(si[Z]||0))/J}var Wi=L.easing,wt=e.easing_formulas[Wi];if(!wt)if((wt=B(Wi).match(v))&&wt.length==5){var Ht=wt;wt=function(Yi){return Qa(Yi,+Ht[1],+Ht[2],+Ht[3],+Ht[4],J)}}else wt=Me;if(re={anim:h,percent:m,timestamp:ae=L.start||h.start||+new Date,start:ae+(h.del||0),status:0,initstatus:_||0,stop:!1,ms:J,easing:wt,from:X,diff:oe,to:ie,el:d,callback:L.callback,prev:Q,next:H,repeat:A||h.times,origin:d.attr(),totalOrigin:w},Pe.push(re),_&&!I&&!P&&(re.stop=!0,re.start=new Date-J*_,Pe.length==1))return Es();P&&(re.start=new Date-re.ms*_),Pe.length==1&&Mn(Es)}t("raphael.anim.start."+d.id,d,h)}}function Nn(h){for(var d=0;d<Pe.length;d++)Pe[d].el.paper==h&&Pe.splice(d--,1)}Be.animateWith=function(h,d,m,_,w,A){if(this.removed)return A&&A.call(this),this;var L=m instanceof bt?m:e.animation(m,_,w,A);Ei(L,this,L.percents[0],null,this.attr());for(var I=0,P=Pe.length;I<P;I++)if(Pe[I].anim==d&&Pe[I].el==h){Pe[P-1].start=Pe[I].start;break}return this},Be.onAnimation=function(h){return h?t.on("raphael.anim.frame."+this.id,h):t.unbind("raphael.anim.frame."+this.id),this},bt.prototype.delay=function(h){var d=new bt(this.anim,this.ms);return d.times=this.times,d.del=+h||0,d},bt.prototype.repeat=function(h){var d=new bt(this.anim,this.ms);return d.del=this.del,d.times=U.floor(ne(h,0))||1,d},e.animation=function(h,d,m,_){if(h instanceof bt)return h;!e.is(m,"function")&&m||(_=_||m||null,m=null),h=Object(h),d=+d||0;var w,A,L={};for(A in h)h[E](A)&&M(A)!=A&&M(A)+"%"!=A&&(w=!0,L[A]=h[A]);if(w)return m&&(L.easing=m),_&&(L.callback=_),new bt({100:L},d);if(_){var I=0;for(var P in h){var H=j(P);h[E](P)&&H>I&&(I=H)}!h[I+="%"].callback&&(h[I].callback=_)}return new bt(h,d)},Be.animate=function(h,d,m,_){if(this.removed)return _&&_.call(this),this;var w=h instanceof bt?h:e.animation(h,d,m,_);return Ei(w,this,w.percents[0],null,this.attr()),this},Be.setTime=function(h,d){return h&&d!=null&&this.status(h,K(d,h.ms)/h.ms),this},Be.status=function(h,d){var m,_,w=[],A=0;if(d!=null)return Ei(h,this,-1,K(d,1)),this;for(m=Pe.length;A<m;A++)if((_=Pe[A]).el.id==this.id&&(!h||_.anim==h)){if(h)return _.status;w.push({anim:_.anim,status:_.status})}return h?0:w},Be.pause=function(h){for(var d=0;d<Pe.length;d++)Pe[d].el.id!=this.id||h&&Pe[d].anim!=h||t("raphael.anim.pause."+this.id,this,Pe[d].anim)!==!1&&(Pe[d].paused=!0);return this},Be.resume=function(h){for(var d=0;d<Pe.length;d++)if(Pe[d].el.id==this.id&&(!h||Pe[d].anim==h)){var m=Pe[d];t("raphael.anim.resume."+this.id,this,m.anim)!==!1&&(delete m.paused,this.status(m.anim,m.status))}return this},Be.stop=function(h){for(var d=0;d<Pe.length;d++)Pe[d].el.id!=this.id||h&&Pe[d].anim!=h||t("raphael.anim.stop."+this.id,this,Pe[d].anim)!==!1&&Pe.splice(d--,1);return this},t.on("raphael.remove",Nn),t.on("raphael.clear",Nn),Be.toString=function(){return"Raphaël’s object"};var In,Ln,zt,$n,Ti=function(h){if(this.items=[],this.length=0,this.type="set",h)for(var d=0,m=h.length;d<m;d++)!h[d]||h[d].constructor!=Be.constructor&&h[d].constructor!=Ti||(this[this.items.length]=this.items[this.items.length]=h[d],this.length++)},Ge=Ti.prototype;for(var Ss in Ge.push=function(){for(var h,d,m=0,_=arguments.length;m<_;m++)!(h=arguments[m])||h.constructor!=Be.constructor&&h.constructor!=Ti||(this[d=this.items.length]=this.items[d]=h,this.length++);return this},Ge.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Ge.forEach=function(h,d){for(var m=0,_=this.items.length;m<_;m++)if(h.call(d,this.items[m],m)===!1)return this;return this},Be)Be[E](Ss)&&(Ge[Ss]=function(h){return function(){var d=arguments;return this.forEach(function(m){m[h][b](m,d)})}}(Ss));return Ge.attr=function(h,d){if(h&&e.is(h,ye)&&e.is(h[0],"object"))for(var m=0,_=h.length;m<_;m++)this.items[m].attr(h[m]);else for(var w=0,A=this.items.length;w<A;w++)this.items[w].attr(h,d);return this},Ge.clear=function(){for(;this.length;)this.pop()},Ge.splice=function(h,d,m){h=h<0?ne(this.length+h,0):h,d=ne(0,K(this.length-h,d));var _,w=[],A=[],L=[];for(_=2;_<arguments.length;_++)L.push(arguments[_]);for(_=0;_<d;_++)A.push(this[h+_]);for(;_<this.length-h;_++)w.push(this[h+_]);var I=L.length;for(_=0;_<I+w.length;_++)this.items[h+_]=this[h+_]=_<I?L[_]:w[_-I];for(_=this.items.length=this.length-=d-I;this[_];)delete this[_++];return new Ti(A)},Ge.exclude=function(h){for(var d=0,m=this.length;d<m;d++)if(this[d]==h)return this.splice(d,1),!0},Ge.animate=function(h,d,m,_){(e.is(m,"function")||!m)&&(_=m||null);var w,A,L=this.items.length,I=L,P=this;if(!L)return this;_&&(A=function(){!--L&&_.call(P)}),m=e.is(m,"string")?m:A;var H=e.animation(h,d,m,A);for(w=this.items[--I].animate(H);I--;)this.items[I]&&!this.items[I].removed&&this.items[I].animateWith(w,H,H),this.items[I]&&!this.items[I].removed||L--;return this},Ge.insertAfter=function(h){for(var d=this.items.length;d--;)this.items[d].insertAfter(h);return this},Ge.getBBox=function(){for(var h=[],d=[],m=[],_=[],w=this.items.length;w--;)if(!this.items[w].removed){var A=this.items[w].getBBox();h.push(A.x),d.push(A.y),m.push(A.x+A.width),_.push(A.y+A.height)}return{x:h=K[b](0,h),y:d=K[b](0,d),x2:m=ne[b](0,m),y2:_=ne[b](0,_),width:m-h,height:_-d}},Ge.clone=function(h){h=this.paper.set();for(var d=0,m=this.items.length;d<m;d++)h.push(this.items[d].clone());return h},Ge.toString=function(){return"Raphaël‘s set"},Ge.glow=function(h){var d=this.paper.set();return this.forEach(function(m,_){var w=m.glow(h);w!=null&&w.forEach(function(A,L){d.push(A)})}),d},Ge.isPointInside=function(h,d){var m=!1;return this.forEach(function(_){if(_.isPointInside(h,d))return m=!0,!1}),m},e.registerFont=function(h){if(!h.face)return h;this.fonts=this.fonts||{};var d={w:h.w,face:{},glyphs:{}},m=h.face["font-family"];for(var _ in h.face)h.face[E](_)&&(d.face[_]=h.face[_]);if(this.fonts[m]?this.fonts[m].push(d):this.fonts[m]=[d],!h.svg){for(var w in d.face["units-per-em"]=j(h.face["units-per-em"],10),h.glyphs)if(h.glyphs[E](w)){var A=h.glyphs[w];if(d.glyphs[w]={w:A.w,k:{},d:A.d&&"M"+A.d.replace(/[mlcxtrv]/g,function(I){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[I]||"M"})+"z"},A.k)for(var L in A.k)A[E](L)&&(d.glyphs[w].k[L]=A.k[L])}}return h},o.getFont=function(h,d,m,_){if(_=_||"normal",m=m||"normal",d=+d||{normal:400,bold:700,lighter:300,bolder:800}[d]||400,e.fonts){var w,A=e.fonts[h];if(!A){var L=new RegExp("(^|\\s)"+h.replace(/[^\w\d\s+!~.:_-]/g,N)+"(\\s|$)","i");for(var I in e.fonts)if(e.fonts[E](I)&&L.test(I)){A=e.fonts[I];break}}if(A)for(var P=0,H=A.length;P<H&&((w=A[P]).face["font-weight"]!=d||w.face["font-style"]!=m&&w.face["font-style"]||w.face["font-stretch"]!=_);P++);return w}},o.print=function(h,d,m,_,w,A,L,I){A=A||"middle",L=ne(K(L||0,1),-1),I=ne(K(I||1,3),1);var P,H=B(m)[F](N),Q=0,ae=0,J=N;if(e.is(_,"string")&&(_=this.getFont(_)),_){P=(w||16)/_.face["units-per-em"];for(var X=_.face.bbox[F](f),ie=+X[0],oe=X[3]-X[1],re=0,Z=+X[1]+(A=="baseline"?oe+ +_.face.descent:oe/2),be=0,le=H.length;be<le;be++){if(H[be]=="\n")Q=0,ce=0,ae=0,re+=oe*I;else{var de=ae&&_.glyphs[H[be-1]]||{},ce=_.glyphs[H[be]];Q+=ae?(de.w||_.w)+(de.k&&de.k[H[be]]||0)+_.w*L:0,ae=1}ce&&ce.d&&(J+=e.transformPath(ce.d,["t",Q*P,re*P,"s",P,P,ie,Z,"t",(h-ie)/P,(d-Z)/P]))}}return this.path(J).attr({fill:"#000",stroke:"none"})},o.add=function(h){if(e.is(h,"array"))for(var d,m=this.set(),_=0,w=h.length;_<w;_++)d=h[_]||{},g[E](d.type)&&m.push(this[d.type]().attr(d));return m},e.format=function(h,d){var m=e.is(d,ye)?[0][p](d):arguments;return h&&e.is(h,"string")&&m.length-1&&(h=h.replace(y,function(_,w){return m[++w]==null?N:m[w]})),h||N},e.fullfill=(In=/\{([^\}]+)\}/g,Ln=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(h,d){return String(h).replace(In,function(m,_){return function(w,A,L){var I=L;return A.replace(Ln,function(P,H,Q,ae,J){H=H||ae,I&&(H in I&&(I=I[H]),typeof I=="function"&&J&&(I=I()))}),I=(I==null||I==L?w:I)+""}(m,_,d)})}),e.ninja=function(){if(D.was)k.win.Raphael=D.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(h){}}return e},e.st=Ge,t.on("raphael.DOMload",function(){a=!0}),(zt=document).readyState==null&&zt.addEventListener&&(zt.addEventListener("DOMContentLoaded",$n=function(){zt.removeEventListener("DOMContentLoaded",$n,!1),zt.readyState="complete"},!1),zt.readyState="loading"),function h(){/in/.test(zt.readyState)?setTimeout(h,9):e.eve("raphael.DOMload")}(),e}).apply(u,i))===void 0||(c.exports=r)},function(c,u,l){var i,r;i=[l(0),l(3),l(4)],(r=(function(t){return t}).apply(u,i))===void 0||(c.exports=r)},function(c,u,l){var i,r,t,e,a,o,f,g,y,E,k,D,R,b;e="hasOwnProperty",a=/[\.\/]/,o=/\s*,\s*/,f=function(p,O){return p-O},g={n:{}},y=function(){for(var p=0,O=this.length;p<O;p++)if(this[p]!==void 0)return this[p]},E=function(){for(var p=this.length;--p;)if(this[p]!==void 0)return this[p]},k=Object.prototype.toString,D=String,R=Array.isArray||function(p){return p instanceof Array||k.call(p)=="[object Array]"},(b=function(p,O){var N,C=t,B=Array.prototype.slice.call(arguments,2),F=b.listeners(p),V=0,te=[],W={},U=[],ne=r;U.firstDefined=y,U.lastDefined=E,r=p,t=0;for(var K=0,se=F.length;K<se;K++)"zIndex"in F[K]&&(te.push(F[K].zIndex),F[K].zIndex<0&&(W[F[K].zIndex]=F[K]));for(te.sort(f);te[V]<0;)if(N=W[te[V++]],U.push(N.apply(O,B)),t)return t=C,U;for(K=0;K<se;K++)if("zIndex"in(N=F[K]))if(N.zIndex==te[V]){if(U.push(N.apply(O,B)),t)break;do if((N=W[te[++V]])&&U.push(N.apply(O,B)),t)break;while(N)}else W[N.zIndex]=N;else if(U.push(N.apply(O,B)),t)break;return t=C,r=ne,U})._events=g,b.listeners=function(p){var O,N,C,B,F,V,te,W,U=R(p)?p:p.split(a),ne=g,K=[ne],se=[];for(B=0,F=U.length;B<F;B++){for(W=[],V=0,te=K.length;V<te;V++)for(N=[(ne=K[V].n)[U[B]],ne["*"]],C=2;C--;)(O=N[C])&&(W.push(O),se=se.concat(O.f||[]));K=W}return se},b.separator=function(p){p?(p="["+(p=D(p).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",a=new RegExp(p)):a=/[\.\/]/},b.on=function(p,O){if(typeof O!="function")return function(){};for(var N=R(p)?R(p[0])?p:[p]:D(p).split(o),C=0,B=N.length;C<B;C++)(function(F){for(var V,te=R(F)?F:D(F).split(a),W=g,U=0,ne=te.length;U<ne;U++)W=(W=W.n).hasOwnProperty(te[U])&&W[te[U]]||(W[te[U]]={n:{}});for(W.f=W.f||[],U=0,ne=W.f.length;U<ne;U++)if(W.f[U]==O){V=!0;break}!V&&W.f.push(O)})(N[C]);return function(F){+F==+F&&(O.zIndex=+F)}},b.f=function(p){var O=[].slice.call(arguments,1);return function(){b.apply(null,[p,null].concat(O).concat([].slice.call(arguments,0)))}},b.stop=function(){t=1},b.nt=function(p){var O=R(r)?r.join("."):r;return p?new RegExp("(?:\\.|\\/|^)"+p+"(?:\\.|\\/|$)").test(O):O},b.nts=function(){return R(r)?r:r.split(a)},b.off=b.unbind=function(p,O){if(p){var N=R(p)?R(p[0])?p:[p]:D(p).split(o);if(N.length>1)for(var C=0,B=N.length;C<B;C++)b.off(N[C],O);else{N=R(p)?p:D(p).split(a);var F,V,te,W,U,ne=[g];for(C=0,B=N.length;C<B;C++)for(W=0;W<ne.length;W+=te.length-2){if(te=[W,1],F=ne[W].n,N[C]!="*")F[N[C]]&&te.push(F[N[C]]);else for(V in F)F[e](V)&&te.push(F[V]);ne.splice.apply(ne,te)}for(C=0,B=ne.length;C<B;C++)for(F=ne[C];F.n;){if(O){if(F.f){for(W=0,U=F.f.length;W<U;W++)if(F.f[W]==O){F.f.splice(W,1);break}!F.f.length&&delete F.f}for(V in F.n)if(F.n[e](V)&&F.n[V].f){var K=F.n[V].f;for(W=0,U=K.length;W<U;W++)if(K[W]==O){K.splice(W,1);break}!K.length&&delete F.n[V].f}}else for(V in delete F.f,F.n)F.n[e](V)&&F.n[V].f&&delete F.n[V].f;F=F.n}}}else b._events=g={n:{}}},b.once=function(p,O){var N=function(){return b.off(p,N),O.apply(this,arguments)};return b.on(p,N)},b.version="0.5.0",b.toString=function(){return"You are running Eve 0.5.0"},c.exports?c.exports=b:(i=(function(){return b}).apply(u,[]))===void 0||(c.exports=i)},function(c,u,l){var i,r;i=[l(0)],(r=(function(t){if(!t||t.svg){var e="hasOwnProperty",a=String,o=parseFloat,f=parseInt,g=Math,y=g.max,E=g.abs,k=g.pow,D=/[, ]+/,R=t.eve,b="",p=" ",O="http://www.w3.org/1999/xlink",N={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},C={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var B=function(T,x){if(x)for(var v in typeof T=="string"&&(T=B(T)),x)x[e](v)&&(v.substring(0,6)=="xlink:"?T.setAttributeNS(O,v.substring(6),a(x[v])):T.setAttribute(v,a(x[v])));else(T=t._g.doc.createElementNS("http://www.w3.org/2000/svg",T)).style&&(T.style.webkitTapHighlightColor="rgba(0,0,0,0)");return T},F=function(T,x){var v="linear",S=T.id+x,M=.5,j=.5,z=T.node,Y=T.paper,q=z.style,G=t._g.doc.getElementById(S);if(!G){if(x=(x=a(x).replace(t._radial_gradient,function(Ae,Me,Ee){if(v="radial",Me&&Ee){M=o(Me);var Se=2*((j=o(Ee))>.5)-1;k(M-.5,2)+k(j-.5,2)>.25&&(j=g.sqrt(.25-k(M-.5,2))*Se+.5)&&j!=.5&&(j=j.toFixed(5)-1e-5*Se)}return b})).split(/\s*\-\s*/),v=="linear"){var ee=x.shift();if(ee=-o(ee),isNaN(ee))return null;var he=[0,0,g.cos(t.rad(ee)),g.sin(t.rad(ee))],fe=1/(y(E(he[2]),E(he[3]))||1);he[2]*=fe,he[3]*=fe,he[2]<0&&(he[0]=-he[2],he[2]=0),he[3]<0&&(he[1]=-he[3],he[3]=0)}var pe=t._parseDots(x);if(!pe)return null;if(S=S.replace(/[\(\)\s,\xb0#]/g,"_"),T.gradient&&S!=T.gradient.id&&(Y.defs.removeChild(T.gradient),delete T.gradient),!T.gradient){G=B(v+"Gradient",{id:S}),T.gradient=G,B(G,v=="radial"?{fx:M,fy:j}:{x1:he[0],y1:he[1],x2:he[2],y2:he[3],gradientTransform:T.matrix.invert()}),Y.defs.appendChild(G);for(var Ce=0,Te=pe.length;Ce<Te;Ce++)G.appendChild(B("stop",{offset:pe[Ce].offset?pe[Ce].offset:Ce?"100%":"
370%","stop-color":pe[Ce].color||"#fff","stop-opacity":isFinite(pe[Ce].opacity)?pe[Ce].opacity:1}))}}return B(z,{fill:V(S),opacity:1,"fill-opacity":1}),q.fill=b,q.opacity=1,q.fillOpacity=1,1},V=function(T){if((x=document.documentMode)&&(x===9||x===10))return"url('#"+T+"')";var x,v=document.location;return"url('"+(v.protocol+"//"+v.host+v.pathname+v.search)+"#"+T+"')"},te=function(T){var x=T.getBBox(1);B(T.pattern,{patternTransform:T.matrix.invert()+" translate("+x.x+","+x.y+")"})},W=function(T,x,v){if(T.type=="path"){for(var S,M,j,z,Y,q=a(x).toLowerCase().split("-"),G=T.paper,ee=v?"end":"start",he=T.node,fe=T.attrs,pe=fe["stroke-width"],Ce=q.length,Te="classic",Ae=3,Me=3,Ee=5;Ce--;)switch(q[Ce]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Te=q[Ce];break;case"wide":Me=5;break;case"narrow":Me=2;break;case"long":Ae=5;break;case"short":Ae=2}if(Te=="open"?(Ae+=2,Me+=2,Ee+=2,j=1,z=v?4:1,Y={fill:"none",stroke:fe.stroke}):(z=j=Ae/2,Y={fill:fe.stroke,stroke:"none"}),T._.arrows?v?(T._.arrows.endPath&&C[T._.arrows.endPath]--,T._.arrows.endMarker&&C[T._.arrows.endMarker]--):(T._.arrows.startPath&&C[T._.arrows.startPath]--,T._.arrows.startMarker&&C[T._.arrows.startMarker]--):T._.arrows={},Te!="none"){var Se="raphael-marker-"+Te,xe="raphael-marker-"+ee+Te+Ae+Me+"-obj"+T.id;t._g.doc.getElementById(Se)?C[Se]++:(G.defs.appendChild(B(B("path"),{"stroke-linecap":"round",d:N[Te],id:Se})),C[Se]=1);var ge,ve=t._g.doc.getElementById(xe);ve?(C[xe]++,ge=ve.getElementsByTagName("use")[0]):(ve=B(B("marker"),{id:xe,markerHeight:Me,markerWidth:Ae,orient:"auto",refX:z,refY:Me/2}),ge=B(B("use"),{"xlink:href":"#"+Se,transform:(v?"rotate(180 "+Ae/2+" "+Me/2+") ":b)+"scale("+Ae/Ee+","+Me/Ee+")","stroke-width":(1/((Ae/Ee+Me/Ee)/2)).toFixed(4)}),ve.appendChild(ge),G.defs.appendChild(ve),C[xe]=1),B(ge,Y);var we=j*(Te!="diamond"&&Te!="oval");v?(S=T._.arrows.startdx*pe||0,M=t.getTotalLength(fe.path)-we*pe):(S=we*pe,M=t.getTotalLength(fe.path)-(T._.arrows.enddx*pe||0)),(Y={})["marker-"+ee]="url(#"+xe+")",(M||S)&&(Y.d=t.getSubpath(fe.path,S,M)),B(he,Y),T._.arrows[ee+"Path"]=Se,T._.arrows[ee+"Marker"]=xe,T._.arrows[ee+"dx"]=we,T._.arrows[ee+"Type"]=Te,T._.arrows[ee+"String"]=x}else v?(S=T._.arrows.startdx*pe||0,M=t.getTotalLength(fe.path)-S):(S=0,M=t.getTotalLength(fe.path)-(T._.arrows.enddx*pe||0)),T._.arrows[ee+"Path"]&&B(he,{d:t.getSubpath(fe.path,S,M)}),delete T._.arrows[ee+"Path"],delete T._.arrows[ee+"Marker"],delete T._.arrows[ee+"dx"],delete T._.arrows[ee+"Type"],delete T._.arrows[ee+"String"];for(Y in C)if(C[e](Y)&&!C[Y]){var Ne=t._g.doc.getElementById(Y);Ne&&Ne.parentNode.removeChild(Ne)}}},U={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},ne=function(T,x,v){if(x=U[a(x).toLowerCase()]){for(var S=T.attrs["stroke-width"]||"1",M={round:S,square:S,butt:0}[T.attrs["stroke-linecap"]||v["stroke-linecap"]]||0,j=[],z=x.length;z--;)j[z]=x[z]*S+(z%2?1:-1)*M;B(T.node,{"stroke-dasharray":j.join(",")})}else B(T.node,{"stroke-dasharray":"none"})},K=function(T,x){var v=T.node,S=T.attrs,M=v.style.visibility;for(var j in v.style.visibility="hidden",x)if(x[e](j)){if(!t._availableAttrs[e](j))continue;var z=x[j];switch(S[j]=z,j){case"blur":T.blur(z);break;case"title":var Y=v.getElementsByTagName("title");if(Y.length&&(Y=Y[0]))Y.firstChild.nodeValue=z;else{Y=B("title");var q=t._g.doc.createTextNode(z);Y.appendChild(q),v.appendChild(Y)}break;case"href":case"target":var G=v.parentNode;if(G.tagName.toLowerCase()!="a"){var ee=B("a");G.insertBefore(ee,v),ee.appendChild(v),G=ee}j=="target"?G.setAttributeNS(O,"show",z=="blank"?"new":z):G.setAttributeNS(O,j,z);break;case"cursor":v.style.cursor=z;break;case"transform":T.transform(z);break;case"arrow-start":W(T,z);break;case"arrow-end":W(T,z,1);break;case"clip-rect":var he=a(z).split(D);if(he.length==4){T.clip&&T.clip.parentNode.parentNode.removeChild(T.clip.parentNode);var fe=B("clipPath"),pe=B("rect");fe.id=t.createUUID(),B(pe,{x:he[0],y:he[1],width:he[2],height:he[3]}),fe.appendChild(pe),T.paper.defs.appendChild(fe),B(v,{"clip-path":"url(#"+fe.id+")"}),T.clip=pe}if(!z){var Ce=v.getAttribute("clip-path");if(Ce){var Te=t._g.doc.getElementById(Ce.replace(/(^url\(#|\)$)/g,b));Te&&Te.parentNode.removeChild(Te),B(v,{"clip-path":b}),delete T.clip}}break;case"path":T.type=="path"&&(B(v,{d:z?S.path=t._pathToAbsolute(z):"M0,0"}),T._.dirty=1,T._.arrows&&("startString"in T._.arrows&&W(T,T._.arrows.startString),"endString"in T._.arrows&&W(T,T._.arrows.endString,1)));break;case"width":if(v.setAttribute(j,z),T._.dirty=1,!S.fx)break;j="x",z=S.x;case"x":S.fx&&(z=-S.x-(S.width||0));case"rx":if(j=="rx"&&T.type=="rect")break;case"cx":v.setAttribute(j,z),T.pattern&&te(T),T._.dirty=1;break;case"height":if(v.setAttribute(j,z),T._.dirty=1,!S.fy)break;j="y",z=S.y;case"y":S.fy&&(z=-S.y-(S.height||0));case"ry":if(j=="ry"&&T.type=="rect")break;case"cy":v.setAttribute(j,z),T.pattern&&te(T),T._.dirty=1;break;case"r":T.type=="rect"?B(v,{rx:z,ry:z}):v.setAttribute(j,z),T._.dirty=1;break;case"src":T.type=="image"&&v.setAttributeNS(O,"href",z);break;case"stroke-width":T._.sx==1&&T._.sy==1||(z/=y(E(T._.sx),E(T._.sy))||1),v.setAttribute(j,z),S["stroke-dasharray"]&&ne(T,S["stroke-dasharray"],x),T._.arrows&&("startString"in T._.arrows&&W(T,T._.arrows.startString),"endString"in T._.arrows&&W(T,T._.arrows.endString,1));break;case"stroke-dasharray":ne(T,z,x);break;case"fill":var Ae=a(z).match(t._ISURL);if(Ae){fe=B("pattern");var Me=B("image");fe.id=t.createUUID(),B(fe,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),B(Me,{x:0,y:0,"xlink:href":Ae[1]}),fe.appendChild(Me),function(ve){t._preload(Ae[1],function(){var we=this.offsetWidth,Ne=this.offsetHeight;B(ve,{width:we,height:Ne}),B(Me,{width:we,height:Ne})})}(fe),T.paper.defs.appendChild(fe),B(v,{fill:"url(#"+fe.id+")"}),T.pattern=fe,T.pattern&&te(T);break}var Ee=t.getRGB(z);if(Ee.error){if((T.type=="circle"||T.type=="ellipse"||a(z).charAt()!="r")&&F(T,z)){if("opacity"in S||"fill-opacity"in S){var Se=t._g.doc.getElementById(v.getAttribute("fill").replace(/^url\(#|\)$/g,b));if(Se){var xe=Se.getElementsByTagName("stop");B(xe[xe.length-1],{"stop-opacity":("opacity"in S?S.opacity:1)*("fill-opacity"in S?S["fill-opacity"]:1)})}}S.gradient=z,S.fill="none";break}}else delete x.gradient,delete S.gradient,!t.is(S.opacity,"undefined")&&t.is(x.opacity,"undefined")&&B(v,{opacity:S.opacity}),!t.is(S["fill-opacity"],"undefined")&&t.is(x["fill-opacity"],"undefined")&&B(v,{"fill-opacity":S["fill-opacity"]});Ee[e]("opacity")&&B(v,{"fill-opacity":Ee.opacity>1?Ee.opacity/100:Ee.opacity});case"stroke":Ee=t.getRGB(z),v.setAttribute(j,Ee.hex),j=="stroke"&&Ee[e]("opacity")&&B(v,{"stroke-opacity":Ee.opacity>1?Ee.opacity/100:Ee.opacity}),j=="stroke"&&T._.arrows&&("startString"in T._.arrows&&W(T,T._.arrows.startString),"endString"in T._.arrows&&W(T,T._.arrows.endString,1));break;case"gradient":(T.type=="circle"||T.type=="ellipse"||a(z).charAt()!="r")&&F(T,z);break;case"opacity":S.gradient&&!S[e]("stroke-opacity")&&B(v,{"stroke-opacity":z>1?z/100:z});case"fill-opacity":if(S.gradient){(Se=t._g.doc.getElementById(v.getAttribute("fill").replace(/^url\(#|\)$/g,b)))&&(xe=Se.getElementsByTagName("stop"),B(xe[xe.length-1],{"stop-opacity":z}));break}default:j=="font-size"&&(z=f(z,10)+"px");var ge=j.replace(/(\-.)/g,function(ve){return ve.substring(1).toUpperCase()});v.style[ge]=z,T._.dirty=1,v.setAttribute(j,z)}}se(T,x),v.style.visibility=M},se=function(T,x){if(T.type=="text"&&(x[e]("text")||x[e]("font")||x[e]("font-size")||x[e]("x")||x[e]("y"))){var v=T.attrs,S=T.node,M=S.firstChild?f(t._g.doc.defaultView.getComputedStyle(S.firstChild,b).getPropertyValue("font-size"),10):10;if(x[e]("text")){for(v.text=x.text;S.firstChild;)S.removeChild(S.firstChild);for(var j,z=a(x.text).split("\n"),Y=[],q=0,G=z.length;q<G;q++)j=B("tspan"),q&&B(j,{dy:1.2*M,x:v.x}),j.appendChild(t._g.doc.createTextNode(z[q])),S.appendChild(j),Y[q]=j}else for(q=0,G=(Y=S.getElementsByTagName("tspan")).length;q<G;q++)q?B(Y[q],{dy:1.2*M,x:v.x}):B(Y[0],{dy:0});B(S,{x:v.x,y:v.y}),T._.dirty=1;var ee=T._getBBox(),he=v.y-(ee.y+ee.height/2);
37he&&t.is(he,"finite")&&B(Y[0],{dy:he})}},_e=function(T){return T.parentNode&&T.parentNode.tagName.toLowerCase()==="a"?T.parentNode:T},ke=function(T,x){this[0]=this.node=T,T.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),T.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=x,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!x.bottom&&(x.bottom=this),this.prev=x.top,x.top&&(x.top.next=this),x.top=this,this.next=null},me=t.el;ke.prototype=me,me.constructor=ke,t._engine.path=function(T,x){var v=B("path");x.canvas&&x.canvas.appendChild(v);var S=new ke(v,x);return S.type="path",K(S,{fill:"none",stroke:"#000",path:T}),S},me.rotate=function(T,x,v){if(this.removed)return this;if((T=a(T).split(D)).length-1&&(x=o(T[1]),v=o(T[2])),T=o(T[0]),v==null&&(x=v),x==null||v==null){var S=this.getBBox(1);x=S.x+S.width/2,v=S.y+S.height/2}return this.transform(this._.transform.concat([["r",T,x,v]])),this},me.scale=function(T,x,v,S){if(this.removed)return this;if((T=a(T).split(D)).length-1&&(x=o(T[1]),v=o(T[2]),S=o(T[3])),T=o(T[0]),x==null&&(x=T),S==null&&(v=S),v==null||S==null)var M=this.getBBox(1);return v=v==null?M.x+M.width/2:v,S=S==null?M.y+M.height/2:S,this.transform(this._.transform.concat([["s",T,x,v,S]])),this},me.translate=function(T,x){return this.removed?this:((T=a(T).split(D)).length-1&&(x=o(T[1])),T=o(T[0])||0,x=+x||0,this.transform(this._.transform.concat([["t",T,x]])),this)},me.transform=function(T){var x=this._;if(T==null)return x.transform;if(t._extractTransform(this,T),this.clip&&B(this.clip,{transform:this.matrix.invert()}),this.pattern&&te(this),this.node&&B(this.node,{transform:this.matrix}),x.sx!=1||x.sy!=1){var v=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":v})}return this},me.hide=function(){return this.removed||(this.node.style.display="none"),this},me.show=function(){return this.removed||(this.node.style.display=""),this},me.remove=function(){var T=_e(this.node);if(!this.removed&&T.parentNode){var x=this.paper;for(var v in x.__set__&&x.__set__.exclude(this),R.unbind("raphael.*.*."+this.id),this.gradient&&x.defs.removeChild(this.gradient),t._tear(this,x),T.parentNode.removeChild(T),this.removeData(),this)this[v]=typeof this[v]=="function"?t._removedFactory(v):null;this.removed=!0}},me._getBBox=function(){if(this.node.style.display=="none"){this.show();var T=!0}var x,v=!1;this.paper.canvas.parentElement?x=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(x=this.paper.canvas.parentNode.style),x&&x.display=="none"&&(v=!0,x.display="");var S={};try{S=this.node.getBBox()}catch(M){S={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{S=S||{},v&&(x.display="none")}return T&&this.hide(),S},me.attr=function(T,x){if(this.removed)return this;if(T==null){var v={};for(var S in this.attrs)this.attrs[e](S)&&(v[S]=this.attrs[S]);return v.gradient&&v.fill=="none"&&(v.fill=v.gradient)&&delete v.gradient,v.transform=this._.transform,v}if(x==null&&t.is(T,"string")){if(T=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(T=="transform")return this._.transform;for(var M=T.split(D),j={},z=0,Y=M.length;z<Y;z++)(T=M[z])in this.attrs?j[T]=this.attrs[T]:t.is(this.paper.customAttributes[T],"function")?j[T]=this.paper.customAttributes[T].def:j[T]=t._availableAttrs[T];return Y-1?j:j[M[0]]}if(x==null&&t.is(T,"array")){for(j={},z=0,Y=T.length;z<Y;z++)j[T[z]]=this.attr(T[z]);return j}if(x!=null){var q={};q[T]=x}else T!=null&&t.is(T,"object")&&(q=T);for(var G in q)R("raphael.attr."+G+"."+this.id,this,q[G]);for(G in this.paper.customAttributes)if(this.paper.customAttributes[e](G)&&q[e](G)&&t.is(this.paper.customAttributes[G],"function")){var ee=this.paper.customAttributes[G].apply(this,[].concat(q[G]));for(var he in this.attrs[G]=q[G],ee)ee[e](he)&&(q[he]=ee[he])}return K(this,q),this},me.toFront=function(){if(this.removed)return this;var T=_e(this.node);T.parentNode.appendChild(T);var x=this.paper;return x.top!=this&&t._tofront(this,x),this},me.toBack=function(){if(this.removed)return this;var T=_e(this.node),x=T.parentNode;return x.insertBefore(T,x.firstChild),t._toback(this,this.paper),this.paper,this},me.insertAfter=function(T){if(this.removed||!T)return this;var x=_e(this.node),v=_e(T.node||T[T.length-1].node);return v.nextSibling?v.parentNode.insertBefore(x,v.nextSibling):v.parentNode.appendChild(x),t._insertafter(this,T,this.paper),this},me.insertBefore=function(T){if(this.removed||!T)return this;var x=_e(this.node),v=_e(T.node||T[0].node);return v.parentNode.insertBefore(x,v),t._insertbefore(this,T,this.paper),this},me.blur=function(T){var x=this;if(+T!=0){var v=B("filter"),S=B("feGaussianBlur");x.attrs.blur=T,v.id=t.createUUID(),B(S,{stdDeviation:+T||1.5}),v.appendChild(S),x.paper.defs.appendChild(v),x._blur=v,B(x.node,{filter:"url
37(#"+v.id+")"})}else x._blur&&(x._blur.parentNode.removeChild(x._blur),delete x._blur,delete x.attrs.blur),x.node.removeAttribute("filter");return x},t._engine.circle=function(T,x,v,S){var M=B("circle");T.canvas&&T.canvas.appendChild(M);var j=new ke(M,T);return j.attrs={cx:x,cy:v,r:S,fill:"none",stroke:"#000"},j.type="circle",B(M,j.attrs),j},t._engine.rect=function(T,x,v,S,M,j){var z=B("rect");T.canvas&&T.canvas.appendChild(z);var Y=new ke(z,T);return Y.attrs={x,y:v,width:S,height:M,rx:j||0,ry:j||0,fill:"none",stroke:"#000"},Y.type="rect",B(z,Y.attrs),Y},t._engine.ellipse=function(T,x,v,S,M){var j=B("ellipse");T.canvas&&T.canvas.appendChild(j);var z=new ke(j,T);return z.attrs={cx:x,cy:v,rx:S,ry:M,fill:"none",stroke:"#000"},z.type="ellipse",B(j,z.attrs),z},t._engine.image=function(T,x,v,S,M,j){var z=B("image");B(z,{x:v,y:S,width:M,height:j,preserveAspectRatio:"none"}),z.setAttributeNS(O,"href",x),T.canvas&&T.canvas.appendChild(z);var Y=new ke(z,T);return Y.attrs={x:v,y:S,width:M,height:j,src:x},Y.type="image",Y},t._engine.text=function(T,x,v,S){var M=B("text");T.canvas&&T.canvas.appendChild(M);var j=new ke(M,T);return j.attrs={x,y:v,"text-anchor":"middle",text:S,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},j.type="text",K(j,j.attrs),j},t._engine.setSize=function(T,x){return this.width=T||this.width,this.height=x||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var T=t._getContainer.apply(0,arguments),x=T&&T.container;if(!x)throw new Error("SVG container not found.");var v,S=T.x,M=T.y,j=T.width,z=T.height,Y=B("svg"),q="overflow:hidden;";return S=S||0,M=M||0,B(Y,{height:z=z||342,version:1.1,width:j=j||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),x==1?(Y.style.cssText=q+"position:absolute;left:"+S+"px;top:"+M+"px",t._g.doc.body.appendChild(Y),v=1):(Y.style.cssText=q+"position:relative",x.firstChild?x.insertBefore(Y,x.firstChild):x.appendChild(Y)),(x=new t._Paper).width=j,x.height=z,x.canvas=Y,x.clear(),x._left=x._top=0,v&&(x.renderfix=function(){}),x.renderfix(),x},t._engine.setViewBox=function(T,x,v,S,M){R("raphael.setViewBox",this,this._viewBox,[T,x,v,S,M]);var j,z,Y=this.getSize(),q=y(v/Y.width,S/Y.height),G=this.top,ee=M?"xMidYMid meet":"xMinYMin";for(T==null?(this._vbSize&&(q=1),delete this._vbSize,j="0 0 "+this.width+p+this.height):(this._vbSize=q,j=T+p+x+p+v+p+S),B(this.canvas,{viewBox:j,preserveAspectRatio:ee});q&&G;)z="stroke-width"in G.attrs?G.attrs["stroke-width"]:1,G.attr({"stroke-width":z}),G._.dirty=1,G._.dirtyT=1,G=G.prev;return this._viewBox=[T,x,v,S,!!M],this},t.prototype.renderfix=function(){var T,x=this.canvas,v=x.style;try{T=x.getScreenCTM()||x.createSVGMatrix()}catch(j){T=x.createSVGMatrix()}var S=-T.e%1,M=-T.f%1;(S||M)&&(S&&(this._left=(this._left+S)%1,v.left=this._left+"px"),M&&(this._top=(this._top+M)%1,v.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var T=this.canvas;T.firstChild;)T.removeChild(T.firstChild);this.bottom=this.top=null,(this.desc=B("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),T.a
vendor: 9,627 bytes, line 37
37ppendChild(this.desc),T.appendChild(this.defs=B("defs"))},t.prototype.remove=function(){for(var T in R("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[T]=typeof this[T]=="function"?t._removedFactory(T):null};var ye=t.st;for(var $e in me)me[e]($e)&&!ye[e]($e)&&(ye[$e]=function(T){return function(){var x=arguments;return this.forEach(function(v){v[T].apply(v,x)})}}($e))}}).apply(u,i))===void 0||(c.exports=r)},function(c,u,l){var i,r;i=[l(0)],(r=(function(t){if(!t||t.vml){var e="hasOwnProperty",a=String,o=parseFloat,f=Math,g=f.round,y=f.max,E=f.min,k=f.abs,D=/[, ]+/,R=t.eve,b=" ",p="",O={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},N=/([clmz]),?([^clmz]*)/gi,C=/ progid:\S+Blur\([^\)]+\)/g,B=/-?[^,\s-]+/g,F="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",V=21600,te={path:1,rect:1,image:1},W={circle:1,ellipse:1},U=function(x,v,S){var M=t.matrix();return M.rotate(-x,.5,.5),{dx:M.x(v,S),dy:M.y(v,S)}},ne=function(x,v,S,M,j,z){var Y=x._,q=x.matrix,G=Y.fillpos,ee=x.node,he=ee.style,fe=1,pe="",Ce=V/v,Te=V/S;if(he.visibility="hidden",v&&S){if(ee.coordsize=k(Ce)+b+k(Te),he.rotation=z*(v*S<0?-1:1),z){var Ae=U(z,M,j);M=Ae.dx,j=Ae.dy}if(v<0&&(pe+="x"),S<0&&(pe+=" y")&&(fe=-1),he.flip=pe,ee.coordorigin=M*-Ce+b+j*-Te,G||Y.fillsize){var Me=ee.getElementsByTagName("fill");Me=Me&&Me[0],ee.removeChild(Me),G&&(Ae=U(z,q.x(G[0],G[1]),q.y(G[0],G[1])),Me.position=Ae.dx*fe+b+Ae.dy*fe),Y.fillsize&&(Me.size=Y.fillsize[0]*k(v)+b+Y.fillsize[1]*k(S)),ee.appendChild(Me)}he.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var K,se=function(x,v,S){for(var M=a(v).toLowerCase().split("-"),j=S?"end":"start",z=M.length,Y="classic",q="medium",G="medium";z--;)switch(M[z]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Y=M[z];break;case"wide":case"narrow":G=M[z];break;case"long":case"short":q=M[z]}var ee=x.node.getElementsByTagName("stroke")[0];ee[j+"arrow"]=Y,ee[j+"arrowlength"]=q,ee[j+"arrowwidth"]=G},_e=function(x,v){x.attrs=x.attrs||{};var S=x.node,M=x.attrs,j=S.style,z=te[x.type]&&(v.x!=M.x||v.y!=M.y||v.width!=M.width||v.height!=M.height||v.cx!=M.cx||v.cy!=M.cy||v.rx!=M.rx||v.ry!=M.ry||v.r!=M.r),Y=W[x.type]&&(M.cx!=v.cx||M.cy!=v.cy||M.r!=v.r||M.rx!=v.rx||M.ry!=v.ry),q=x;for(var G in v)v[e](G)&&(M[G]=v[G]);if(z&&(M.path=t._getPath[x.type](x),x._.dirty=1),v.href&&(S.href=v.href),v.title&&(S.title=v.title),v.target&&(S.target=v.target),v.cursor&&(j.cursor=v.cursor),"blur"in v&&x.blur(v.blur),(v.path&&x.type=="path"||z)&&(S.path=function(je){var tt=/[ahqstv]/gi,dt=t._pathToAbsolute;if(a(je).match(tt)&&(dt=t._path2curve),tt=/[clmz]/g,dt==t._pathToAbsolute&&!a(je).match(tt)){var Ye=a(je).replace(N,function(kn,Zt,Jt){var St=[],Hi=Zt.toLowerCase()=="m",Ft=O[Zt];return Jt.replace(B,function(Vi){Hi&&St.length==2&&(Ft+=St+O[Zt=="m"?"l":"L"],St=[]),St.push(g(Vi*V))}),Ft+St});return Ye}var Ue,ft,xi=dt(je);Ye=[];for(var Qt=0,ki=xi.length;Qt<ki;Qt++){Ue=xi[Qt],(ft=xi[Qt][0].toLowerCase())=="z"&&(ft="x");for(var Tt=1,Ze=Ue.length;Tt<Ze;Tt++)ft+=g(Ue[Tt]*V)+(Tt!=Ze-1?",":p);Ye.push(ft)}return Ye.join(b)}(~a(M.path).toLowerCase().indexOf("r")?t._pathToAbsolute(M.path):M.path),x._.dirty=1,x.type=="image"&&(x._.fillpos=[M.x,M.y],x._.fillsize=[M.width,M.height],ne(x,1,1,0,0,0))),"transform"in v&&x.transform(v.transform),Y){var ee=+M.cx,he=+M.cy,fe=+M.rx||+M.r||0,pe=+M.ry||+M.r||0;S.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",g((ee-fe)*V),g((he-pe)*V),g((ee+fe)*V),g((he+pe)*V),g(ee*V)),x._.dirty=1}if("clip-rect"in v){var Ce=a(v["clip-rect"]).split(D);if(Ce.length==4){Ce[2]=+Ce[2]+ +Ce[0],Ce[3]=+Ce[3]+ +Ce[1];var Te=S.clipRect||t._g.doc.createElement("div"),Ae=Te.style;Ae.clip=t.format("rect({1}px {2}px {3}px {0}px)",Ce),S.clipRect||(Ae.position="absolute",Ae.top=0,Ae.left=0,Ae.width=x.paper.width+"px",Ae.height=x.paper.height+"px",S.parentNode.insertBefore(Te,S),Te.appendChild(S),S.clipRect=Te)}v["clip-rect"]||S.clipRect&&(S.clipRect.style.clip="auto")}if(x.textpath){var Me=x.textpath.style;v.font&&(Me.font=v.font),v["font-family"]&&(Me.fontFamily='"'+v["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,p)+'"'),v["font-size"]&&(Me.fontSize=v["font-size"]),v["font-weight"]&&(Me.fontWeight=v["font-weight"]),v["font-style"]&&(Me.fontStyle=v["font-style"])}if("arrow-start"in v&&se(q,v["arrow-start"]),"arrow-end"in v&&se(q,v["arrow-end"],1),v.opacity!=null||v.fill!=null||v.src!=null||v.stroke!=null||v["stroke-width"]!=null||v["stroke-opacity"]!=null||v["fill-opacity"]!=null||v["stroke-dasharray"]!=null||v["stroke-miterlimit"]!=null||v["stroke-linejoin"]!=null||v["stroke-linecap"]!=null){var Ee=S.getElementsByTagName("fill");if(!(Ee=Ee&&Ee[0])&&(Ee=K("fill")),x.type=="image"&&v.src&&(Ee.src=v.src),v.fill&&(Ee.on=!0),Ee.on!=null&&v.fill!="none"&&v.fill!==null||(Ee.on=!1),Ee.on&&v.fill){var Se=a(v.fill).match(t._ISURL);if(Se){Ee.parentNode==S&&S.removeChild(Ee),Ee.rotate=!0,Ee.src=Se[1],Ee.type="tile";var xe=x.getBBox(1);Ee.position=xe.x+b+xe.y,x._.fillpos=[xe.x,xe.y],t._preload(Se[1],function(){x._.fillsize=[this.offsetWidth,this.offsetHeight]})}else Ee.color=t.getRGB(v.fill).hex,Ee.src=p,Ee.type="solid",t.getRGB(v.fill).error&&(q.type in{circle:1,ellipse:1}||a(v.fill).charAt()!="r")&&ke(q,v.fill,Ee)&&(M.fill="none",M.gradient=v.fill,Ee.rotate=!1)}if("fill-opacity"in v||"opacity"in v){var ge=((+M["fill-opacity"]+1||2)-1)*((+M.opacity+1||2)-1)*((+t.getRGB(v.fill).o+1||2)-1);ge=E(y(ge,0),1),Ee.opacity=ge,Ee.src&&(Ee.color="none")}S.appendChild(Ee);var ve=S.getElementsByTagName("stroke")&&S.getElementsByTagName("stroke")[0],we=!1;!ve&&(we=ve=K("stroke")),(v.stroke&&v.stroke!="none"||v["stroke-width"]||v["stroke-opacity"]!=null||v["stroke-dasharray"]||v["stroke-miterlimit"]||v["stroke-linejoin"]||v["stroke-linecap"])&&(ve.on=!0),(v.stroke=="none"||v.stroke===null||ve.on==null||v.stroke==0||v["stroke-width"]==0)&&(ve.on=!1);var Ne=t.getRGB(v.stroke);ve.on&&v.stroke&&(ve.color=Ne.hex),ge=((+M["stroke-opacity"]+1||2)-1)*((+M.opacity+1||2)-1)*((+Ne.o+1||2)-1);var He=.75*(o(v["stroke-width"])||1);if(ge=E(y(ge,0),1),v["stroke-width"]==null&&(He=M["stroke-width"]),v["stroke-width"]&&(ve.weight=He),He&&He<1&&(ge*=He)&&(ve.weight=1),ve.opacity=ge,v["stroke-linejoin"]&&(ve.joinstyle=v["stroke-linejoin"]||"miter"),ve.miterlimit=v["stroke-miterlimit"]||8,v["stroke-linecap"]&&(ve.endcap=v["stroke-linecap"]=="butt"?"flat":v["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in v){var ze={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};ve.dashstyle=ze[e](v["stroke-dasharray"])?ze[v["stroke-dasharray"]]:p}we&&S.appendChild(ve)}if(q.type=="text"){q.paper.canvas.style.display=p;var Fe=q.paper.span,Ve=M.font&&M.font.match(/\d+(?:\.\d*)?(?=px)/);j=Fe.style,M.font&&(j.font=M.font),M["font-family"]&&(j.fontFamily=M["font-family"]),M["font-weight"]&&(j.fontWeight=M["font-weight"]),M["font-style"]&&(j.fontStyle=M["font-style"]),Ve=o(M["font-size"]||Ve&&Ve[0])||10,j.fontSize=100*Ve+"px",q.textpath.string&&(Fe.innerHTML=a(q.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var qe=Fe.getBoundingClientRect();q.W=M.w=(qe.right-qe.left)/100,q.H=M.h=(qe.bottom-qe.top)/100,q.X=M.x,q.Y=M.y+q.H/2,("x"in v||"y"in v)&&(q.path.v=t.format("m{0},{1}l{2},{1}",g(M.x*V),g(M.y*V),g(M.x*V)+1));for(var Re=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ke=0,ut=Re.length;Ke<ut;Ke++)if(Re[Ke]in v){q._.dirty=1;break}switch(M["text-anchor"]){case"start":q.textpath.style["v-text-align"]="left",q.bbx=q.W/2;break;case"end":q.textpath.style["v-text-align"]="right",q.bbx=-q.W/2;break;default:q.textpath.style["v-text-align"]="center",q.bbx=0}q.textpath.style["v-text-kern"]=!0}},ke=function(x,v,S){x.attrs=x.attrs||{},x.attrs;var M=Math.pow,j="linear",z=".5 .5";if(x.attrs.gradient=v,v=(v=a(v).replace(t._radial_gradient,function(fe,pe,Ce){return j="radial",pe&&Ce&&(pe=o(pe),Ce=o(Ce),M(pe-.5,2)+M(Ce-.5,2)>.25&&(Ce=f.sqrt(.25-M(pe-.5,2))*(2*(Ce>.5)-1)+.5),z=pe+b+Ce),p})).split(/\s*\-\s*/),j=="linear"){var Y=v.shift();if(Y=-o(Y),isNaN(Y))return null}var q=t._parseDots(v);if(!q)return null;if(x=x.shape||x.node,q.length){x.removeChild(S),S.on=!0,S.method="none",S.color=q[0].color,S.color2=q[q.length-1].color;for(var G=[],ee=0,he=q.length;ee<he;ee++)q[ee].offset&&G.push(q[ee].offset+b+q[ee].color);S.colors=G.length?G.join():"0% "+S.color,j=="radial"?(S.type="gradientTitle",S.focus="100%",S.focussize="0 0",S.focusposition=z,S.angle=0):(S.type="gradient",S.angle=(270-Y)%360),x.appendChild(S)}return 1},me=function(x,v){this[0]=this.node=x,x.raphael=!0,this.id=t._oid++,x.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=v,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!v.bottom&&(v.bottom=this),this.prev=v.top,v.top&&(v.top.next=this),v.top=this,this.next=null},ye=t.el;me.prototype=ye,ye.constructor=me,ye.transform=function(x){if(x==null)return this._.transform;var v,S=this.paper._viewBoxShift,M=S?"s"+[S.scale,S.scale]+"-1-1t"+[S.dx,S.dy]:p;S&&(v=x=a(x).replace(/\.{3}|\u2026/g,this._.transform||p)),t._extractTransform(this,M+x);var j,z=this.matrix.clone(),Y=this.skew,q=this.node,G=~a(this.attrs.fill).indexOf("-"),ee=!a(this.attrs.fill).indexOf("url(");if(z.translate(1,1),ee||G||this.type=="image")if(Y.matrix="1 0 0 1",Y.offset="0 0",j=z.split(),G&&j.noRotation||!j.isSimple){q.style.filter=z.toFilter();
37var he=this.getBBox(),fe=this.getBBox(1),pe=he.x-fe.x,Ce=he.y-fe.y;q.coordorigin=pe*-V+b+Ce*-V,ne(this,1,1,pe,Ce,0)}else q.style.filter=p,ne(this,j.scalex,j.scaley,j.dx,j.dy,j.rotate);else q.style.filter=p,Y.matrix=a(z),Y.offset=z.offset();return v!==null&&(this._.transform=v,t._extractTransform(this,v)),this},ye.rotate=function(x,v,S){if(this.removed)return this;if(x!=null){if((x=a(x).split(D)).length-1&&(v=o(x[1]),S=o(x[2])),x=o(x[0]),S==null&&(v=S),v==null||S==null){var M=this.getBBox(1);v=M.x+M.width/2,S=M.y+M.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",x,v,S]])),this}},ye.translate=function(x,v){return this.removed?this:((x=a(x).split(D)).length-1&&(v=o(x[1])),x=o(x[0])||0,v=+v||0,this._.bbox&&(this._.bbox.x+=x,this._.bbox.y+=v),this.transform(this._.transform.concat([["t",x,v]])),this)},ye.scale=function(x,v,S,M){if(this.removed)return this;if((x=a(x).split(D)).length-1&&(v=o(x[1]),S=o(x[2]),M=o(x[3]),isNaN(S)&&(S=null),isNaN(M)&&(M=null)),x=o(x[0]),v==null&&(v=x),M==null&&(S=M),S==null||M==null)var j=this.getBBox(1);return S=S==null?j.x+j.width/2:S,M=M==null?j.y+j.height/2:M,this.transform(this._.transform.concat([["s",x,v,S,M]])),this._.dirtyT=1,this},ye.hide=function(){return!this.removed&&(this.node.style.display="none"),this},ye.show=function(){return!this.removed&&(this.node.style.display=p),this},ye.auxGetBBox=t.el.getBBox,ye.getBBox=function(){var x=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var v={},S=1/this.paper._viewBoxShift.scale;return v.x=x.x-this.paper._viewBoxShift.dx,v.x*=S,v.y=x.y-this.paper._viewBoxShift.dy,v.y*=S,v.width=x.width*S,v.height=x.height*S,v.x2=v.x+v.width,v.y2=v.y+v.height,v}return x},ye._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},ye.remove=function(){if(!this.removed&&this.node.parentNode){for(var x in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[x]=typeof this[x]=="function"?t._removedFactory(x):null;this.removed=!0}},ye.attr=function(x,v){if(this.removed)return this;if(x==null){var S={};for(var M in this.attrs)this.attrs[e](M)&&(S[M]=this.attrs[M]);return S.gradient&&S.fill=="none"&&(S.fill=S.gradient)&&delete S.gradient,S.transform=this._.transform,S}if(v==null&&t.is(x,"string")){if(x=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var j=x.split(D),z={},Y=0,q=j.length;Y<q;Y++)(x=j[Y])in this.attrs?z[x]=this.attrs[x]:t.is(this.paper.customAttributes[x],"function")?z[x]=this.paper.customAttributes[x].def:z[x]=t._availableAttrs[x];return q-1?z:z[j[0]]}if(this.attrs&&v==null&&t.is(x,"array")){for(z={},Y=0,q=x.length;Y<q;Y++)z[x[Y]]=this.attr(x[Y]);return z}var G;for(var ee in v!=null&&((G={})[x]=v),v==null&&t.is(x,"object")&&(G=x),G)R("raphael.attr."+ee+"."+this.id,this,G[ee]);if(G){for(ee in this.paper.customAttributes)if(this.paper.customAttributes[e](ee)&&G[e](ee)&&t.is(this.paper.customAttributes[ee],"function")){var he=this.paper.customAttributes[ee].apply(this,[].concat(G[ee]));for(var fe in this.attrs[ee]=G[ee],he)he[e](fe)&&(G[fe]=he[fe])}G.text&&this.type=="text"&&(this.textpath.string=G.text),_e(this,G)}return this},ye.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},ye.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this)},ye.insertAfter=function(x){return this.removed?this:(x.constructor==t.st.constructor&&(x=x[x.length-1]),x.node.nextSibling?x.node.parentNode.insertBefore(this.node,x.node.nextSibling):x.node.parentNode.appendChild(this.node),t._insertafter(this,x,this.paper),this)},ye.insertBefore=function(x){return this.removed?this:(x.constructor==t.st.constructor&&(x=x[0]),x.node.parentNode.insertBefore(this.node,x.node),t._insertbefore(this,x,this.paper),this)},ye.blur=function(x){var v=this.node.runtimeStyle,S=v.filter;return S=S.replace(C,p),+x!=0?(this.attrs.blur=x,v.filter=S+b+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+x||1.5)+")",v.margin=t.format("-{0}px 0 0 -{0}
37px",g(+x||1.5))):(v.filter=S,v.margin=0,delete this.attrs.blur),this},t._engine.path=function(x,v){var S=K("shape");S.style.cssText=F,S.coordsize=V+b+V,S.coordorigin=v.coordorigin;var M=new me(S,v),j={fill:"none",stroke:"#000"};x&&(j.path=x),M.type="path",M.path=[],M.Path=p,_e(M,j),v.canvas&&v.canvas.appendChild(S);var z=K("skew");return z.on=!0,S.appendChild(z),M.skew=z,M.transform(p),M},t._engine.rect=function(x,v,S,M,j,z){var Y=t._rectPath(v,S,M,j,z),q=x.path(Y),G=q.attrs;return q.X=G.x=v,q.Y=G.y=S,q.W=G.width=M,q.H=G.height=j,G.r=z,G.path=Y,q.type="rect",q},t._engine.ellipse=function(x,v,S,M,j){var z=x.path();return z.attrs,z.X=v-M,z.Y=S-j,z.W=2*M,z.H=2*j,z.type="ellipse",_e(z,{cx:v,cy:S,rx:M,ry:j}),z},t._engine.circle=function(x,v,S,M){var j=x.path();return j.attrs,j.X=v-M,j.Y=S-M,j.W=j.H=2*M,j.type="circle",_e(j,{cx:v,cy:S,r:M}),j},t._engine.image=function(x,v,S,M,j,z){var Y=t._rectPath(S,M,j,z),q=x.path(Y).attr({stroke:"none"}),G=q.attrs,ee=q.node,he=ee.getElementsByTagName("fill")[0];return G.src=v,q.X=G.x=S,q.Y=G.y=M,q.W=G.width=j,q.H=G.height=z,G.path=Y,q.type="image",he.parentNode==ee&&ee.removeChild(he),he.rotate=!0,he.src=v,he.type="tile",q._.fillpos=[S,M],q._.fillsize=[j,z],ee.appendChild(he),ne(q,1,1,0,0,0),q},t._engine.text=function(x,v,S,M){var j=K("shape"),z=K("path"),Y=K("textpath");v=v||0,S=S||0,M=M||"",z.v=t.format("m{0},{1}l{2},{1}",g(v*V),g(S*V),g(v*V)+1),z.textpathok=!0,Y.string=a(M),Y.on=!0,j.style.cssText=F,j.coordsize=V+b+V,j.coordorigin="0 0";var q=new me(j,x),G={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:M};q.shape=j,q.path=z,q.textpath=Y,q.type="text",q.attrs.text=a(M),q.attrs.x=v,q.attrs.y=S,q.attrs.w=1,q.attrs.h=1,_e(q,G),j.appendChild(Y),j.appendChild(z),x.canvas.appendChild(j);var ee=K("skew");return ee.on=!0,j.appendChild(ee),q.skew=ee,q.transform(p),q},t._engine.setSize=function(x,v){var S=this.canvas.style;return this.width=x,this.height=v,x==+x&&(x+="px"),v==+v&&(v+="px"),S.width=x,S.height=v,S.clip="rect(0 "+x+" "+v+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(x,v,S,M,j){t.eve("raphael.setViewBox",this,this._viewBox,[x,v,S,M,j]);var z,Y,q=this.getSize(),G=q.width,ee=q.height;return j&&(S*(z=ee/M)<G&&(x-=(G-S*z)/2/z),M*(Y=G/S)<ee&&(v-=(ee-M*Y)/2/Y)),this._viewBox=[x,v,S,M,!!j],this._viewBoxShift={dx:-x,dy:-v,scale:q},this.forEach(function(he){he.transform("...")}),this},t._engine.initWin=function(x){var v=x.document;v.styleSheets.length<31?v.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):v.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!v.namespaces.rvml&&v.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),K=function(S){return v.createElement("<rvml:"+S+' class="rvml">')}}catch(S){K=function(M){return v.createElement("<"+M+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var x=t._getContainer.apply(0,arguments),v=x.container,S=x.height,M=x.width,j=x.x,z=x.y;if(!v)throw new Error("VML container not found.");var Y=new t._Paper,q=Y.canvas=t._g.doc.createElement("div"),G=q.style;return j=j||0,z=z||0,M=M||512,S=S||342,Y.width=M,Y.height=S,M==+M&&(M+="px"),S==+S&&(S+="px"),Y.coordsize=216e5+b+216e5,Y.coordorigin="0 0",Y.span=t._g.doc.createElement("span"),Y.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",q.appendChild(Y.span),G.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",M,S),v==1?(t._g.doc.body.appendChild(q),G.left=j+"px",G.top=z+"px",G.position="absolute"):v.firstChild?v.insertBefore(q,v.firstChild):v.appendChild(q),Y.renderfix=function(){},Y},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var x in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[x]=typeof this[x]=="function"?t._removedFactory(x):null;return!0};
37var $e=t.st;for(var T in ye)ye[e](T)&&!$e[e](T)&&($e[T]=function(x){return function(){var v=arguments;return this.forEach(function(S){S[x].apply(S,v)})}}(T))}}).apply(u,i))===void 0||(c.exports=r)}])})}(Vs)),Vs.exports}(function(n){(function(s,c){n.exports?n.exports=s.JustGage=c(od()):s.JustGage=c(Raphael)})(typeof window<"u"?window:eo,function(s){const c=function(b){const p=this;if(p.events={},i(b))return console.log("* justgage: Make sure to pass options to the constructor!"),!1;if(i(b.id))if(!i(b.parentNode))p.node=b.parentNode;else return console.log("* justgage: Make sure to pass the existing element id or parentNode to the constructor."),!1;else if(p.node=document.getElementById(b.id),!p.node)return console.log("* justgage: No element with id : %s found",b.id),!1;const O=p.node.dataset?p.node.dataset:{},N=i(b.defaults)?!1:b.defaults;N!==!1&&(b=k({},b,N),delete b.defaults),p.config={id:b.id,classId:R(),value:l("value",b,O,0,"float"),defaults:l("defaults",b,O,0,!1),parentNode:l("parentNode",b,O,null),width:l("width",b,O,null),height:l("height",b,O,null),valueFontColor:l("valueFontColor",b,O,"#010101"),valueFontFamily:l("valueFontFamily",b,O,"Arial"),symbol:l("symbol",b,O,""),min:l("min",b,O,0,"float"),minTxt:l("minTxt",b,O,!1),max:l("max",b,O,100,"float"),maxTxt:l("maxTxt",b,O,!1),reverse:l("reverse",b,O,!1),humanFriendlyDecimal:l("humanFriendlyDecimal",b,O,0),textRenderer:l("textRenderer",b,O,null),onAnimationEnd:l("onAnimationEnd",b,O,null),gaugeWidthScale:l("gaugeWidthScale",b,O,1),gaugeColor:l("gaugeColor",b,O,"#edebeb"),label:l("label",b,O,""),labelFontColor:l("labelFontColor",b,O,"#b3b3b3"),labelFontFamily:l("labelFontFamily",b,O,"Arial"),shadowOpacity:l("shadowOpacity",b,O,.2),shadowSize:l("shadowSize",b,O,5),shadowVerticalOffset:l("shadowVerticalOffset",b,O,3),levelColors:l("levelColors",b,O,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:l("startAnimationTime",b,O,700),startAnimationType:l("startAnimationType",b,O,">"),refreshAnimationTime:l("refreshAnimationTime",b,O,700),refreshAnimationType:l("refreshAnimationType",b,O,">"),donutStartAngle:l("donutStartAngle",b,O,90),valueMinFontSize:l("valueMinFontSize",b,O,16),labelMinFontSize:l("labelMinFontSize",b,O,10),minLabelMinFontSize:l("minLabelMinFontSize",b,O,10),maxLabelMinFontSize:l("maxLabelMinFontSize",b,O,10),hideValue:l("hideValue",b,O,!1),hideMinMax:l("hideMinMax",b,O,!1),showInnerShadow:l("showInnerShadow",b,O,!1),humanFriendly:l("humanFriendly",b,O,!1),noGradient:l("noGradient",b,O,!1),donut:l("donut",b,O,!1),differential:l("differential",b,O,!1),relativeGaugeSize:l("relativeGaugeSize",b,O,!1),counter:l("counter",b,O,!1),decimals:l("decimals",b,O,0),customSectors:l("customSectors",b,O,{}),formatNumber:l("formatNumber",b,O,!1),pointer:l("pointer",b,O,!1),pointerOptions:l("pointerOptions",b,O,{}),displayRemaining:l("displayRemaining",b,O,!1)};let C,B,F,V,te,W,U,ne,K,se,_e,ke,me,ye,$e,T,x,v,S;p.config.value>p.config.max&&(p.config.value=p.config.max),p.config.value<p.config.min&&(p.config.value=p.config.min),p.originalValue=l("value",b,O,-1,"float"),p.config.id!==null&&document.getElementById(p.config.id)!==null?p.canvas=s(p.config.id,"100%","100%"):p.config.parentNode!==null&&(p.canvas=s(p.config.parentNode,"100%","100%")),p.config.relativeGaugeSize===!0?p.config.donut===!0?(p.canvas.setViewBox(0,0,200,200,!0),C=200,B=200):(p.canvas.setViewBox(0,0,200,100,!0),C=200,B=100):p.config.width!==null&&p.config.height!==null?(C=p.config.width,B=p.config.height):p.config.parentNode!==null?(p.canvas.setViewBox(0,0,200,100,!0),C=200,B=100):(C=g(document.getElementById(p.config.id),"width").slice(0,-2)*1,B=g(document.getElementById(p.config.id),"height").slice(0,-2)*1),p.config.donut===!0?(C>B?(V=B,F=V):(C<B,F=C,V=F),W=(C-F)/2,U=(B-V)/2,ne=V/6.4>16?V/5.4:18,K=W+F/2,p.config.label!==""?se=U+V/1.85:se=U+V/1.7,_e=V/16>10?V/16:10,ke=W+F/2,me=se+_e,ye=V/16>10?V/16:10,$e=W+F/10+F/6.666666666666667*p.config.gaugeWidthScale/2,T=me,x=V/16>10?V/16:10,v=W+F-F/10-F/6.666666666666667*p.config.gaugeWidthScale/2,S=me):(C>B?(V=B,F=V*2,F>C&&(te=F/C,F=F/te,V=V/te)):C<B?(F=C,V=F/2):(F=C,V=F*.5),W=(C-F)/2,U=(B-V)/2,ne=V/6.5>p.config.valueMinFontSize?V/6.5:p.config.valueMinFontSize,K=W+F/2,se=U+V/1.275,_e=V/16>p.config.labelMinFontSize?V/16:p.config.labelMinFontSize,ke=W+F/2,me=se+ne/2+5,ye=V/16>p.config.minLabelMinFontSize?V/16:p.config.minLabelMinFontSize,$e=W+F/10+F/6.666666666666667*p.c
37onfig.gaugeWidthScale/2,T=me,x=V/16>p.config.maxLabelMinFontSize?V/16:p.config.maxLabelMinFontSize,v=W+F-F/10-F/6.666666666666667*p.config.gaugeWidthScale/2,S=me),p.params={canvasW:C,canvasH:B,widgetW:F,widgetH:V,dx:W,dy:U,valueFontSize:ne,valueX:K,valueY:se,labelFontSize:_e,labelX:ke,labelY:me,minFontSize:ye,minX:$e,minY:T,maxFontSize:x,maxX:v,maxY:S},p.canvas.customAttributes.pki=function(G,ee){let he=p.config.min,fe=p.config.max;const pe=p.params.widgetW,Ce=p.params.widgetH,Te=p.params.dx,Ae=p.params.dy,Me=p.config.gaugeWidthScale,Ee=p.config.donut;let Se,xe,ge,ve,we,Ne,He,ze,Fe,Ve,qe,Re;if(he<0&&!ee&&(fe-=he,G-=he,he=0),Ee)return Se=(1-2*(G-he)/(fe-he))*Math.PI,xe=pe/2-pe/30,ge=xe-pe/6.666666666666667*Me,ve=pe/2+Te,we=Ce/2+Ae,ze=ve+xe*Math.cos(Se),Fe=we-xe*Math.sin(Se),Ve=ve+ge*Math.cos(Se),qe=we-ge*Math.sin(Se),Re="M"+(ve-ge)+","+we+" ",Re+="L"+(ve-xe)+","+we+" ",G-he>(fe-he)/2&&(Re+="A"+xe+","+xe+" 0 0 1 "+(ve+xe)+","+we+" "),Re+="A"+xe+","+xe+" 0 0 1 "+ze+","+Fe+" ",Re+="L"+Ve+","+qe+" ",G-he>(fe-he)/2&&(Re+="A"+ge+","+ge+" 0 0 0 "+(ve+ge)+","+we+" "),Re+="A"+ge+","+ge+" 0 0 0 "+(ve-ge)+","+we+" ",Re+="Z ",{path:Re};if(ee){Se=(1-(G-he)/(fe-he))*Math.PI,xe=pe/2-pe/10,ge=xe-pe/6.666666666666667*Me,ve=pe/2+Te,we=Ce/1.25+Ae,ze=ve+xe*Math.cos(Se),Fe=we-xe*Math.sin(Se),Ve=ve+ge*Math.cos(Se),qe=we-ge*Math.sin(Se);const Ke=he+(fe-he)/2;return Ne=G<Ke?1:0,He=G<Ke?0:1,Re="M"+ve+","+(we-ge)+" ",Re+="L"+ve+","+(we-xe)+" ",Re+="A"+xe+","+xe+" 0 0 "+He+" "+ze+","+Fe+" ",Re+="L"+Ve+","+qe+" ",Re+="A"+ge+","+ge+" 0 0 "+Ne+" "+ve+","+(we-ge)+" ",Re+="Z ",{path:Re}}else return Se=(1-(G-he)/(fe-he))*Math.PI,xe=pe/2-pe/10,ge=xe-pe/6.666666666666667*Me,ve=pe/2+Te,we=Ce/1.25+Ae,ze=ve+xe*Math.cos(Se),Fe=we-xe*Math.sin(Se),Ve=ve+ge*Math.cos(Se),qe=we-ge*Math.sin(Se),Re="M"+(ve-ge)+","+we+" ",Re+="L"+(ve-xe)+","+we+" ",Re+="A"+xe+","+xe+" 0 0 1 "+ze+","+Fe+" ",Re+="L"+Ve+","+qe+" ",Re+="A"+ge+","+ge+" 0 0 0 "+(ve-ge)+","+we+" ",Re+="Z ",{path:Re}},p.canvas.customAttributes.ndl=function(G){const ee=p.config.min,he=p.config.max,fe=p.params.widgetW,pe=p.params.widgetH,Ce=p.params.dx,Te=p.params.dy,Ae=p.config.gaugeWidthScale,Me=p.config.donut;let Ee=fe*3.5/100,Se=fe/15,xe=fe/100;p.config.pointerOptions.toplength!=null&&p.config.pointerOptions.toplength!==void 0&&(Ee=p.config.pointerOptions.toplength),p.config.pointerOptions.bottomlength!=null&&p.config.pointerOptions.bottomlength!==void 0&&(Se=p.config.pointerOptions.bottomlength),p.config.pointerOptions.bottomwidth!=null&&p.config.pointerOptions.bottomwidth!==void 0&&(xe=p.config.pointerOptions.bottomwidth);let ge,ve,we,Ne,He,ze,Fe,Ve,qe,Re,Ke,ut,je,tt,dt,Ye,Ue;return Me?(ge=(1-2*(G-ee)/(he-ee))*Math.PI,ve=fe/2-fe/30,we=ve-fe/6.666666666666667*Ae,Ne=pe/2+Te,He=fe/2+Ce+ve*Math.cos(ge),ze=pe-(pe-Ne)-ve*Math.sin(ge),Fe=fe/2+Ce+we*Math.cos(ge),Ve=pe-(pe-Ne)-we*Math.sin(ge),qe=He+Ee*Math.cos(ge),Re=ze-Ee*Math.sin(ge),Ke=Fe-Se*Math.cos(ge),ut=Ve+Se*Math.sin(ge),je=Ke+xe*Math.sin(ge),tt=ut+xe*Math.cos(ge),dt=Ke-xe*Math.sin(ge),Ye=ut-xe*Math.cos(ge),Ue="M"+je+","+tt+" ",Ue+="L"+dt+","+Ye+" ",Ue+="L"+qe+","+Re+" ",Ue+="Z ",{path:Ue}):(ge=(1-(G-ee)/(he-ee))*Math.PI,ve=fe/2-fe/10,we=ve-fe/6.666666666666667*Ae,Ne=pe/1.25+Te,He=fe/2+Ce+ve*Math.cos(ge),ze=pe-(pe-Ne)-ve*Math.sin(ge),Fe=fe/2+Ce+we*Math.cos(ge),Ve=pe-(pe-Ne)-we*Math.sin(ge),qe=He+Ee*Math.cos(ge),Re=ze-Ee*Math.sin(ge),Ke=Fe-Se*Math.cos(ge),ut=Ve+Se*Math.sin(ge),je=Ke+xe*Math.sin(ge),tt=ut+xe*Math.cos(ge),dt=Ke-xe*Math.sin(ge),Ye=ut-xe*Math.cos(ge),Ue="M"+je+","+tt+" ",Ue+="L"+dt+","+Ye+" ",Ue+="L"+qe+","+Re+" ",Ue+="Z ",{path:Ue})},p.gauge=p.canvas.path().attr({stroke:"none",fill:p.config.gaugeColor,pki:[p.config.max]}),p.level=p.canvas.path().attr({stroke:"none",fill:r(p.config.value,(p.config.value-p.config.min)/(p.config.max-p.config.min),p.config.levelColors,p.config.noGradient,p.config.customSectors),pki:[p.config.differential?0:p.config.min,p.config.differential]}),p.config.donut&&p.level.transform("r"+p.config.donutStartAngle+", "+(p.params.widgetW/2+p.params.dx)+", "+(p.params.widgetH/2+p.params.dy)),p.config.pointer&&(p.needle=p.canvas.path().attr({stroke:i(p.config.pointerOptions.stroke)?"none":p.config.pointerOptions.stroke,"stroke-width":i(p.config.pointerOptions.stroke_width)?0:p.config.pointerOptions.stroke_width,"stroke-linecap":i(p.config.pointerOptions.stroke_linecap)?"square":p.config.pointerOptions.stroke_linecap,fill:i(p.config.pointerOptions.color)?"#000000":p.config.pointerOptions.color,ndl:[p.config.min]}),p.config.donut&&p.needle.transform("r"+p.config.donutStartAngle+", "+(p.params.widgetW/2+p.params.dx)+", "+(p.params.widgetH/2+p.params.dy))),p.txtValue=p.canvas.text(p.params.valueX,p.params.valueY,0),p.txtValue.attr({"font-size":p.params.valueFontSize,"font-weight":"bold","font-family":p.config.valueFontFamily,fill:p.config.valueFontColor,"fill-opacity":"0"}),t(p.txtValue,p.params.valueFontSize,p.params.valueY),p.txtLabel=p.canvas.text(p.params.labelX,p.params.labelY,p.config.label),p.txtLabel.attr({"font-size":p.params.labelFontSize,"font-weight":"normal","font-family":p.config.labelFontFamily,fill:p.config.labelFontColor,"fill-opacity":"0"}),t(p.txtLabel,p.params.labelFontSize,p.params.labelY);let M=p.config.min;p.config.reverse&&(M=p.config.max),p.txtMinimum=M,p.config.minTxt?p.txtMinimum=p.config.minTxt:p.config.humanFriendly?p.txtMinimum=o(M,p.config.humanFriendlyDecimal):p.config.formatNumber&&(p.txtMinimum=f(M)),p.txtMin=p.canvas.text(p.params.minX,p.params.minY,p.txtMinimum),p.txtMin.attr({"font-size":p.params.minFontSize,"font-weight":"normal","font-family":p.config.labelFontFamily,fill:p.config.labelFontColor,"fill-opacity":p.config.hideMinMax||p.
37config.donut?"0":"1"}),t(p.txtMin,p.params.minFontSize,p.params.minY);let j=p.config.max;p.config.reverse&&(j=p.config.min),p.txtMaximum=j,p.config.maxTxt?p.txtMaximum=p.config.maxTxt:p.config.humanFriendly?p.txtMaximum=o(j,p.config.humanFriendlyDecimal):p.config.formatNumber&&(p.txtMaximum=f(j)),p.txtMax=p.canvas.text(p.params.maxX,p.params.maxY,p.txtMaximum),p.txtMax.attr({"font-size":p.params.maxFontSize,"font-weight":"normal","font-family":p.config.labelFontFamily,fill:p.config.labelFontColor,"fill-opacity":p.config.hideMinMax||p.config.donut?"0":"1"}),t(p.txtMax,p.params.maxFontSize,p.params.maxY);const z=p.canvas.canvas.childNodes[1],Y="http://www.w3.org/2000/svg";if(E!==void 0&&E<9||(E!==void 0?y(function(){p.generateShadow(Y,z)}):p.generateShadow(Y,z)),p.config.textRenderer&&p.config.textRenderer(p.originalValue)!==!1?p.originalValue=p.config.textRenderer(p.originalValue):p.config.humanFriendly?p.originalValue=o(p.originalValue,p.config.humanFriendlyDecimal)+p.config.symbol:p.config.formatNumber?p.originalValue=f(p.originalValue)+p.config.symbol:p.config.displayRemaining?p.originalValue=((p.config.max-p.originalValue)*1).toFixed(p.config.decimals)+p.config.symbol:p.originalValue=(p.originalValue*1).toFixed(p.config.decimals)+p.config.symbol,p.config.counter===!0){const G=function(){let he=p.level.attr("pki")[0];p.config.reverse&&(he=p.config.max*1+p.config.min*1-p.level.attr("pki")[0]*1),p.config.textRenderer&&p.config.textRenderer(Math.floor(he))!==!1?p.txtValue.attr("text",p.config.textRenderer(Math.floor(he))):p.config.humanFriendly?p.txtValue.attr("text",o(Math.floor(he),p.config.humanFriendlyDecimal)+p.config.symbol):p.config.formatNumber?p.txtValue.attr("text",f(Math.floor(he))+p.config.symbol):p.config.displayRemaining?p.txtValue.attr("text",((p.config.max-he)*1).toFixed(p.config.decimals)+p.config.symbol):p.txtValue.attr("text",(he*1).toFixed(p.config.decimals)+p.config.symbol),t(p.txtValue,p.params.valueFontSize,p.params.valueY),he=null},ee=function(){p.txtValue.attr({text:p.originalValue}),t(p.txtValue,p.params.valueFontSize,p.params.valueY)};this.bindEvent("raphael.anim.finish",ee),this.bindEvent("raphael.anim.frame",G)}else{const G=function(){p.txtValue.attr({text:p.originalValue}),t(p.txtValue,p.params.valueFontSize,p.params.valueY)};this.bindEvent("raphael.anim.start",G)}let q=p.config.value;p.config.reverse&&(q=p.config.max*1+p.config.min*1-p.config.value*1),p.level.animate({pki:[q,p.config.differential]},p.config.startAnimationTime,p.config.startAnimationType,p.config.onAnimationEnd),p.config.pointer&&p.needle.animate({ndl:[q]},p.config.startAnimationTime,p.config.startAnimationType),p.txtValue.animate({"fill-opacity":p.config.hideValue?"0":"1"},p.config.startAnimationTime,p.config.startAnimationType),p.txtLabel.animate({"fill-opacity":"1"},p.config.startAnimationTime,p.config.startAnimationType)};c.prototype.bindEvent=function(b,p){b+="."+this.level.id,this.events[b]&&s.eve.off(b,this.events[b]),s.eve.on(b,p),this.events[b]=p},c.prototype.refresh=function(b,p,O,N){const C=this;let B;p=D(p)?p:null,O=D(O)?O:null,N=N||null,N!==null&&(C.config.label=N,C.txtLabel.attr({text:C.config.label}),t(C.txtLabel,C.params.labelFontSize,C.params.labelY)),O!==null&&(C.config.min=O,C.txtMinimum=C.config.min,C.config.minTxt?C.txtMinimum=C.config.minTxt:C.config.humanFriendly?C.txtMinimum=o(C.config.min,C.config.humanFriendlyDecimal):C.config.formatNumber&&(C.txtMinimum=f(C.config.min)),C.config.reverse?(C.txtMax.attr({text:C.txtMinimum}),t(C.txtMax,C.params.minFontSize,C.params.minY)):(C.txtMin.attr({text:C.txtMinimum}),t(C.txtMin,C.params.minFontSize,C.params.minY))),p!==null&&(C.config.max=p,C.txtMaximum=C.config.max,C.config.maxTxt?C.txtMaximum=C.config.maxTxt:C.config.humanFriendly?C.txtMaximum=o(C.config.max,C.config.humanFriendlyDecimal):C.config.formatNumber&&(C.txtMaximum=f(C.config.max)),C.config.reverse?(C.txtMin.attr({text:C.txtMaximum}),t(C.txtMin,C.params.maxFontSize,C.params.maxY)):(C.txtMax.attr({text:C.txtMaximum}),t(C.txtMax,C.params.maxFontSize,C.params.maxY))),B=b,b*1>C.config.max*1&&(b=C.config.max*1),b*1<C.config.min*1&&(b=C.config.min*1);const F=r(b,(b-C.config.min)/(C.config.max-C.config.min),C.config.levelColors,C.config.noGradient,C.config.customSectors);C.config.textRenderer&&C.config.textRenderer(B)!==!1?B=C.config.textRenderer(B):C.config.humanFriendly?B=o(B,C.config.humanFriendlyDecimal)+C.config.symbol:C.config.formatNumber?B=f((B*1).toFixed(C.config.decimals))+C.config.symbol:C.config.displayRemaining?B=((C.config.max-B)*1).toFixed(C.config.decimals)+C.config.symbol:B=(B*1).toFixed(C.config.decimals)+C.config.symbol,C.originalValue=B,C.config.value=b*1,C.config.counter||(C.txtValue.attr({text:B}),t(C.txtValue,C.params.valueFontSize,C.params.valueY));let V=C.config.value;C.config.reverse&&(V=C.config.max*1+C.config.min*1-C.config.value*1),C.level.animate({pki:[V,C.config.differential],fill:F},C.config.refreshAnimationTime,C.config.refreshAnimationType,C.config.onAnimationEnd),C.config.pointer&&C.needle.animate({ndl:[V]},C.config.refreshAnimationTime,C.config.refreshAnimationType)},c.prototype.update=function(b,p){const O=this;if(b instanceof Object)for(const N in b)p=b[N],u(O,N,p);else u(O,b,p)};function u(b,p,O){switch(p){case"valueFontColor":if(!a(O)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}b.txtValue.attr({fill:O});break;case"labelFontColor":if(!a(O)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}b.txtMin.attr({fill:O}),b.txtMax.attr({fill:O}),b.txtLabel.attr({fill:O});break;default:console.log('* justgage: "'.concat(p,'" is not a supported update setting'))}}c.prototype.destroy=function(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const b in this.events)s.eve.off(b,this.events[b]);this.events={}},c.prototype.generateShadow=function(b,p){const O=this,N="inner-shadow-"+(O.config.id||O.config.classId),C=document.createElementNS(b,"filter");C.setAttribute("id",N),p.appendChild(C);const B=document.createElementNS(b,"feOffset");B.setAttribute("dx",0),B.setAttribute("dy",O.config.shadowVerticalOffset),C.appendChild(B);const F=document.createElementNS(b,"feGaussianBlur");F.setAttribute("result","offset-blur"),F.setAttribute("stdDeviation",O.config.shadowSize),C.appendChild(F);const V=document.createElementNS(b,"feComposite");V.setAttribute("operator","out"),V.setAttribute("in","SourceGraphic"),V.setAttribute("in2","offset-blur"),V.setAttribute("result","inverse"),C.appendChild(V);const te=document.createElementNS(b,"feFlood");te.setAttribute("flood-color","black"),te.setAttribute("flood-opacity",O.config.shadowOpacity),te.setAttribute("result","color"),C.appendChild(te);const W=document.createElementNS(b,"feComposite");W.setAttribute("operator","in"),W.setAttribute("in","color"),W.setAttribute("in2","inverse"),W.setAttribute("result","shadow"),C.appendChild(W);const U=document.createElementNS(b,"feComposite");U.setAttribute("operator","over"),U.setAttribute("in","shadow"),U.setAttribute("in2","SourceGraphic"),C.appendChild(U),O.config.showInnerShadow&&(O.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+N+")"),O.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+N+")"))};function l(b,p,O,N,C,B){let F=N,V=!1;if(!i(b)&&(!i(O)&&typeof O=="object"&&b in O?(F=O[b],V=!0):!i(p)&&typeof p=="object"&&b in p?(F=p[b],V=!0):F=N,V===!0&&!i(C)))switch(C){case"int":F=parseInt(F,10);break;case"float":F=parseFloat(F);break}return F}function i(b){return b==null}function r(b,p,O,N,C){let B,F,V,te,W,U,ne,K,se,_e,ke;const me=C&&C.ranges&&C.ranges.length>0;if(N=N||me,me){C.percents===!0&&(b=p*100);for(let x=0;x<C.ranges.length;x++)if(b>=C.ranges[x].lo&&b<=C.ranges[x].hi)return C.ranges[x].color}const ye=O.length;if(ye===1)return O[0];const $e=N?1/ye:1/(ye-1),T=[];for(let x=0;x<O.length;x++)B=N?$e*(x+1):$e*x,F=parseInt(e(O[x]).substring(0,2),16),V=parseInt(e(O[x]).substring(2,4),16),te=parseInt(e(O[x]).substring(4,6),16),T[x]={pct:B,color:{r:F,g:V,b:te}};if(p===0)return"rgb("+[T[0].color.r,T[0].color.g,T[0].color.b].join(",")+")";for(let x=0;x<T.length;x++)if(p<=T[x].pct)return N?"rgb("+[T[x].color.r,T[x].color.g,T[x].color.b].join(",")+")":(W=T[x-1],U=T[x],ne=U.pct-W.pct,K=(p-W.pct)/ne,se=1-K,_e=K,ke={r:Math.floor(W.color.r*se+U.color.r*_e),g:Math.floor(W.color.g*se+U.color.g*_e),b:Math.floor(W.color.b*se+U.color.b*_e)},"rgb("+[ke.r,ke.g,ke.b].join(",")+")")}function t(b,p,O){(!E||E>9)&&b.node.firstChild.attributes.dy&&(b.node.firstChild.attributes.dy.value=0)}function e(b){return b.charAt(0)==="#"?b.substring(1,7):b}function a(b){return typeof b=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(b)}function o(b,p){const O=Math.pow(10,p),N=" KMGTPE";let C=0;const B=1e3;for(;(b>=B||b<=-B)&&++C<N.length;)b=b/B;return C=C>=N.length?N.length-1:C,Math.round(b*O)/O+N[C]}function f(b){const p=b.toString().split(".");return p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),p.join(".")}function g(b,p){let O="";return document.defaultView&&document.defaultView.getComputedStyle?O=document.defaultView.getComputedStyle(b,"").getPropertyValue(p):b.currentStyle&&(p=p.replace(/-(\w)/g,function(N,C){return C.toUpperCase()}),O=b.currentStyle[p]),O}function y(b){document.createElementNS!==void 0?b():setTimeout(function(){y(b)},100)}const E=function(){let b=3;const p=document.createElement("div"),O=p.getElementsByTagName("i");for(;O[0];)p.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]-->";return b>4?b:void 0}();function k(b){b=b||{};for(let p=1;p<arguments.length;p++)if(arguments[p])for(const O in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],O)&&(b[O]=arguments[p][O]);return b}function D(b){return b!=null&&!isNaN(b)}function R(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){const p=Math.random()*16|0;return(b==="x"?p:p&3|8).toString(16)})}return c})})(ja);var za=ja.exports;const ld=sn(za),cd=to({__proto__:null,default:ld},[za]),hd=Rr(cd);var ud=hd;const dd=sn(ud);var qs={no_results_text:gettext("No results match"),placeholder_text_single:gettext("Select an option"),placeholder_text_multiple:gettext("Select some options")};window.current_language=$("html").attr("lang");
37window.isMobile=/Mobi/i.test(navigator.userAgent)||/Android/i.test(navigator.userAgent);var Mt=navigator.maxTouchPoints||"ontouchstart"in document.documentElement||window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches;window.timeouts=[];function is(){$.each(window.timeouts,function(n,s){clearTimeout(s)}),window.timeouts=[]}function We(n){var s=null;if(document.cookie&&document.cookie!=="")for(var c=document.cookie.split(";"),u=0;u<c.length;u++){var l=jQuery.trim(c[u]);if(l.substring(0,n.length+1)===n+"="){s=decodeURIComponent(l.substring(n.length+1));break}}return s}function Yt(){var n={};return document.location.search&&$.each(document.location.search.substr(1).split("&"),function(s,c){var u=c.split("=");u.length>1&&(n[u[0].toString()]=u[1].toString())}),n}function fd(n,s){var c=n.split("?");if(c.length>=2){for(var u=encodeURIComponent(s)+"=",l=c[1].split(/[&;]/g),i=l.length;i-- >0;)l[i].lastIndexOf(u,0)!==-1&&l.splice(i,1);return n=c[0]+(l.length>0?"?"+l.join("&"):""),n}else return n}function pd(){var n=$("section").not(".ignore-nav");function s(){var e=$("section").not(".ignore-nav");return e.length>=2}if(s()){let e=function(){var f=$(n).map(function(g,y){return $(y).offset().top});return f.get()},a=function(){for(var f=e(),g=$(window).scrollTop(),y=0;y<f.length;y++)(g>=f[y]-160&&g<=f[y+1]||!f[y+1]&&g>=f[y]-160)&&!$(t).eq(y).hasClass("active")&&($(t).removeClass("active"),$(t).removeClass("hovered"),$(t).eq(y).addClass("active"),$(t).eq(y).find(".title").addClass("hovered"),$(t).eq(y).addClass("hovered").delay(2e3).queue(function(E){$(this).removeClass("hovered"),E()}))},o=function(f){var g=e()[f];$("body,html").stop(!0,!0).animate({scrollTop:g+1},500)};var c=document.createElement("div"),u=$("#contact-button"),l=$("#city-page-button"),i=$("#newsletter-page-button");$(c).addClass("sidenav");var r=document.createElement("div");$(r).addClass("sidenav-top-button"),$(r).html('<div class="title">'+gettext("Go to top")+"</div>"),$(c).append(r),(u.length!=0||l.length!=0||i.length!=0)&&$(c).addClass("sidenav-shifted"),$(n).each(function(f){var g="",y=null,E=$(this).find("h1"),k=$(this).find("h2"),D=$(this).find("h3"),R=document.createElement("div");$(R).addClass("sidenav-item"),E.length>0?y=E.eq(0):k.length>0?y=k.eq(0):D.length>0&&(y=D.eq(0)),y&&y.text()?g=y.text():($(R).addClass("no-title"),$(R).css("display","none"),$(this).addClass("ignore-nav")),$(R).html('<div class="title">'+g+"</div>"),$(c).append(R),s()&&$("body").append(c)});var t=$(".sidenav-item");a(),$(window).scrollTop()>=e()[0]&&$(c).addClass("visible"),$(".sidenav-item").click(function(f){f.preventDefault(),o($(this).index(".sidenav-item"))}),$(".sidenav-top-button").click(function(f){f.preventDefault(),$("body,html").stop(!0,!0).animate({scrollTop:1},500),$(this).off("mouseenter mouseleave")}),$(window).scroll(function(){$(window).scrollTop()>=e()[0]-160?$(c).addClass("visible"):($(c).removeClass("visible"),$(t).removeClass("active")),setTimeout(function(){a()},500)})}}function gd(){var n=$("#contact-button"),s=$("#city-page-button"),c=$("#newsletter-page-button"),u=$("section").not(".ignore-nav"),l=$("div.homepage__section");function i(r){var t=$(r).map(function(e,a){return $(a).offset().top});return t.get()}$(window).scroll(function(){$(window).scrollTop()>=i(u)[0]-160||$(window).scrollTop()>=i(l)[0]-160?(n.addClass("visible"),s.addClass("visible"),c.addClass("visible")):(n.removeClass("visible"),s.removeClass("visible"),c.removeClass("visible"))})}function Ws(){$(window).width()<=1024?$(".submenu").each(function(){$(this).attr("style",!1)}):$(window).height()<=600?$(".submenu").each(function(){$(this).attr("style",!1),$(this).outerHeight()>$(window).height()&&$(this).css("height",$(window).height()-175+"px")}):$(".submenu").each(function(){var n=$(window).height()-$(this).parent().position().top-$(this).parent().height(),s=$(this).outerHeight(),c=$(this).find(".menu-l2-item"),u=c.length*50+100;u>s&&(s=u),c.each(function(){var l=$(this).find(".menu-l3-item").length*50+$(this).find(".menu-l3-heading").actual("outerHeight")+100;l>s&&(s=l)}),s>n&&(s=n-20),$(this).css("height",s+"px")})}function md(){var n=(localStorage.getItem("cookie_allowed")||"false")=="true",s=$("#cookie-alert");n||s.slideDown(),$("#cookies-allowed").on("click",function(){localStorage.setItem("cookie_allowed","true"),s.slideUp()})}function Ha(){var n=$(".map-container").length>0;if(n){var s=$(".map-container").find("img"),c=$(s).width()/$(s).height();c<1&&$(s).addClass("high")}}var os=!1;
37function _d(){grecaptcha.reset()}function vd(n){n===grecaptcha.getResponse()?os=!0:os=!1,os?$("#captcha-wrap").removeClass("invalid"):$("#captcha-wrap").addClass("invalid")}function yd(){grecaptcha.render("g-recaptcha",{sitekey:window.ckey,callback:vd,"expired-callback":_d})}window.reCaptchaCallback=yd;$(document).ready(function(){$("#init_bewerbung").is(":checked")?($("#job_advert").removeAttr("required"),$("#application_as").attr("required","required"),$(".check-hidden").hide(),$(".check-visible").show()):($("#job_advert").attr("required","required"),$("#application_as").removeAttr("required"),$(".check-hidden").show(),$(".check-visible").hide()),$(".vacancy").length?$("#job_advert").removeAttr("required"):($("#application_type").removeAttr("style"),$("#hidden_job_advert").remove()),$("#init_bewerbung").on("change",function(){$("#init_bewerbung").is(":checked")?($("#job_advert").removeAttr("required"),$("#application_as").attr("required","required"),$(".check-hidden").hide(),$(".check-visible").show()):($("#job_advert").attr("required","required"),$("#application_as").removeAttr("required"),$(".check-hidden").show(),$(".check-visible").hide())}),$(".hide-btn").on("click",function(){$("#application_type").removeAttr("style"),$("#hidden_job_advert").remove(),$("#job_advert").attr("required","required"),$(this).parent().hide()}),$(".panel-group").click(function(){var k=$(this).hasClass("opened");$(".panel-group").removeClass("opened"),k?$(this).removeClass("opened"):$(this).addClass("opened")}),md(),pd(),gd(),Ws(),$(window).resize(function(){Ws()});var n=1e3,s=null;if($(window).bind("scroll",function(){clearTimeout(s),s=setTimeout(function(){Ws()},n)}),$(".map-container img").on("load",function(){Ha()}),$("select").not(".template select").chosen({disable_search_threshold:10,width:"100%",no_results_text:qs.no_results_text,placeholder_text_single:qs.placeholder_text_single,placeholder_text_multiple:qs.placeholder_text_multiple}),$(".input-wrap").each(function(){$(this).find(".chosen-container-multi").length>0&&$(this).append('<div class="chosen-add-close"></div>')}),$(".form-reset").click(function(k){k.preventDefault();var D=$(this).closest("form");$(D).trigger("reset"),$(D).find("input[type=text], input[type=search], textarea").val(""),$(".chosen-select").val("").trigger("chosen:updated")}),$(".submit-btn").click(function(k){$("#captcha-wrap").length&&(os?$("#captcha-wrap").removeClass("invalid"):($("#captcha-wrap").addClass("invalid"),k.preventDefault()));var D=$(this).closest("form"),R=$(D).find("input:invalid"),b=$(D).find("select:invalid");if($(b).parent().addClass("invalid"),R.each(function(O,N){!N.validity.valueMissing&&N.validity.patternMismatch?$(N).parent().attr("data-error",$(N).parent().attr("data-error-pattern")):$(N).parent().attr("data-error-required")&&$(N).parent().attr("data-error",$(N).parent().attr("data-error-required"))}),$(R).parent().addClass("invalid"),D.hasClass("job_application_form")){var p=Td();p||k.preventDefault()}}),$("body").is(".fairs-page")){let k=function(){return{past:c.is(":checked"),country:u.val(),sector:l.val(),query:i.val(),type:r.val()}},D=function(R){for(var b=k(),p=[],O=0;O<Object.keys(b).length;O++){var N=Object.keys(b)[O],C=b[N];Array.isArray(C)?$.each(C,function(B,F){p.push(N+"="+encodeURIComponent(F))}):p.push(N+"="+encodeURIComponent(C))}document.location.href="?"+p.join("&")};var c=$("#fairs-checkbox"),u=$("#fair-country"),l=$("#fair-sector"),i=$("#fair-search"),r=$("#fair-type");c.on("click",D),u.on("change",D),l.on("change",D),i.on("change",D).focus(),i.on("keydown",function(R){R.keyCode==13&&D()}),r.on("change",D),$("#fairs_search_icon").on("click",D)}$("#news-search")&&($("#news-search").on("keydown",function(k){if(k.keyCode==13){k.preventDefault();var D=y(window.location.href);D.q=$("#news-search").val(),delete D.page,window.location.href=E(window.location.href.split("?")[0],D)}}),$("#news_search_icon").on("click",function(k){k.preventDefault();var D=y(window.location.href);D.q=$("#news-search").val(),delete D.page,window.location.href=E(window.location.href.split("?")[0],D)}));function t(){var k=y(window.location.href);k.q=$("#results-search").val(),delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}$("#results-search")&&($("#results-search").on("keydown",function(k){k.keyCode==13&&(k.preventDefault(),t())}),$("#results_search_icon").on("click",function(k){k.preventDefault(),t()})),$("#news-year")&&$("#news-year").on("change",function(){var k=y(window.location.href);k.year=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#news-cat")&&$("#news-cat").on("change",function(){var k=y(window.location.href);k.category=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#id_item_type")&&$("#id_item_type").on("change",e);function e(k){var D=y(window.location.href);D.item_type=this.value,delete D.page,window.location.href=E(window.location.href.split("?")[0],D)}$(".tab-btn").click(function(k){k.preventDefault();var D=$(this).attr("href"),R=$(this).attr("data-parent");$("#"+R+" > .tabs-controls > .tab-btn").removeClass("active"),$("#"+R+" > .tab-content > .tab-content-block").removeClass("visible"),$(this).addClass("active"),$(D).addClass("visible")}),$(".news-card").each(function(){var k=$(this).hasClass("detailed"),D=$(this).find(".news-card-text"),R=$(this).find(".news-card-text > p");if(R.length>2&&!k){$(D).append('<button class="btn news-btn"><span class="btn-ico_chevron_down"> read more</span></button>'),$(R[1]).append('<span class="expand-mark"> (...) </span>');for(var b=2;b<R.length;b++)$(R[b]).addClass("js-spoil");
37$(".js-spoil").wrapAll('<div class="spoiler">'),$(".js-spoil").removeClass("js-spoil")}}),$(".form-spoiler-toggle").click(function(k){k.preventDefault();var D=$(this).parent(),R=$(D).find(".form-spoiler");$(this).toggleClass("closed"),$(R).slideToggle(500,function(){$(R).toggleClass("hidden"),$(R).attr("style",!1)})}),$(".job-folder-head:not(.always-open)").click(function(){var k=$(this).parent().find(".job-folder-content");$(this).toggleClass("opened"),$(k).slideToggle()}),$(".always-open").each(function(){var k=$(this).parent().find(".job-folder-content");$(this).toggleClass("opened"),$(k).slideToggle()}),$(".folder-toggle").click(function(){var k=$(this).parent(),D=k.find(".folder-content");$(this).toggleClass("opened"),D.slideToggle()}),$("body").on("click",".file-upload-button",function(k){if(!$(this).hasClass("btn-error")){var D=$(this).attr("data-upload");$(D).click(),k.preventDefault()}});function a(k){if($(this).hasClass("btn-error")){var D=$(this).parent().parent(),R=D.find(".js-input-form"),b=D.find(".js-filename");R.wrap("<form>").closest("form").get(0).reset(),R.unwrap(),k.preventDefault(),k.stopPropagation(),$(this).removeClass("btn-error").html($(this).attr("data-browse")),b.html($(b).attr("data-empty"))}}$("body").on("change",".js-input-form",function(){var k=$(this).val(),D=k.split("\\"),R=$(this).parent().find(".js-filename"),b=$(this).parent().find(".js-file-btn");D[D.length-1]!=""?(R.html(D[D.length-1]),b.addClass("btn-error").html($(b).attr("data-remove")),b.on("click",a)):(R.html($(R).attr("data-empty")),b.html($(b).attr("data-browse")),b.removeClass("btn-error"))}),$(".map-modal-opener").click(xn),$(".map-modal-header").click(function(){var k=$(this).attr("data-info"),D=$(this).attr("data-parent"),R=$(k).is(":visible");R?$(k).slideUp():($(D).find(".map-modal-info").slideUp(),$(k).slideDown())}),$(".map-modal-close").click(function(){var k=$(this).parent(),D=$("#contact-button");if(D.length>0){D.css("z-index",999);var R=$(D).attr("href");R=fd(R,"contact_app"),$(D).attr("href",R)}k.find(".map-modal-info").attr("style",!1),k.fadeOut()}),$("#banner-carousel").owlCarousel({loop:!0,nav:!1,dots:!0,autoplay:!0,smartSpeed:1e3,autoplayTimeout:7500,items:1,autoHeight:!1,lazyLoad:!0,lazyLoadEager:1});var o=$("#anwendungen-carousel");o.owlCarousel({loop:!1,margin:30,nav:!0,dots:!1,autoplay:!1,smartSpeed:1e3,autoplayTimeout:3e3,mouseDrag:!1,responsive:{0:{items:1},670:{items:2},900:{items:3},1200:{items:4}}});var o=$('[id^="benefits-carousel"]');o.owlCarousel({loop:!1,margin:30,nav:!0,dots:!1,autoplay:!1,smartSpeed:1e3,autoplayTimeout:3e3,mouseDrag:!1,responsive:{0:{items:1},670:{items:2},900:{items:3},1200:{items:4}}});var f=$('[id^="related-carousel"]');f.owlCarousel({loop:!1,margin:30,nav:!0,dots:!1,autoplay:!1,smartSpeed:1e3,controls:!1,autoplayTimeout:3e3,mouseDrag:!1,items:4,responsive:{0:{items:1},768:{items:3},1024:{items:4}}});var g=$("#cars-carousel");g.owlCarousel({loop:!1,margin:40,nav:!0,dots:!1,autoplay:!1,smartSpeed:1e3,controls:!1,autoplayTimeout:3e3,mouseDrag:!1,items:7,responsive:{0:{items:1},600:{items:2},900:{items:3},1100:{items:4},1400:{items:5}}}),$(".owl-next").html('<span class="btn-ico_chevron_right"></span>'),$(".owl-prev").html('<span class="btn-ico_chevron_left"></span>'),$(document).on("click",".flip-card",function(){$(this).toggleClass("flipped")});function y(k){var D=k.split("?"),R={};if(D.length>1){var b=D[1].split("&");b.forEach(function(p){var O=p.split("=");O.length>1&&(R[O[0]]=O[1])})}return R}function E(k,D){var R=k.toString();if(Object.keys(D).length>0){R+="?";for(var b in D)D[b]!==""&&(R+=b+"="+D[b]+"&");return R.substr(0,R.length-1)}return R}$("#downloads-categories-filter")&&$("#downloads-categories-filter").on("change",function(){var k=y(window.location.href);k.cat=this.value,delete k.page,delete k.cat_pk,delete k.topic,window.location.href=E(window.location.href.split("?")[0],k)}),$("#downloads-types-filter")&&$("#downloads-types-filter").on("change",function(){var k=y(window.location.href);k.type=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#downloads-languages-filter")&&$("#downloads-languages-filter").on("change",function(){var k=y(window.location.href);k.lang=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#downloads-topics-filter")&&$("#downloads-topics-filter").on("change",function(){var k=y(window.location.href);k.topic=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#news-year-filter")&&$("#news-year-filter").on("change",function(){var k=y(window.location.href);k.year=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#news-category-filter")&&$("#news-category-filter").on("change",function(){var k=y(window.location.href);k.category=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$("#search-filter")&&($("#search-filter").submit(function(k){k.preventDefault();var D=y(window.location.href);D.q=$("#search-filter input").val(),delete D.page,window.location.href=E(window.location.href.split("?")[0],D)}),$("#downloads_search_icon").on("click",function(){$("#search-filter").submit()})),$("#contracts-technologies-filter")&&$("#contracts-technologies-filter").on("change",function(){var k=y(window.location.href);
37k.technology=this.value,delete k.page,window.location.href=E(window.location.href.split("?")[0],k)}),$(".pagination")&&$(".pagination a").on("click",function(k){k.preventDefault();var D=k.target.getAttribute("data-page"),R=y(window.location.href);if(D){if(R.page==D)return;R.page=D,window.location.href=E(window.location.href.split("?")[0],R)}}),$("[data-pin-to]").each(function(k,D){D=$(D);var R=$($($(this).attr("data-pin-to"))[0]),b=$(D[0].outerHTML);if(R.length==0)D.show();else{R.prepend('<li class="image-right-top"></li>');var p=R.find("li.image-right-top"),O=b.find("img.lazy_img"),N=D.find("img.lazy_img");O.length&&[O[0],N[0]].forEach(function(C){C.src=O[0].dataset.src,C.classList.remove("lazy_img")}),b.appendTo(p).show()}}),$("[data-attach]").each(function(k,D){D=$(D);var R=$($(D.attr("data-attach")).find("h1")[0]),b=$(D[0].outerHTML);R.length==0?D.show():D.hasClass("middle")?b.appendTo(R).show():b.insertAfter(R).show()}),bd()});function bd(){var n=10,s=10;$("a.image-trigger").hover(function(c){$(this).find("div#author-pop-up").show()},function(){$(this).find("div#author-pop-up").hide()}),$("a.image-trigger").mousemove(function(c){$(this).find("div#author-pop-up").css("top",c.offsetY+s).css("left",c.offsetX+n)})}function wd(){Ha(),$(".map-item-pin").off("click");var n=$(".interactive-map");$(".legend-point-descr").each(function(s){$(this).data("map-item-id",s),$(this).hasClass("legend-active")&&$(this).data("map-related-item-id",s),$(this).on("click",xn)}),$(".map-item-pin").each(function(){var s=$(this),c=s.data("map-status"),u=$(this).find(".point-tooltip");xd(s,n);var l=$(this).position().left;s.show().css({opacity:0}).fadeTo(500,.9,function(){c==="active"&&s.addClass("animated"),s.on("mouseenter",function(){c==="active"&&s.removeClass("animated")}).on("mouseleave",function(){c==="active"&&s.addClass("animated")})}),u.removeClass("right_side left_side"),screen.width<860&&(l>screen.width/2&&screen.width-l<280?u.addClass("right_side"):l<screen.width/2&&screen.width-280>l&&u.addClass("left_side"))})}function xn(n){n.preventDefault();var s=$(this).attr("data-modal"),c=$(s).find("#application-id").val(),u=$("#contact-button"),l=$(s).attr("style")=="display: block;";if(u.length>0&&c){u.css("z-index",9999);var i=$(u).attr("href");$(u).attr("href",i+"&contact_app="+c)}return $(".map-modal").stop(!0,!0).fadeOut(),l||($(s).stop(!0,!0).fadeIn(),$(s).find(".map-modal-info:first-of-type").stop(!0,!0).fadeIn()),!1}function xd(n,s){var c=$(s).outerWidth()*.01,u=$(s).outerHeight()*.01,l=$(s).offset();l.top,l.left;var i=n[0].getClientRects()[0];$(n).css({top:-1*(i.width/2)+u*n.data("map-position-y")+"px",left:-1*(i.height/2)+c*n.data("map-position-x")+"px"}).addClass("trigger-ready"),$(n).on("click",xn)}$(".fair-btn").click(function(){var n=$(this).parent().find(".fair-spoiler"),s=$(n).attr("style")=="display: block;";$(n).slideToggle(),$("html").attr("lang")=="de"?s?$(this).html('<span class="btn-ico_chevron_down"> weiterlesen</span>'):$(this).html('<span class="btn-ico_chevron_up"> verkleinern</span>'):s?$(this).html('<span class="btn-ico_chevron_down"> read more</span>'):$(this).html('<span class="btn-ico_chevron_up"> reduce</span>')});$(document).ready(function(){if($(".history").length>0){let n=function(c,u){c.attr("style",!1),c.attr("style",!1),u.attr("style",!1)},s=function(c,u){try{n(c,u);var l=$(window).width();if(l<=900)return!1;var i=0;c.each(function(e){var a=100,o=$(this).height(),f=Math.ceil(o/a);$(this).css("height",f*a);var g=f-i;e===0&&(i=f),g>=0&&e!==0&&($(this).css("margin-top",(i-1)*a*-1),i=f-(i-1)),g<0&&e!==0&&($(this).css("margin-top",(i+g)*a*-1),$(this).css("margin-bottom",g*a*-1),i=g*-1)}),i=0;var r=c.eq(0).offset().top,t=c.eq(c.length-1).offset().top+c.eq(c.length-1).height();u.css("height",t-r+130)}catch(e){console.warn(e)}};s($(".history-row"),$(".history")),$(window).on("resize",function(){var c=$(window).width();c<=900?n($(".history-row"),$(".history")):s($(".history-row"),$(".history")),Tr()}),Tr()}});function Tr(){$("img[data-square]").each(function(n,s){s.style.height=s.getBoundingClientRect().width+"px"})}function Sr(n,s){s.hasClass("fixed-small-border")||s.addClass("fixed-small-border"),s.hasClass("fixed-pre-head")||s.addClass("fixed-pre-head"),n.hasClass("fixed-small-main-menu")||n.addClass("fixed-small-main-menu")}function Ar(n,s){$(window).scrollTop()>=48&&(s.hasClass("fixed-pre-head")||s.addClass("fixed-pre-head")),$(window).scrollTop()>=96&&(s.hasClass("fixed-small-border")||s.addClass("fixed-small-border"),n.hasClass("fixed-small-main-menu")||n.addClass("fixed-small-main-menu"))}function kd(){var n=$("#main-menu");if($(this).width()>1024)$(this).scrollTop()>=78?n.hasClass("fixed-main-menu")||n.addClass("fixed-main-menu"):n.removeClass("fixed-main-menu");else{var s=$("#pre-head");$(this).width()>=755&&($(this).scrollTop()>=96?(s.hasClass("fixed-small-border")||s.addClass("fixed-small-border"),n.hasClass("fixed-small-main-menu")||n.addClass("fixed-small-main-menu")):(s.removeClass("fixed-small-border"),n.removeClass("fixed-small-main-menu")),$(this).scrollTop()>=48?s.hasClass("fixed-pre-head")||s.addClass("fixed-pre-head"):s.removeClass("fixed-pre-head"))}}function Dr(n){if(n.length==2&&$.inArray("",n)==-1){if(n[0].length==4)return new Date(n.join("-"));var s=n.reverse().join("-");return s.length==6&&(s=s.slice(0,5)+"0"+s.slice(5)),new Date(s)}return null}
37function Cd(n){$(n).closest(".job-folder-content").show(),$(".folder-content").show()}function Ed(n){var s=$("#"+$(n).attr("validate-to-id")),c=$(n).find("select"),u=$(n).find('select[id*="year"], select[id*="_to_y"]').parent(),l=[];c.each(function(e){l.push($(this).val())});var i=$(s).find("select"),r=[];i.each(function(e){r.push($(this).val())}),r=Dr(r),l=Dr(l);var t=l?r<=l:!0;return r&&l&&!t?($(u).addClass("invalid"),Cd(n),t):($(u).removeClass("invalid"),t)}function Td(){var n=$("div[validate-to-id]"),s=!0;return n.each(function(c){Ed(this)||(s=!1)}),s}$(document).ready(function(){var n=$("#main-menu,#site-select,#header-search"),s=$("#pre-head");$(window).width()<755?Sr(n,s):$(window).width()>1024?$(window).scrollTop()>=110&&(n.hasClass("fixed-main-menu")||n.addClass("fixed-main-menu")):Ar(n,s),$(window).scroll(kd),$(window).resize(function(){s.removeClass("fixed-small-border"),s.removeClass("fixed-pre-head"),n.removeClass("fixed-small-main-menu"),n.removeClass("fixed-main-menu"),$(this).width()>1024?($("#main-menu").attr("style")!="none"&&$("#main-menu").attr("style",!1),$(this).scrollTop()>=110&&(n.hasClass("fixed-main-menu")||n.addClass("fixed-main-menu"))):$(this).width()<755?Sr(n,s):Ar(n,s)})});$(document).ready(function(){$(".main-menu").length>0&&$(".submenu").each(function(){var n=$(this).find(".menu-l2");if($(n).length==0){var s=$(this).find(".submenu-content");$(s).addClass("no-level-two")}}),Or(),$("body").hasClass("confirm-exit")&&Sd(),$(window).on("resize orientationchange",function(){Or()})});function Or(){Mt&&window.innerWidth>1024?$(".main-menu").addClass("dt_touch_menu"):$(".main-menu").removeClass("dt_touch_menu")}function Sd(){window.onbeforeunload=function(){return!0}}function Ad(){window.onbeforeunload=null}window.unbindUnload=Ad;function zi(){this.applied=!1,this.document_ready=!1,this.map_loaded=!1}zi.prototype.start=function(){var n=this;$(function(){console.log("dom-loaded"),n.onready(!0)}),$(".interactive-map").on("load",function(){console.log("map-loaded"),n.onready(!0)}),$(window).on("resize",function(){console.log("window-size-changed"),n.onready(!0)}),this.primitiveWatch()};zi.prototype.primitiveWatch=function(){var n=this;setTimeout(function(){if(!n.isApplied()&&n.document_ready&&n.map_loaded)return console.log("primitive-applied"),n.onready(),n.primitiveWatch()},500)};zi.prototype.isApplied=function(){return $(".map-item-pin.trigger-ready").length>0};zi.prototype.onready=function(n){(n||!this.applied)&&wd(),this.applied=this.isApplied()};new zi().start();function Dd(){function n(N){var C="";return N.units.forEach(function(B){var F="",V="",te="<h5>"+B.organization+"</h5>",W=N.street+"<br/>",U=N.post+" "+N.city+"</br>";B.phone&&(F='<span class="phone-tab">Tel:</span>'+B.phone+"</br>"),B.fax&&(V='<span class="phone-tab">Fax:</span>'+B.fax+"</br>");var ne="";B.name&&(ne="<h6>"+B.name+"</h6>"),C+="<div>"+te+ne+'<div class="tooltip-addr">'+W+U+"</div>"+F+V+"</div>"}),'<div class="marker">'+C+"</div>"}function s(N,C,B){var F=n(N);D.setCenter(N.coords);var V=y,te=N.type;te=="hq"&&(V=k),te=="affiliate"&&(V=E);var W=new google.maps.Marker({id:N.id,map:D,icon:V,position:N.coords});C?(C[N.id]=W,B?(g.setContent(F),g.open(D,W)):(p.extend(W.getPosition()),D.fitBounds(p))):b=W,W.addListener("click",function(){g.setContent(F),g.open(D,W)})}function c(N){var C=new google.maps.LatLngBounds;g.close(),b.map=null,O=0;var B=document.location.pathname.split("/")[1];if(Yt().worldwide&&B.toUpperCase()=="INT"?($(".int_hq_info").show(),$("#map").addClass("show_int_hq_info")):($(".int_hq_info").hide(),$("#map").removeClass("show_int_hq_info")),(window.markers||test_locations).forEach(function(V){var te=V.id;if(Yt().worldwide&&V.type!="hq"){R[te].setVisible(!1);return}var W=V.post,U=!1,ne=N.continent==V.continent||N.continent=="all",K=N.country==V.country_code||N.country=="all",se=!0;N.company=="all"?U=!0:U=V.units.some(function(_e){return _e.organization==N.company}),N.post&&(se=W.search(N.post)!=-1,console.log(N.post+" / "+W+"/"+W.search(N.post))),K&&ne&&U&&se?(C.extend(R[te].getPosition()),R[te].setVisible(!0),O+=1):R[te].setVisible(!1)}),O==1){var F=google.maps.event.addListenerOnce(D,"idle",function(V){});setTimeout(function(){google.maps.event.removeListener(F)},2e3)}else D.fitBounds(C)}function u(N,C){var B={};
37return(window.markers||test_locations).forEach(function(F){F.country_code==N&&F.units.forEach(function(V){V.organization==C&&V.cardType=="hq"&&(B.post=F.post,B.city=F.city,B.street=F.street,B.phone=V.phone,B.fax=V.fax,B.sub1=V.sub1,B.sub2=V.sub2)})}),Object.keys(B).length!=0?B:!1}function l(N,C,B){var F={};return(window.markers||test_locations).forEach(function(V){if(B=="units")V[N]==C&&V[B].forEach(function(W){var U=W.organization;F[U]=!0});else if(V[N]==C){var te=V[B];F[te]=!0}}),Object.keys(F)}function i(N){$(N+" option").each(function(){$(this).val()!="all"&&$(this).remove()})}function r(N){$(N+" option").each(function(){$(this).val()!="all"&&$(this).hide()})}function t(N,C){r(N),C.forEach(function(B){$(N+' option[value="'+B+'"]').show()}),$(N).val("all").trigger("chosen:updated")}function e(N,C){i(N),C.forEach(function(B){$(N).append('<option value="'+B+'">'+B+"</option>")}),$(N).val("all").trigger("chosen:updated")}function a(N){google.maps.event.trigger(R[N],"click"),D.setCenter(R[N].getPosition())}function o(N){for(var C in N)R[C].setVisible(!0)}function f(N){for(var C in N)R[C].setVisible(!1)}var g=new google.maps.InfoWindow,y={url:window.markers?window.url_map_marker:"images/map-marker.png",size:new google.maps.Size(33,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,40)},E={url:window.markers?window.url_map_marker_affiliate:"images/map-marker_affiliate.png",size:new google.maps.Size(33,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,40)},k={url:window.markers?window.url_map_marker_hq:"images/map-marker_hq.png",size:new google.maps.Size(43,56),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(23,50)},D=new google.maps.Map(document.getElementById("map"),{scrollwheel:!1,zoom:6}),R={},b=new google.maps.Marker,p=new google.maps.LatLngBounds,O=0;(window.markers||test_locations).forEach(function(N){s(N,R)}),$(document).ready(function(){var N=$(".locations-filter"),C={},B=document.location.pathname.split("/")[1];(window.markers||test_locations).forEach(function(v){var S=v.id;B.toUpperCase()=="INT"&&v.type!="hq"&&R[S].setVisible(!1)});function F(){N.attr("data-companies","all").attr("data-countries","all").attr("data-continents","all"),$(".locations-filter").removeClass("country-selected").removeClass("continent-selected").removeClass("multiple-company"),r("#country"),i("#company"),$("#continent").val("all").trigger("chosen:updated"),$("#country").val("all").trigger("chosen:updated"),$("#company").val("all").trigger("chosen:updated"),V("all","all","all"),$("#map-search").val(""),history.pushState({},null,"?worldwide=true"),o(R),c(C),D.panTo(new google.maps.LatLng({lat:20,lng:0})),D.setZoom(2),$(".locations-container").attr("data-step","a"),$("[data-continent]").show(),$(".locations-companies").html("")}function V(v,S,M,j){history.replaceState({},null,window.location.pathname),C.continent=v,C.country=S,C.company=M}function te(v){if(v!="all"){$(".locations-container").attr("data-step","b"),$("[data-continent]").each(function(){$(this).attr("data-continent")!=v?$(this).hide():$(this).show()});var S=l("continent",v,"country_code");$(".locations-filter").removeClass("country-selected").addClass("continent-selected"),N.attr("data-continents",v),V(v,"all","all"),o(R),c(C),t("#country",S),S.length==1&&($(".locations-filter").removeClass("continent-selected"),W(S[0]))}else $("[data-continent]").show(),F()}function W(v){ke(v);var S=l("country_code",v,"units");v!="all"?($(".locations-container").attr("data-step","c"),$(".locations-filter").addClass("country-selected").addClass("multiple-companies"),e("#company",S)):($(".locations-container").attr("data-step","b"),i("#company"),$(".locations-filter").removeClass("country-selected")),$("#company").val("all").trigger("chosen:updated"),N.attr("data-countries",v),V(N.attr("data-continents"),v,"all"),o(R),c(C),v=="DE"?$(".map-search").show():$(".map-search").hide(),S.length==1&&($(".locations-filter").removeClass("multiple-companies"),U(S[0])),c(C)}function U(v){v!="all"?$("[data-company]").each(function(){$(this).attr("data-company")!=v?$(this).hide():$(this).show()}):$("[data-company]").show(),$(".locations-container").attr("data-step","d"),N.attr("data-companies",v),V(N.attr("data-continents"),N.attr("data-countries"),v),o(R),c(C),v=="all"&&$(".locations-container").attr("data-step","c")}function ne(v){if($('[data-continent="'+v+'"]').length>0){var S=l("continent",v,"country_code"),M=l("continent",v,"country"),j=$('[data-continent="'+v+'"]').find(".content");
37S.forEach(function(z,Y){var q=K(z);q.forEach(function(G){var ee=u(z,G),he=ee.sub1?"<h6>"+ee.sub1+"</h6>":"",fe=ee.sub2?"<h6>"+ee.sub2+"</h6>":"",pe=se(z,G)[0],Ce=se(z,G)[1]?"affiliate":"",Te=[],Ae=ee&&ee.phone?'<span class="phone-tab">Tel:</span>'+ee.phone+"<br/>":"",Me=ee&&ee.fax?'<span class="phone-tab">Fax:</span>'+ee.fax+"<br/>":"";if(z&&Te.push("<p>"+M[Y]+"</p>"),se(z,G)[1]&&Te.push('<p class="affiliate">Affiliate</p>'),typeof pe=="string"&&Te.push('<p class="hq">'+pe+"</p>"),G&&G!="undefined"&&Te.push("<h3>"+G+"</h3>"),typeof pe!="string"&&!ee){var Ee=pe.sub1?"<h6>"+pe.sub1+"</h6>":"",Se=pe.sub2?"<h6>"+pe.sub2+"</h6>":"",xe=pe.street?pe.street+"<br/>":"",ge=pe.post?pe.post+" ":"",ve=pe.city?pe.city:"",we=pe.phone?'<span class="phone-tab">Tel:</span>'+pe.phone+"<br/>":"",Ne=pe.fax?'<span class="phone-tab">Fax:</span>'+pe.fax+"<br/>":"";Te.push(Ee+Se+"<p>"+xe+ge+ve+"</p><p>"+we+Ne+"</p>")}ee&&Te.push(he+fe+"<p>"+ee.street+"<br />"+ee.post+" "+ee.city+"</p><p>"+Ae+Me+"</p>"),j.append('<div class="col col-s3"><div class="location-card company-group '+Ce+'" data-filterContinent="'+v+'" data-filterCountry="'+z+'" data-filterCompany="'+G+'">'+Te.join("")+"</div></div>")})})}}function K(v){return l("country_code",v,"units")}function se(v,S){var M=0,j={},z=!1;if((window.markers||test_locations).forEach(function(Y){Y.country_code==v&&Y.units.forEach(function(q){q.organization==S&&(z=!1,M++,j.post=Y.post,j.city=Y.city,j.street=Y.street,j.phone=q.phone,j.fax=q.fax,j.sub1=q.sub1,j.sub2=q.sub2),q.cardType=="affiliate"&&(z=!0)})}),M==1)return[j,z];if(M>1)return[M+"  locations",z]}function _e(v){var S=$(".locations-companies");S.html(""),v.forEach(function(M){M&&(current_country=="DE"?S.append('<div class="locations-folder" data-company="'+M+'"><div class="trigger">'+M+'</div><div class="content row flex-row"></div></div>'):S.append('<div class="locations-folder" data-company="'+M+'"><div class="trigger closed">'+M+'</div><div class="content row flex-row"></div></div>'))})}function ke(v){var S=l("country_code",v,"units"),M=!1;_e(S),(window.markers||test_locations).forEach(function(j){if(j.country_code==v){for(var z=0;z<j.units.length;z++)if(j.units[z].custom_detail_1!=""||j.units[z].custom_detail_2!=""){M=!0;break}j.units.forEach(function(Y){var q=$('[data-company="'+Y.organization+'"]').find(".content"),G="",ee="",he="",fe="",pe="",Ce="",Te="",Ae='<p class="unit-name">'+Y.typeName+"</p>",Me="";Y.sub1&&(ee='<p class="gray">'+Y.sub1+"</p>"),Y.sub2&&(he='<p class="gray">'+Y.sub2+"</p>"),Y.name&&(G="<h6>"+Y.name+"</h6>"),(Y.name||Y.organization)&&(fe="<h3>"+(Y.organization||Y.name)+"</h3>"),Y.cardType&&(Te=Y.cardType),(j.street||j.city)&&(pe='<p class="gray">'+(j.street+"<br/>"||"")+" "+(j.post+" "||"")+j.city+"</p>"),Y.phone&&(Ce+='<span class="phone-tab">Tel:</span>'+Y.phone+"<br/>"),Y.fax&&(Ce+='<span class="phone-tab">Fax:</span>'+Y.fax+"<br/>"),M==!0&&(Me='<p class="gray">'+Y.custom_detail_1+"&nbsp;<br />"+Y.custom_detail_2+"&nbsp;</p>"),Ce!=""&&(Ce='<p class="gray">'+Ce+"</p>"),q.append('<div class="col col-s3"><div data-post="'+j.post+'" data-markerId="'+j.id+'" class="location-card '+Te+'">'+Ae+fe+G+ee+he+pe+Ce+Me+"</div></div>")})}})}function me(v,S){for(var M=!1,j=0;j<v.units.length;j++)if(v.units[j].custom_detail_1!=""||v.units[j].custom_detail_2!=""){M=!0;break}v.units.forEach(function(z){var Y="",q="",G="",ee="",he="",fe="",pe="",Ce='<p class="unit-name">'+z.typeName+"</p>",Te="";z.sub1&&(q='<p class="gray">'+z.sub1+"</p>"),z.sub2&&(G='<p class="gray">'+z.sub2+"</p>"),z.name&&(Y="<h6>"+z.name+"</h6>"),(z.name||z.organization)&&(ee="<h3>"+(z.organization||z.name)+"</h3>"),z.cardType&&(pe=z.cardType),(v.street||v.city)&&(he='<p class="gray">'+(v.street+"<br/>"||"")+" "+(v.post+" "||"")+v.city+"</p>"),z.phone&&(fe+='<span class="phone-tab">Tel:</span>'+z.phone+"<br/>"),z.fax&&(fe+='<span class="phone-tab">Fax:</span>'+z.fax+"<br/>"),fe!=""&&(fe='<p class="gray">'+fe+"</p>"),M==!0&&(Te='<p class="gray">'+z.custom_detail_1+"&nbsp;<br />"+z.custom_detail_2+"&nbsp;</p>"),S.append('<div class="col col-s3"><div data-post="'+v.post+'" data-markerId="'+v.id+'" class="location-card '+pe+'">'+Ce+ee+Y+q+G+he+fe+Te+"</div></div>")})}function ye(v){var S="";
37(window.markers||test_locations).forEach(function(M){if(M.country_code==v&&(S=M.continent),S!="")te(S),$("#continent").val(S).trigger("chosen:updated"),l("continent",S,"country").length>1&&(W(current_country),$("#country").val(current_country).trigger("chosen:updated"));else return""})}current_country&&window.markers.length?ye(current_country):F(),$("#country_of_construction").length>0&&$("#country_of_construction").val()=="DE"?(te("europe"),W("DE")):$("#country_of_construction").length>0&&$("#country_of_construction").val()!="DE"&&(te("all"),W("all")),$("#continent").on("change",function(){var v=$(this).val();te(v)}),$("#country").on("change",function(){var v=$(this).val();W(v)}),$("#country_of_construction").on("change",function(){$(this).val()=="DE"?(te("europe"),W("DE")):(te("all"),W("all"))}),$("#company").on("change",function(){var v=$(this).val();U(v)}),$("#reset").click(function(v){v.preventDefault(),F()}),$(document).on("click",".company-group",function(){$("#continent").val($(this).attr("data-filterContinent")).trigger("chosen:updated"),$("#continent").trigger("change"),l("continent",$(this).attr("data-filterContinent"),"country").length>1&&(W($(this).attr("data-filterCountry")),$("#country").val($(this).attr("data-filterCountry")).trigger("chosen:updated"),$("#country").trigger("change")),l("country",$(this).attr("data-filterCountry"),"units").length>1&&(U($(this).attr("data-filterCompany")),$("#company").val($(this).attr("data-filterCompany")).trigger("chosen:updated"),$("#company").trigger("change"))}),$(document).on("click",".trigger",function(){$(this).toggleClass("closed")}),$(document).on("click","[data-markerId]",function(){var v=$(this).attr("data-markerId");a(v)});var $e={EU:"europe",NA:"north_america",SA:"south_america",ME:"middle_east",AF:"africa",OC:"oceania",AS:"asia"};for(var T in $e)ne($e[T]);$("#map-search").on("keyup",function(){$(this).val()==""?($(this).removeClass("changed"),x()):$(this).addClass("changed")}),$(".cleaner").click(function(){x()}),window.process_search=function(v){var S=$(".locations-companies"),M=v.length>0?v[0]:null;S.html(""),me(M,S),f(R),s(M,R,!0)},Yt().worldwide&&F();function x(){$("#map-search").val(""),W(C.country),U(C.company),$("#map-search").removeClass("changed")}})}window.initLocationMap=Dd;/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
38 * Licensed under the MIT License (LICENSE.txt).
39 *
40 * Version: 1.0.19
41 *
42 * Requires: jQuery >= 1.2.3
43 */(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){n.fn.addBack=n.fn.addBack||n.fn.andSelf,n.fn.extend({actual:function(s,c){if(!this[s])throw'$.actual => The jQuery method "'+s+'" you called does not exist';var u={absolute:!1,clone:!1,includeMargin:!1,display:"block"},l=n.extend(u,c),i=this.eq(0),r,t;if(l.clone===!0)r=function(){var g="position: absolute !important; top: -1000 !important; ";i=i.clone().attr("style",g).appendTo("body")},t=function(){i.remove()};else{var e=[],a="",o;r=function(){o=i.parents().addBack().filter(":hidden"),a+="visibility: hidden !important; display: "+l.display+" !important; ",l.absolute===!0&&(a+="position: absolute !important; "),o.each(function(){var g=n(this),y=g.attr("style");e.push(y),g.attr("style",y?y+";"+a:a)})},t=function(){o.each(function(g){var y=n(this),E=e[g];E===void 0?y.removeAttr("style"):y.attr("style",E)})}}r();var f=/(outer)/.test(s)?i[s](l.includeMargin):i[s]();return t(),f}})});(function(){var n,s,c,u,l,i={}.hasOwnProperty,r=function(t,e){for(var a in e)i.call(e,a)&&(t[a]=e[a]);function o(){this.constructor=t}return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t};u=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(e){return e.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(e):this.add_option(e)},t.prototype.add_group=function(e){var a,o,f,g,y,E;for(a=this.parsed.length,this.parsed.push({array_index:a,group:!0,label:this.escapeExpression(e.label),title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),y=e.childNodes,E=[],f=0,g=y.length;f<g;f++)o=y[f],E.push(this.add_option(o,a,e.disabled));return E},t.prototype.add_option=function(e,a,o){if(e.nodeName.toUpperCase()==="OPTION")return e.text!==""?(a!=null&&(this.parsed[a].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:o===!0?o:e.disabled,group_array_index:a,group_label:a!=null?this.parsed[a].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t.prototype.escapeExpression=function(e){var a,o;return e==null||e===!1?"":/[\&\<\>\"\'\`]/.test(e)?(a={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},o=/&(?!\w+;)|[\<\>\"\'\`]/g,e.replace(o,function(f){return a[f]||"&amp;"})):e},t}(),u.select_to_array=function(t){var e,a,o,f,g;for(a=new u,g=t.childNodes,o=0,f=g.length;o<f;o++)e=g[o],a.add_node(e);return a.parsed},s=function(){function t(e,a){this.form_field=e,this.options=a!=null?a:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){var e=this;return this.click_test_action=function(a){return e.test_active_click(a)},this.activate_action=function(a){return e.activate_field(a)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0,this.group_search=this.options.group_search!=null?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0,this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(e){return this.include_group_label_in_selected&&e.group_label!=null?"<b class='group-name'>"+e.group_label+"</b>"+e.html:e.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(e){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(e){var a=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return a.blur_test()},100)},t.prototype.results_option_build=function(e){var a,o,f,g,y,E,k;for(a="",g=0,k=this.results_data,y=0,E=k.length;y<E&&(o=k[y],f="",o.group?f=this.result_add_group(o):f=this.result_add_option(o),f!==""&&(g++,a+=f),e!=null&&e.first&&(o.selected&&this.is_multiple?this.choice_build(o):o.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(o))),!(g>=this.max_shown_results));y++);return a},t.prototype.result_add_option=function(e){var a,o;return!e.search_match||!this.include_option_in_results(e)?"":(a=[],
43!e.disabled&&!(e.selected&&this.is_multiple)&&a.push("active-result"),e.disabled&&!(e.selected&&this.is_multiple)&&a.push("disabled-result"),e.selected&&a.push("result-selected"),e.group_array_index!=null&&a.push("group-option"),e.classes!==""&&a.push(e.classes),o=document.createElement("li"),o.className=a.join(" "),o.style.cssText=e.style,o.setAttribute("data-option-array-index",e.array_index),o.innerHTML=e.search_text,e.title&&(o.title=e.title),this.outerHTML(o))},t.prototype.result_add_group=function(e){var a,o;return!(e.search_match||e.group_match)||!(e.active_options>0)?"":(a=[],a.push("group-result"),e.classes&&a.push(e.classes),o=document.createElement("li"),o.className=a.join(" "),o.innerHTML=e.search_text,e.title&&(o.title=e.title),this.outerHTML(o))},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var e,a,o,f,g;for(f=this.results_data,g=[],a=0,o=f.length;a<o;a++)e=f[a],e.selected?g.push(e.selected=!1):g.push(void 0);return g},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var e,a,o,f,g,y,E,k,D,R,b,p;for(this.no_results_clear(),f=0,y=this.get_search_text(),e=y.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),D=new RegExp(e,"i"),o=this.get_search_regex(e),p=this.results_data,R=0,b=p.length;R<b;R++)a=p[R],a.search_match=!1,g=null,this.include_option_in_results(a)&&(a.group&&(a.group_match=!1,a.active_options=0),a.group_array_index!=null&&this.results_data[a.group_array_index]&&(g=this.results_data[a.group_array_index],g.active_options===0&&g.search_match&&(f+=1),g.active_options+=1),a.search_text=a.group?a.label:a.html,a.group&&!this.group_search||(a.search_match=this.search_string_match(a.search_text,o),a.search_match&&!a.group&&(f+=1),a.search_match?(y.length&&(E=a.search_text.search(D),k=a.search_text.substr(0,E+y.length)+"</em>"+a.search_text.substr(E+y.length),a.search_text=k.substr(0,E)+"<em>"+k.substr(E)),g!=null&&(g.group_match=!0)):a.group_array_index!=null&&this.results_data[a.group_array_index].search_match&&(a.search_match=!0)));return this.result_clear_highlight(),f<1&&y.length?(this.update_results_content(""),this.no_results(y)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(e){var a,o;return a=this.search_contains?"":"^",o=this.case_sensitive_search?"":"i",new RegExp(a+e,o)},t.prototype.search_string_match=function(e,a){var o,f,g,y;if(a.test(e))return!0;if(this.enable_split_word_search&&(e.indexOf(" ")>=0||e.indexOf("[")===0)&&(f=e.replace(/\[|\]/g,"").split(" "),f.length)){for(g=0,y=f.length;g<y;g++)if(o=f[g],a.test(o))return!0}},t.prototype.choices_count=function(){var e,a,o,f;if(this.selected_option_count!=null)return this.selected_option_count;for(this.selected_option_count=0,f=this.form_field.options,a=0,o=f.length;a<o;a++)e=f[a],e.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(e){if(e.preventDefault(),!(this.results_showing||this.is_disabled))return this.results_show()},t.prototype.keyup_checker=function(e){var a,o;switch(a=(o=e.which)!=null?o:e.keyCode,this.search_field_scale(),a){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(e.preventDefault(),this.results_showing)return this.result_select(e);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(e){var a=this;return setTimeout(function(){return a.results_search()},50)},t.prototype.container_width=function(){return this.options.width!=null?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected||!this.display_disabled_options&&e.disabled||e.empty)},t.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},t.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},t.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},t.prototype.outerHTML=function(e){var a;return e.outerHTML?e.outerHTML:(a=document.createElement("div"),a.appendChild(e),a.innerHTML)},t.browser_is_supported=function(){return!0},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),n=jQuery,n.fn.extend({chosen:function(t){return s.browser_is_supported()?this.each(function(e){var a,o;if(a=n(this),o=a.data("chosen"),t==="destroy"){o instanceof c&&o.destroy();return}o instanceof c||a.data("chosen",new c(this,t))}):this}}),c=function(t){r(e,t);function e(){return l=e.__super__.constructor.apply(this,arguments),l}return e.prototype.setup=function(){return this.form_field_jq=n(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},e.prototype.set_up_html=function(){var a,o;return a=["chosen-container"],a.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&a.push(this.form_field.className),this.is_rtl&&a.push("chosen-rtl"),o={class:a.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(o.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=n("<div />",o),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},e.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},e.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(o){}),this.container.bind("touchend.chosen",function(o){}),this.container.bind("mousedown.chosen",function(o){a.container_mousedown(o)}),this.container.bind("mouseup.chosen",function(o){a.container_mouseup(o)}),this.container.bind("mouseenter.chosen",function(o){a.mouse_enter(o)}),this.container.bind("mouseleave.chosen",function(o){a.mouse_leave(o)}),this.search_results.bind("mouseup.chosen",function(o){a.search_results_mouseup(o)}),this.search_results.bind("mouseover.chosen",function(o){a.search_results_mouseover(o)}),this.search_results.bind("mouseout.chosen",function(o){a.search_results_mouseout(o)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(o){a.search_results_mousewheel(o)}),this.search_results.bind("touchstart.chosen",function(o){a.search_results_touchstart(o)}),this.search_results.bind("touchmove.chosen",function(o){a.search_results_touchmove(o)}),this.search_results.bind("touchend.chosen",function(o){a.search_results_touchend(o)}),this.form_field_jq.bind("chosen:updated.chosen",function(o){a.results_update_field(o)}),this.form_field_jq.bind("chosen:activate.chosen",function(o){a.activate_field(o)}),this.form_field_jq.bind("chosen:open.chosen",function(o){a.container_mousedown(o)}),this.form_field_jq.bind("chosen:close.chosen",function(o){a.input_blur(o)}),this.search_field.bind("blur.chosen",function(o){a.input_blur(o)}),this.search_field.bind("keyup.chosen",function(o){a.keyup_checker(o)}),this.search_field.bind("keydown.chosen",function(o){a.keydown_checker(o)}),this.search_field.bind("focus.chosen",function(o){a.input_focus(o)}),this.search_field.bind("cut.chosen",function(o){a.clipboard_event_checker(o)}),this.search_field.bind("paste.chosen",function(o){a.clipboard_event_checker(o)}),this.is_multiple?this.search_choices.bind("click.chosen",function(o){a.choices_click(o)}):this.container.bind("click.chosen",function(o){o.preventDefault()})},e.prototype.destroy=function(){return n(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},e.prototype.search_field_disabled=function(){if(this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled)return this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field();if(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,!this.is_multiple)return this.selected_item.bind("focus.chosen",this.activate_action)}
43,e.prototype.container_mousedown=function(a){if(!this.is_disabled&&(a&&a.type==="mousedown"&&!this.results_showing&&a.preventDefault(),!(a!=null&&n(a.target).hasClass("search-choice-close"))))return this.active_field?!this.is_multiple&&a&&(n(a.target)[0]===this.selected_item[0]||n(a.target).parents("a.chosen-single").length)&&(a.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),n(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},e.prototype.container_mouseup=function(a){if(a.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(a)},e.prototype.search_results_mousewheel=function(a){var o;if(a.originalEvent&&(o=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),o!=null)return a.preventDefault(),a.type==="DOMMouseScroll"&&(o=o*40),this.search_results.scrollTop(o+this.search_results.scrollTop())},e.prototype.blur_test=function(a){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},e.prototype.close_field=function(){return n(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},e.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},e.prototype.test_active_click=function(a){var o;return o=n(a.target).closest(".chosen-container"),o.length&&this.container[0]===o[0]?this.active_field=!0:this.close_field()},e.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=u.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},e.prototype.result_do_highlight=function(a){var o,f,g,y,E;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),g=parseInt(this.search_results.css("maxHeight"),10),E=this.search_results.scrollTop(),y=g+E,f=this.result_highlight.position().top+this.search_results.scrollTop(),o=f+this.result_highlight.outerHeight(),o>=y)return this.search_results.scrollTop(o-g>0?o-g:0);if(f<E)return this.search_results.scrollTop(f)}},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},e.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},e.prototype.update_results_content=function(a){return this.search_results.html(a)},e.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},e.prototype.set_tab_index=function(a){var o;if(this.form_field.tabIndex)return o=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=o},e.prototype.set_label_behavior=function(){var a=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=n("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",function(o){return a.is_multiple?a.container_mousedown(o):a.activate_field()})},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},e.prototype.search_results_mouseup=function(a){var o;if(o=n(a.target).hasClass("active-result")?n(a.target):n(a.target).parents(".active-result").first(),o.length)return this.result_highlight=o,this.result_select(a),this.search_field.focus()},e.prototype.search_results_mouseover=function(a){var o;if(o=n(a.target).hasClass("active-result")?n(a.target):n(a.target).parents(".active-result").first(),o)return this.result_do_highlight(o)}
43,e.prototype.search_results_mouseout=function(a){if(n(a.target).hasClass("active-result"))return this.result_clear_highlight()},e.prototype.choice_build=function(a){var o,f,g=this;return o=n("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(a)+"</span>"),a.disabled?o.addClass("search-choice-disabled"):(f=n("<a />",{class:"search-choice-close","data-option-array-index":a.array_index}),f.bind("click.chosen",function(y){return g.choice_destroy_link_click(y)}),o.append(f)),this.search_container.before(o)},e.prototype.choice_destroy_link_click=function(a){if(a.preventDefault(),a.stopPropagation(),!this.is_disabled)return this.choice_destroy(n(a.target))},e.prototype.choice_destroy=function(a){if(this.result_deselect(a[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()},e.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},e.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},e.prototype.result_select=function(a){var o,f;if(this.result_highlight)return o=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?o.removeClass("active-result"):this.reset_single_select_options(),o.addClass("result-selected"),f=this.results_data[o[0].getAttribute("data-option-array-index")],f.selected=!0,this.form_field.options[f.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(f):this.single_set_selected_text(this.choice_label(f)),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.show_search_field_default(),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[f.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,a.preventDefault(),this.search_field_scale())},e.prototype.single_set_selected_text=function(a){return a==null&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(a)},e.prototype.result_deselect=function(a){var o;return o=this.results_data[a],this.form_field.options[o.options_index].disabled?!1:(o.selected=!1,this.form_field.options[o.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[o.options_index].value}),this.search_field_scale(),!0)},e.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},e.prototype.get_search_text=function(){return n("<div/>").text(n.trim(this.search_field.val())).html()},e.prototype.winnow_results_set_highlight=function(){var a,o;if(o=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=o.length?o.first():this.search_results.find(".active-result").first(),a!=null)return this.result_do_highlight(a)},e.prototype.no_results=function(a){var o;return o=n('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),o.find("span").first().html(a),this.search_results.append(o),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},e.prototype.keydown_arrow=function(){var a;if(this.results_showing&&this.result_highlight){if(a=this.result_highlight.nextAll("li.active-result").first(),a)return this.result_do_highlight(a)}else return this.results_show()},e.prototype.keyup_arrow=function(){var a;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())},e.prototype.keydown_backstroke=function(){var a;if(this.pending_backstroke)return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke();if(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled"))return this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},e.prototype.keydown_checker=function(a){var o,f;switch(o=(f=a.which)!=null?f:a.keyCode,this.search_field_scale(),o!==8&&this.pending_backstroke&&this.clear_backstroke(),o){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow();break}},e.prototype.search_field_scale=function(){var a,o,f,g,y,E,k,D;if(this.is_multiple){for(E=0,g="position:absolute; left: -1000px; top: -1000px; display:none;",y=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],k=0,D=y.length;k<D;k++)f=y[k],g+=f+":"+this.search_field.css(f)+";";return a=n("<div />",{style:g}),a.text(this.search_field.val()),n("body").append(a),E=a.width()+25,a.remove(),o=this.container.outerWidth(),E>o-10&&(E=o-10),this.search_field.css({width:E+"px"})}},e}(s)}).call(void 0);(function(n){if(!n.hasInitialised){var s={escapeRegExp:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(u,l){var i=" ";return u.nodeType===1&&(i+u.className+i).replace(/[\n\t]/g,i).indexOf(i+l+i)>=0},addClass:function(u,l){u.className+=" "+l},removeClass:function(u,l){var i=new RegExp("\\b"+this.escapeRegExp(l)+"\\b");u.className=u.className.replace(i,"")},interpolateString:function(u,l){return u.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(i){return l(arguments[1])||""})},getCookie:function(u){var l=("; "+document.cookie).split("; "+u+"=");return l.length<2?void 0:l.pop().split(";").shift()}
vendor: 1,448 bytes, line 43
43,setCookie:function(u,l,i,r,t,e){var a=new Date;a.setHours(a.getHours()+24*(i||365));var o=[u+"="+l,"expires="+a.toUTCString(),"path="+(t||"/")];r&&o.push("domain="+r),e&&o.push("secure"),document.cookie=o.join(";")},deepExtend:function(u,l){for(var i in l)l.hasOwnProperty(i)&&(i in u&&this.isPlainObject(u[i])&&this.isPlainObject(l[i])?this.deepExtend(u[i],l[i]):u[i]=l[i]);return u},throttle:function(u,l){var i=!1;return function(){i||(u.apply(this,arguments),i=!0,setTimeout(function(){i=!1},l))}},hash:function(u){var l,i,r=0;if(u.length===0)return r;for(l=0,i=u.length;l<i;++l)r=(r<<5)-r+u.charCodeAt(l),r|=0;return r},normaliseHex:function(u){return u[0]=="#"&&(u=u.substr(1)),u.length==3&&(u=u[0]+u[0]+u[1]+u[1]+u[2]+u[2]),u},getContrast:function(u){return u=this.normaliseHex(u),(299*parseInt(u.substr(0,2),16)+587*parseInt(u.substr(2,2),16)+114*parseInt(u.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(u){var l=parseInt(this.normaliseHex(u),16),i=38+(l>>16),r=38+(l>>8&255),t=38+(255&l);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(r<255?r<1?0:r:255)+(t<255?t<1?0:t:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(u){return typeof u=="object"&&u!==null&&u.constructor==Object},traverseDOMPath:function(u,l){return u&&u.parentNode?s.hasClass(u,l)?u:this.traverseDOMPath(u.parentNode,l):null}};
43n.status={deny:"deny",allow:"allow",dismiss:"dismiss"},n.transitionEnd=function(){var u=document.createElement("div"),l={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in l)if(l.hasOwnProperty(i)&&u.style[i+"ransition"]!==void 0)return l[i];return""}(),n.hasTransition=!!n.transitionEnd;var c=Object.keys(n.status).map(s.escapeRegExp);n.customStyles={},n.Popup=function(){var u={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(f){},onStatusChange:function(f,g){},onRevokeChoice:function(){},onNoCookieLaw:function(f,g){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"&#x274c;",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0"  class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}"><!--googleoff: all-->{{children}}<!--googleon: all--></div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function l(){this.initialise.apply(this,arguments)}function i(f){this.openingTimeout=null,s.removeClass(f,"cc-invisible")}function r(f){f.style.display="none",f.removeEventListener(n.transitionEnd,this.afterTransition),this.afterTransition=null}function t(){var f=this.options.position.split("-"),g=[];return f.forEach(function(y){g.push("cc-"+y)}),g}function e(f){var g=this.options,y=document.createElement("div"),E=g.container&&g.container.nodeType===1?g.container:document.body;y.innerHTML=f;var k=y.children[0];return k.style.display="none",s.hasClass(k,"cc-window")&&n.hasTransition&&s.addClass(k,"cc-invisible"),this.onButtonClick=(function(D){var R=s.traverseDOMPath(D.target,"cc-btn")||D.target;if(s.hasClass(R,"cc-btn")){var b=R.className.match(new RegExp("\\bcc-("+c.join("|")+")\\b")),p=b&&b[1]||!1;p&&(this.setStatus(p),this.close(!0))}s.hasClass(R,"cc-close")&&(this.setStatus(n.status.dismiss),this.close(!0)),s.hasClass(R,"cc-revoke")&&this.revokeChoice()}).bind(this),k.addEventListener("click",this.onButtonClick),g.autoAttach&&(E.firstChild?E.insertBefore(k,E.firstChild):E.appendChild(k)),k}function a(f){return(f=s.normaliseHex(f))=="000000"?"#222":s.getLuminance(f)}function o(f,g){for(var y=0,E=f.length;y<E;++y){var k=f[y];if(k instanceof RegExp&&k.test(g)||typeof k=="string"&&k.length&&k===g)return!0}return!1}return l.prototype.initialise=function(f){this.options&&this.destroy(),s.deepExtend(this.options={},u),s.isPlainObject(f)&&s.deepExtend(this.options,f),(function(){var k=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return k(n.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return k(n.status.allow),!0;var D=Object.keys(n.status),R=this.getStatus(),b=D.indexOf(R)>=0;return b&&k(R),b}
43).call(this)&&(this.options.enabled=!1),o(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),o(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var g=this.options.window.replace("{{classes}}",(function(){var k=this.options,D=k.position=="top"||k.position=="bottom"?"banner":"floating";s.isMobile()&&(D="floating");var R=["cc-"+D,"cc-type-"+k.type,"cc-theme-"+k.theme];return k.static&&R.push("cc-static"),R.push.apply(R,t.call(this)),(function(b){var p=s.hash(JSON.stringify(b)),O="cc-color-override-"+p,N=s.isPlainObject(b);return this.customStyleSelector=N?O:null,N&&function(C,B,F){if(n.customStyles[C])return void++n.customStyles[C].references;var V={},te=B.popup,W=B.button,U=B.highlight;te&&(te.text=te.text?te.text:s.getContrast(te.background),te.link=te.link?te.link:te.text,V[F+".cc-window"]=["color: "+te.text,"background-color: "+te.background],V[F+".cc-revoke"]=["color: "+te.text,"background-color: "+te.background],V[F+" .cc-link,"+F+" .cc-link:active,"+F+" .cc-link:visited"]=["color: "+te.link],W&&(W.text=W.text?W.text:s.getContrast(W.background),W.border=W.border?W.border:"transparent",V[F+" .cc-btn"]=["color: "+W.text,"border-color: "+W.border,"background-color: "+W.background],W.padding&&V[F+" .cc-btn"].push("padding: "+W.padding),W.background!="transparent"&&(V[F+" .cc-btn:hover, "+F+" .cc-btn:focus"]=["background-color: "+(W.hover||a(W.background))]),U?(U.text=U.text?U.text:s.getContrast(U.background),U.border=U.border?U.border:"transparent",V[F+" .cc-highlight .cc-btn:first-child"]=["color: "+U.text,"border-color: "+U.border,"background-color: "+U.background]):V[F+" .cc-highlight .cc-btn:first-child"]=["color: "+te.text]));var ne=document.createElement("style");document.head.appendChild(ne),n.customStyles[C]={references:1,element:ne.sheet};var K=-1;for(var se in V)V.hasOwnProperty(se)&&ne.sheet.insertRule(se+"{"+V[se].join(";")+"}",++K)}(p,b,"."+O),N}).call(this,this.options.palette),this.customStyleSelector&&R.push(this.customStyleSelector),R}).call(this).join(" ")).replace("{{children}}",(function(){var k={},D=this.options;D.showLink||(D.elements.link="",D.elements.messagelink=D.elements.message),Object.keys(D.elements).forEach(function(p){k[p]=s.interpolateString(D.elements[p],function(O){var N=D.content[O];return O&&typeof N=="string"&&N.length?N:""})});var R=D.compliance[D.type];R||(R=D.compliance.info),k.compliance=s.interpolateString(R,function(p){return k[p]});var b=D.layouts[D.layout];return b||(b=D.layouts.basic),s.interpolateString(b,function(p){return k[p]})}).call(this)),y=this.options.overrideHTML;if(typeof y=="string"&&y.length&&(g=y),this.options.static){var E=e.call(this,'<div class="cc-grower">'+g+"</div>");E.style.display="",this.element=E.firstChild,this.element.style.display="none",s.addClass(this.element,"cc-invisible")}else this.element=e.call(this,g);(function(){var k=this.setStatus.bind(this),D=this.close.bind(this),R=this.options.dismissOnTimeout;typeof R=="number"&&R>=0&&(this.dismissTimeout=window.setTimeout(function(){k(n.status.dismiss),D(!0)},Math.floor(R)));var b=this.options.dismissOnScroll;if(typeof b=="number"&&b>=0){var p=function(B){window.pageYOffset>Math.floor(b)&&(k(n.status.dismiss),D(!0),window.removeEventListener("scroll",p),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=p,window.addEventListener("scroll",p))}var O=this.options.dismissOnWindowClick,N=this.options.ignoreClicksFrom;if(O){var C=(function(B){for(var F=!1,V=B.path.length,te=N.length,W=0;W<V;W++)if(!F)for(var U=0;U<te;U++)F||(F=s.hasClass(B.path[W],N[U]));F||(k(n.status.dismiss),D(!0),window.removeEventListener("click",C),window.removeEventListener("touchend",C),this.onWindowClick=null)}).bind(this);this.options.enabled&&(this.onWindowClick=C,window.addEventListener("click",C),window.addEventListener("touchend",C))}}).call(this),(function(){if(this.options.type!="info"&&(this.options.revokable=!0),s.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var k=t.call(this);this.options.animateRevokable&&k.push("cc-animate"),this.customStyleSelector&&k.push(this.customStyleSelector);var D=this.options.revokeBtn.replace("{{classes}}",k.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=e.call(this,D);var R=this.revokeBtn;if(this.options.animateRevokable){var b=s.throttle(function(p){var O=!1,N=window.innerHeight-20;
vendor: 4,238 bytes, line 43
43s.hasClass(R,"cc-top")&&p.clientY<20&&(O=!0),s.hasClass(R,"cc-bottom")&&p.clientY>N&&(O=!0),O?s.hasClass(R,"cc-active")||s.addClass(R,"cc-active"):s.hasClass(R,"cc-active")&&s.removeClass(R,"cc-active")},200);this.onMouseMove=b,window.addEventListener("mousemove",b)}}}).call(this),this.options.autoOpen&&this.autoOpen()},l.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(f){if(s.isPlainObject(f)){var g=s.hash(JSON.stringify(f)),y=n.customStyles[g];if(y&&!--y.references){var E=y.element.ownerNode;E&&E.parentNode&&E.parentNode.removeChild(E),n.customStyles[g]=null}}}(this.options.palette),this.options=null},l.prototype.open=function(f){if(this.element)return this.isOpen()||(n.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},l.prototype.close=function(f){if(this.element)return this.isOpen()&&(n.hasTransition?this.fadeOut():this.element.style.display="none",f&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},l.prototype.fadeIn=function(){var f=this.element;if(n.hasTransition&&f&&(this.afterTransition&&r.call(this,f),s.hasClass(f,"cc-invisible"))){if(f.style.display="",this.options.static){var g=this.element.clientHeight;this.element.parentNode.style.maxHeight=g+"px"}this.openingTimeout=setTimeout(i.bind(this,f),20)}},l.prototype.fadeOut=function(){var f=this.element;n.hasTransition&&f&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),i.bind(this,f)),s.hasClass(f,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=r.bind(this,f),f.addEventListener(n.transitionEnd,this.afterTransition),s.addClass(f,"cc-invisible")))},l.prototype.isOpen=function(){return this.element&&this.element.style.display==""&&(!n.hasTransition||!s.hasClass(this.element,"cc-invisible"))},l.prototype.toggleRevokeButton=function(f){this.revokeBtn&&(this.revokeBtn.style.display=f?"":"none")},l.prototype.revokeChoice=function(f){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),f||this.autoOpen()},l.prototype.hasAnswered=function(f){return Object.keys(n.status).indexOf(this.getStatus())>=0},l.prototype.hasConsented=function(f){var g=this.getStatus();return g==n.status.allow||g==n.status.dismiss},l.prototype.autoOpen=function(f){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},l.prototype.setStatus=function(f){var g=this.options.cookie,y=s.getCookie(g.name),E=Object.keys(n.status).indexOf(y)>=0;Object.keys(n.status).indexOf(f)>=0?(s.setCookie(g.name,f,g.expiryDays,g.domain,g.path,g.secure),this.options.onStatusChange.call(this,f,E)):this.clearStatus()},l.prototype.getStatus=function(){return s.getCookie(this.options.cookie.name)},l.prototype.clearStatus=function(){var f=this.options.cookie;s.setCookie(f.name,"",-1,f.domain,f.path)},l}(),n.Location=function(){var u={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,a){try{var o=JSON.parse(a);return o.error?t(o):{code:o.country}}catch(f){return t({error:"Invalid response ("+f+")"})}}}},ipinfodb:function(e){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(a,o){try{var f=JSON.parse(o);return f.statusCode=="ERROR"?t({error:f.statusMessage}):{code:f.countryCode}}
43catch(g){return t({error:"Invalid response ("+g+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){window.geoip2?geoip2.country(function(a){try{e({code:a.country.iso_code})}catch(o){e(t(o))}},function(a){e(t(a))}):e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function l(e){s.deepExtend(this.options={},u),s.isPlainObject(e)&&s.deepExtend(this.options,e),this.currentServiceIndex=-1}function i(e,a,o){var f,g=document.createElement("script");g.type="text/"+(e.type||"javascript"),g.src=e.src||e,g.async=!1,g.onreadystatechange=g.onload=function(){var y=g.readyState;clearTimeout(f),a.done||y&&!/loaded|complete/.test(y)||(a.done=!0,a(),g.onreadystatechange=g.onload=null)},document.body.appendChild(g),f=setTimeout(function(){a.done=!0,a(),g.onreadystatechange=g.onload=null},o)}function r(e,a,o,f,g){var y=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(y.open(f?"POST":"GET",e,1),y.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(g))for(var E=0,k=g.length;E<k;++E){var D=g[E].split(":",2);y.setRequestHeader(D[0].replace(/^\s+|\s+$/g,""),D[1].replace(/^\s+|\s+$/g,""))}typeof a=="function"&&(y.onreadystatechange=function(){y.readyState>3&&a(y)}),y.send(f)}function t(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}return l.prototype.getNextService=function(){var e;do e=this.getServiceByIdx(++this.currentServiceIndex);while(this.currentServiceIndex<this.options.services.length&&!e);return e},l.prototype.getServiceByIdx=function(e){var a=this.options.services[e];if(typeof a=="function"){var o=a();return o.name&&s.deepExtend(o,this.options.serviceDefinitions[o.name](o)),o}return typeof a=="string"?this.options.serviceDefinitions[a]():s.isPlainObject(a)?this.options.serviceDefinitions[a.name](a):null},l.prototype.locate=function(e,a){var o=this.getNextService();o?(this.callbackComplete=e,this.callbackError=a,this.runService(o,this.runNextServiceOnError.bind(this))):a(new Error("No services to run"))},l.prototype.setupUrl=function(e){var a=this.getCurrentServiceOpts();return e.url.replace(/\{(.*?)\}/g,function(o,f){if(f==="callback"){var g="callback"+Date.now();return window[g]=function(y){e.__JSONP_DATA=JSON.stringify(y)},g}if(f in a.interpolateUrl)return a.interpolateUrl[f]})},l.prototype.runService=function(e,a){var o=this;e&&e.url&&e.callback&&(e.isScript?i:r)(this.setupUrl(e),function(f){var g=f?f.responseText:"";e.__JSONP_DATA&&(g=e.__JSONP_DATA,delete e.__JSONP_DATA),o.runServiceCallback.call(o,a,e,g)},this.options.timeout,e.data,e.headers)},l.prototype.runServiceCallback=function(e,a,o){var f=this,g=a.callback(function(y){g||f.onServiceResult.call(f,e,y)},o);g&&this.onServiceResult.call(this,e,g)},l.prototype.onServiceResult=function(e,a){a instanceof Error||a&&a.error?e.call(this,a,null):e.call(this,null,a)},l.prototype.runNextServiceOnError=function(e,a){if(e){this.logError(e);var o=this.getNextService();o?this.runService(o,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,a)},l.prototype.getCurrentServiceOpts=function(){var e=this.options.services[this.currentServiceIndex];return typeof e=="string"?{name:e}:typeof e=="function"?e():s.isPlainObject(e)?e:{}},l.prototype.completeService=function(e,a){this.currentServiceIndex=-1,e&&e(a)},l.prototype.logError=function(e){var a=this.currentServiceIndex,o=this.getServiceByIdx(a);console.warn("The service["+a+"] ("+o.url+") responded with the following error",e)},l}(),n.Law=function(){var u={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function l(i){this.initialise.apply(this,arguments)}return l.prototype.initialise=function(i){s.deepExtend(this.options={},u),s.isPlainObject(i)&&s.deepExtend(this.options,i)},l.prototype.get=function(i){var r=this.options;return{hasLaw:r.hasLaw.indexOf(i)>=0,revokable:r.revokable.indexOf(i)>=0,explicitAction:r.explicitAction.indexOf(i)>=0}},l.prototype.applyLaw=function(i,r){var t=this.get(r);return t.hasLaw||(i.enabled=!1,typeof i.onNoCookieLaw=="function"&&i.onNoCookieLaw(r,t)),this.options.regionalLaw&&(t.revokable&&(i.revokable=!0),t.explicitAction&&(i.dismissOnScroll=!1,i.dismissOnTimeout=!1)),i},l}(),n.initialise=function(u,l,i){var r=new n.Law(u.law);l||(l=function(){}),i||(i=function(){});var t=Object.keys(n.status),e=s.getCookie("cookieconsent_status");t.indexOf(e)>=0?l(new n.Popup(u)):n.getCountryCode(u,function(a){delete u.law,delete u.location,a.code&&(u=r.applyLaw(u,a.code)),l(new n.Popup(u))},function(a){delete u.law,delete u.location,i(a,new n.Popup(u))})},n.getCountryCode=function(u,l,i){u.law&&u.law.countryCode?l({code:u.law.countryCode}):u.location?new n.Location(u.location).locate(function(r){l(r||{})},i):l({})},n.utils=s,n.hasInitialised=!0,window.cookieconsent=n}})(window.cookieconsent||{});function $t(n,s,c){var u=new Date;u.setTime(u.getTime()+c*24*60*60*1e3);var l="expires="+u.toUTCString();document.cookie=n+"="+s+";"+l+";path=/"}function Od(n){for(var s=n+"=",c=document.cookie.split(";"),u=0;u<c.length;u++){for(var l=c[u];l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(s)==0)return l.substring(s.length,l.length)}return""}function Mr(n){Od(n)&&(document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}var $i,tn=window.location.pathname.split("/"),Va="/"+tn[1]+"/"+tn[2],Nr=tn[2],Ir=Nr=="zh"?"zh_hans":Nr,Md=Va+"/other/datenschutzerklarung/",Nd=gettext('Cookies and comparable technologies are used on our website to process personal data and end device information. This serves to ensure the technical operation of the site and certain functions and to enable the integration of external 
43content and services. In certain cases, data may also be passed on to third parties. Further information on the cookies and technologies used can be found in this consent banner and in our <a aria-label="privacy policy" class="cc-policy-link" href="%(data_protection_link)s" target="_blank">data protection declaration</a>. This consent is voluntary and can be revoked at any time via the cookie settings, which you will find in our <a aria-label="privacy policy" class="cc-policy-link" href="%(data_protection_link)s" target="_blank">data protection declaration</a>.'),Id=interpolate(Nd,{data_protection_link:Md},!0),Ld=["_ga","_gat","_gid","_gcl_au"],ss=!1,Mi={container:document.getElementById("content"),palette:{popup:{background:"#fff"},button:{background:"transparent",border:"#000000",text:"#000000"}},content:{message:Id,messageLink:gettext("data protection declaration"),header:gettext("Consent to cookies and other technologies"),close:gettext("Select all"),savePreference:gettext("Confirm selection"),onlyNecessary:gettext("Only necessary cookies & technologies"),href:"/other/datenschutzerklarung/",imprintHref:"/other/impressum/",termsOfUseHref:"/other/nutzungsbedingungen/",link:gettext("cookies"),imprintLink:gettext("Imprint"),termsOfUseLink:gettext("Terms of use"),privacyPolicyLink:gettext("Data Privacy Policy"),langLink:Va,settings:gettext("Show details"),settingsExpanded:gettext("Hide details"),analyticsTitle:gettext("Statistics"),analyticsDescription:gettext("We want to improve the content of our website in order to provide an optimal user experience. We collect anonymous data for analysis and statistics. These cookies enable us, for example, to determine visitor numbers and visitor events."),necessaryTitle:gettext("Necessary"),necessaryDescription:gettext("These cookies are required for the operation of the website in order to guarantee you unrestricted functionality."),personalizationTitle:gettext("Other"),personalizationDescription:gettext("These cookies are used to show you personalized content according to your interests. This allows us to present you with offers that are particularly relevant to you."),ariaLabelAllowSelected:gettext("allow selected cookies"),ariaLabelOnlyNecessary:gettext("only allow necessary cookies and technologies"),languageSettings:gettext("Language settings"),provider:gettext("Provider"),dataTypes:gettext("Data type(s)"),purposes:gettext("Purpose(s)"),languageSettingsPurposes:gettext("Saves the region and language selected by the user"),dataRetentionDuration:gettext("Duration of data retention"),durationMonth:gettext("Month"),CMPSettingsPurposes:gettext("Saves consent to cookies & other technologies"),durationYear:gettext("Year"),onPremiseSolution:gettext("on-premise solution"),technologiesUsed:gettext("Technologies used"),matomoDataTypes:gettext("Time of visit; Screen resolution; Files clicked or downloaded; Links clicked to external domains; User ID; Page speed; Page URL; Number of user visits; User agent; Browser information; Time zone; Time of user’s first visit; Page title; Usage data; Device information; Geographic location; Anonymised IP address; Referrer URL; Date and time of visit"),matomoPurposes:gettext("Analysis of website usage; Optimisation of the web offer"),additionalRecipients:gettext("Data recipient(s) in addition to Minimax"),asWebHost:gettext("As web host"),cookiesAndTrackingPixels:gettext("Cookies and tracking pixels"),leadlabDataTypes:gettext("Visiting behaviour, IP addresses if applicable"),leadlabPurposes:gettext("Analysis of which companies have visited our website"),externalContentsTitle:gettext("External contents"),recaptchaDataTypes:gettext("IP address and possibly other data required by Google for the reCAPTCHA service"),recaptchaPurposes:gettext("Query serves to distinguish whether entries on the website are made by a human being or improperly by automated, machine processing"),dataRecipient:gettext("Data recipient"),transferOfData:gettext("Transfer of data outside the EU / EEA"),transferOfDataDescription:gettext("Yes, by means of standard contractual clauses pursuant to Art. 46 DSGVO"),youtubeDataTypes:gettext("Interactions with the video; information about the website on which the video is embedded"),youtubePurposes:gettext("Provision of a video player"),googleMapsDataTypes:gettext("Your IP address; Date and time of the request; Content of the request (specific page); Data about your location; Website from which the request comes; Your browser type; Your operating system and its interface; The language setting and version of the browser software"),googleMapsPurposes:gettext("To provide a convenient map function on the website"),googleDataProcessing:gettext("Purpose(s) of data processing by Google"),googleDataProcessingDescription:gettext("Google uses the data for the purposes of advertising, market research and/or demand-oriented design of its own offer"),googleAnalyticsDataTypes:gettext("App updates, browser information, click path, date and time of visit, device information, downloads, Flash version, location information, JavaScript support, pages visited, purchase activity, referrer URL, usage data, widget interactions, IP address (We have activated IP anonymization on the website [so-called IP masking], so that your IP address is shortened by Google within the EU and the EEA before transmission to such an extent that it no longer allows conclusions to be drawn about individual persons. Only this anonymized IP address will be transmitted outside the EEA)"),googleAnalyticsPurposes:gettext("Analysis of website usage; optimization of the web offer"),googleAnalyticsDataProcessingDescription:gettext("Google uses the data for the purpose of advertising, market research and/or demand-oriented design of its own offer. In doing so, Google may link the data with other data of the user (such as search history, personal accounts, usage data of other devices and all other data that Google has on this user)"),dataStorageDuration:gettext("Duration of data storage"),durationMonths:gettext("months"),fbPixelPurposes:gettext("Personalized advertising, marketing, retargeting, analytics"),fbPixelDataTypes:gettext("IP address (truncated), cookie ID, pixel ID, website usage data, browsing session information, page location, URL of the website visited by the user, other browsing behavior (i.e. websites visited by the user after this website), referrer URL (i.e. the URL from which the user arrived at this website), user agent (e.g. browser, email or newsreader), operating system"),note:gettext("Note"),noteInfo:gettext("If you are registered with a Facebook service, Facebook can assign the visit to your account")},elements:{header:'<h2 class="cc-header">{{header}}</h2>',moreinfo:'<a aria-label="imprint" class="cc-imprint-link" data-target="#imprint" href="{{langLink}}{{imprintHref}}" target="_blank">{{imprintLink}}</a><div class="privacy_info" id="imprint"></div><a aria-label="imprint" class="cc-imprint-link" data-target="#data_privacy" href="{{langLink}}{{href}}" target="_blank">{{privacyPolicyLink}}</a><div class="privacy_info" id="data_privacy"></div><a aria-label="imprint" class="cc-imprint-link" data-target="#terms_of_use" href="{{langLink}}{{termsOfUseHref}}" target="_blank">{{termsOfUseLink}}</a><div class="privacy_info" id="terms_of_use"></div><i class="expand_icon collapsed"></i><a id="change-settings" href="#">{{settings}}</a>',descriptions:'<div class="cc_cookie_descr"></div>',checkboxes:'<ul class="cc-checkboxes" style="padding-left:0px"><li><input type="checkbox" checked="checked" id="cc-checkbox-necessary" disabled> <label id="cc-label-necessary" for="cc-checkbox-necessary" style="cursor: n
43ot-allowed;"><strong class="cc-label-block">{{necessaryTitle}}</strong></label></li><li><input type="checkbox" id="cc-checkbox-analytics"><label id="cc-label-analytics" for="cc-checkbox-analytics"><strong id="analytics-title" class="cc-label-block analytics-title-unchecked">{{analyticsTitle}}</strong></label></li><li><input type="checkbox" id="cc-checkbox-personalization"><label id="cc-label-personalization" for="cc-checkbox-personalization"><strong id="personalization-title" class="cc-label-block personalization-title-unchecked">{{personalizationTitle}}</strong></label></li></ul>',dismiss:'<a id="allow-cookies" aria-label="dismiss cookie message" class="cc-btn cc-dismiss cc-custom-button" style="border-color: rgb(0, 0, 0); display: block; margin-right: 15px;">{{close}}</a>',allow:'<a id="allow-selected-cookies" aria-label="{{ariaLabelAllowSelected}}" class="cc-btn cc-deny cc-custom-button cc-custom-deny" style="border-color: rgb(0, 0, 0); display: block;">{{savePreference}}</a>',deny:'<a id="deny-cookies" aria-label="{{ariaLabelOnlyNecessary}}" class="cc-btn cc-deny cc-custom-button cc-custom-deny" style="border-color: rgb(0, 0, 0); display: block;">{{onlyNecessary}}</a>',messagelink:'<div id="cookieconsent:desc" class="cc-message" style="margin-top: 5px;">{{message}}</div>'},compliance:{"opt-out":'<div class="cc-compliance cc-highlight cc-custom-opt-out"><span>{{deny}}</span><span>{{allow}}</span><span>{{dismiss}}</span></div>'},layout:"cc-custom-layout",layouts:{"cc-custom-layout":'<div class="cc-custom-layout">{{header}}{{messagelink}}{{checkboxes}}{{moreinfo}}{{descriptions}}{{compliance}}</div>'},onPopupOpen:function(){var n=document.querySelector("#cc-checkbox-analytics"),s=$("#cc-checkbox-personalization");$("#allow-cookies");var c=$("#deny-cookies"),u=$("#allow-selected-cookies"),l=$("#change-settings");document.querySelector(".cc-checkboxes");var i=Mi.content.settingsExpanded,r=Mi.content.settings;Mi.content.close,Mi.content.savePreference;var t=document.querySelector("#analytics-title"),e=$("#personalization-title");$i||($i=this);var a={language_code:Ir,slugs:["datenschutzerklarung","impressum","nutzungsbedingungen"]};$(".cc-imprint-link").one("click",function(){$.ajax({type:"POST",url:"/privacy/cookie_info_links",data:a,headers:{"X-CSRFToken":We("csrftoken")},success:function(g){$("#imprint").html(g.impressum),$("#data_privacy").html(g.datenschutzerklarung),$("#terms_of_use").html(g.nutzungsbedingungen)}})}),$(".cc-floating").removeClass("cc-floating").addClass("cc-banner"),$("body").append('<div class="cookie_overlay"></div>'),n.addEventListener("change",o),u.on("click",f),c.on("click",function(){ss=!1});function o(g){t.classList.toggle("analytics-title-unchecked"),g.target.checked?u.addClass("cc-allow").removeClass("cc-deny"):u.addClass("cc-deny").removeClass("cc-allow")}function f(g){$("#cc-checkbox-personalization").is(":checked")?ss=!0:ss=!1}l.on("click",function(g){$(".expand_icon").hasClass("collapsed")?$.ajax({type:"POST",url:"/privacy/cookie_details",data:{language_code:Ir},headers:{"X-CSRFToken":We("csrftoken")},success:function(y){$(".expand_icon").removeClass("collapsed"),$(".cc_cookie_descr").html(y),$(".cc_cookie_descr").show(),l.text(i)}}):($(".expand_icon").addClass("collapsed"),$(".cc_cookie_descr").hide(),l.text(r)),g.stopImmediatePropagation()}),s.on("change",function(){e.toggleClass("personalization-title-unchecked")}),$(".cc-imprint-link").on("click",function(g){g.preventDefault();var y=$($(this).data("target"));$(".privacy_info").not(y).hide(),y.toggle(),g.stopImmediatePropagation()}),$(".cc-policy-link").on("click",function(g){g.preventDefault(),$(".privacy_info").not("#data_privacy").hide(),$("#data_privacy").show()}),$(document).on("click",".privacy_info .wiredminds-opt-out",function(){alert_text=gettext("You are now excluded from tracking."),alert(alert_text)})},onInitialise:function(n){var s=this.options.type,c=this.hasConsented();if(s=="opt-out")if(!c)Ys();else{var u=We("privacy-setting"),l=We("cc_analytics")||"ask";u==="opt-out"||u==="global"&&l==="never"?Ys():Us()}},onStatusChange:function(n){var s=We("privacy-setting");
43n=="deny"&&(Ys(),Ld.forEach(function(c){Mr(c)})),n=="allow"&&s!="allow"&&Us(),n=="dismiss"&&($("#analytics-title").removeClass("analytics-title-unchecked"),$("#personalization-title").removeClass("personalization-title-unchecked"),$("#cc-checkbox-analytics, #cc-checkbox-personalization").prop("checked","checked"),s!="allow"&&Us()),(n!="deny"||ss)&&$("#cc-checkbox-personalization").is(":checked")?Fd():We("personalization-opt-in")!=null&&($t("personalization-opt-in",!1,-1),Mr("_fbp"))},onPopupClose:function(){$(".cookie_overlay").remove(),$(".privacy_info").hide()},type:"opt-out",location:!0,position:"top",revokeBtn:"<div></div>"};window.cookieconsent.initialise(Mi,function(n){$i=n});const Lr=document.getElementsByClassName("cc-button")[0];Lr&&Lr.addEventListener("click",function(){$i.revokeChoice()});$(".cc-settings-button").on("click",function(){$i.open();var n=We("privacy-setting"),s=We("personalization-opt-in");n=="allow"?($("#allow-selected-cookies").addClass("cc-allow").removeClass("cc-deny"),$("#cc-checkbox-analytics").prop("checked","checked"),$("#analytics-title").removeClass("analytics-title-unchecked")):($("#cc-checkbox-analytics").prop("checked",!1),$("#allow-selected-cookies").addClass("cc-deny").removeClass("cc-allow"),$("#analytics-title").addClass("analytics-title-unchecked")),s=="true"?($("#cc-checkbox-personalization").prop("checked","checked"),$("#personalization-title").removeClass("personalization-title-unchecked")):($("#cc-checkbox-personalization").prop("checked",!1),$("#personalization-title").addClass("personalization-title-unchecked"))});function $d(){(function(n,s,c,u,l,i,r){n.GoogleAnalyticsObject=l,n[l]=n[l]||function(){(n[l].q=n[l].q||[]).push(arguments)},n[l].l=1*new Date,i=s.createElement(c),r=s.getElementsByTagName(c)[0],i.async=1,i.src=u,r.parentNode.insertBefore(i,r)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create",window.google_tracking_code,window.google_analytics_domain),ga("set","anonymizeIp",!0),ga("send","pageview"),window.local_google_tracking_code&&(ga("create",window.local_google_tracking_code,window.local_google_analytics_domain,window.local_google_analytics_name),ga(window.local_google_analytics_name+".set","anonymizeIp",!0),ga(window.local_google_analytics_name+".send","pageview"))}function Pd(){(function(n,s,c,u,l){n[u]=n[u]||[],n[u].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var i=s.getElementsByTagName(c)[0],r=s.createElement(c),t="";r.async=!0,r.src="https://www.googletagmanager.com/gtm.js?id="+l+t,i.parentNode.insertBefore(r,i)})(window,document,"script","dataLayer",window.google_tag_manager_code)}function $r(n){var s="ga-disable-"+n;$t(s,!0),window[s]=!0}function Pr(n){var s="ga-disable-"+n;$t(s,!1),window[s]=!1}function Rd(){var n=n||[];n.push(["disableCookies"]),n.push(["trackPageView"])}function Ys(){window.google_tracking_code&&$r(window.google_tracking_code),window.local_google_tracking_code&&$r(window.local_google_tracking_code),Rd(),$t("privacy-setting","opt-out")}function Us(){window.google_tracking_code&&Pr(window.google_tracking_code),window.local_google_tracking_code&&Pr(window.local_google_tracking_code);var n=window.ga&&ga.loaded;n||(Pd(),$d()),$t("privacy-setting","allow")}function Bd(){(function(n,s,c,u,l,i,r){n.fbq||(l=n.fbq=function(){l.callMethod?l.callMethod.apply(l,arguments):l.queue.push(arguments)},n._fbq||(n._fbq=l),l.push=l,l.loaded=!0,l.version="2.0",l.queue=[],i=s.createElement(c),i.async=!0,i.src=u,r=s.getElementsByTagName(c)[0],r.parentNode.insertBefore(i,r))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init",window.fbpixel_id),fbq("track","PageView")}function Fd(){$t("personalization-opt-in",!0,365),Bd()}function jd(){function n(b){var p="";b.units.forEach(function(N){var C="",B="",F="",V="",te="<h5>"+N.organization+"</h5>",W=b.street+"<br/>",U=b.post+" "+b.city+"</br>";N.phone&&(B='<span class="phone-tab">Tel:</span>'+N.phone+"</br>"),N.fax&&(F='<span class="phone-tab">Fax:</span>'+N.fax+"</br>"),N.website&&(N.website.indexOf("http://")!=-1?C=N.website.split("http://")[1]||"":C=N.website,V='<span class="phone-tab">Website: '+C+"</span></br>");var ne="";N.name&&(ne="<h6>"+N.name+"</h6>"),p+="<div>"+te+ne+'<div class="tooltip-addr">'+W+U+"</div>"+B+F+V+"</div>"});var O='<div class="marker dialog-marker" data-markerId='+b.id+">"+p+"</div>";return O}function s(b,p,O){var N=n(b);E.setCenter(b.coords);
43var C=f,B=b.type;B=="agent"&&(C=g),B=="independent_distributor"&&(C=y);var F=new google.maps.Marker({id:b.id,map:E,icon:C,position:b.coords});p?(p[b.id]=F,R.extend(F.getPosition())):D=F,F.addListener("click",function(){a.setContent(N),a.open(E,F),e(b)})}function c(b){var p=new google.maps.LatLngBounds;a.close(),D.map=null,window.markers.forEach(function(O){var N=O.id,C=b.continent==O.continent||b.continent=="all",B=b.country==O.country_code||b.country=="all";B&&C?(p.extend(k[N].getPosition()),k[N].setVisible(!0)):k[N].setVisible(!1)}),E.fitBounds(p)}function u(b,p,O){var N={};return window.markers.forEach(function(C){if(O=="units")C[b]==p&&C[O].forEach(function(F){var V=F.type;N[V]=!0});else if(C[b]==p){var B=C[O];N[B]=!0}}),Object.keys(N)}function l(b,p,O){var N={};return b.forEach(function(C){p!=null&&O!=null&&C[p]!=O||C.units.forEach(function(B){var F=B.type;N[F]=!0})}),Object.keys(N)}function i(b){$(b+" option").each(function(){$(this).val()!="all"&&$(this).hide()})}function r(b,p){i(b),p.forEach(function(O){$(b+' option[value="'+O+'"]').show()}),$(b).val("all").trigger("chosen:updated")}function t(b){for(var p in b)k[p].setVisible(!0)}function e(b){$("[data-markerId="+b.id+"]").on("click",function(p){b.website!=""&&(o.find("a").attr("href",b.website),o.stop(!0,!0).fadeIn())})}var a=new google.maps.InfoWindow,o=$("#agent-dialog");o.find(".agent-modal-close").on("click",function(b){o.stop(!0,!0).fadeOut()});var f={url:window.markers?window.url_map_marker:"images/map-marker.png",size:new google.maps.Size(33,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,40)},g={url:window.markers?window.url_map_agent:"images/map-marker_agent.png",size:new google.maps.Size(33,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,40)},y={url:window.markers?window.url_map_indep_distributor:"images/map-marker)indep_distributor.png",size:new google.maps.Size(33,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,40)},E=new google.maps.Map(document.getElementById("map"),{scrollwheel:!1,zoom:6,maxZoom:9}),k={},D=new google.maps.Marker,R=new google.maps.LatLngBounds;window.markers.forEach(function(b){s(b,k)}),$(document).ready(function(){var b=$(".agents-filter"),p={};function O(){b.attr("data-countries","all").attr("data-continents","all"),$(".agents-filter").removeClass("country-selected").removeClass("continent-selected"),i("#country"),$("#continent").val("all").trigger("chosen:updated"),$("#country").val("all").trigger("chosen:updated"),N("all","all"),t(k),E.panTo(new google.maps.LatLng({lat:20,lng:0})),E.setZoom(2)}function N(K,se){history.replaceState({},null,window.location.pathname),p.continent=K,p.country=se}function C(K){if(K!="all"){var se=u("continent",K,"country_code");$(".agents-filter").removeClass("country-selected").addClass("continent-selected"),b.attr("data-continents",K),N(K,"all"),t(k),c(p),r("#country",se),te("continent",K),se.length==1&&($(".agents-filter").removeClass("continent-selected"),F(se[0]))}else $("[data-continent]").show(),ne()}function B(K,se){return K!=null&&se!=null?window.markers.filter(function(_e){return _e[K]==se}):window.markers}function F(K){u("country_code",K,"units"),K!="all"?$(".agents-filter").addClass("country-selected"):$(".agents-filter").removeClass("country-selected"),$("#company").val("all").trigger("chosen:updated"),b.attr("data-countries",K),N(b.attr("data-continents"),K),t(k),c(p),te("country_code",K)}function V(K){var se=$(".locations-companies");
43se.html(""),K.forEach(function(_e){_e&&se.append('<div class="locations-folder" data-company="'+_e+'"><div class="trigger closed">'+U[_e]+'</div><div class="content row flex-row"></div></div>')})}function te(K,se){var _e=B(K,se),ke=l(_e,K,se);V(ke),_e.forEach(function(me){W(me)})}function W(K){K.units.forEach(function(se){var _e=$('[data-company="'+se.type+'"]').find(".content"),ke="",me="",ye="",$e="",T="",x="",v="",S="",M='<p class="unit-name">'+se.typeName+"</p>";se.sub1&&(me='<p class="gray">'+se.sub1+"</p>"),se.sub2&&(ye='<p class="gray">'+se.sub2+"</p>"),se.name&&(ke="<h6>"+se.name+"</h6>"),(se.name||se.organization)&&($e="<h3>"+(se.organization||se.name)+"</h3>"),se.cardType&&(v=se.cardType),(K.street||K.city)&&(T='<p class="gray">'+(K.street+"<br/>"||"")+" "+(K.post+" "||"")+K.city+"</p>"),se.phone&&(x+='<span class="phone-tab">Tel:</span>'+se.phone+"<br/>"),se.fax&&(x+='<span class="phone-tab">Fax:</span>'+se.fax+"<br/>"),se.website&&(se.website.indexOf("http://")!=-1?S=se.website.split("http://")[1]||"":S=se.website,x+='<span class="phone-tab">Website: '+S+"</span> <br/>"),x!=""&&(x='<p class="gray">'+x+"</p>"),_e.append('<div class="col col-s3"><div data-post="'+K.post+'" data-markerId="'+K.id+'" class="agent-card '+v+'">'+M+$e+ke+me+ye+T+x+"</div></div>"),e(K)})}var U={agent:gettext("Agents"),independent_distributor:gettext("Independent Distributors")};$("#continent").on("change",function(){var K=$(this).val();C(K)}),$("#country").on("change",function(){var K=$(this).val();F(K)}),$(document).on("click",".trigger",function(){$(this).toggleClass("closed")}),$("#reset").click(function(K){K.preventDefault(),ne()});function ne(){O(),te(null,null)}ne(),$(".cleaner").click(function(){clearSearch()})})}window.initAgentMap=jd;/*!
44 * jQuery UI Button 1.13.3
45 * https://jqueryui.com
46 *
47 * Copyright OpenJS Foundation and other contributors
48 * Released under the MIT license.
49 * https://jquery.org/license
50 */(function(n){typeof define=="function"&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],n):n(jQuery)})(function(n){return n.widget("ui.button",{version:"1.13.3",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var s,c=this._super()||{};return this.isInput=this.element.is("input"),s=this.element[0].disabled,s!=null&&(c.disabled=s),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(c.label=this.originalLabel),c},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(s){s.keyCode===n.ui.keyCode.SPACE&&(s.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),!this.options.showLabel&&!this.title&&this.element.attr("title",this.options.label)},_updateIcon:function(s,c){var u=s!=="iconPosition",l=u?this.options.iconPosition:c,i=l==="top"||l==="bottom";this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),u&&this._addClass(this.icon,null,c),this._attachIcon(l),i?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
50pace||(this.iconSpace=n("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(l))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(s){this.icon[/^(?:end|bottom)/.test(s)?"before":"after"](this.iconSpace)},_attachIcon:function(s){this.element[/^(?:end|bottom)/.test(s)?"append":"prepend"](this.icon)},_setOptions:function(s){var c=s.showLabel===void 0?this.options.showLabel:s.showLabel,u=s.icon===void 0?this.options.icon:s.icon;!c&&!u&&(s.showLabel=!0),this._super(s)},_setOption:function(s,c){s==="icon"&&(c?this._updateIcon(s,c):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),s==="iconPosition"&&this._updateIcon(s,c),s==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!c),this._updateTooltip()),s==="label"&&(this.isInput?this.element.val(c):(this.element.html(c),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(s,c),s==="disabled"&&(this._toggleClass(null,"ui-state-disabled",c),this.element[0].disabled=c,c&&this.element.trigger("blur"))},refresh:function(){var s=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");s!==this.options.disabled&&this._setOptions({disabled:s}),this._updateTooltip()}}),n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(s,c){if(s==="text"){this._super("showLabel",c);return}s==="showLabel"&&(this.options.text=c),s==="icon"&&(this.options.icons.primary=c),s==="icons"&&(c.primary?(this._super("icon",c.primary),this._super("iconPosition","beginning")):c.secondary&&(this._super("icon",c.secondary),this._super("iconPosition","end"))),this._superApply(arguments)}}),n.fn.button=function(s){return function(c){var u=typeof c=="string",l=Array.prototype.slice.call(arguments,1),i=this;return u?!this.length&&c==="instance"?i=void 0:this.each(function(){var r,t=n(this).attr("type"),e=t!=="checkbox"&&t!=="radio"?"button":"checkboxradio",a=n.data(this,"ui-"+e);if(c==="instance")return i=a,!1;if(!a)return n.error("cannot call methods on button prior to initialization; attempted to call method '"+c+"'");if(typeof a[c]!="function"||c.charAt(0)==="_")return n.error("no such method '"+c+"' for button widget instance");if(r=a[c].apply(a,l),r!==a&&r!==void 0)return i=r&&r.jquery?i.pushStack(r.get()):r,!1}):(l.length&&(c=n.widget.extend.apply(null,[c].concat(l))),this.each(function(){var r=n(this).attr("type"),t=r!=="checkbox"&&r!=="radio"?"button":"checkboxradio",e=n.data(this,"ui-"+t);if(e)e.option(c||{}),e._init&&e._init();else{if(t==="button"){s.call(n(this),c);return}n(this).checkboxradio(n.extend({icon:!1},c))}})),i}}(n.fn.button),n.fn.buttonset=function(){return n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),n.ui.button});document.addEventListener("DOMContentLoaded",function(){$(".special-docs-form #id_accept_terms").prop("checked",!1),$(".special-docs-submit-btn").addClass("disabled").attr("disabled",!0),$(".special-docs-form #id_accept_terms").on("change",function(){$(".special-docs-form #id_accept_terms").is(":checked")?$(".special-docs-submit-btn").removeClass("disabled").attr("disabled",!1).removeAttr("disabled"):$(".special-docs-submit-btn").addClass("disabled").attr("disabled",!0)})});$(".special-docs-submit-btn").on("click",function(n){var s=$(".special-docs-form").validate(),c={region_code:window.region_code,language_code:window.language_code,email:$("input[name=email]").val(),first_name:$("input[name=first_name]").val(),last_name:$("input[name=last_name]").val(),accept_terms:$("input[name=accept_terms]").is(":checked"),newsletter_signup:$("input[name=newsletter_signup]").is(":checked"),contact_title:$("input[name=contact_title]").val(),object_id:$("input[name=object_id]").val(),object_model:$("input[name=object_model]").val()};if($(".special-docs-form").valid())$(".special-docs-submit-btn").button("loading"),$.ajax({type:"POST",url:"/special_documents/process_request_form",data:c,headers:{"X-CSRFToken":We("csrftoken")},success:function(l){l.status=="success"?($(".document_success").show(),$(".document_error").hide(),$(".form-errors").hide()):($(".document_success").hide(),$(".document_error").show()),$(".special-docs-form").validate().destroy(),$(".special-docs-submit-btn").button("reset"),$("form, .special-docs-submit-btn").hide()},error:function(l){$(".special-docs-submit-btn").button("reset"),$(".document_success").hide(),$(".document_error").show()}});else{for(var u=0;u<s.errorList.length;u++)s.errorList[u].method!="required"&&$(s.errorList[u].element.parentElement).attr("data-error",s.errorList[u].message),$(s.errorList[u].element.parentElement).addClass("invalid");$(".document_success").hide(),$(".form-errors").show()}});$(".special-docs-form input").on("focus",function(){$(this.parentElement).removeClass("invalid"),$(this.parentElement).find(".errorlist").hide()});$("#specialDocsModal").on("shown.bs.modal",function(n){$("form, .special-docs-submit-btn").show(),$(".special-docs-form #id_accept_terms").prop("checked",!1),$(".special-docs-submit-btn").addClass("disabled").attr("disabled",!0),$(".document_success, .document_error, .form-errors").hide(),$(".special-docs-form .input-wrap").removeClass("invalid")});$(document).ready(function(){var n=$("#id_contact_subj"),s=$("#id_contact_app"),c=$("#id_contact_third_category"),u=Yt().contact_app,l=$("#id_contact_area"),i=$("#id_contact_technology"),r=Yt().contact_technology;s.chosen({inherit_select_classes:!0}),c.chosen({inherit_select_classes:!0}),i.chosen({inherit_select_classes:!0}),l.on("change",function(e){var a={contact_area:this.value,region_code:window.region_code,language_code:window.language_code};$.ajax({type:"POST",url:"/contact/contact-form/contact_subject_list_for_area",data:a,headers:{"X-CSRFToken":We("csrftoken")},success:function(o){n.empty(),o.data.length>0&&o.data.forEach(function(f){const g=$("<option></option>").attr("value",f.id).text(f.name);n.append(g)}),n.trigger("chosen:updated"),n.trigger("change")}})}),n.on("change",function(e){var a={contact_subj:this.value,region_code:window.region_code,language_code:window.language_code};this.value?$.ajax({type:"POST",url:"/contact/contact-form/contact-third-category",data:a,headers:{"X-CSRFToken":We("csrftoken")},success:function(o){s.empty(),c.empty(),i.empty(),o.type=="COMPANY"&&o.data.length>1?(o.data.forEach(function(f){const g=$("<option></option>").attr("value",f[0]).text(f[1]);c.append(g)}),$("#id_contact_third_category_chosen").show(),$("#id_contact_app_chosen").hide(),$("#id_contact_technology_chosen").hide()):o.type=="TECHNICAL"&&o.data.length>1?(o.data.forEach(function(f){const g=$("<option></option>").attr("value",f[0]).text(f[1]);parseInt(r)==f[0]&&g.attr("selected","selected"),i.append(g)}),$("#id_contact_third_category_chosen").hide(),$("#id_contact_app_chosen").hide(),$("#id_contact_technology_chosen").show()):o.data.length>1?(o.data.forEach(function(f){const g=$("<option></option>").attr("value",f[0]).text(f[1]);parseInt(u)==f[0]&&g.attr("selected","selected"),s.append(g)}),$("#id_contact_third_category_chosen").hide(),$("#id_contact_app_chosen").show(),$("#id_contact_technology_chosen").hide()):t(),s.trigger("chosen:updated"),c.trigger("chosen:updated"),i.trigger("chosen:updated")}}):t()}),t(),n.trigger("change");function t(){$("#id_contact_app_chosen").hide(),$("#id_contact_third_category_chosen").hide(),$("#id_contact_technology_chosen").hide()}});$(document).ready(function(){var n=document.location.pathname.split("/").slice(3,4)[0]||"not-selected";if(n=="news-and-events"&&Yt().type!=null){var s=window.location.search.substring(1),c=s.indexOf("type")==s.lastIndexOf("type"),u=$(".submenu."+n).find("[data-careers]").attr("data-careers");c&&Yt().type==u&&(n="people")}$('[data-active="'+n+'"]').addClass("selected"),$(".selected").length!=0&&($(".selected").addClass("active"),$(".main-menu").addClass("has-selected"));function l(D,R,b,p){is();var O=["technologies","solutions","services"];(!D||O.includes(p))&&$(R).slideDown(300,function(){b&&$(b).focus(),(!window.isMobile||$(".main-menu-opener").css("display")=="none")&&($(R).find(".submenu-content").css("overflow-y","auto"),$(R).find(".menu-l2").css("overflow-y","auto"))})}function i(){$("body").addClass("scroll-disabled")}function r(){$("body").removeClass("scroll-disabled")}function t(D){is(),$(".submenu-content").each(function(){$(this).css("overflow-y","hidden")}),$(".menu-l2").each(function(){$(this).css("overflow-y","hidden")}),$(D).slideUp(300)}$(".header-service-link").click(t),$(".header-service-search").click(t);
50var e=$(".js-trigger"),a=$(".js-lang-trigger"),o=$(".js-modal"),f=$(".main-menu-opener"),g=$(".main-menu"),y=$("#header-search-field");y.keyup(function(){var D=$(this).val().toLowerCase();D==""?$(".sites-list > li").show():$(".sites-list > li").each(function(){var R=$(this).text().toLowerCase();R.indexOf(D)>=0?$(this).show():$(this).hide()})}),a.on("click",function(D){D.preventDefault(),D.stopPropagation();var R=$(this).data("toggle"),b=$(this).hasClass("active"),p=$(this).hasClass("selected"),O=$(this).data("focus");a.removeClass("active"),o.hide(),(!b||p)&&($(R).slideDown(300,function(){O&&$(O).focus()}),$(this).addClass("active")),b&&!p&&$(this).removeClass("active")}),e.on("touchstart",function(D){e.not(".active").addClass("non-touch")}),e.on("click",function(D){D.preventDefault(),D.stopPropagation(),$(this).removeClass("non-touch");var R=$(this).data("toggle"),b=$(this).hasClass("active"),p=$(this).hasClass("selected"),O=$(this).data("focus"),N=$(D.currentTarget).data("active"),C=$(D.currentTarget).data("landingpage")=="True";e.not(this).removeClass("active"),$(this).hasClass(".main-menu-item")&&$(".selected").addClass("active"),(window.isMobile||$(".main-menu-opener").css("display")!="none")&&$(R).css("display")!="none"?($(R).slideUp(300),$(R).find(".active").removeClass("active"),$(this).removeClass("active"),$(this).addClass("non-touch")):(b||o.hide(),!b||p?(l(C,R,O,N),a.removeClass("active"),$(".selected").removeClass("active"),$(this).addClass("active")):(b||$(".main-menu-opener").attr("display")!="none")&&$(this).removeClass("active"))}),$(".pre-head").hover(function(D){is(),$(".submenu").slideUp(300)}),$(document).on("click",function(D){Mt&&window.innerWidth>1024&&$(".submenu").is(":visible")&&$(".submenu").find(D.target).length==0&&($(".main-menu-item.selected").addClass("active"),$(".main-menu-item").not(".selected").addClass("non-touch").removeClass("active"),$(".submenu").slideUp(300))}),Mt||$(".main-menu-item").hover(function(D){if($(".main-menu").addClass("no-active-decoration"),D.preventDefault(),D.stopPropagation(),$("select").trigger("chosen:close"),!(window.isMobile||$(".main-menu-opener").css("display")!="none")){var R=$(D.currentTarget).data("toggle"),b=$(D.currentTarget).hasClass("active"),p=$(D.currentTarget).hasClass("selected"),O=$(D.currentTarget).data("landingpage")=="True",N=$(D.currentTarget).data("active"),C=$(D.currentTarget).data("focus"),B=$(".js-modal").filter(function(){return $(this).css("display")=="block"}).eq(0);$(D.currentTarget).hasClass(".main-menu-item")&&$(".selected").addClass("active"),$(D.currentTarget).on("mouseleave",function(F){$(F.relatedTarget).data("active")!=this.id&&(F.relatedTarget&&F.relatedTarget.id!=$(R)[0].id||F.relatedTarget==null)&&(r(),$(F.currentTarget).removeClass("active"),$(".selected").addClass("active"),$(F.relatedTarget).hasClass("main-menu-item")||t(R))}),$(R).on("mouseleave",function(F){r(),F.relatedTarget!=null&&$(F.relatedTarget).data("active")!=this.id&&($(F.relatedTarget).hasClass("main-menu-item")||t(this),e.removeClass("active"),$(".selected").addClass("active"))}),$(R).on("mouseenter",function(F){$(".main-menu-item").filter(function(){return $(this).hasClass($(F.currentTarget)[0].id)}).eq(0).addClass("active"),i()}),is(),window.timeouts.push(setTimeout(function(){b||(e.removeClass("active"),a.removeClass("active"),$(D.currentTarget).removeClass("active")),(!b||p)&&($(R).is(":visible")||(B.length?(t(B),setTimeout(function(){l(O,R,C,N)},300)):l(O,R,C,N)),$(".selected").removeClass("active"),$(D.currentTarget).addClass("active"))},300))}},function(){$(".main-menu").removeClass("no-active-decoration")}),f.click(function(){e.removeClass("active"),o.css("display","none"),$(this).toggleClass("opened"),$(".main-menu-item.selected").addClass("active");var D=g.css("display")=="block";D?g.css("display","none"):g.slideDown(500)}),$(".menu-l2-item > a").click(function(D){!$(this).hasClass("no-submenu")&&$(this).hasClass("no_landing_page")&&D.preventDefault();var R=$(this).parent().hasClass("active");$(".menu-l2-item").removeClass("active"),R||$(this).parent().addClass("active"),Mt&&window.innerWidth>1024?($(this).parent().addClass("hover"),$(this).parent().siblings().removeClass("hover")):Mt&&window.innerWidth<=1024&&$(".menu-l2-item.hover").removeClass("hover")});function E(D,R,b){$(document).mouseup(function(p){if(p.relatedTarget!=null&&!D.is(p.target)&&D.has(p.target).length===0&&!R.is(p.target)&&R.has(p.target).length===0){if(window.timeouts.length)return;D.hasClass("main-menu")&&window.isMobile&&D.css("display","none"),R.removeClass(b),$(".selected").addClass("active")}})}E(g,f,"opened"),E(o,e,"active"),E(o,a,"active"),$(".header-lang-name").click(function(){$(".header-lang-name").removeClass("active"),$(this).addClass("active")});function k(){var D=$(".menu-l2"),R=$(".menu-l2-item"),b,p;D.on("mouseenter",function(O){b=O.pageX}),D.on("mouseleave",function(O){O.relatedTarget!=null&&$(".hover").removeClass("hover")}),D.on("mousemove",function(O){p=O.pageX>b,b=O.pageX}),R.on("mouseenter",function(){!Mt&&window.innerWidth>1024&&$(".hover").length==0&&$(this).addClass("hover")}),R.on("mousemove",function(){!Mt&&window.innerWidth>1024&&!p&&!$(this).hasClass("hover")&&(R.removeClass("hover"),$(this).addClass("hover"))}),R.on("mouseleave",function(){var O=$(this).find(".menu-l3").length>0,N=$(this).hasClass("hover");(!Mt&&window.innerWidth>1024&&N&&!p||!O)&&$(this).removeClass("hover")})}k()});function zd(n){var s=$(n).find(".template").last(),c=$(s).clone(!0),u=$(c).find(".form-row"),l=$(n).find(".job-folder-content").find(".form-group"),i=l.length+1,r=$(n).find(".job-folder-content").find(".groups");$(u).each(function(){var t=$(this).attr("data-for"),e=$(this).find("input"),a=$(this).find("label"),o=$(this).find("select"),f=$(this).attr("validate-to-id");if(at(e,"name",t,i),at(e,"id",t,parseInt(i)),at(o,"name",t,i),at(o,"id",t,i),at(a,"for",t,i),f){var g=$(c).find("#"+f);at(this,"validate-to-id",t,i),at(g,"id",t,i)}$(o).chosen({disable_search_threshold:10,width:"100%",no_results_text:translations.no_results_text,placeholder_text_single:translations.placeholder_text_single,placeholder_text_multiple:translations.placeholder_text_multiple})}),$(r).append(c),$(c).slideDown(500,function(){$(c).removeClass("template").attr("style",!1),n.find(".js-remove-last").show()})}function Hd(n){var s=$(n).find(".job-folder-content").find(".form-group").last();$(s).slideUp(500,function(){s.remove();var c=$(n).find(".job-folder-content").find(".form-group").length;c==0&&n.find(".js-remove-last").hide()})}function Vd(n){var s=$(n).find(".template").last(),c=$(s).clone(!0),u=$(n).find(".groups"),l=$(u).find(".form-row"),i=l.length+1,r=$(c).find("input"),t=$(c).find("label"),e=$(c).find(".file-upload-button");at(t,"for","",i),at(r,"id","",i),$(e).attr("data-upload","#file_"+i),$(u).append(c),$(c).slideDown(500,function(){$(c).removeClass("template").attr("style",!1),n.find(".js-remove-inputs").show()})}function qd(n){var s=$(n).find(".groups").find(".form-row").last();$(s).slideUp(500,function(){s.remove();var c=$(n).find(".groups").find(".form-row").length;c==0&&n.find(".js-remove-inputs").hide()})}function at(n,s,c,u){$(n).each(function(){if($(this).attr(s)){var l=$(this).attr(s);$(this).attr(s,c+l+u)}})}function Wd(n){var s=$(n).find(".template").last(),c=$(s).clone(!0),u=$(n).find(".users-table").find(".form-row"),l=u.length+1,i=$(n).find(".users-table");$(c).each(function(){var r=$(this).find("label"),t=$(this).find("input");at(t,"name","",l),at(t,"id","",l),at(r,"for","",l)}),$(i).append(c),$(c).slideDown(500,function(){$(c).removeClass("template").attr("style",!1),n.find(".js-remove-table").show()})}function Yd(n){var s=$(n).find(".users-table").find(".form-row").last();$(s).slideUp(500,function(){s.remove();var c=$(n).find(".users-table").find(".form-row").length;c==0&&n.find(".js-remove-table").hide()})}$(".js-add-new").click(function(n){n.preventDefault(),zd($(this).closest(".
50job-folder"))});$(".js-remove-last").click(function(n){n.preventDefault(),Hd($(this).closest(".job-folder"))});$(".js-add-inputs").click(function(n){n.preventDefault(),Vd($(this).closest(".form-panel"))});$(".js-remove-inputs").click(function(n){n.preventDefault(),qd($(this).closest(".form-panel"))});$(".js-add-table").click(function(n){n.preventDefault(),Wd($(this).closest(".job-folder"))});$(".js-remove-table").click(function(n){n.preventDefault(),Yd($(this).closest(".job-folder"))});$(document).ready(function(){$(".preview_anchor").on("click",function(n){n.preventDefault();var s=$(this).next(".newsletter_preview");$(".newsletter_preview").not(s).hide();var c=s.find("iframe");s.toggle();var u=c.contents().outerHeight();c.height(u)})});document.addEventListener("DOMContentLoaded",function(){var n=$("#privacy-settings-modal"),s=$(".privacy-settings-link"),c=$(".modal-settings-close"),u=$("#analytics-setting"),l=We("privacy-setting")||"allow",i=$(".privacy-settings-next-page"),r=$("#cc-globalpreference-selector-social"),t=$("#cc-globalpreference-selector-analytics"),e=$("#cc-globalpreference-selector-advertising"),a=$(".wiredminds-opt-out");a.on("click",function(){var o=gettext("You are now excluded from tracking.");alert(o)}),i.on("click",function(o){o.preventDefault(),$("#privacy-website-settings").fadeToggle(300),$("#privacy-global-settings").fadeToggle(300)}),$(r).add(t).add(e).on("change",function(o){$t("cc_"+$(this).attr("name"),$(this).val())}),r.val(We("cc_"+r.attr("name"))||"ask"),t.val(We("cc_"+t.attr("name"))||"ask"),e.val(We("cc_"+e.attr("name"))||"ask"),s.on("click",function(o){o.preventDefault(),n.fadeIn(300);var f=We("privacy-setting")||l;$("#analytics-setting").val(f).change(),$("#analytics-setting").trigger("chosen:updated")}),n.on("click",function(o){o.target===this&&$(this).fadeOut(400)}),c.on("click",function(o){o.preventDefault(),$(n).fadeOut(300)}),u.val(l),u.on("change",function(o){$t("privacy-setting",$(this).val())})});$(document).ready(function(){$(".login-modal-btn").button("reset")});$(".login-modal-btn").on("click",function(n){var s=$(".modal-login-form").validate(),c={username:$("input[name=username]").val(),password:$("input[name=password]").val(),area:$("input[name=area]").val()};if($(".modal-login-form").valid())$(".login-modal-btn").button("loading"),$.ajax({type:"POST",url:"/special_content/login_request",data:c,headers:{"X-CSRFToken":We("csrftoken")},success:function(l){$(".modal-login-form").validate().destroy(),l.status=="success"?window.location.reload():($(".document_error").show(),$(".login-modal-btn").button("reset"))},error:function(l){$(".login-modal-btn").button("reset"),$(".document_error").show()}});else{for(var u=0;u<s.errorList.length;u++)s.errorList[u].method!="required"&&$(s.errorList[u].element.parentElement).attr("data-error",s.errorList[u].message),$(s.errorList[u].element.parentElement).addClass("invalid");$(".form-errors").show()}});$(".modal-login-form input").on("focus",function(){$(this.parentElement).removeClass("invalid"),$(this.parentElement).find(".errorlist").hide()});document.addEventListener("DOMContentLoaded",function(){var n={language_code:document.getElementById("language_code"),region_code:document.getElementById("region_code"),keyword:document.getElementById("js-search"),areas:document.getElementById("js-areas"),position:document.getElementById("js-position"),organization:document.getElementById("js-organization"),location:document.getElementById("js-location"),postcode:document.getElementById("js-postcode"),radius:document.getElementById("js-radius")},s={results:document.getElementById("js-result"),submit:document.getElementById("js-submit"),reset:document.getElementById("js-reset"),reload:document.querySelector("[data-pajax]")};window.job_controller=new gt(n,s),window.job_controller.results_element&&setTimeout(function(){window.job_controller.change(1,1)},100)});function gt(n,s){var c=this;this.fields=n,this.results_element=s.result||document.getElementById("js-result"),this.submit_button=s.submit||document.getElementById("js-submit"),this.reset_button=s.reset||document.getElementById("js-reset"),this.reset_button&&this.reset_button.addEventListener("click",function(){c.clear_form()}),this.data_placeholder=s.reload||document.getElementById("data-placeholder");for(var u=Object.keys(this.fields),l=0;l<u.length;l++){var i=u[l],r=this.fields[i];if(r!==null){var t=null;i==="keyword"?r.oninput=function(e){t!==null&&clearTimeout(t),t=setTimeout(function(){c.change(e,c.data())},500)}:r.onchange=function(e){c.change(e,c.data())}}}}gt.prototype.form=function(n){var s=this.data();if(n)for(var c=0;c<Object.keys(n).length;c++)s[Object.keys(n)[c]]=n[Object.keys(n)[c]];for(var u=new FormData,l=Object.keys(s),i=0;i<l.length;i++)if(Array.isArray(s[l[i]]))for(var r=0;r<s[l[i]].length;r++)u.append(l[i],s[l[i]][r]);else u.append(l[i],s[l[i]]);return u};gt.prototype.query=function(n){var s=this.data();if(n)for(var c=0;c<Object.keys(n).length;c++)s[Object.keys(n)[c]]=n[Object.keys(n)[c]];for(var u=[],l=Object.keys(s),i=0;i<l.length;i++)Array.isArray(s[l[i]])?u.push(l[i]+"="+encodeURIComponent(s[l[i]].join())):u.push(l[i]+"="+encodeURIComponent(s[l[i]]));return u.join("&")};gt.prototype.set_results_number=function(n){this.results_element.innerText=n.toString()};gt.prototype.clear_form=function(){var n=this;setTimeout(function(){n.change(1,1)},100)};gt.prototype.disable_submit=function(){this.submit_button&&(this.submit_button.classList.add("disabled"),this.submit_button.setAttribute("disabled",!0))};gt.prototype.enable_submit=function(){this.submit_button&&(this.submit_button.classList.remove("disabled"),this.submit_button.removeAttribute("disabled"))};gt.prototype.reload=function(){var n=this,s=new XMLHttpRequest;s.open("GET",document.location.pathname+"?"+this.query({ajax:"true",search:"all"}),!0),s.onload=function(){n.data_placeholder.innerHTML=this.responseText,history.replaceState({},null,"?"+n.query({search:"all"}))},s.send()};gt.prototype.load_page=function(n,s){s=s||{},s.ajax="true",s.search="all",s.page=parseInt(n);var c=this,u=new XMLHttpRequest;return u.open("GET",document.location.pathname+"?"+this.query(s),!0),u.onload=function(){c.data_placeholder.innerHTML=this.responseText},u.send(),!1};gt.prototype.change=function(n,s){var c=this,u=new XMLHttpRequest;u.open("POST","/job-adverts/count",!0),u.onload=function(){var l=parseInt(this.responseText);l<1?c.disable_submit():c.enable_submit(),c.set_results_number(this.responseText),c.data_placeholder&&c.reload()},u.send(this.form())};gt.prototype.data=function(){for(var n={},s=Object.keys(this.fields),c=0;c<s.length;c++){var u=s[c],l=this.fields[u];if(l)switch(l.tagName){case"SELECT":n[u]=[];for(var i=l.querySelectorAll("option"),r=0;r<i.length;r++)i[r].selected&&n[u].push(i[r].getAttribute("value"));break;default:n[u]=l.value}}return n};document.addEventListener("DOMContentLoaded",function(){$("p").has("iframe").not(".video-container").addClass("video-container"),$("[data-pin-after]").each(function(){var n=$(this);n.hide();var s=$(n.attr("data-pin-after"));if(!s.length)return n.show();var c=s[0].getClientRects()[0];n.css({marginTop:c.height}),n.on("load",function(){var u=$(s.parent().find("ul")[0]);n.parent().css("float")=="left"&&u&&u.css("margin-left",n[0].getClientRects()[0].width)}),n.show()})});typeof jQuery<"u"&&function(n,s){function c(l,i,r){return new Array(r+1-l.length).join(i)+l}function u(){if(arguments.length===1){var l=arguments[0];return typeof l=="string"&&(l=n.fn.timepicker.parseTime(l)),new Date(0,0,0,l.getHours(),l.getMinutes(),l.getSeconds())}else return arguments.length===3?new Date(0,0,0,arguments[0],arguments[1],arguments[2]):arguments.length===2?new Date(0,0,0,arguments[0],arguments[1],0):new Date(0,0,0)}n.TimePicker=function(){var l=this;l.container=n(".ui-timepicker-container"),l.ui=l.container.find(".ui-timepicker"),l.container.length===0&&(l.container=n("<div></div>").addClass("ui-timepicker-container").addClass("ui-timepicker-hidden ui-helper-hidden").appendTo("body").hide(),l.ui=n("<div></div>").addClass("ui-timepicker").addClass("ui-widget ui-widget-content ui-menu").addClass("ui-corner-all").appendTo(l.container),l.viewport=n("<ul></ul>").addClass("ui-timepicker-viewport").appendTo(l.ui),n.fn.jquery>="1.4.2"&&l.ui.delegate("a","mouseenter.timepicker",function(){l.activate(!1,n(this).parent())}).delegate("a","mouseleave.timepicker",function(){l.deactivate(!1)}).delegate("a","click.timepicker",function(i){i.preventDefault(),l.select(!1,n(this).parent())}
50))},n.TimePicker.count=0,n.TimePicker.instance=function(){return n.TimePicker._instance||(n.TimePicker._instance=new n.TimePicker),n.TimePicker._instance},n.TimePicker.prototype={keyCode:{ALT:18,BLOQ_MAYUS:20,CTRL:17,DOWN:40,END:35,ENTER:13,HOME:36,LEFT:37,NUMPAD_ENTER:108,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,TAB:9,UP:38},_items:function(l,i){var r=this,t=n("<ul></ul>"),e=null,a,o;for(l.options.timeFormat.indexOf("m")===-1&&l.options.interval%60!==0&&(l.options.interval=Math.max(Math.round(l.options.interval/60),1)*60),i?a=u(i):l.options.startTime?a=u(l.options.startTime):a=u(l.options.startHour,l.options.startMinutes),o=new Date(a.getTime()+24*60*60*1e3);a<o;)r._isValidTime(l,a)&&(e=n("<li>").addClass("ui-menu-item").appendTo(t),n("<a>").addClass("ui-corner-all").text(n.fn.timepicker.formatTime(l.options.timeFormat,a)).appendTo(e),e.data("time-value",a)),a=new Date(a.getTime()+l.options.interval*60*1e3);return t.children()},_isValidTime:function(l,i){var r=null,t=null;return i=u(i),l.options.minTime!==null?r=u(l.options.minTime):(l.options.minHour!==null||l.options.minMinutes!==null)&&(r=u(l.options.minHour,l.options.minMinutes)),l.options.maxTime!==null?t=u(l.options.maxTime):(l.options.maxHour!==null||l.options.maxMinutes!==null)&&(t=u(l.options.maxHour,l.options.maxMinutes)),r!==null&&t!==null?i>=r&&i<=t:r!==null?i>=r:t!==null?i<=t:!0},_hasScroll:function(){var l=typeof this.ui.prop<"u"?"prop":"attr";return this.ui.height()<this.ui[l]("scrollHeight")},_move:function(l,i,r){var t=this;if(t.closed()&&t.open(l),!t.active){t.activate(l,t.viewport.children(r));return}var e=t.active[i+"All"](".ui-menu-item").eq(0);e.length?t.activate(l,e):t.activate(l,t.viewport.children(r))},register:function(l,i){var r=this,t={};t.element=n(l),!t.element.data("TimePicker")&&(t.options=n.metadata?n.extend({},i,t.element.metadata()):n.extend({},i),t.widget=r,n.extend(t,{next:function(){return r.next(t)},previous:function(){return r.previous(t)},first:function(){return r.first(t)},last:function(){return r.last(t)},selected:function(){return r.selected(t)},open:function(){return r.open(t)},close:function(){return r.close(t)},closed:function(){return r.closed(t)},destroy:function(){return r.destroy(t)},parse:function(e){return r.parse(t,e)},format:function(e,a){return r.format(t,e,a)},getTime:function(){return r.getTime(t)},setTime:function(e,a){return r.setTime(t,e,a)},option:function(e,a){return r.option(t,e,a)}}),r._setDefaultTime(t),r._addInputEventsHandlers(t),t.element.data("TimePicker",t))},_setDefaultTime:function(l){l.options.defaultTime==="now"?l.setTime(u(new Date)):l.options.defaultTime&&l.options.defaultTime.getFullYear?l.setTime(u(l.options.defaultTime)):l.options.defaultTime&&l.setTime(n.fn.timepicker.parseTime(l.options.defaultTime))},_addInputEventsHandlers:function(l){var i=this;l.element.bind("keydown.timepicker",function(r){switch(r.which||r.keyCode){case i.keyCode.ENTER:case i.keyCode.NUMPAD_ENTER:r.preventDefault(),i.closed()?l.element.trigger("change.timepicker"):i.select(l,i.active);break;case i.keyCode.UP:l.previous();break;case i.keyCode.DOWN:l.next();break;default:i.closed()||l.close(!0);break}}).bind("focus.timepicker",function(){l.open()}).bind("blur.timepicker",function(){setTimeout(function(){l.element.data("timepicker-user-clicked-outside")&&l.close()})}).bind("change.timepicker",function(){l.closed()&&l.setTime(n.fn.timepicker.parseTime(l.element.val()))})},select:function(l,i){var r=this,t=l===!1?r.instance:l;r.setTime(t,n.fn.timepicker.parseTime(i.children("a").text())),r.close(t,!0)},activate:function(l,i){var r=this,t=l===!1?r.instance:l;if(t===r.instance){if(r.deactivate(),r._hasScroll()){var e=i.offset().top-r.ui.offset().top,a=r.ui.scrollTop(),o=r.ui.height();e<0?r.ui.scrollTop(a+e):e>=o&&r.ui.scrollTop(a+e-o+i.height())}r.active=i.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-item").end()}},deactivate:function(){var l=this;l.active&&(l.active.children("a").removeClass("ui-state-hover").removeAttr("id"),l.active=null)},next:function(l){return(this.closed()||this.instance===l)&&this._move(l,"next",".ui-menu-item:first"),l.element},previous:function(l){return(this.closed()||this.instance===l)&&this._move(l,"prev",".ui-menu-item:last"),l.element},first:function(l){return this.instance===l?this.active&&this.active.prevAll(".ui-menu-item").length===0:!1},last:function(l){return this.instance===l?this.active&&this.active.nextAll(".ui-menu-item").length===0:!1},selected:function(l){return this.instance===l&&this.active?this.active:null},open:function(l){var i=this,r=l.getTime(),t=l.options.dynamic&&r;if(!l.options.dropdown)return l.element;switch(l.element.data("timepicker-event-namespace",Math.random()),n(document).bind("click.timepicker-"+l.element.data("timepicker-event-namespace"),function(g){l.element.get(0)===g.target?l.element.data("timepicker-user-clicked-outside",!1):l.element.data("timepicker-user-clicked-outside",!0).blur()}),(l.rebuild||!l.items||t)&&(l.items=i._items(l,t?r:null)),(l.rebuild||i.instance!==l||t)&&(n.fn.jquery<"1.4.2"?(i.viewport.children().remove(),i.viewport.append(l.items),i.viewport.find("a").bind("mouseover.timepicker",function(){i.activate(l,n(this).parent())}).bind("mouseout.timepicker",function(){i.deactivate(l)}).bind("click.timepicker",function(g){g.preventDefault(),i.select(l,n(this).parent())}
50)):(i.viewport.children().detach(),i.viewport.append(l.items))),l.rebuild=!1,i.container.removeClass("ui-helper-hidden ui-timepicker-hidden ui-timepicker-standard ui-timepicker-corners").show(),l.options.theme){case"standard":i.container.addClass("ui-timepicker-standard");break;case"standard-rounded-corners":i.container.addClass("ui-timepicker-standard ui-timepicker-corners");break}!i.container.hasClass("ui-timepicker-no-scrollbar")&&!l.options.scrollbar&&(i.container.addClass("ui-timepicker-no-scrollbar"),i.viewport.css({paddingRight:40}));var e=i.container.outerHeight()-i.container.height(),a=l.options.zindex?l.options.zindex:l.element.offsetParent().css("z-index"),o=l.element.offset();i.container.css({top:o.top+l.element.outerHeight(),left:o.left}),i.container.show(),i.container.css({left:l.element.offset().left,height:i.ui.outerHeight()+e,width:l.element.outerWidth(),zIndex:a,cursor:"default"});var f=i.container.width()-(i.ui.outerWidth()-i.ui.width());return i.ui.css({width:f}),i.viewport.css({width:f}),l.items.css({width:f}),i.instance=l,r?l.items.each(function(){var g=n(this),y;return n.fn.jquery<"1.4.2"?y=n.fn.timepicker.parseTime(g.find("a").text()):y=g.data("time-value"),y.getTime()===r.getTime()?(i.activate(l,g),!1):!0}):i.deactivate(l),l.element},close:function(l){var i=this;return i.instance===l&&(i.container.addClass("ui-helper-hidden ui-timepicker-hidden").hide(),i.ui.scrollTop(0),i.ui.children().removeClass("ui-state-hover")),n(document).unbind("click.timepicker-"+l.element.data("timepicker-event-namespace")),l.element},closed:function(){return this.ui.is(":hidden")},destroy:function(l){var i=this;return i.close(l,!0),l.element.unbind(".timepicker").data("TimePicker",null)},parse:function(l,i){return n.fn.timepicker.parseTime(i)},format:function(l,i,r){return r=r||l.options.timeFormat,n.fn.timepicker.formatTime(r,i)},getTime:function(l){var i=this,r=n.fn.timepicker.parseTime(l.element.val());return r instanceof Date&&!i._isValidTime(l,r)?null:r instanceof Date&&l.selectedTime?l.format(r)===l.format(l.selectedTime)?l.selectedTime:r:r instanceof Date?r:null},setTime:function(l,i,r){var t=this,e=l.selectedTime;if(typeof i=="string"&&(i=l.parse(i)),i&&i.getMinutes&&t._isValidTime(l,i)){if(i=u(i),l.selectedTime=i,l.element.val(l.format(i,l.options.timeFormat)),r)return l}else l.selectedTime=null;return(e!==null||l.selectedTime!==null)&&(l.element.trigger("time-change",[i]),n.isFunction(l.options.change)&&l.options.change.apply(l.element,[i])),l.element},option:function(l,i,r){if(typeof r>"u")return l.options[i];var t=l.getTime(),e,a;typeof i=="string"?(e={},e[i]=r):e=i,a=["minHour","minMinutes","minTime","maxHour","maxMinutes","maxTime","startHour","startMinutes","startTime","timeFormat","interval","dropdown"],n.each(e,function(o){l.options[o]=e[o],l.rebuild=l.rebuild||n.inArray(o,a)>-1}),l.rebuild&&l.setTime(t)}},n.TimePicker.defaults={timeFormat:"hh:mm p",minHour:null,minMinutes:null,minTime:null,maxHour:null,maxMinutes:null,maxTime:null,startHour:null,startMinutes:null,startTime:null,interval:30,dynamic:!0,theme:"standard",zindex:null,dropdown:!0,scrollbar:!1,change:function(){}},n.TimePicker.methods={chainable:["next","previous","open","close","destroy","setTime"]},n.fn.timepicker=function(l){if(typeof l=="string"){var i=Array.prototype.slice.call(arguments,1),r,t;return l==="option"&&arguments.length>2||n.inArray(l,n.TimePicker.methods.chainable)!==-1?r="each":r="map",t=this[r](function(){var a=n(this),o=a.data("TimePicker");if(typeof o=="object")return o[l].apply(o,i)}),r==="map"&&this.length===1?n.makeArray(t).shift():r==="map"?n.makeArray(t):t}if(this.length===1&&this.data("TimePicker"))return this.data("TimePicker");var e=n.extend({},n.TimePicker.defaults,l);return this.each(function(){n.TimePicker.instance().register(this,e)})},n.fn.timepicker.formatTime=function(l,i){var r=i.getHours(),t=r%12,e=i.getMinutes(),a=i.getSeconds(),o={hh:c((t===0?12:t).toString(),"0",2),HH:c(r.toString(),"0",2),mm:c(e.toString(),"0",2),ss:c(a.toString(),"0",2),h:t===0?12:t,H:r,m:e,s:a,p:r>11?"PM":"AM"},f=l,g="";for(g in o)o.hasOwnProperty(g)&&(f=f.replace(new RegExp(g,"g"),o[g]));return f=f.replace(new RegExp("a","g"),r>11?"pm":"am"),f},n.fn.timepicker.parseTime=function(){var l=[[/^(\d+)$/,"$1"],[/^:(\d)$/,"$10"],[/^:(\d+)/,"$1"],[/^(\d):([7-9])$/,"0$10$2"],[/^(\d):(\d\d)$/,"$1$2"],[/^(\d):(\d{1,})$/,"0$1$20"],[/^(\d\d):([7-9])$/,"$10$2"],[/^(\d\d):(\d)$/,"$1$20"],[/^(\d\d):(\d*)$/,"$1$2"],[/^(\d{3,}):(\d)$/,"$10$2"],[/^(\d{3,}):(\d{2,})/,"$1$2"],[/^(\d):(\d):(\d)$/,"0$10$20$3"],[/^(\d{1,2}):(\d):(\d\d)/,"$10$2$3"]],i=l.length;return function(r){var t=u(new Date),e=!1,a=!1,o=!1,f=!1,g=!1;if(typeof r>"u"||!r.toLowerCase)return null;r=r.toLowerCase(),e=/a/.test(r),a=e?!1:/p/.test(r),r=r.replace(/[^0-9:]/g,"").replace(/:+/g,":");for(var y=0;y<i;y=y+1)if(l[y][0].test(r)){r=r.replace(l[y][0],l[y][1]);break}return r=r.replace(/:/g,""),r.length===1||r.length===2?o=r:r.length===3||r.length===5?(o=r.substr(0,1),f=r.substr(1,2),g=r.substr(3,2)):(r.length===4||r.length>5)&&(o=r.substr(0,2),f=r.substr(2,2),g=r.substr(4,2)),r.length>0&&r.length<5&&(r.length<3&&(f=0),g=0),o===!1||f===!1||g===!1?!1:(o=parseInt(o,10),f=parseInt(f,10),g=parseInt(g,10),e&&o===12?o=0:a&&o<12&&(o=o+12),o>24?r.length>=6?n.fn.timepicker.parseTime(r.substr(0,5)):n.fn.timepicker.parseTime(r+"0"+(e?"a":"")+(a?"p":"")):(t.setHours(o,f,g),t))}}()}(jQuery);var Ud={timeFormat:"H:mm",interval:30,minTime:"9:00",maxTime:"18:00",dynamic:!1,dropdown:!0,scrollbar:!1,zindex:1e3},Oi={dateFormat:"yy-mm-dd",firstDay:1,minDate:1,beforeShowDay:$.datepicker.noWeekends};$(document).ready(function(){var n="ct/kWh";if($("#electricity_price_val").html($("#electricity_price_range").val()+" "+n),$("#gas_price_val").html($("#gas_price_range").val()+" "+n),window.language_code=="de"&&(Oi.monthNames=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],Oi.dayNamesMin=["So","Mo","Di","Mi","Do","Fr","Sa"],Oi.prevText="Zurück",Oi.nextText="Vor"),$("input[name=meeting_time_from_1], input[name=meeting_time_to_1]").timepicker(Ud),$("input[name=meeting_date_1]").datepicker(Oi),$("input.timepicker, input.datepicker").keydown(function(i){i.preventDefault()}),typeof gage_min_value<"u"&&typeof gage_max_value<"u"&&typeof thresholds<"u")var s=new JustGage({id:"gauge",min:gage_min_value,max:gage_max_value,hideMinMax:!0,decimals:2,gaugeWidthScale:.6,relativeGaugeSize:!0,pointer:!0,textRenderer:function(i){if(i<thresholds[1].lo)return thresholds[0].res_label;if(thresholds[1].lo<=i&&i<=thresholds[1].hi)return thresholds[1].res_label;if(thresholds[2].lo<=i&&i<=thresholds[2].hi)return thresholds[2].res_label;if(thresholds[3].lo<=i&&i<=thresholds[3].hi)return thresholds[3].res_label;if(i>=thresholds[4].lo)return thresholds[4].res_label},customSectors:{ranges:thresholds}});$("#heating_demand, #fire_protection").on("change",function(){$(this.parentElement).removeClass("invalid")}),$(".range_slider").on("input change",function(){var i=$(this).next("span"),r=this.offsetWidth/(this.max-this.min),t=(this.valueAsNumber-this.min)*r-i[0].offsetWidth/2,e=3.1,a=3.9;$(this).hasClass("electricity_slider")&&(e=14,a=16),t<-15&&(t=-15),i.html(this.value+" "+n),i.css("left",t+"px");var o="green";this.value>a?o="red":this.value>e&&this.value<=a&&(o="orange"),$(this).attr("data-colour",o);var f=(this.value-this.min)/(this.max-this.min)*100;this.style.background="linear-gradient(to right, "+o+" 0%, "+o+" "+f+"%, #e6e6e6 "+f+"%, #e6e6e6 100%)"}),$("#btn_calculate").on("click",function(i){i.preventDefault();var r=$("#gas_price_range").val(),t=$("#gas_price_range").attr("max"),e=$("#electricity_price_range").val(),a=$("#electricity_price_range").attr("max"),o=$("#heating_demand").val(),f=$("#fire_protection").val();if(f||$("#fire_protection").parents(".cost_benefit_dropdown").addClass("invalid"),o||$("#heating_demand").parents(".cost_benefit_dropdown").addClass("invalid"),r&&e&&o&&f){$(".cost_benefit_results").show();var g=$("#fire_protection>option:selected").attr("data-size"),y=$("#fire_protection>option:selected").attr("data-duration"),E=r*250*8640,k=t*250*8640,D=e*100*8640,R=a*250*8640,b=r/.9*100*8640*o,p=t/.9*100*8640,O=g*y*e*365,N=65*17*a*365,C=2e3,B=[{bar_el:$(".progress_bar.bar_gas"),value:E/100,width:E/k*100+"%",sign:"€"},{bar_el:$(".progress_bar.bar_power"),value:D/100,width:D/R*100+"%",sign:"€"},{bar_el:$(".progress_bar.bar_heat"),value:b/100,width:b/p*100+"%",sign:"€"},{bar_el:$(".tab_conventional_methods .progress_bar.bar_costs"),value:O/100,width:O/N*100+"%",sign:"€"},{bar_el:$(".tab_fuel_cell .progress_bar.bar_costs"),value:-(O/100),width:O/N*100+"%",sign:"€"},{bar_el:$(".tab_conventional_methods .progress_bar.bar_co"),value:40,width:"60%",sign:"%",before_val:"+"},{bar_el:$(".tab_fuel_cell .progress_bar.bar_co"),value:-40,width:"30%",sign:"%"}];B.forEach(function(W){var U=W.bar_el.find("span.progress_value"),ne=W.before_val?W.before_val:"";W.bar_el.animate({width:W.width},C),l(c(U.html()),W.value,C,U,W.sign,ne)});var F=(D+b+O-E)/100;typeof s<"u"&&s.refresh(F);var V=$(".cost_benefit_results")[0];V.scrollIntoView({behavior:"smooth"});var te={gas_price:r,electricity_price:e,heating_demand:o,fire_protection_requirement:f,end_result:F};$.ajax({type:"POST",url:document.location.href,data:te,headers:{"X-CSRFToken":We("csrftoken")}})}});function c(i){return Number(i.replace(/[^0-9-]+/g,""))}function u(i){for(;/(\d+)(\d{3})/.test(i.toString());)i=i.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1.");return i}function l(i,r,t,e,a,o){$({progress_val:i}).animate({progress_val:r},{duration:t,easing:"swing",step:function(){e.text(o+u(Math.round(this.progress_val))+a)},complete:function(){e.text(o+u(Math.round(this.progress_val))+a)}})}});document.addEventListener("DOMContentLoaded",function(){var n=[].slice.call(document.querySelectorAll("img.lazy_img")),s=[].slice.call(document.querySelectorAll("iframe[data-src]")),c=[].slice.call(document.querySelectorAll(".bg_lazy"));if("IntersectionObserver"in window){let u=new IntersectionObserver(function(r,t){r.forEach(function(e){if(e.isIntersecting){let a=e.target;a.src=a.dataset.src,a.classList.remove("lazy_img"),u.unobserve(a)}})});
50n.forEach(function(r){u.observe(r)});let l=new IntersectionObserver(function(r,t){r.forEach(function(e){if(e.isIntersecting){let a=e.target;a.src=a.dataset.src,l.unobserve(a)}})});s.forEach(function(r){l.observe(r)});let i=new IntersectionObserver(function(r,t){r.forEach(function(e){if(e.isIntersecting){let a=e.target;a.classList.remove("bg_lazy"),i.unobserve(a)}})});c.forEach(function(r){i.observe(r)})}});function Kd(...n){if(window.ga&&ga.loaded)return ga("send",...n)}window.sendAnalytic=Kd;window.flexibility=nd;window.justgage=dd;export{Gd as __vite_legacy_guard};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.