UNPKG

vue-carousel-3d

Version:

Beautiful, flexible and touch supported 3D Carousel for Vue.js

3 lines 113 kB
System.register(["./vendor.js"],(function(t){"use strict";var e,n,o,i,r,s,a,c,l,u,d,f;return{setters:[function(t){e=t.S,n=t.q,o=t.o,i=t.f,r=t.h,s=t.a,a=t.c,c=t.g,l=t.b,u=t.n,d=t.r,f=t.T}],execute:function(){t({$:function t(e,n){const o=e.nextElementSibling;if(o instanceof HTMLElement)return o.classList.contains(n)?o:t(o,n);return null},A:function(){return Pe},B:Y,C:an,D:cn,E:$t,F:sn,G:nn,H:ln,I:async function(t){if(dn.get(t))return;const e=t.hasAttribute("data-retain-focus"),n=c(t,"data-url"),o=new AbortController;dn.set(t,o);try{const i=await fetch(n,{signal:o.signal,headers:{Accept:"text/html","X-Requested-With":"XMLHttpRequest"}});if(!i.ok)return;const r=await i.text();return He(t,e)?void console.warn("Failed to update content with interactions",t):(fn[n]=r,mn(t,r,e))}catch(i){}finally{dn.delete(t)}},J:De,K:Tt,M:S,N:E,O:function(t){return new URLSearchParams(new FormData(t)).toString()},P:gn,Q:function(t){void 0===t.interactive&&(t.interactive=!0);window.ga("send","event",t.category,t.action,t.label,t.value,{nonInteraction:!t.interactive})},R:function(t,e){for(const n in e){const o=e[n],i=t.elements.namedItem(n);i instanceof HTMLInputElement?i.value=o:i instanceof HTMLTextAreaElement&&(i.value=o)}},S:async function(t){return pn.get(t)||vn(await(e=t,n="codeEditor:ready",new Promise(t=>{e.addEventListener(n,t,{once:!0})})));var e,n},T:async function(){await async function(){const t=document.querySelector("link[rel=sso-session]"),e=document.querySelector("meta[name=sso-expires-around]");if(!(t instanceof HTMLLinkElement))return!0;if(!function(t){if(!(t instanceof HTMLMetaElement))return!0;const e=parseInt(t.content);return(new Date).getTime()/1e3>e}(e))return!0;const n=t.href,o=await g(n,{headers:{Accept:"application/json"}});return await o.json()}()||(Ln||(Ln=async function(){const t=l(document,"link[rel=sso-modal]",HTMLLinkElement),e=await cn({content:v(document,t.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(t){t.error?(n=!1,En(n)):(n=!0,En(n),function(t){const e=document.querySelector("meta[name=sso-expires-around]");e&&e.setAttribute("content",t)}(t.expiresAround),window.focus()),o.ssoComplete=null},await function(t){return new Promise(e=>{t.addEventListener("dialog:remove",e,{once:!0})})}(e),!n)throw new Error("sso prompt canceled")}().then(kn).catch(kn)),await Ln)},U:function(t,e){return async function n(o){const i=await g(t,e);if(200===i.status)return i;if(202===i.status)return await new Promise(t=>setTimeout(t,o)),n(1.5*o);throw new ResponseError$1(i)}(1e3)},V:bn,W:function(t,e){t.removeEventListener("keydown",D),t.removeEventListener("keyup",P),t.removeEventListener("input",N);const n=$.get(t);n&&(null!=n.timer&&n.listener===e&&clearTimeout(n.timer),$.delete(t))},X:function(t){Xt(t),Jt(t);const e=Gt.pop();e&&Wt(e)},Y:function(t){const e=ee();e&&Gt.push(e);Wt(t)},Z:Jt,_:function(){return rt},a:b,a$:qt,a0:Bn,a1:async function(){var t;if(await(null===(t=window.PublicKeyCredential)||void 0===t?void 0:t.isUserVerifyingPlatformAuthenticatorAvailable()))return"supported";return"unsupported"},a2:zn,a3:async function(t){return function(t){const e=t;return e.clientExtensionResults=t.getClientExtensionResults(),_n(Hn,Vn,e)}(await navigator.credentials.get(function(t){return _n(Mn,Rn,t)}(t)))},a4:G,a5:function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},a6:Un,a7:function(){return new Promise(window.requestAnimationFrame)},a8:Xn,a9:un,aA:function(t,e){return t.score>e.score?-1:t.score<e.score?1:t.text<e.text?-1:t.text>e.text?1:0},aB:function(t,e){let n=Oo(t,e);if(n&&-1===e.indexOf("/")){const o=t.substring(t.lastIndexOf("/")+1);n+=Oo(o,e)}return n},aC:Me,aD:function(t){const e=J(t);e&&Ce(e)},aF:function(t,e){window.ga("provide",t,e)},aG:function(t){window.ga("set",{location:t})},aH:function(){return`${window.location.protocol}//${window.location.host}${function(){const t=Io("meta[name=analytics-location]");return t?t.content:window.location.pathname}()+function(){const t=Io("meta[name=analytics-location-query-strip]");let e="";t||(e=window.location.search);const n=Io("meta[name=analytics-location-params]");n&&(e+=(e?"&":"?")+n.content);for(const o of document.querySelectorAll("meta[name=analytics-param-rename]")){const t=o.content.split(":",2);e=e.replace(new RegExp(`(^|[?&])${t[0]}($|=)`,"g"),`$1${t[1]}$2`)}return e}()}`},aI:function(t){window.ga("set",{title:t})},aJ:function(){return Io("meta[name=analytics-location]")?"(masked)":document.title},aK:function(t){try{return sessionStorage.getItem(t)}catch(e){return null}},aL:function(t){try{sessionStorage.removeItem(t)}catch(e){}},aM:function(t,e){window.ga("set",t,e)},aN:function(t,e={page:""}){e.page=t||"",window.ga("send","pageview",e)},aO:function(t,e,n={}){window.ga("create",t,e,n),window.ga("set","transport","sendBeacon"in window.navigator?"beacon":"xhr")},aP:function(t,e={}){window.ga(()=>{window.ga("require",t,e)})},aQ:function(t,e){try{sessionStorage.setItem(t,e)}catch(n){}},aR:So,aS:Ct,aT:function(t){const e=t.match(Ro);if(e)return void Bo(Uo(e[1],e[2]));let n,o;for(let i=0,r=zo.length;i<r;i++){const[e,o]=zo[i];if(n=t.match(o),n){let t=null,o=null;switch(e){case"organization":t=n[1],o=n[2];break;case"repository":t=`${n[1]}/${n[2]}`,o=n[3]}return void(t&&o&&Bo(Wo(t,o)))}}for(let i=0,r=Vo.length;i<r;i++)if(o=t.match(Vo[i]),o)return void Bo(Fo(o[1],o[2]))},aU:_,aV:function(){const t=R[F()-1];if(t)return t.url},aW:function(){const t=R[F()+1];if(t)return t.url},aX:function(t,e){et.set(t,e),n=e,n.catch(()=>{});var n},aY:jt,aZ:A,a_:C,aa:He,ab:function(t){if(to(),!t)return;const e=document.createElement("div");e.innerHTML=t,document.body&&document.body.append(e);const n=e.querySelector("button");n&&n.addEventListener("click",to,{once:!0});document.addEventListener("keydown",t=>{"Escape"===t.key&&to()&&t.stopImmediatePropagation()}),Qn=e},ac:function(t,e){const n=a(t,"[data-notification-id]");e.hasAttribute("data-status")&&function(t,e){t.classList.toggle("notification-archived","archived"===e),t.classList.toggle("notification-unread","unread"===e),t.classList.toggle("notification-read","read"===e)}(n,c(e,"data-status"));e.hasAttribute("data-subscription-status")&&function(t,e){t.classList.toggle("notification-unsubscribed","unsubscribed"===e)}(n,c(e,"data-subscription-status"));e.hasAttribute("data-starred-status")&&function(t,e){t.classList.toggle("notification-starred","starred"===e)}(n,c(e,"data-starred-status"))},ad:function(t){const e=t.getAttribute("data-hydro-click-payload")||"",n=t.getAttribute("data-hydro-click-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";Ct(e,n,o)},ae:async function(t){const e=(n=t,"low"===n||"medium"===n||"high"===n||"two_factor"===n?n:null);var n;return"true"===await(await g(`/sessions/in_sudo?requested_access_level=${e}`,{headers:{accept:"application/json"}})).text()||async function(){if(eo)return!1;eo=!0,no=!1;const t=(await async function(){const t=l(document,"link[rel=sudo-modal]",HTMLLinkElement),e=document.querySelector(".js-sudo-prompt");if(e instanceof HTMLTemplateElement)return e;if(t){const e=await v(document,function(t){const e=new URL(t,window.location.origin),n=new URLSearchParams(e.search.slice(1));return n.set("webauthn-support",Bn()),e.search=n.toString(),e.toString()}(t.href));return document.body.appendChild(e),l(document,".js-sudo-prompt",HTMLTemplateElement)}throw new Error("couldn't load sudo prompt")}()).content.cloneNode(!0),e=await cn({content:t});return await new Promise(t=>{e.addEventListener("dialog:remove",(function(){eo=!1,t()}),{once:!0})}),no}()},af:_e,ag:oo,ah:function(t,e=!1){let n=document.domain;if(null==n)throw new Error("Unable to get document domain");n.endsWith(".github.com")&&(n="github.com");const o=(new Date).getTime(),i=new Date(o-1).toUTCString(),r="https:"===location.protocol?"; secure":"",s=`; expires=${i}`;!1===e&&(n=`.${n}`);try{document.cookie=`${t}=''; path=/; domain=${n}${s}${r}`}catch(a){}},ai:function(t){so(function(t){return(t.getAttribute("aria-label")||t.innerText||"").trim()}(t))},aj:async function(t){return function(t){const e=t;return e.clientExtensionResults=t.getClientExtensionResults(),_n(Hn,Nn,e)}(await navigator.credentials.create(function(t){return _n(Mn,Pn,t)}(t)))},ak:function(){return Promise.resolve()},al:Fn,an:function(t){const e=bo(t),n=function(t){const e=t.match(/(file-.+?-)L\d+?/i);return e?e[1]:""}(t);return{blobRange:e,anchorPrefix:n}},ao:bo,ap:function({anchorPrefix:t,blobRange:e}){return e?`#${t}${function(t){const{start:e,end:n}=ko(t);return null!=e.column&&null!=n.column?`L${e.line}C${e.column}-L${n.line}C${n.column}`:e.line===n.line?`L${e.line}`:`L${e.line}-L${n.line}`}(e)}`:"#"},aq:function(t,e){const[n,o]=Lo(t.start,!0,e),[i,r]=Lo(t.end,!1,e);if(!n||!i)return;let s=o,a=r;-1===s&&(s=0);-1===a&&(a=i.childNodes.length);if(!n.ownerDocument)throw new Error("DOMRange needs to be inside document");const c=n.ownerDocument.createRange();return c.setStart(n,s),c.setEnd(i,a),c},ar:function(t,e){e.appendChild(t.extractContents()),t.insertNode(e)},as:function(){let t="";const e=oo("_octo"),n=[];for(const o of e){const e=o.value.split(".");if("GH1"===e.shift()&&e.length>1){const o=(e.shift()||"").split("-");1===o.length&&(o[1]="1");const i=[Number(o[0]),Number(o[1])];t=e.join("."),n.push([i,t])}}t="",n.length>0&&(t=String(n.sort().reverse()[0][1]));return t},at:function(){const t=(new Date).getTime(),e=`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(t/1e3)}`,n=`GH1.1.${e}`,o=new Date(t+31536e6).toUTCString();return io("_octo",n,o),e},au:async function(t,e,n=!1){const o=dn.get(t);null==o||o.abort();const i=t.closest(".js-updatable-content[data-url], .js-updatable-content [data-url]");!n&&i&&i===t&&(fn[c(i,"data-url")]=e);return mn(t,e)},av:function(t,e){const n=t.selectionEnd||0,o=t.value.substring(0,n),i=t.value.substring(n),r=""===t.value||o.match(/\n$/)?"":"\n";t.value=o+r+e+i,t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),t.focus()},aw:function(t,e,n){let o=t.value.substring(0,t.selectionEnd||0),i=t.value.substring(t.selectionEnd||0);o=o.replace(e,n),i=i.replace(e,n),t.value=o+i,t.selectionStart=o.length,t.selectionEnd=o.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1}))},ax:io,ay:so,az:function(t,e,n){return[...$o(t,t=>{const n=e(t);return null!=n?[t,n]:null})].sort((t,e)=>n(t[1],e[1])).map(([t])=>t)},b:v,b0:J,b1:async function(t,e,n=1/0,o){const i=o?Wn(o):null;for(let s=0;s<e;s++)try{const e=i?Promise.race([t(),i]):t();return await e}catch(Mn){if("AbortError"===Mn.name)throw Mn;if(s===e-1)throw Mn;const i=1e3*Math.pow(2,s),a=(r=.1*i,Math.floor(Math.random()*Math.floor(r)));await Fn(Math.min(n,i+a),o)}var r;throw new Error("retry failed")},b2:function*(t,e){for(let n=0;n<t.length;n+=e)yield t.slice(n,n+e)},b3:function(t){const e=[];return function(n){e.push(n),1===e.length&&queueMicrotask(()=>{const n=[...e];e.length=0,t(n)})}},b4:qo,b5:function(t){const e=t.getAttribute("data-details-container")||".js-details-container",n=a(t,e).classList;return n.contains("Details--on")||n.contains("open")},b6:function(){if("Intl"in window)try{return(new window.Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}},b8:Z,b9:To,ba:function(t){const e=t.querySelectorAll(".js-characters-remaining-container");for(const n of e){To(l(n,".js-characters-remaining-field",HTMLInputElement))}},bb:wo,bc:en,bd:function(t,e){Jt(t),Kt(t,e)},be:Ko,bf:Uo,bg:Fo,bh:Wo,bi:function(t,e,n){if(e){const o=t.innerHTML.trim().match(n||function(t){const e=t.toLowerCase().split("");let n="";for(let o=0;o<e.length;o++){const t=e[o].replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");n+=0===o?`(.*)(${t})`:`([^${t}]*?)(${t})`}return new RegExp(`${n}(.*?)$`,"i")}(e));if(!o)return;let i=!1;const r=[];for(let t=1;t<o.length;++t){const e=o[t];e&&(t%2==0?i||(r.push("<mark>"),i=!0):i&&(r.push("</mark>"),i=!1),r.push(e))}t.innerHTML=r.join("")}else{const e=t.innerHTML.trim(),n=e.replace(/<\/?mark>/g,"");e!==n&&(t.innerHTML=n)}},bj:No,bk:function(t){const e=xo(t),n=Un(t.value);return e-n<0},d:g,e:function(t){const e=$.get(t);e&&e.listener.call(null,t)},f:async function(t,e){const n=p(t,e);n.headers.set("Accept","application/json");const o=await self.fetch(n),i=new ResponseError$1(o);return h(o,i),o.json()},g:function(t,e,n={wait:null}){$.set(t,{keypressed:!1,inputed:!1,timer:void 0,listener:e,wait:null!=n.wait?n.wait:100}),t.addEventListener("keydown",D),t.addEventListener("keyup",P),t.addEventListener("input",N)},h:Kt,i:Wt,j:Xt,k:T,l:K,m:y,n:B,o:x,p:ct,q:ce,r:H,s:Ce,t:Mt,u:function(t,e){if("boolean"==typeof e){if(!(t instanceof HTMLInputElement))throw new TypeError("only checkboxes can be set to boolean value");t.checked=e}else{if("checkbox"===t.type)throw new TypeError("checkbox can't be set to string value");t.value=e}M(t,"change",!1)},v:$e,w:m,x:Ie,y:Be,z:function(){window.history.replaceState(null,"","#"),Ye()}});class ResponseError extends Error{constructor(t,e){super(`${t} for HTTP ${e.status}`),this.response=e}}function m(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}class ResponseError$1 extends Error{constructor(t){super(),this.response=t,this.framesToPop=1}}function h(t,e){if(t.status>=200&&t.status<300)return t;{const n=t.statusText?` ${t.statusText}`:"";throw e.message=`HTTP ${t.status}${n}`,e}}function p(t,e){const n=e?Object.assign({},e):{},o=new Request(t,n);return o.headers.append("X-Requested-With","XMLHttpRequest"),o}async function g(t,e){const n=await self.fetch(p(t,e));return h(n,new ResponseError$1(n)),n}async function v(t,e,n){const o=await self.fetch(p(e,n));return h(o,new ResponseError$1(o)),function(t,e){const n=e.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new ResponseError(`expected response with text/html, but was ${n}`,e);const o=e.headers.get("x-html-safe");if(!o)throw new ResponseError("missing X-HTML-Safe nonce",e);if(o!==t)throw new ResponseError("response X-HTML-Safe nonce did not match",e)}(function(t){const e=t.querySelector("meta[name=html-safe-nonce]");if(null==e||!(e instanceof HTMLMetaElement))throw new Error("could not find html-safe-nonce on document");const n=e.content;if(n)return n;throw new Error("could not find html-safe-nonce on document")}(t),o),m(t,await o.text())}function w(...t){return JSON.stringify(t,(t,e)=>"object"==typeof e?e:String(e))}function y(t,e={}){const{hash:n=w,cache:o=new Map}=e;return function(...e){const i=n.apply(this,e);if(o.has(i))return o.get(i);const r=t.apply(this,e);return o.set(i,r),r instanceof Promise?r.catch(t=>{throw o.delete(i),t}):r}}class Subscription{constructor(t){this.closed=!1,this.unsubscribe=()=>{t(),this.closed=!0}}}function b(t,e,n,o={capture:!1}){return t.addEventListener(e,n,o),new Subscription(()=>{t.removeEventListener(e,n,o)})}function E(...t){return new Subscription(()=>{for(const e of t)e.unsubscribe()})}let L=!1;const k=new e;function j(t){const e=t.target;if(e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE)for(const n of k.matches(e))n.data.call(null,e)}function x(t,e){L||(L=!0,document.addEventListener("focus",j,!0)),k.add(t,e),document.activeElement instanceof HTMLElement&&document.activeElement.matches(t)&&e(document.activeElement)}function T(t,e,n){function o(e){const i=e.currentTarget;i&&(i.removeEventListener(t,n),i.removeEventListener("blur",o))}x(e,(function(e){e.addEventListener(t,n),e.addEventListener("blur",o)}))}function S(t,e){function n(t){const{currentTarget:o}=t;o&&(o.removeEventListener("input",e),o.removeEventListener("blur",n))}x(t,(function(t){t.addEventListener("input",e),t.addEventListener("blur",n)}))}function A(t){const e=t.closest("form");if(!(e instanceof HTMLFormElement))return;let n=C(e);if(t.name){const o=t.matches("input[type=submit]")?"Submit":"",i=t.value||o;n||(n=document.createElement("input"),n.type="hidden",n.classList.add("is-submit-button-value"),e.prepend(n)),n.name=t.name,n.value=i}else n&&n.remove()}function C(t){const e=t.querySelector("input.is-submit-button-value");return e instanceof HTMLInputElement?e:null}function M(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:n}))}function H(t,e){e&&(!function(t,e){if(!(t instanceof HTMLFormElement))throw new TypeError("The specified element is not of type HTMLFormElement.");if(!(e instanceof HTMLElement))throw new TypeError("The specified element is not of type HTMLElement.");if("submit"!==e.type)throw new TypeError("The specified element is not a submit button.");if(!t||t!==e.form)throw new Error("The specified element is not owned by the form element.")}(t,e),A(e)),M(t,"submit",!0)&&t.submit()}function _(t){if(!(t instanceof HTMLElement))return!1;const e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n||t.isContentEditable}const q=t("c","interactive"===document.readyState||"complete"===document.readyState?Promise.resolve():new Promise(t=>{document.addEventListener("DOMContentLoaded",()=>{t()})})),O=t("L","complete"===document.readyState?Promise.resolve():new Promise(t=>{window.addEventListener("load",t)})),$=new WeakMap;function I(t){const e=$.get(t);e&&(null!=e.timer&&clearTimeout(e.timer),e.timer=window.setTimeout(()=>{null!=e.timer&&(e.timer=null),e.inputed=!1,e.listener.call(null,t)},e.wait))}function D(t){const e=t.currentTarget,n=$.get(e);n&&(n.keypressed=!0,null!=n.timer&&clearTimeout(n.timer))}function P(t){const e=t.currentTarget,n=$.get(e);n&&(n.keypressed=!1,n.inputed&&I(e))}function N(t){const e=t.currentTarget,n=$.get(e);n&&(n.inputed=!0,n.keypressed||I(e))}const R=[];let V,z=0;function B(){return V}function U(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(Mn){return 0}}function F(){return U()-1+z}function W(t){V=t;const e=location.href;R[F()]={url:e,state:V},R.length=U(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}function X(){return(new Date).getTime()}function G(t,e,n){z=0;const o=Object.assign({},{_id:X()},t);history.pushState(o,e,n),W(o)}function K(t,e,n){const o=Object.assign({},{_id:B()._id},t);history.replaceState(o,e,n),W(o)}function J(t,e=location.hash){return Y(t,Z(e))}function Y(t,e){return""===e?null:t.getElementById(e)||t.getElementsByName(e)[0]}function Z(t){try{return decodeURIComponent(t.slice(1))}catch(e){return""}}V=function(){const t={_id:(new Date).getTime()};return W(t),t}(),window.addEventListener("popstate",(function(t){const e=t.state;e&&e._id&&(e._id<(B()._id||NaN)?z--:z++,W(e))}),!0),window.addEventListener("hashchange",(function(){if(U()>R.length){const t={_id:X()};history.replaceState(t,"",location.href),W(t)}}),!0);const Q=y((function(){var t,e;return((null===(e=null===(t=document.head)||void 0===t?void 0:t.querySelector('meta[name="enabled-features"]'))||void 0===e?void 0:e.content)||"").split(",")}));const tt=t("am",y((function(t){return-1!==Q().indexOf(t)})));const et=new WeakMap;function nt(t,e){const o=function(t,e){const o=n(t,"link[rel=pjax-prefetch]",HTMLLinkElement);for(const n of o)if(n.href===e)return n;return null}(t,e);if(o){const t=et.get(o);return o.remove(),et.delete(o),t||null}return null}const ot={};function it(){const t=ot[document.location.pathname];if(!t)return;const e=document.head;for(const n of document.querySelectorAll("head [data-pjax-transient]"))n.remove();for(const n of t)n.matches("title, script, link[rel=stylesheet]")?n.matches("link[rel=stylesheet]")&&e.append(n):(n.setAttribute("data-pjax-transient",""),e.append(n))}(async()=>{await q,ot[document.location.pathname]=Array.from(document.querySelectorAll("head [data-pjax-transient]"))})(),document.addEventListener("pjax:beforeReplace",(function(t){const e=t.detail.contents||[];for(let n=0;n<e.length;n++){const t=e[n];if(t instanceof Element)if("pjax-head"===t.id)ot[document.location.pathname]=Array.from(t.children),e[n]=null;else if("js-flash-container"===t.id){const o=document.querySelector("#js-flash-container");o&&o.replaceWith(t),e[n]=null}}}));let rt,st=null;function at(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}async function ct(t){const e=Object.assign({push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},t);e.requestUrl=e.url;const o=pt(e.url),i=o.hash,r=e.container,s=gt(r);"GET"===e.type&&(o.search+=`${o.search?"&":""}_pjax=${encodeURIComponent(s)}`,e.url=o.toString()),rt||(rt={id:mt(),url:window.location.href,title:document.title,container:s,fragment:e.fragment},K(rt,rt.title,rt.url));let a=tt("JS_HTTP_CACHE_HEADERS")?null:nt(r,e.requestUrl);if(!a){null==st||st.abort();const{signal:t}=st=new AbortController;a=g(e.url,{signal:t,method:e.type,body:e.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":s}})}var c,l;let u;!0===e.push&&!0!==e.replace&&(c=rt.id,l=ht(r),bt[c]=l,Lt.push(c),kt(Et,0),kt(Lt,20),G(null,"",e.requestUrl)),at(r,"pjax:start",{url:e.url}),at(r,"pjax:send");try{u=await a}catch(k){let t=e.requestUrl;k instanceof ResponseError$1&&(t=yt(k.response,t));const n=at(r,"pjax:error");return"GET"===e.type&&n&&lt(t),at(r,"pjax:complete"),void at(r,"pjax:end")}const d=rt,f=function(){for(const t of document.getElementsByTagName("meta")){const e=t.getAttribute("http-equiv");if(e&&"X-PJAX-VERSION"===e.toUpperCase())return t.content}return null}(),h=u.headers.get("X-PJAX-Version"),p=function(t,e,n){const o={url:yt(e,n.requestUrl),title:""},i=/<html/i.test(t);if("text/html"!==(e.headers.get("Content-Type")||"").split(";",1)[0].trim())return o;let r,s;if(i){const e=t.match(/<head[^>]*>([\s\S.]*)<\/head>/i),n=t.match(/<body[^>]*>([\s\S.]*)<\/body>/i);r=e?Array.from(m(document,e[0]).childNodes):[],s=n?Array.from(m(document,n[0]).childNodes):[]}else r=s=Array.from(m(document,t).childNodes);if(0===s.length)return o;const a=vt(r,"title",HTMLTitleElement);let c;if(o.title=a.length>0&&a[a.length-1].textContent||"",n.fragment){if("body"===n.fragment)c=s;else{const t=vt(s,n.fragment,Element);c=t.length>0?[t[0]]:[]}if(c.length&&("body"===n.fragment?o.contents=c:o.contents=c.flatMap(t=>Array.from(t.childNodes)),!o.title)){const t=c[0];t instanceof Element&&(o.title=t.getAttribute("title")||t.getAttribute("data-title")||"")}}else i||(o.contents=s);if(o.contents){o.contents=o.contents.filter((function(t){return!(t instanceof Element)||!t.matches("title")}));for(const e of o.contents)if(e instanceof Element)for(const t of e.querySelectorAll("title"))t.remove();const t=vt(o.contents,"script[src]",HTMLScriptElement);for(const e of t)e.remove();o.scripts=t,o.contents=o.contents.filter(e=>-1===t.indexOf(e))}o.title&&(o.title=o.title.trim());return o}(await u.text(),u,e),{contents:v}=p,w=pt(p.url);if(i&&(w.hash=i,p.url=w.href),f&&h&&f!==h)return void lt(p.url);if(!v)return void lt(p.url);rt={id:null!=e.id?e.id:mt(),url:p.url,title:p.title,container:s,fragment:e.fragment},!0!==e.push&&!0!==e.replace||K(rt,p.title,p.url);const y=document.activeElement,b=null!=e.container&&e.container.contains(y);if(y instanceof HTMLElement&&b)try{y.blur()}catch(Mn){}p.title&&(document.title=p.title),at(r,"pjax:beforeReplace",{contents:v,state:rt,previousState:d}),wt(r,v),it();const E=n(r,"input[autofocus], textarea[autofocus]").pop();E&&document.activeElement!==E&&E.focus(),p.scripts&&function(t){const e=n(document,"script[src]",HTMLScriptElement);for(const n of t){const{src:t}=n;if(e.some(e=>e.src===t))continue;const o=document.createElement("script"),i=n.getAttribute("type");i&&(o.type=i),o.src=t,document.head&&document.head.appendChild(o)}}(p.scripts);let L=e.scrollTo;if(i){const t=J(document,i);if(t){L=t.getBoundingClientRect().top+window.pageYOffset}}"number"==typeof L&&window.scrollTo(window.pageXOffset,L),at(r,"pjax:success"),at(r,"pjax:complete"),at(r,"pjax:end")}function lt(t){rt&&K(null,"",rt.url),window.location.replace(t)}let ut=!0;const dt=window.location.href,ft=window.history.state;function mt(){return(new Date).getTime()}function ht(t){const e=t.cloneNode(!0);return[gt(t),Array.from(e.childNodes),Date.now()]}function pt(t){const e=document.createElement("a");return e.href=t,e}function gt(t){if(t.id)return`#${t.id}`;throw new Error("pjax container has no id")}function vt(t,e,o){let i=[];for(const r of t)r instanceof Element&&(r instanceof o&&r.matches(e)&&i.push(r),i=i.concat(n(r,e,o)));return i}function wt(t,e){t.innerHTML="";for(const n of e)null!=n&&t.appendChild(n)}function yt(t,e){const n=t.headers.get("X-PJAX-URL");return n?((o=pt(n)).search=o.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),o.href.replace(/\?($|#)/,"$1")):e;var o}ft&&ft.container&&(rt=ft),"state"in window.history&&(ut=!1);const bt={},Et=[],Lt=[];function kt(t,e){for(;t.length>e;){const e=t.shift();if(null==e)return;delete bt[e]}}function jt(t){var e,n;const o=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="expected-hostname"]'))||void 0===n?void 0:n.content;return!!o&&o.replace(/\.$/,"").split(".").slice(-2).join(".")!==t.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".")}window.addEventListener("popstate",(function(t){ut||null==st||st.abort();const e=rt,n=t.state;let o=null;if(n&&n.container){if(ut&&dt===n.url)return;if(e){if(e.id===n.id)return;o=e.id<n.id?"forward":"back"}const[t,i,r]=bt[n.id]||[],s=document.querySelector(t||n.container);if(s instanceof HTMLElement){e&&function(t,e,n){let o,i;bt[e]=n,"forward"===t?(o=Lt,i=Et):(o=Et,i=Lt);o.push(e);const r=i.pop();r&&delete bt[r];kt(o,20)}(o,e.id,ht(s)),at(s,"pjax:popstate",{state:n,direction:o,cachedAt:r});const t={id:n.id,url:n.url,container:s,push:!1,fragment:n.fragment||"",scrollTo:!1};i?(at(s,"pjax:start"),rt=n,n.title&&(document.title=n.title),at(s,"pjax:beforeReplace",{contents:i,state:n,previousState:e}),wt(s,i),it(),at(s,"pjax:end")):ct(t),s.offsetHeight}else lt(location.href)}ut=!1}));let xt=[];function Tt(t,e=!1){var n,o;void 0===t.timestamp&&(t.timestamp=(new Date).getTime()),t.loggedIn=!!(null===(o=null===(n=document.head)||void 0===n?void 0:n.querySelector('meta[name="user-login"]'))||void 0===o?void 0:o.content),xt.push(t),e?At():async function(){await O,null==St&&(St=window.requestIdleCallback(At))}()}let St=null;function At(){var t,e;if(St=null,jt(document))return;const n=null===(e=null===(t=document.head)||void 0===t?void 0:t.querySelector('meta[name="browser-stats-url"]'))||void 0===e?void 0:e.content;if(!n)return;const o=JSON.stringify({stats:xt});navigator.sendBeacon&&navigator.sendBeacon(n,o),xt=[]}function Ct(t,e,n){const o={hydroEventPayload:t,hydroEventHmac:e,visitorPayload:"",visitorHmac:"",hydroClientContext:n},i=document.querySelector("meta[name=visitor-payload]");i instanceof HTMLMetaElement&&(o.visitorPayload=i.content);const r=document.querySelector("meta[name=visitor-hmac]")||"";r instanceof HTMLMetaElement&&(o.visitorHmac=r.content),Tt(o,!0)}function Mt(t){Ct(t.getAttribute("data-hydro-view")||"",t.getAttribute("data-hydro-view-hmac")||"",t.getAttribute("data-hydro-client-context")||"")}function Ht(t){let e=t;const n=e.ownerDocument;if(!n)return;if(!e.offsetParent)return;const o=n.defaultView.HTMLElement;if(e!==n.body){for(;e!==n.body;){if(!(e.parentElement instanceof o))return;e=e.parentElement;const{position:t,overflowY:n,overflowX:i}=getComputedStyle(e);if("fixed"===t||"auto"===n||"auto"===i||"scroll"===n||"scroll"===i)break}return e instanceof Document?null:e}}function _t(t,e){let n=e;const o=t.ownerDocument;if(!o)return;const i=o.documentElement;if(!i)return;if(t===i)return;const r=qt(t,n);if(!r)return;n=r._container;const s=n===o.documentElement&&o.defaultView?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},a=r.top-s.top,c=r.left-s.left,l=n.clientHeight,u=n.clientWidth;return{top:a,left:c,bottom:l-(a+t.offsetHeight),right:u-(c+t.offsetWidth),height:l,width:u}}function qt(t,e){let n=t;const o=n.ownerDocument;if(!o)return;const i=o.documentElement;if(!i)return;const r=o.defaultView.HTMLElement;let s=0,a=0;const c=n.offsetHeight,l=n.offsetWidth;for(;n!==o.body&&n!==e;){if(s+=n.offsetTop||0,a+=n.offsetLeft||0,!(n.offsetParent instanceof r))return;n=n.offsetParent}let u,d,f;if(e&&e!==o&&e!==o.defaultView&&e!==o.documentElement&&e!==o.body){if(!(e instanceof r))return;f=e,u=e.scrollHeight,d=e.scrollWidth}else f=i,u=function(t,e){return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight)}(o.body,i),d=function(t,e){return Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)}(o.body,i);return{top:s,left:a,bottom:u-(s+c),right:d-(a+l),_container:f}}function Ot(t,e){let n=t;const o=t.ownerDocument;if(n!==o&&n!==o.defaultView&&n!==o.documentElement&&n!==o.body||(n=o),n instanceof o.defaultView.Document){const t=null!=e.top?e.top:o.defaultView.pageYOffset,n=null!=e.left?e.left:o.defaultView.pageXOffset;o.defaultView.scrollTo(n,t)}else{if(!(n instanceof o.defaultView.HTMLElement))throw new Error("invariant");n.scrollTop=e.top,null!=e.left&&(n.scrollLeft=e.left)}}function $t(t){return!function(t){return t.offsetWidth<=0&&t.offsetHeight<=0}(t)}const It=navigator.userAgent.match(/Macintosh/),Dt=It?"metaKey":"ctrlKey",Pt=It?"Meta":"Control";let Nt=!1,Rt={x:0,y:0};function Vt(t){t instanceof MouseEvent&&(Rt.x===t.clientX&&Rt.y===t.clientY||(Nt=!1),Rt={x:t.clientX,y:t.clientY})}function zt(t){if(Nt)return;const e=t.currentTarget,{target:n}=t;if(!(n instanceof Element&&e instanceof HTMLElement&&e.closest(".js-active-navigation-container")))return;const o=n.closest(".js-navigation-item");o&&te(o,e)}o(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:t=>E(b(t,"mouseover",Vt),b(t,"mouseover",zt))});let Bt=0;function Ut(t){if(t.target!==document.body&&t.target instanceof HTMLElement&&!t.target.classList.contains("js-navigation-enable"))return;Nt=!0;const e=ee();let n=!1;if(e){const o=e.querySelector(".js-navigation-item.navigation-focus")||e;n=i(o,"navigation:keydown",{hotkey:r(t),originalEvent:t,originalTarget:t.target})}n||t.preventDefault()}function Ft(t){const e=t.modifierKey||t.altKey||t.ctrlKey||t.metaKey;i(t.currentTarget,"navigation:open",{modifierKey:e,shiftKey:t.shiftKey})||t.preventDefault()}function Wt(t){const e=ee();t!==e&&(e&&Xt(e),t.classList.add("js-active-navigation-container"))}function Xt(t){t.classList.remove("js-active-navigation-container")}o(".js-active-navigation-container",{add(){Bt++,1===Bt&&document.addEventListener("keydown",Ut)},remove(){Bt--,0===Bt&&document.removeEventListener("keydown",Ut)}}),s("navigation:keydown",".js-active-navigation-container",(function(t){const e=t.currentTarget,n=t.detail.originalTarget.matches("input, textarea"),o=t.target;if(o.classList.contains("js-navigation-item"))if(n){if(It)switch(r(t.detail.originalEvent)){case"Control+n":Zt(o,e);break;case"Control+p":Yt(o,e)}switch(r(t.detail.originalEvent)){case"ArrowUp":Yt(o,e);break;case"ArrowDown":Zt(o,e);break;case"Enter":case`${Pt}+Enter`:Qt(o,t.detail.originalEvent[Dt])}}else{if(It)switch(r(t.detail.originalEvent)){case"Control+n":Zt(o,e);break;case"Control+p":Yt(o,e);break;case"Alt+v":!function(t,e){const n=ne(e);let o=n.indexOf(t);const i=Ht(t);if(null==i)return;let r,s;for(;(r=n[o-1])&&(s=_t(r,i))&&s.top>=0;)o--;if(r){if(te(r,e))return;ie(i,r)}}(o,e);break;case"Control+v":!function(t,e){const n=ne(e);let o=n.indexOf(t);const i=Ht(t);if(null==i)return;let r,s;for(;(r=n[o+1])&&(s=_t(r,i))&&s.bottom>=0;)o++;if(r){if(te(r,e))return;ie(i,r)}}(o,e)}switch(r(t.detail.originalEvent)){case"j":case"J":Zt(o,e);break;case"k":case"K":Yt(o,e);break;case"o":case"Enter":case`${Pt}+Enter`:Qt(o,t.detail[Dt])}}else{const o=ne(e)[0];if(o)if(n){if(It)switch(r(t.detail.originalEvent)){case"Control+n":te(o,e)}switch(r(t.detail.originalEvent)){case"ArrowDown":te(o,e)}}else{if(It)switch(r(t.detail.originalEvent)){case"Control+n":case"Control+v":te(o,e)}switch(r(t.detail.originalEvent)){case"j":te(o,e)}}}if(n){if(It)switch(r(t.detail.originalEvent)){case"Control+n":case"Control+p":t.preventDefault()}switch(r(t.detail.originalEvent)){case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Enter":t.preventDefault()}}else{if(It)switch(r(t.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":t.preventDefault()}switch(r(t.detail.originalEvent)){case"j":case"k":t.preventDefault();break;case"o":case"Enter":case`${Dt}+Enter`:t.preventDefault()}}})),s("click",".js-active-navigation-container .js-navigation-item",(function(t){Ft(t)})),s("navigation:keyopen",".js-active-navigation-container .js-navigation-item",(function(t){const e=t.currentTarget.classList.contains("js-navigation-open")?t.currentTarget:t.currentTarget.querySelector(".js-navigation-open");if(e instanceof HTMLAnchorElement){if(t.detail.modifierKey)window.open(e.href,"_blank"),window.focus();else{e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))&&e.click()}t.preventDefault()}else Ft(t)}));const Gt=[];function Kt(t,e){const n=e||t,o=ne(t)[0],i=n.closest(".js-navigation-item")||o;if(Wt(t),i instanceof HTMLElement){if(te(i,t))return;re(Ht(i),i)}}function Jt(t){const e=t.querySelectorAll(".js-navigation-item.navigation-focus");for(const n of e)n.classList.remove("navigation-focus")}function Yt(t,e){const n=ne(e),o=n.indexOf(t),i=n[o-1];if(i){if(te(i,e))return;const t=Ht(i);"page"===oe(e)?ie(t,i):re(t,i)}}function Zt(t,e){const n=ne(e),o=n.indexOf(t),i=n[o+1];if(i){if(te(i,e))return;const t=Ht(i);"page"===oe(e)?ie(t,i):re(t,i)}}function Qt(t,e=!1){i(t,"navigation:keyopen",{modifierKey:e})}function te(t,e){return!i(t,"navigation:focus")||(Jt(e),t.classList.add("navigation-focus"),!1)}function ee(){return document.querySelector(".js-active-navigation-container")}function ne(t){const e=[];for(const n of t.querySelectorAll(".js-navigation-item"))n instanceof HTMLElement&&$t(n)&&e.push(n);return e}function oe(t){return t.getAttribute("data-navigation-scroll")||"item"}function ie(t,e,n="smooth"){const o=_t(e,t);o&&(o.bottom<=0?e.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&e.scrollIntoView({behavior:n,block:"end"}))}function re(t,e){const n=qt(e,t),o=_t(e,t);if(null!=n&&null!=o)if(o.bottom<=0&&document.body){Ot(t,{top:(null!=t.offsetParent?t.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height)})}else o.top<=0&&Ot(t,{top:n.top})}const se=[];let ae=0;function ce(t){!async function(){se.push(t),await q,function(){const t=ae;ae=se.length,le(se.slice(t),null,window.location.href)}()}()}function le(t,e,n){const o=window.location.hash.slice(1),i={oldURL:e,newURL:n,target:o?document.getElementById(o):null};for(const r of t)r.call(null,i)}ce.clear=()=>{se.length=ae=0};let ue=window.location.href;window.addEventListener("popstate",(function(){ue=window.location.href})),window.addEventListener("hashchange",(function(t){const e=window.location.href;try{le(se,t.oldURL||ue,e)}finally{ue=e}}));let de=null;document.addEventListener("pjax:start",(function(){de=window.location.href})),document.addEventListener("pjax:end",(function(){le(se,de,window.location.href)}));let fe=!1,me=0;const he=[];function pe(){he.length?fe||(window.addEventListener("resize",ve),document.addEventListener("scroll",ve),fe=!0):(window.removeEventListener("resize",ve),document.removeEventListener("scroll",ve),fe=!1)}function ge(){we(!0)}function ve(){we()}function we(t=!1){for(const e of he)if(e.element.offsetHeight>0){const{element:n,placeholder:o,top:i}=e,r=n.getBoundingClientRect();if(o){const s=o.getBoundingClientRect();n.classList.contains("is-stuck")?s.top>Se(n,i)?be(e):Ee(e):r.top<=Se(n,i)?ye(e):t&&Ee(e)}else r.top<=Se(n,i)?ye(e):be(e)}}function ye({element:t,placeholder:e,top:n}){if(e){const o=t.getBoundingClientRect();Ae(t,Se(t,n)),t.style.left=`${o.left}px`,t.style.width=`${o.width}px`,t.style.marginTop="0",t.style.position="fixed",e.style.display="block"}t.classList.add("is-stuck")}function be({element:t,placeholder:e}){e&&(t.style.position="static",t.style.marginTop=e.style.marginTop,e.style.display="none"),t.classList.remove("is-stuck")}function Ee({element:t,placeholder:e,offsetParent:n,top:o}){if(e){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();if(Ae(t,Se(t,o)),t.style.left=`${r.left}px`,t.style.width=`${r.width}px`,n){const e=n.getBoundingClientRect();e.bottom<i.height+parseInt(String(o))&&(t.style.top=`${e.bottom-i.height}px`)}}}function Le(t){if(function(t){const{position:e}=window.getComputedStyle(t);return/sticky/.test(e)}(t))return null;const e=t.previousElementSibling;if(e&&e.classList.contains("is-placeholder"))return e;const n=document.createElement("div");return n.style.visibility="hidden",n.style.display="none",n.style.height=window.getComputedStyle(t).height,n.className=t.className,n.classList.remove("js-sticky"),n.classList.add("is-placeholder"),t.parentNode.insertBefore(n,t)}async function ke(t){await O,function(t){const e=Le(t),n=window.getComputedStyle(t).position;t.style.position="static";const o=t.offsetParent;t.style.position="fixed";const i=Te(t),r={element:t,placeholder:e,offsetParent:o,top:"auto"===i?0:parseInt(i||"0")};t.style.position=n,he.push(r)}(t),we(),pe()}function je(){for(const t of n(document,".js-position-sticky, .js-notification-shelf-offset-top"))xe(t)}function xe(t){if(t.classList.contains("js-notification-top-shelf"))return;Ae(t,(parseInt(Te(t))||0)+me)}function Te(t){const e=t.getAttribute("data-original-top");if(null!=e)return e;const n=window.getComputedStyle(t).top;return t.setAttribute("data-original-top",n),n}function Se(t,e){return t.classList.contains("js-notification-top-shelf")?e:e+me}function Ae(t,e){t.style.setProperty("top",`${e}px`,"important")}function Ce(t){const e=t.ownerDocument;t.scrollIntoView(),setTimeout(()=>{e&&e.defaultView&&e.defaultView.scrollBy(0,-Me(e))},0)}function Me(t){ge();const e=t.querySelectorAll(".js-sticky-offset-scroll"),n=t.querySelectorAll(".js-position-sticky");return Math.max(0,...Array.from(e).map(t=>{const{top:e,height:n}=t.getBoundingClientRect();return 0===e?n:0}))+Math.max(0,...Array.from(n).map(t=>{const{top:e,height:n}=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).top);if(!t.parentElement)return 0;const i=t.parentElement.getBoundingClientRect().top;return e===o&&i<0?n:0}))}function He(t,e=!1){return _e(t)||function(t,e){const n=function(t){if(void 0 instanceof Element)return;if(t&&t.ownerDocument&&t.ownerDocument.activeElement)return t.ownerDocument.activeElement;return null}(t);return null!==n&&((!e||n!==t)&&(!(n!==t||!_(n))||(!(!t.contains(n)||function(t){if(!(Oe instanceof Element))return!1;const e=t.closest("a[href], button");if(!e)return!1;const n=Oe.closest("a[href], button");return e===n}(n))||Oe instanceof Element&&t.contains(Oe)&&!!Oe.closest("details[open] > summary"))))}(t,e)||function(t){return t.matches(":active")}(t)||function(t){return!(!t.closest(".is-dirty")&&!t.querySelector(".is-dirty"))}(t)}function _e(t){for(const e of t.querySelectorAll("input, textarea"))if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&qe(e))return!0;return!1}function qe(t){if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type)){if(t.checked!==t.defaultChecked)return!0}else if(t.value!==t.defaultValue)return!0;return!1}let Oe;o(".js-sticky",{constructor:HTMLElement,add(t){ke(t)},remove(t){!function(t){const e=he.map(t=>t.element).indexOf(t);he.splice(e,1)}(t),pe()}}),o(".js-notification-top-shelf",{constructor:HTMLElement,add(t){!async function(t){if(null===t.offsetParent)return;await O;const e=Math.floor(t.getBoundingClientRect().height);e>0&&(me=e,je(),ge())}(t)},remove(){for(const t of n(document,".js-notification-top-shelf"))t.remove();me>0&&(me=0,je(),ge())}}),o(".js-notification-shelf-offset-top, .js-position-sticky",{constructor:HTMLElement,add:xe}),document.addEventListener("mouseup",(function(t){Oe=t.target}));function $e(t){var e;const n=l(t,".js-inline-comment-form-container");n.classList.add("open"),null===(e=n.querySelector(".js-write-tab"))||void 0===e||e.click(),l(n,".js-comment-field").focus(),i(n,"inlinecomment:focus")}function Ie(t){t.reset();const e=a(t,".js-inline-comment-form-container");e.classList.remove("open"),i(e,"inlinecomment:collapse")}s("click",".js-toggle-inline-comment-form",(function(t){$e(a(t.currentTarget,".js-line-comments"))})),s("quote-selection",".js-line-comments",(function(t){$e(t.currentTarget)})),T("keydown",".js-inline-comment-form-container form .js-comment-field",(function(t){const e=t.target;if(!e.classList.contains("js-navigation-enable")&&"Escape"===t.key&&0===e.value.length){Ie(a(e,"form",HTMLFormElement)),t.preventDefault()}})),s("click",".js-hide-inline-comment-form",(function(t){const e=a(t.currentTarget,"form",HTMLFormElement),n=a(t.currentTarget,".js-inline-comment-form-container").querySelector(".js-multi-line-preview");n&&(n.hidden=!0),!_e(e)||confirm(c(t.target,"data-confirm-cancel-text"))?Ie(e):t.preventDefault()}));class DiffPosition{constructor(t,e,n){this.diffId=t,this.side=e,this.lineNumber=n,this.element=Y(document,this.anchor())}sideForCommenting(){return this.element&&this.element.classList.contains("blob-num-context")?"right":{R:"right",L:"left"}[this.side]}isContext(){return!!this.element&&this.element.classList.contains("blob-num-context")}anchor(){return`${this.diffId}${this.anchorSuffix()}`}anchorSuffix(){return`${this.side}${this.lineNumber}`}is(t){return this.diffId===t.diffId&&this.side===t.side&&this.lineNumber===t.lineNumber}}class DiffRange{constructor(t,e,n,o,i){this.elements=new Set,this.isParsed=!1,this.isSplit=!1,this._rows=new Set,this._isAcrossHunks=!1,this._isContextOnly=!0,this._includesExpandedLine=!1,this.diffId=t,this.diffTable=document.querySelector(`.js-diff-table[data-diff-anchor="${t}"]`),this.diffTable&&(this.isSplit=this.diffTable.classList.contains("js-file-diff-split")),this.start=new DiffPosition(t,e,n),this.end=new DiffPosition(t,o,i),this.lineCount=0,this.parse()}anchor(){const t=[];return t.push(this.start.anchor()),this.start.is(this.end)||t.push(this.end.anchorSuffix()),t.join("-")}parse(){if(!this.diffTable)return;let t=this.unify(this.diffTable.querySelectorAll(".js-linkable-line-number"));t=this.filterInRange(t),this.lineCount=t.length,this.elements=this.expandRelatedElements(t),this.isParsed=!0}unify(t){if(!this.isSplit)return Array.from(t);const e=[];let n=[],o=[];for(const i of t)i.classList.contains("blob-num-addition")?n.push(i):i.classList.contains("blob-num-deletion")?o.push(i):(e.push(...o,...n,i),n=[],o=[]);return e.push(...o,...n),e}filterInRange(t){if(!this.start.element||!this.end.element)return[];let e=t.indexOf(this.start.element),n=t.indexOf(this.end.element);if(e>n){[e,n]=[n,e];const[t,o]=[this.end,this.start];this.start=t,this.end=o}return t.slice(e,n+1)}isContextOnly(){return this.isParsed||this.parse(),this._isContextOnly}isAcrossHunks(){return this.isParsed||this.parse(),this._isAcrossHunks}includesExpandedLine(){return this.isParsed||this.parse(),this._includesExpandedLine}rows(){return this.isParsed||this.parse(),this._rows}expandRelatedElements(t){const e=this.isSplit,n=t[0],o=t[t.length-1];if(n&&o){const t=n.closest("[data-hunk]"),e=o.closest("[data-hunk]");if(t&&e){t.getAttribute("data-hunk")!==e.getAttribute("data-hunk")&&(this._isAcrossHunks=!0)}}return t.reduce((t,n)=>{!this._includesExpandedLine&&n.closest(".blob-expanded")&&(this._includesExpandedLine=!0);const o=n.parentElement;o instanceof HTMLElement&&this._rows.add(o);const i=n.classList.contains("blob-num-deletion")||n.classList.contains("blob-num-addition");if(i&&(this._isContextOnly=!1),!o)return t;if(e&&i){return Array.from(o.children).indexOf(n)<2?t.add(o.children[0]).add(o.children[1]):t.add(o.children[2]).add(o.children[3])}for(const e of Array.from(o.children))t.add(e);return t},new Set)}}function De(t){const e=t.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(null!=e&&6===e.length)return e;const n=t.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return null!=n&&6===n.length?n:null}let Pe=null,Ne=null,Re=!1,Ve=null;function ze(t){return!!t.closest(".js-multi-line-comments-enabled")}function Be(t,e){if(!ze(t))return!1;const{start:{lineNumber:n},end:{lineNumber:o}}=e;return(n!==o||!e.isContextOnly())&&(!e.isAcrossHunks()&&!e.includesExpandedLine())}function Ue(t){return a(t,".js-diff-table").classList.contains("is-selecting")}function Fe(t,e){let n=t.id;if(e){const e=De(n);if(!e)return;const o=e[1],i=e[2],r=e[3];if(Pe&&Pe.diffId===o){if(i===Pe.start.side&&r<Pe.start.lineNumber)return;const e=new DiffRange(o,Pe.start.side,Pe.start.lineNumber,i,+r);n=e.anchor();const s=t.closest(".js-file-content[data-hydro-view]");if(s instanceof HTMLElement&&function(t,e){const n={starting_diff_position:e.start.side+e.start.lineNumber,ending_diff_position:e.end.side+e.end.lineNumber,line_count:e.lineCount};t.setAttribute("data-hydro-client-context",JSON.stringify(n)),Mt(t)}(s,e),Re&&Ue(t)){a(t,".js-diff-table").classList.toggle("is-commenting",Be(t,e))}Ne=function(){if(Be(t,e)){const n=`.js-add-line-comment[data-side="${e.end.sideForCommenting()}"]`,o=a(t,"tr").querySelector(n);o&&e&&o.click()}}}}window.history.replaceState(null,null,`#${n}`),Ye()}function We(t){if(!(t instanceof HTMLElement))return null;if(t.classList.contains("js-linkable-line-number"))return t;const e=t.previousElementSibling;return e?We(e):null}function Xe(t){Pe&&(t.target.closest(".js-diff-table")||(window.history.replaceState(null,null,"#"),Ye()))}function Ge(t){const e=t.target;if(!(e instanceof Element))return;Ve&&function(){if(!Ve)return;Fe(Ve,!1);const t=a(Ve,".js-diff-table");Ve=null,t.classList.add("is-selecting"),t.classList.add("is-commenting"),document.addEventListener("mouseup",(function(e){t.classList.remove("is-selecting"),t.classList.remove("is-selecting","is-commenting"),Ne&&Ne(),Ne=null,Je(t),e.preventDefault()}),{once:!0})}();const n=e.closest(".blob-code, .js-linkable-line-number");var o;return n?n.classList.contains("blob-code")?function(t){const e=We(t);e&&Ue(e)&&Fe(e,!0)}(n):void(n.classList.contains("js-linkable-line-number")&&Ue(o=n)&&Fe(o,!0)):void 0}function Ke(t){t.addEventListener("mouseenter",Ge,{capture:!0})}function Je(t){Re=!1,t.removeEventListener("mouseenter",Ge,{capture:!0}),setTimeout(()=>{document.addEventListener("click",Xe,{once:!0})},0)}function Ye(){if(Pe){for(const t of Pe.elements)t.classList.remove("selected-line","selected-line-top","selected-line-bottom","selected-line-left","selected-line-right");Pe=null}const t=De(window.location.hash);if(!t)return;const e=t[1],n=t[2],o=t[3],i=t[4]||n,r=t[5]||o;Pe=new DiffRange(e,n,+o,i,+r);const s=Array.from(Pe.elements)[0];s&&(a(s,".js-diff-table").classList.contains("file-diff-split")?function(){if(!Pe)return;for(const r of Pe.elements)r.classList.add("selected-line");const t=[],e=[],n=[],o=[];for(const r of Pe.rows()){const[i,s,a,c]=r.children;t.push(i),e.push(s),n.push(a),o.push(c)}function i(t){for(const[e,n]of t.entries()){if(n.classList.contains("empty-cell"))continue;const o=t[e-1];o&&o.classList.contains("selected-line")||n.classList.add("selected-line-top");const i=t[e+1];i&&i.classList.contains("selected-line")||n.classList.add("selected-line-bottom")}}i(t),i(e),i(n),i(o);for(const[r,s]of e.entries())o[r].classList.contains("selected-line")||s.classList.add("selected-line-right");for(const[r,s]of n.entries())e[r].classList.contains("selected-line")||s.classList.add("selected-line-left")}():function(){if(!Pe)return;for(const o of Pe.elements)o.classList.add("selected-line");const t=Array.from(Pe.rows()),e=t[0];for(const o of e.children)o.classList.add("selected-line-top");const n=t[t.length-1];for(const o of n.children)o.classList.add("selected-line-bottom")}())}s("mousedown",".js-add-line-comment",(function(t){const e=t.target.parentElement;if(!e)return;if(!ze(t.target))return;const n=We(e);if(!n)return;const o=a(t.target,".js-diff-table");Ke(o),Ve=n,Re=!0,t.target.addEventListener("mouseup",(function(){Je(o),Ve=null,Re=!1}),{once:!0}),Pe&&Pe.lineCount>1&&t.preventDefault()})),s("mousedown",".js-linkable-line-number",(function(t){if(!(t instanceof MouseEvent))return;if(0!==t.button)return;const e=t.target;if(!(e instanceof Element))return;const n=a(e,".js-diff-table");n.classList.add("is-selecting"),Ke(n),document.addEventListener("mouseup",(function(){a(e,".js-diff-table").classList.remove("is-selecting"),Je(n)}),{once:!0}),Fe(e,t instanceof MouseEvent&&t.shiftKey),t.preventDefault()})),ce(Ye),o(".blob-expanded",Ye),o(".js-diff-progressive-loader",(function(t){t.addEventListener("load",Ye)})),o(".js-diff-entry-loader",(function(t){t.addEventListener("load",Ye)}));const Ze="ontransitionend"in window;function Qe(t){return"height"===getComputedStyle(t).transitionProperty}function tn(t,e){t.style.transition="none",e(),t.offsetHeight,t.style.transition=""}function en(t,e){return nn(function(t){if(t.activeElement!==t.body)return t.activeElement;var e=t.querySelectorAll(":hover"),n=e.length;if(n)return e[n-1]}(t),e)}function nn(t,e){var n=t;if(!n)return Promise.resolve(e());var o=n.ownerDocument.documentElement;var i=function(t){for(var e=[];t;){var n=t.getBoundingClientRect(),o=n.top,i=n.left;e.push({element:t,top:o,left:i}),t=t.parentElement}return e}(n);return Promise.resolve(e()).then((function(t){var e=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(o.contains(n.element))return n}}(i);if(e){n=e.element;var r=e.top,s=e.left,a=n.getBoundingClientRect(),c=a.top,l=a.left;!function(t,e,n){var o=t.ownerDocument,i=o.defaultView;function r(t){return t.offsetParent?{top:t.scrollTop,left:t.scrollLeft}:{top:i.pageYOffset,left:i.pageXOffset}}function s(t,e,n){if(0===e&&0===n)return[0,0];var s=r(t),a=s.top+n,c=s.left+e;t===o||t===i||t===o.documentElement||t===o.body?o.defaultView.scrollTo(c,a):(t.scrollTop=a,t.scrollLeft=c);var l=r(t);return[l.left-s.left,l.top-s.top]}function a(t){var e=t;if(e.offsetParent&&e!==o.body){for(;e!==o.body;){if(!e.parentElement)return;e=e.parentElement;var n=i.getComputedStyle(e),r=n.position,s=n.overflowY,a=n.overflowX;if("fixed"===r||"auto"===s||"auto"===a||"scroll"===s||"scroll"===a)break}return e}}var c=a(t),l=0,u=0;for(;c;){var d=s(c,e-l,n-u);if(l+=d[0],u+=d[1],l===e&&u===n)break;c=a(c)}}(n,l-s,c-r)}return t}))}function on(t,e){const n=t.getAttribute("data-details-container-group");return n?(nn(t,()=>{for(const o of function(t){return[...document.querySelectorAll(".js-details-container")].filter(e=>e.getAttribute("data-details-container-group")===t)}(n))o!==t&&rn(o,e)}),n):null}function rn(t,e){t.classList.toggle("open",e),t.classList.toggle("Details--on",e);for(const n of function(t){return[...t.querySelectorAll(".js-details-target")].filter(e=>e.closest(".js-details-container")===t)}(t))n.setAttribute("aria-expanded",e.toString())}function sn(t,e){var n,o;const i=t.getAttribute("data-details-container")||".js-details-container",r=a(t,i),s=null!==(n=null==e?void 0:e.force)&&void 0!==n?n:!r.classList.contains("open"),c=null!==(o=null==e?void 0:e.withGroup)&&void 0!==o&&o;!function(t,e){if(!Ze)return void e();const n=Array.from(t.querySelectorAll(".js-transitionable"));t.classList.contains("js-transitionable")&&n.push(t);for(const o of n){const t=Qe(o);o instanceof HTMLElement&&(o.addEventListener("transitionend",()=>{o.style.display="",o.style.visibility="",t&&tn(o,(function(){o.style.height=""}))},{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",t&&tn(o,(function(){o.style.height=getComputedStyle(o).height})),o.offsetHeight)}e();for(const o of n)if(o instanceof HTMLElement&&Qe(o)){const t=getComputedStyle(o).height;o.style.boxSizing="",o.style.height="0px"===t?`${o.scrollHeight}px`:"0px"}}(r,()=>{rn(r,s);const e=c?on(r,s):null;Promise.resolve().then(()=>{!function(t){const e=t.querySelectorAll("input[autofocus], textarea[autofocus]"),n=e[e.length-1];n&&document.activeElement!==n&&n.focus()}(r),function(t){t.classList.contains("tooltipped")&&(t.classList.remove("tooltipped"),t.addEventListener("mouseleave",()=>{t.classList.add("tooltipped"),t.blur()},{once:!0}))}(t),r.dispatchEvent(new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:s}})),e&&r.dispatchEvent(new CustomEvent("details:toggled-group",{bubbles:!0,cancelable:!1,detail:{open:s,group:e}}))})})}function an(t){let e=!1,n=t.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(e=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!e),n.classList.toggle("Details--on",!e),e=!1),n=n.parentElement}async function cn(t){const e=l(document,"#site-details-dialog",HTMLTemplateElement).content.cloneNode(!0),n=l(e,"details"),o=l(n,"details-dialog"),r=l(n,".js-details-dialog-spinner");t.detailsClass&&n.classList.add(...t.detailsClass.split(" ")),t.dialogClass&&o.classList.add(...t.dialogClass.split(" ")),document.body.append(e);const s=await t.content;return r.remove(),o.prepend(s),n.addEventListener("toggle",()=>{n.hasAttribute("open")||(i(o,"dialog:remove"),n.remove())}),o}function ln(){const t=document.getElementById("ajax-error-message");t&&t.classList.add("visible")}function un(){const t=document.getElementById("ajax-error-message");t&&t.classList.remove("visible")}s("click",".js-details-target",(function(t){const e=t.altKey;sn(t.currentTarget,{withGroup:e}),t.preventDefault()})),s("click",".js-close-menu",(function(t){var e;const n=t.target;if(!(n instanceof HTMLElement))return;const o=n.getAttribute("data-details-container")||".js-details-container";null===(e=a(n,o).querySelector(".js-open-menu"))||void 0===e||e.focus()})),ce((function({target:t}){t&&an(t)})),s("deprecatedAjaxError","[data-remote]",(function(t){const e=t.detail,{error:n,text:o}=e;t.currentTarget===t.target&&"abort"!==n&&"canceled"!==n&&(/<html/.test(o)?(ln(),t.stopImmediatePropagation()):setTimeout((function(){t.defaultPrevented||ln()}),0))})),s("deprecatedAjaxSend","[data-remote]",(function(){un()})),s("click",".js-ajax-error-dismiss",(function(){un()}));const dn=new WeakMap,fn=t("b7",{});function mn(t,e,n=!1){return en(document,()=>{const o=m(document,e.trim()),i=n&&t.ownerDocument&&t===t.ownerDocument.activeElement?o.querySelector("*"):null,r=Array.from(t.querySelectorAll("details[open][id]")).map(t=>t.id);"DETAILS"===t.tagName&&t.id&&t.hasAttribute("open")&&r.push(t.id);for(const e of t.querySelectorAll(".js-updatable-content-preserve-scroll-position")){const t=c(e,"data-updatable-content-scroll-position-id");hn.set(t,e.scrollTop)}for(const t of r){const e=o.querySelector(`#${t}`);e&&e.setAttribute("open","")}t.replaceWith(o),i instanceof HTMLElement&&i.focus()})}const hn=new Map;o(".js-updatable-content-preserve-scroll-position",{constructor:HTMLElement,add(t){const e=t.getAttribute("data-updatable-content-scroll-position-id");if(!e)return;const n=hn.get(e);null!=n&&(t.scrollTop=n)}}),s("click",".js-rich-diff.collapsed .js-expandable",(function(t){if(!(t.target instanceof Element))return;t.preventDefault(),t.target.closest(".js-rich-diff").classList.remove("collapsed")})),s("click",".js-show-rich-diff",(function(t){const e=t.currentTarget.closest(".js-warn-no-visible-changes");if(!e)return;e.classList.add("d-none");const n=e.parentElement.querySelector(".js-no-rich-changes");n&&n.classList.remove("d-none")}));const pn=new WeakMap;function gn(t){return pn.get(t)}function vn(t){if(!(t instanceof CustomEvent))throw new Error("assert: event is not a CustomEvent");const e=t.detail.editor;if(!t.target)throw new Error("assert: event.target is null");return pn.set(t.target,e),e}s("codeEditor:ready",".js-code-editor",vn),function(){var t=function(t){this.w=t||[]};t.prototype.set=function(t){this.w[t]=!0},t.prototype.encode=function(){for(var t=[],e=0;e<this.w.length;e++)this.w[e]&&(t[Math.floor(e/6)]^=1<<e%6);for(e=0;e<t.length;e++)t[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[e]||0);return t.join("")+"~"};var e=new t;function n(t){e.set(t)}var o=function(e,n){var o=new t(r(e));o.set(n),e.set(se,o.w)},i=function(n){n=r(n),n=new t(n);for(var o=e.w.slice(),i=0;i<n.w.length;i++)o[i]=o[i]||n.w[i];return new t(o).encode()},r=function(t){return t=t.get(se),a(t)||(t=[]),t},s=function(t){return"function"==typeof t},a=function(t){return"[object Array]"==Object.prototype.toString.call(Object(t))},c=function(t){return null!=t&&-1<(t.constructor+"").indexOf("String")},l=function(t,e){return 0==t.indexOf(e)},u=function(t){return t?t.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},d=function(t){var e=k.createElement("img");return e.width=1,e.height=1,e.src=t,e},f=function(){},m=function(t){return encodeURIComponent instanceof Function?encodeURIComponent(t):(n(28),t)},h=function(t,e,o,i){try{t.addEventListener?t.addEventListener(e,o,!!i):t.attachEvent&&t.attachEvent("on"+e,o)}catch(Mn){n(27)}},p=/^[\w\-:/.?=&%!]+$/,g=function(t,e,n,o){t&&(n?(o="",e&&p.test(e)&&(o=' id="'+e+'"'),p.test(t)&&k.write("<script"+o+' src="'+t+'"><\/script>')):((n=k.createElement("script")).type="text/javascript",n.async=!0,n.src=t,o&&(n.onload=o),e&&(n.id=e),(t=k.getElementsByTagName("script")[0]).parentNode.insertBefore(n,t)))},v=function(){return"https:"==k.location.protocol},w=function(t,e){return(t=t.match("(?:&|#|\\?)"+m(e).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==t.length?t[1]:""},y=function(){var t=""+k.location.hostname;return 0==t.indexOf("www.")?t.substring(4):t},b=function(t,e){if(1==e.length&&null!=e[0]&&"object"==typeof e[0])return e[0];for(var n={},o=Math.min(t.length+1,e.length),i=0;i<o;i++){if("object"==typeof e[i]){for(var r in e[i])e[i].hasOwnProperty(r)&&(n[r]=e[i][r]);break}i<t.length&&(n[t[i]]=e[i])}return n},E=function(){this.keys=[],this.values={},this.m={}};E.prototype.set=function(t,e,n){this.keys.push(t),n?this.m[":"+t]=e:this.values[":"+t]=e},E.prototype.get=function(t){return this.m.hasOwnProperty(":"+t)?this.m[":"+t]:this.values[":"+t]},E.prototype.map=function(t){for(var e=0;e<this.keys.length;e++){var n=this.keys[e],o=this.get(n);o&&t(n,o)}};var L=window,k=document,j=window,x=function(t){var e=j._gaUserPrefs;if(e&&e.ioo&&e.ioo()||t&&!0===j["ga-disable-"+t])return!0;try{var n=j.external;if(n&&n._gaUserPrefs&&"oo"==n._gaUserPrefs)return!0}catch(o){}return!1},T=function(t){var e=[],n=k.cookie.split(";");t=new RegExp("^\\s*"+t+"=\\s*(.*?)\\s*$");for(var o=0;o<n.length;o++){var i=n[o].match(t);i&&e.push(i[1])}return e},S=function(t,e,o,i,r,s){if(!(r=!x(r)&&!(M.test(k.location.hostname)||"/"==o&&C.test(i))))return!1;if(e&&1200<e.length&&(e=e.substring(0,1200),n(24)),o=t+"="+e+"; path="+o+"; ",s&&(o+="expires="+new Date((new Date).getTime()+s).toGMTString()+"; "),i&&"none"!=i&&(o+="domain="+i+";"),i=k.cookie,k.cookie=o,!(i=i!=k.cookie))t:{for(t=T(t),i=0;i<t.length;i++)if(e==t[i]){i=!0;break t}i=!1}return i},A=function(t){return m(t).replace(/\(/g,"%28").replace(/\)/g,"%29")},C=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,M=/(^|\.)doubleclick\.net$/i,H=function(){return(dt||v()?"https:":"http:")+"//www.google-analytics.com"},_=function(t){this.name="len",this.message=t+"-8192"},q=function(t,e,n){if(n=n||f,2036>=e.length)O(t,e,n);else{if(!(8192>=e.length))throw D("len",e.length),new _(e.length);I(t,e,n)||$(t,e,n)||O(t,e,n)}},O=function(t,e,n){var o=d(t+"?"+e);o.onload=o.onerror=function(){o.onload=null,o.onerror=null,n()}},$=function(t,e,n){var o=L.XMLHttpRequest;if(!o)return!1;var i=new o;return"withCredentials"in i&&(i.open("POST",t,!0),i.withCredentials=!0,i.setRequestHeader("Content-Type","text/plain"),i.onreadystatechange=function(){4==i.readyState&&(n(),i=null)},i.send(e),!0)},I=function(t,e,n){return!!L.navigator.sendBeacon&&(!!L.navigator.sendBeacon(t,e)&&(n(),!0))},D=function(t,e,n){1<=100*Math.random()||x("?")||(t=["t=error","_e="+t,"_v=j48","sr=1"],e&&t.push("_f="+e),n&&t.push("_m="+m(n.substring(0,100))),t.push("aip=1"),t.push("z="+K()),O(H()+"/collect",t.join("&"),f))},P=function(t){var e=L.gaData=L.gaData||{};return e[t]=e[t]||{}},N=function(){this.M=[]};function R(t){if(100!=t.get(Ie)&&to(et(t,ke))%1e4>=100*nt(t,Ie))throw"abort"}function V(t){if(x(et(t,Te)))throw"abort"}function z(){var t=k.location.protocol;if("http:"!=t&&"https:"!=t)throw"abort"}function B(t){try{L.navigator.sendBeacon?n(42):L.XMLHttpRequest&&"withCredentials"in new L.XMLHttpRequest&&n(40)}catch($n){}t.set(re,i(t),!0),t.set(bt,nt(t,bt)+1);var e=[];Q.map((function(n,o){o.F&&(null!=(n=t.get(n))&&n!=o.defaultValue&&("boolean"==typeof n&&(n*=1),e.push(o.F+"="+m(""+n))))})),e.push("z="+J()),t.set(vt,e.join("&"),!0)}function U(t){var e=et(t,Ne)||H()+"/collect",n=et(t,yt);if(!n&&t.get(wt)&&(n="beacon"),n){var o=et(t,vt),i=(i=t.get(gt))||f;"image"==n?O(e,o,i):"xhr"==n&&$(e,o,i)||"beacon"==n&&I(e,o,i)||q(e,o,i)}else q(e,et(t,vt),t.get(gt));e=t.get(Te),n=(e=P(e)).hitcount,e.hitcount=n?n+1:1,e=t.get(Te),delete P(e).pending_experiments,t.set(gt,f,!0)}function F(t){var e;(L.gaData=L.gaData||{}).expId&&t.set(Jt,(L.gaData=L.gaData||{}).expId),(L.gaData=L.gaData||{}).expVar&&t.set(Yt,(L.gaData=L.gaData||{}).expVar);var n=t.get(Te);if(n=P(n).pending_experiments){var o=[];for(e in n)n.hasOwnProperty(e)&&n[e]&&o.push(encodeURIComponent(e)+"."+encodeURIComponent(n[e]));e=o.join("!")}else e=void 0;e&&t.set(Zt,e,!0)}function W(){if(L.navigator&&"preview"==L.navigator.loadPurpose)throw"abort"}function X(t){var e=L.gaDevIds;a(e)&&0!=e.length&&t.set("&did",e.join(","),!0)}function G(t){if(!t.get(Te))throw"abort"}N.prototype.add=function(t){this.M.push(t)},N.prototype.D=function(t){try{for(var e=0;e<this.M.length;e++){var n=t.get(this.M[e]);n&&s(n)&&n.call(L,t)}}catch(o){}(e=t.get(gt))!=f&&s(e)&&(t.set(gt,f,!0),setTimeout(e,10))};var K=function(){return Math.round(2147483647*Math.random())},J=function(){try{var t=new Uint32Array(1);return L.crypto.getRandomValues(t),2147483647&t[0]}catch(e){return K()}};function Y(t){var e=nt(t,ne);if(500<=e&&n(15),"transaction"!=(o=et(t,pt))&&"item"!=o){var o=nt(t,ie),i=(new Date).getTime(),r=nt(t,oe);if(0==r&&t.set(oe,i),0<(r=Math.round(2*(i-r)/1e3))&&(o=Math.min(o+r,20),t.set(oe,i)),0>=o)throw"abort";t.set(ie,--o)}t.set(ne,++e)}var Z=function(){this.data=new E},Q=new E,tt=[];Z.prototype.get=function(t){var e=rt(t),n=this.data.get(t);return e&&null==n&&(n=s(e.defaultValue)?e.defaultValue():e.defaultValue),e&&e.Z?e.Z(this,t,n):n};var et=function(t,e){return null==(t=t.get(e))?"":""+t},nt=function(t,e){return null==(t=t.get(e))||""===t?0:1*t};Z.prototype.set=function(t,e,n){if(t)if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&ot(this,o,t[o],n);else ot(this,t,e,n)};var ot=function(t,e,n,o){if(null!=n)switch(e){case Te:Sn.test(n)}var i=rt(e);i&&i.o?i.o(t,e,n,o):t.data.set(e,n,o)},it=function(t,e,n,o,i){this.name=t,this.F=e,this.Z=o,this.o=i,this.defaultValue=n},rt=function(t){var e=Q.get(t);if(!e)for(var n=0;n<tt.length;n++){var o=tt[n],i=o[0].exec(t);if(i){e=o[1](i),Q.set(e.name,e);break}}return e},st=function(t,e,n,o,i){return t=new it(t,e,n,o,i),Q.set(t.name,t),t.name},at=function(t,e){tt.push([new RegExp("^"+t+"$"),e])},ct=function(t,e,n){return st(t,e,n,void 0,lt)},lt=function(){},ut=c(window.GoogleAnalyticsObject)&&u(window.GoogleAnalyticsObject)||"ga",dt=!1,ft=ct("apiVersion","v"),mt=ct("clientVersion","_v");st("anonymizeIp","aip");var ht=st("adSenseId","a"),pt=st("hitType","t"),gt=st("hitCallback"),vt=st("hitPayload");st("nonInteraction","ni"),st("currencyCode","cu"),st("dataSource","ds");var wt=st("useBeacon",void 0,!1),yt=st("transport");st("sessionControl","sc",""),st("sessionGroup","sg"),st("queueTime","qt");var bt=st("_s","_s");st("screenName","cd");var Et=st("location","dl",""),Lt=st("referrer","dr"),kt=st("page","dp","");st("hostname","dh");var jt=st("language","ul"),xt=st("encoding","de");st("title","dt",(function(){return k.title||void 0})),at("contentGroup([0-9]+)",(function(t){return new it(t[0],"cg"+t[1])}));var Tt=st("screenColors","sd"),St=st("screenResolution","sr"),At=st("viewportSize","vp"),Ct=st("javaEnabled","je"),Mt=st("flashVersion","fl");st("campaignId","ci"),st("campaignName","cn"),st("campaignSource","cs"),st("campaignMedium","cm"),st("campaignKeyword","ck"),st("campaignContent","cc");var Ht=st("eventCategory","ec"),_t=st("eventAction","ea"),qt=st("eventLabel","el"),Ot=st("eventValue","ev"),$t=st("socialNetwork","sn"),It=st("socialAction","sa"),Dt=st("socialTarget","st"),Pt=st("l1","plt"),Nt=st("l2","pdt"),Rt=st("l3","dns"),Vt=st("l4","rrt"),zt=st("l5","srt"),Bt=st("l6","tcp"),Ut=st("l7","dit"),Ft=st("l8","clt"),Wt=st("timingCategory","utc"),Xt=st("timingVar","utv"),Gt=st("timingLabel","utl"),Kt=st("timingValue","utt");st("appName","an"),st("appVersion","av",""),st("appId","aid",""),st("appInstallerId","aiid",""),st("exDescription","exd"),st("exFatal","exf");var Jt=st("expId","xid"),Yt=st("expVar","xvar"),Zt=st("exp","exp"),Qt=st("_utma","_utma"),te=st("_utmz","_utmz"),ee=st("_utmht","_utmht"),ne=st("_hc",void 0,0),oe=st("_ti",void 0,0),ie=st("_to",void 0,20);at("dimension([0-9]+)",(function(t){return new it(t[0],"cd"+t[1])})),at("metric([0-9]+)",(function(t){return new it(t[0],"cm"+t[1])})),st("linkerParam",void 0,void 0,(function(t){var e=ln(t=t.get(ke),0);return"_ga=1."+m(e+"."+t)}),lt);var re=st("usage","_u"),se=st("_um");st("forceSSL",void 0,void 0,(function(){return dt}),(function(t,e,o){n(34),dt=!!o}));var ae=st("_j1","jid");at("\\&(.*)",(function(t){var e=new it(t[0],t[1]),n=function(t){var e;return Q.map((function(n,o){o.F==t&&(e=o)})),e&&e.name}(t[0].substring(1));return n&&(e.Z=function(t){return t.get(n)},e.o=function(t,e,o,i){t.set(n,o,i)},e.F=void 0),e}));var ce=ct("_oot"),le=st("previewTask"),ue=st("checkProtocolTask"),de=st("validationTask"),fe=st("checkStorageTask"),me=st("historyImportTask"),he=st("samplerTask"),pe=st("_rlt"),ge=st("buildHitTask"),ve=st("sendHitTask"),we=st("ceTask"),ye=st("devIdTask"),be=st("timingTask"),Ee=st("displayFeaturesTask"),Le=ct("name"),ke=ct("clientId","cid"),je=ct("clientIdTime"),xe=st("userId","uid"),Te=ct("trackingId","tid"),Se=ct("cookieName",void 0,"_ga"),Ae=ct("cookieDomain"),Ce=ct("cookiePath",void 0,"/"),Me=ct("cookieExpires",void 0,63072e3),He=ct("legacyCookieDomain"),_e=ct("legacyHistoryImport",void 0,!0),qe=ct("storage",void 0,"cookie"),Oe=ct("allowLinker",void 0,!1),$e=ct("allowAnchor",void 0,!0),Ie=ct("sampleRate","sf",100),De=ct("siteSpeedSampleRate",void 0,1),Pe=ct("alwaysSendReferrer",void 0,!1),Ne=st("transportUrl"),Re=st("_r","_r");function Ve(t,e,o,i){e[t]=function(){try{return i&&n(i),o.apply(this,arguments)}catch(Mn){throw D("exc",t,Mn&&Mn.name),Mn}}}var ze=function(t,e,n){this.V=t,this.fa=e,this.$=!1,this.oa=n,this.ea=1},Be=function(t,e){var n;if(t.fa&&t.$)return 0;if(t.$=!0,e){if(t.oa&&nt(e,t.oa))return nt(e,t.oa);if(0==e.get(De))return 0}return 0==t.V?0:(void 0===n&&(n=J()),0==n%t.V?Math.floor(n/t.V)%t.ea+1:0)};var Ue=function(t){var e={};if(Fe(e)||We(e)){var n=e[Pt];null==n||1/0==n||isNaN(n)||(0<n?(Xe(e,Rt),Xe(e,Bt),Xe(e,zt),Xe(e,Nt),Xe(e,Vt),Xe(e,Ut),Xe(e,Ft),t(e)):h(L,"load",(function(){Ue(t)}),!1))}},Fe=function(t){var e;if(!(e=(e=L.performance||L.webkitPerformance)&&e.timing))return!1;var n=e.navigationStart;return 0!=n&&(t[Pt]=e.loadEventStart-n,t[Rt]=e.domainLookupEnd-e.domainLookupStart,t[Bt]=e.connectEnd-e.connectStart,t[zt]=e.responseStart-e.requestStart,t[Nt]=e.responseEnd-e.responseStart,t[Vt]=e.fetchStart-n,t[Ut]=e.domInteractive-n,t[Ft]=e.domContentLoadedEventStart-n,!0)},We=function(t){if(L.top!=L)return!1;var e=L.external,n=e&&e.onloadT;return e&&!e.isValidLoadTime&&(n=void 0),2147483648<n&&(n=void 0),0<n&&e.setPageReadyTime(),null!=n&&(t[Pt]=n,!0)},Xe=function(t,e){var n=t[e];(isNaN(n)||1/0==n||0>n)&&(t[e]=void 0)},Ge=function(t){return function(e){if("pageview"==e.get(pt)&&!t.I){t.I=!0;var n=function(t){var e=Math.min(nt(t,De),100);return!(to(et(t,ke))%100>=e)}(e);e=0<w(e.get(Et),"gclid").length,(n||e)&&Ue((function(e){t.send(n?"timing":"adtiming",e)}))}}},Ke=!1,Je=function(t){if("cookie"==et(t,qe)){var e=et(t,Se),o=Qe(t),i=nn(et(t,Ce)),r=en(et(t,Ae)),s=1e3*nt(t,Me),a=et(t,Te);if("auto"!=r)S(e,o,i,r,a,s)&&(Ke=!0);else{var c;if(n(32),o=[],4!=(r=y().split(".")).length||(c=r[r.length-1],parseInt(c,10)!=c)){for(c=r.length-2;0<=c;c--)o.push(r.slice(c).join("."));o.push("none"),c=o}else c=["none"];for(var l=0;l<c.length;l++)if(r=c[l],t.data.set(Ae,r),o=Qe(t),S(e,o,i,r,a,s))return void(Ke=!0);t.data.set(Ae,"auto")}}},Ye=function(t){if("cookie"==et(t,qe)&&!Ke&&(Je(t),!Ke))throw"abort"},Ze=function(t){if(t.get(_e)){var e=et(t,Ae),o=et(t,He)||y(),i=rn("__utma",o,e);i&&(n(19),t.set(ee,(new Date).getTime(),!0),t.set(Qt,i.R),(e=rn("__utmz",o,e))&&i.hash==e.hash&&t.set(te,e.R))}},Qe=function(t){var e=A(et(t,ke)),n=en(et(t,Ae)).split(".").length;return 1<(t=on(et(t,Ce)))&&(n+="-"+t),["GA1",n,e].join(".")},tn=function(t,e,n){for(var o,i=[],r=[],s=0;s<t.length;s++){var a=t[s];a.H[n]==e?i.push(a):null==o||a.H[n]<o?(r=[a],o=a.H[n]):a.H[n]==o&&r.push(a)}return 0<i.length?i:r},en=function(t){return 0==t.indexOf(".")?t.substr(1):t},nn=function(t){return t?(1<t.length&&t.lastIndexOf("/")==t.length-1&&(t=t.substr(0,t.length-1)),0!=t.indexOf("/")&&(t="/"+t),t):"/"},on=function(t){return"/"==(t=nn(t))?1:t.split("/").length};function rn(t,e,n){"none"==e&&(e="");var o=[],i=T(t);t="__utma"==t?6:2;for(var r=0;r<i.length;r++){var s=(""+i[r]).split(".");s.length>=t&&o.push({hash:s[0],R:i[r],O:s})}if(0!=o.length)return 1==o.length?o[0]:sn(e,o)||sn(n,o)||sn(null,o)||o[0]}function sn(t,e){var n;null==t?n=t=1:(n=to(t),t=to(l(t,".")?t.substring(1):"."+t));for(var o=0;o<e.length;o++)if(e[o].hash==n||e[o].hash==t)return e[o]}var an=new RegExp(/^https?:\/\/([^\/:]+)/),cn=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function ln(t,e){var n=new Date,o=L.navigator,i=o.plugins||[];for(t=[t,o.userAgent,n.getTimezoneOffset(),n.getYear(),n.getDate(),n.getHours(),n.getMinutes()+e],e=0;e<i.length;++e)t.push(i[e].description);return to(t.join("."))}var un=function(t){n(48),this.target=t,this.T=!1};un.prototype.ca=function(t,e){if(t.tagName){if("a"==t.tagName.toLowerCase())return void(t.href&&(t.href=dn(this,t.href,e)));if("form"==t.tagName.toLowerCase())return fn(this,t)}if("string"==typeof t)return dn(this,t,e)};var dn=function(t,e,n){(i=cn.exec(e))&&3<=i.length&&(e=i[1]+(i[3]?i[2]+i[3]:"")),t=t.target.get("linkerParam");var o=e.indexOf("?"),i=e.indexOf("#");return n?e+=(-1==i?"#":"&")+t:(n=-1==o?"?":"&",e=-1==i?e+(n+t):e.substring(0,i)+n+t+e.substring(i)),e.replace(/&+_ga=/,"&_ga=")},fn=function(t,e){if(e&&e.action){var n=t.target.get("linkerParam").split("=")[1];if("get"==e.method.toLowerCase()){t=e.childNodes||[];for(var o=0;o<t.length;o++)if("_ga"==t[o].name)return void t[o].setAttribute("value",n);(t=k.createElement("input")).setAttribute("type","hidden"),t.setAttribute("name","_ga"),t.setAttribute("value",n),e.appendChild(t)}else"post"==e.method.toLowerCase()&&(e.action=dn(t,e.action))}};function mn(t,e){if(e==k.location.hostname)return!1;for(var n=0;n<t.length;n++)if(t[n]instanceof RegExp){if(t[n].test(e))return!0}else if(0<=e.indexOf(t[n]))return!0;return!1}un.prototype.S=function(t,e,o){function i(o){try{var i;o=o||L.event;t:{var s=o.target||o.srcElement;for(o=100;s&&0<o;){if(s.href&&s.nodeName.match(/^a(?:rea)?$/i)){i=s;break t}s=s.parentNode,o--}i={}}("http:"==i.protocol||"https:"==i.protocol)&&mn(t,i.hostname||"")&&i.href&&(i.href=dn(r,i.href,e))}catch(a){n(26)}}var r=this;this.T||(this.T=!0,h(k,"mousedown",i,!1),h(k,"keyup",i,!1)),o&&h(k,"submit",(function(e){if((e=(e=e||L.event).target||e.srcElement)&&e.action){var n=e.action.match(an);n&&mn(t,n[1])&&fn(r,e)}}))};var hn,pn=/^(GTM|OPT)-[A-Z0-9]+$/,gn=/;_gaexp=[^;]*/g,vn=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,wn=function(t,e,o){this.U=ae,this.aa=e,(e=o)||(e=(e=et(t,Le))&&"t0"!=e?Ln.test(e)?"_gat_"+A(et(t,Te)):"_gat_"+A(e):"_gat"),this.Y=e,Be(new ze(10),t)&&(n(30),this.pa=!0)},yn=function(t,e){e.get(t.U)||("1"==T(t.Y)[0]?e.set(t.U,"",!0):e.set(t.U,""+K(),!0))},bn=function(t,e){if(e.get(t.U)){var n=6e5;t.pa&&(n/=10),S(t.Y,"1",e.get(Ce),e.get(Ae),e.get(Te),n)}},En=function(t,e){if(e.get(t.U)){var n=new E,o=function(t){rt(t).F&&n.set(rt(t).F,e.get(t))};o(ft),o(mt),o(Te),o(ke),o(xe),o(t.U),n.set(rt(re).F,i(e));var r=t.aa;n.map((function(t,e){r+=m(t)+"=",r+=m(""+e)+"&"})),r+="z="+K(),d(r),e.set(t.U,"",!0)}},Ln=/^gtm\d+$/,kn=function(t,e){var n;(t=t.b).get("dcLoaded")||(o(t,29),(e=e||{})[Se]&&(n=A(e[Se])),function(t,e){var n=e.get(ge);e.set(ge,(function(e){yn(t,e);var o=n(e);return bn(t,e),o}));var o=e.get(ve);e.set(ve,(function(e){var n=o(e);return En(t,e),n}))}(e=new wn(t,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",n),t),t.set("dcLoaded",!0))},jn=function(t){if(!t.get("dcLoaded")&&"cookie"==t.get(qe)){o(t,51);var e=new wn(t);yn(e,t),bn(e,t),t.get(e.U)&&(t.set(Re,1,!0),t.set(Ne,H()+"/r/collect",!0))}},xn=function(t){return t?(1*t).toFixed(3):"0"},Tn=function(t){var e=L.performance;if(e&&e.getEntriesByName){n(35);var o="https://www.google-analytics.com/analytics.js?wpid="+t;g(o,void 0,void 0,(function(){try{var i=1,r=e.getEntriesByName("https://www.google-analytics.com/analytics.js");r&&0!=r.length||(r=e.getEntriesByName("http://www.google-analytics.com/analytics.js"),i=0);var s=e.getEntriesByName(o);if(r&&1==r.length&&s&&1==s.length){n(37);var a=r[0],c=s[0],l={tid:t,ad:xn(a.duration),bd:xn(c.duration),ar:xn(a.responseEnd-a.requestStart),br:xn(c.responseEnd-c.requestStart),an:xn(a.domainLookupEnd-a.domainLookupStart),bn:xn(c.domainLookupEnd-c.domainLookupStart),ac:xn(a.connectEnd-a.connectStart),bc:xn(c.connectEnd-c.connectStart),as:i};i=[];for(var u in i.push("_v=j48"),i.push("id=10"),l)l.hasOwnProperty(u)&&i.push(u+"="+m(l[u]));i.push("z="+K()),O("https://www.google-analytics.com/u/d",i.join("&"),f)}}catch(d){}}))}},Sn=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,An=function(t){function e(t,e){r.b.data.set(t,e)}function o(t,n){e(t,n),r.filters.add(t)}function i(t,e,o){Be(new ze(1e4,!0,e),r.b)&&(t=T(t))&&0<t.length&&n(o)}var r=this;this.b=new Z,this.filters=new N,e(Le,t[Le]),e(Te,u(t[Te])),e(Se,t[Se]),e(Ae,t[Ae]||y()),e(Ce,t[Ce]),e(Me,t[Me]),e(He,t[He]),e(_e,t[_e]),e(Oe,t[Oe]),e($e,t[$e]),e(Ie,t[Ie]),e(De,t[De]),e(Pe,t[Pe]),e(qe,t[qe]),e(xe,t[xe]),e(je,t[je]),e(ft,1),e(mt,"j48"),o(ce,V),o(le,W),o(ue,z),o(de,G),o(fe,Ye),o(me,Ze),o(he,R),o(pe,Y),o(we,F),o(ye,X),o(Ee,jn),o(ge,B),o(ve,U),o(be,Ge(this)),Cn(this.b,t[ke]),Hn(this.b),this.b.set(ht,function(){var t=L.gaGlobal=L.gaGlobal||{};return t.hid=t.hid||K()}()),function(t,e,n){if(!hn){var o;o=k.location.hash;var i=L.name,r=/^#?gaso=([^&]*)/;(i=(o=(o=o&&o.match(r)||i&&i.match(r))?o[1]:T("GASO")[0]||"")&&o.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))&&(S("GASO",""+o,n,e,t,0),window._udo||(window._udo=e),window._utcp||(window._utcp=n),t=i[1],g("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(t?"prefix="+t+"&":"")+K(),"_gasojs")),hn=!0}}(this.b.get(Te),this.b.get(Ae),this.b.get(Ce)),this.ra=new ze(1e4,!0,"gaexp10"),i("_gid","gacookie11",41),i("_gaid","gacookie12",44)},Cn=function(t,e){if("cookie"==et(t,qe)){var o;Ke=!1;t:{var i=T(et(t,Se));if(i&&!(1>i.length)){o=[];for(var r=0;r<i.length;r++){var s,a=(s=i[r].split(".")).shift();("GA1"==a||"1"==a)&&1<s.length?(1==(a=s.shift().split("-")).length&&(a[1]="1"),a[0]*=1,a[1]*=1,s={H:a,s:s.join(".")}):s=void 0,s&&o.push(s)}if(1==o.length){n(13),o=o[0].s;break t}if(0!=o.length){if(n(14),i=en(et(t,Ae)).split(".").length,1==(o=tn(o,i,0)).length){o=o[0].s;break t}i=on(et(t,Ce)),o=(o=tn(o,i,1))[0]&&o[0].s;break t}n(12)}o=void 0}o||(o=et(t,Ae),null!=(o=rn("__utma",i=et(t,He)||y(),o))?(n(10),o=o.O[1]+"."+o.O[2]):o=void 0),o&&(t.data.set(ke,o),Ke=!0)}if(o=t.get($e),(r=w(k.location[o?"href":"search"],"_ga"))&&(t.get(Oe)?-1==(o=r.indexOf("."))?n(22):(i=r.substring(o+1),"1"!=r.substring(0,o)?n(22):-1==(o=i.indexOf("."))?n(22):(r=i.substring(0,o))!=ln(o=i.substring(o+1),0)&&r!=ln(o,-1)&&r!=ln(o,-2)?n(23):(n(11),t.data.set(ke,o))):n(21)),e&&(n(9),t.data.set(ke,m(e))),!t.get(ke))if(e=(e=L.gaGlobal&&L.gaGlobal.vid)&&-1!=e.search(/^(?:utma\.)?\d+\.\d+$/)?e:void 0)n(17),t.data.set(ke,e);else{for(n(8),o=(e=L.navigator.userAgent+(k.cookie?k.cookie:"")+(k.referrer?k.referrer:"")).length,i=L.history.length;0<i;)e+=i--^o++;t.data.set(ke,[K()^2147483647&to(e),Math.round((new Date).getTime()/1e3)].join("."))}Je(t)},Hn=function(t){var e=L.navigator,o=L.screen,i=k.location;if(t.set(Lt,function(t){var e=k.referrer;if(/^https?:\/\//i.test(e)){if(t)return e;t="//"+k.location.hostname;var n=e.indexOf(t);if((5==n||6==n)&&("/"==(t=e.charAt(n+t.length))||"?"==t||""==t||":"==t))return;return e}}(t.get(Pe))),i){var r=i.pathname||"";"/"!=r.charAt(0)&&(n(31),r="/"+r),t.set(Et,i.protocol+"//"+i.hostname+r+i.search)}o&&t.set(St,o.width+"x"+o.height),o&&t.set(Tt,o.colorDepth+"-bit");o=k.documentElement;var s=(r=k.body)&&r.clientWidth&&r.clientHeight,a=[];if(o&&o.clientWidth&&o.clientHeight&&("CSS1Compat"===k.compatMode||!s)?a=[o.clientWidth,o.clientHeight]:s&&(a=[r.clientWidth,r.clientHeight]),o=0>=a[0]||0>=a[1]?"":a.join("x"),t.set(At,o),t.set(Mt,function(){var t,e,n;if((n=(n=L.navigator)?n.plugins:null)&&n.length)for(var o=0;o<n.length&&!e;o++){var i=n[o];-1<i.name.indexOf("Shockwave Flash")&&(e=i.description)}if(!e)try{e=(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")).GetVariable("$version")}catch(s){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e="WIN 6,0,21,0",t.AllowScriptAccess="always",e=t.GetVariable("$version")}catch(s){}if(!e)try{e=(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(s){}return e&&(t=e.match(/[\d]+/g))&&3<=t.length&&(e=t[0]+"."+t[1]+" r"+t[2]),e||void 0}()),t.set(xt,k.characterSet||k.charset),t.set(Ct,e&&"function"==typeof e.javaEnabled&&e.javaEnabled()||!1),t.set(jt,(e&&(e.language||e.browserLanguage)||"").toLowerCase()),i&&t.get($e)&&(e=k.location.hash)){for(e=e.split(/[?&#]+/),i=[],o=0;o<e.length;++o)(l(e[o],"utm_id")||l(e[o],"utm_campaign")||l(e[o],"utm_source")||l(e[o],"utm_medium")||l(e[o],"utm_term")||l(e[o],"utm_content")||l(e[o],"gclid")||l(e[o],"dclid")||l(e[o],"gclsrc"))&&i.push(e[o]);0<i.length&&(e="#"+i.join("&"),t.set(Et,t.get(Et)+e))}};An.prototype.get=function(t){return this.b.get(t)},An.prototype.set=function(t,e){this.b.set(t,e)};var _n={pageview:[kt],event:[Ht,_t,qt,Ot],social:[$t,It,Dt],timing:[Wt,Xt,Kt,Gt]};An.prototype.send=function(t){var e,n;1>arguments.length||("string"==typeof arguments[0]?(e=arguments[0],n=[].slice.call(arguments,1)):(e=arguments[0]&&arguments[0][pt],n=arguments),e&&((n=b(_n[e]||[],n))[pt]=e,this.b.set(n,void 0,!0),this.filters.D(this.b),this.b.data.m={},Be(this.ra,this.b)&&Tn(this.b.get(Te))))},An.prototype.ma=function(t,e){var n=this;Bn(t,n,e)||(Fn(t,(function(){Bn(t,n,e)})),Un(String(n.get(Le)),t,void 0,e,!0))};var qn,On,In,Dn,Pn=function(t){return"prerender"!=k.visibilityState&&(t(),!0)},Nn=function(t){if(!Pn(t)){n(16);var e=!1,o=function(){if(!e&&Pn(t)){e=!0;var n=o,i=k;i.removeEventListener?i.removeEventListener("visibilitychange",n,!1):i.detachEvent&&i.detachEvent("onvisibilitychange",n)}};h(k,"visibilitychange",o)}},Rn=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,Vn=function(t){if(s(t[0]))this.u=t[0];else{var e=Rn.exec(t[0]);if(null!=e&&4==e.length&&(this.c=e[1]||"t0",this.K=e[2]||"",this.C=e[3],this.a=[].slice.call(t,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(c(this.a[1])?this.X=this.a[1]:this.W=this.a[1]))),e=t[1],t=t[2],!this.C)throw"abort";if(this.i&&(!c(e)||""==e))throw"abort";if(this.g&&(!c(e)||""==e||!s(t)))throw"abort";if(zn(this.c)||zn(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort"}};function zn(t){return 0<=t.indexOf(".")||0<=t.indexOf(":")}qn=new E,In=new E,Dn=new E,On={ec:45,ecommerce:46,linkid:47};var Bn=function(t,e,n){e==Jn||e.get(Le);var o=qn.get(t);return!!s(o)&&(e.plugins_=e.plugins_||new E,!!e.plugins_.get(t)||(e.plugins_.set(t,new o(e,n||{})),!0))},Un=function(t,e,o,i,r){if(!s(qn.get(e))&&!In.get(e)){if(On.hasOwnProperty(e)&&n(On[e]),pn.test(e)){if(n(52),!(t=Jn.j(t)))return!0;i={id:e,B:(o=i||{}).dataLayer||"dataLayer",ia:!!t.get("anonymizeIp"),na:r,G:!1},t.get("&gtm")==e&&(i.G=!0);var a=String(t.get("name"));"t0"!=a&&(i.target=a),x(String(t.get("trackingId")))||(i.ja=String(t.get(ke)),i.ka=Number(t.get(je)),o=o.palindrome?vn:gn,o=(o=k.cookie.replace(/^|(; +)/g,";").match(o))?o.sort().join("").substring(1):void 0,i.la=o,i.qa=w(t.b.get(Et)||"","gclid")),t=i.B,o=(new Date).getTime(),L[t]=L[t]||[],o={"gtm.start":o},r||(o.event="gtm.js"),L[t].push(o),o=function(t){function e(t,e){e&&(n+="&"+t+"="+m(e))}var n="https://www.google-analytics.com/gtm/js?id="+m(t.id);return"dataLayer"!=t.B&&e("l",t.B),e("t",t.target),e("cid",t.ja),e("cidt",t.ka),e("gac",t.la),e("aip",t.ia),t.na&&e("m","sync"),e("cycle",t.G),t.qa&&e("gclid",t.qa),n}(i)}!o&&On.hasOwnProperty(e)?(n(39),o=e+".js"):n(43),o&&(o&&0<=o.indexOf("/")||(o=(dt||v()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+o),t=(i=Gn(o)).protocol,o=k.location.protocol,("https:"==t||t==o||"http:"==t&&"http:"==o)&&Xn(i)&&(g(i.url,void 0,r),In.set(e,!0)))}},Fn=function(t,e){var n=Dn.get(t)||[];n.push(e),Dn.set(t,n)},Wn=function(t,e){qn.set(t,e),e=Dn.get(t)||[];for(var n=0;n<e.length;n++)e[n]();Dn.set(t,[])},Xn=function(t){var e=Gn(k.location.href);return!!l(t.url,"https://www.google-analytics.com/gtm/js?id=")||!(t.query||0<=t.url.indexOf("?")||0<=t.path.indexOf("://"))&&(t.host==e.host&&t.port==e.port||(e="http:"==t.protocol?80:443,!("www.google-analytics.com"!=t.host||(t.port||e)!=e||!l(t.path,"/plugins/"))))},Gn=function(t){function e(t){var e=(t.hostname||"").split(":")[0].toLowerCase(),n=(t.protocol||"").toLowerCase();n=1*t.port||("http:"==n?80:"https:"==n?443:"");return t=t.pathname||"",l(t,"/")||(t="/"+t),[e,""+n,t]}var n=k.createElement("a");n.href=k.location.href;var o=(n.protocol||"").toLowerCase(),i=e(n),r=n.search||"",s=o+"//"+i[0]+(i[1]?":"+i[1]:"");return l(t,"//")?t=o+t:l(t,"/")?t=s+t:!t||l(t,"?")?t=s+i[2]+(t||r):0>t.split("/")[0].indexOf(":")&&(t=s+i[2].substring(0,i[2].lastIndexOf("/"))+"/"+t),n.href=t,o=e(n),{protocol:(n.protocol||"").toLowerCase(),host:o[0],port:o[1],path:o[2],query:n.search||"",url:t||""}},Kn={ga:function(){Kn.f=[]}};Kn.ga(),Kn.D=function(t){var e=Kn.J.apply(Kn,arguments);e=Kn.f.concat(e);for(Kn.f=[];0<e.length&&!Kn.v(e[0])&&(e.shift(),!(0<Kn.f.length)););Kn.f=Kn.f.concat(e)},Kn.J=function(t){for(var e=[],n=0;n<arguments.length;n++)try{var o=new Vn(arguments[n]);o.g?Wn(o.a[0],o.a[1]):(o.i&&(o.ha=Un(o.c,o.a[0],o.X,o.W)),e.push(o))}catch(Mn){}return e},Kn.v=function(t){try{if(t.u)t.u.call(L,Jn.j("t0"));else{var e=t.c==ut?Jn:Jn.j(t.c);if(t.A)"t0"!=t.c||Jn.create.apply(Jn,t.a);else if(t.ba)Jn.remove(t.c);else if(e)if(t.i){if(t.ha&&(t.ha=Un(t.c,t.a[0],t.X,t.W)),!Bn(t.a[0],e,t.W))return!0}else if(t.K){var n=t.C,o=t.a,i=e.plugins_.get(t.K);i[n].apply(i,o)}else e[t.C].apply(e,t.a)}}catch(r){}};var Jn=function(t){n(1),Kn.D.apply(Kn,[arguments])};Jn.h={},Jn.P=[],Jn.L=0,Jn.answer=42;var Yn=[Te,Ae,Le];Jn.create=function(t){var e=b(Yn,[].slice.call(arguments));e[Le]||(e[Le]="t0");var n=""+e[Le];return Jn.h[n]?Jn.h[n]:(e=new An(e),Jn.h[n]=e,Jn.P.push(e),e)},Jn.remove=function(t){for(var e=0;e<Jn.P.length;e++)if(Jn.P[e].get(Le)==t){Jn.P.splice(e,1),Jn.h[t]=null;break}},Jn.j=function(t){return Jn.h[t]},Jn.getAll=function(){return Jn.P.slice(0)},Jn.N=function(){"ga"!=ut&&n(49);var t=L[ut];if(!t||42!=t.answer){if(Jn.L=t&&t.l,Jn.loaded=!0,Ve("create",e=L[ut]=Jn,e.create),Ve("remove",e,e.remove),Ve("getByName",e,e.j,5),Ve("getAll",e,e.getAll,6),Ve("get",e=An.prototype,e.get,7),Ve("set",e,e.set,4),Ve("send",e,e.send),Ve("requireSync",e,e.ma),Ve("get",e=Z.prototype,e.get),Ve("set",e,e.set),!v()&&!dt){t:{for(var e=k.getElementsByTagName("script"),o=0;o<e.length&&100>o;o++){var i=e[o].src;if(i&&0==i.indexOf("https://www.google-analytics.com/analytics")){n(33),e=!0;break t}}e=!1}e&&(dt=!0)}v()||dt||!Be(new ze(1e4))||(n(36),dt=!0),(L.gaplugins=L.gaplugins||{}).Linker=un,e=un.prototype,Wn("linker",un),Ve("decorate",e,e.ca,20),Ve("autoLink",e,e.S,25),Wn("displayfeatures",kn),Wn("adfeatures",kn),t=t&&t.q,a(t)?Kn.D.apply(Jn,t):n(50)}},Jn.da=function(){for(var t=Jn.getAll(),e=0;e<t.length;e++)t[e].get(Le)};var Zn=Jn.N,Qn=L[ut];function to(t){var e,n,o=1;if(t)for(o=0,n=t.length-1;0<=n;n--)o=0!=(e=266338304&(o=(o<<6&268435455)+(e=t.charCodeAt(n))+(e<<14)))?o^e>>21:o;return o}Qn&&Qn.r?Zn():Nn(Zn),Nn((function(){Kn.D(["provide","render",f])}))}(),function(){var t=window,e="push",n="length",o="prototype",i=function(t){if(t.get&&t.set){this.clear();var e=t.get("buildHitTask");t.set("buildHitTask",d(this,e)),t.set("_rlt",f(this,t.get("_rlt")))}},r={action:"pa",promoAction:"promoa",id:"ti",affiliation:"ta",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",step:"cos",label:"col",option:"col",options:"col",list:"pal",listSource:"pls"},s={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",quantity:"qt",coupon:"cc","dimension(\\d+)":"cd","metric(\\d+)":"cm"},a={id:"id",name:"nm",creative:"cr",position:"ps"},c=function(t,e){this.name=t,this.source=e,this.e=[]},l="detail checkout checkout_option click add remove purchase refund".split(" ");i[o].clear=function(){this.b=void 0,this.f=[],this.a=[],this.g=[],this.d=void 0},i[o].h=function(t,e){var n=e||{};"promo_click"==t?n.promoAction="click":n.action=t,this.b=m(n)},i[o].j=function(t){(t=m(t))&&this.f[e](t)},i[o].i=function(t){var o=m(t);if(o){var i,r=t.list||"";t=t.listSource||"";for(var s=0;s<this.a[n];s++)if(this.a[s].name==r){i=this.a[s];break}i||(i=new c(r,t),this.a[e](i)),i.e[e](o)}},i[o].c=function(t){(t=m(t))&&this.g[e](t)};var u=function(t,e,i){if("[object Array]"==Object[o].toString.call(Object(t)))for(var r=0;r<t[n];r++)e.call(i,t[r])};i[o].data=function(t){if(t&&t.ecommerce){(t=t.ecommerce).promoView&&u(t.promoView.promotions,this.c,this),t.promoClick&&(this.h("promo_click",t.promoClick.actionField),u(t.promoClick.promotions,this.c,this));for(var e=0;e<l[n];e++){var o=t[l[e]];if(o){this.h(l[e],o.actionField),u(o.products,this.j,this);break}}u(t.impressions,this.i,this),t.currencyCode&&(this.d=t.currencyCode)}};var d=function(t,e){return function(o){var i,c,l;for(t.b&&h(r,t.b,o,"&"),i=0;i<t.f[n];i++)c="&pr"+(i+1),h(s,t.f[i],o,c);for(i=0;i<t.a[n];i++){c="&il"+(i+1),(l=t.a[i]).name&&o.set(c+"nm",l.name,!0),l.source&&o.set(c+"ls",l.source,!0);for(var u=0;u<l.e[n];u++)h(s,l.e[u],o,c+"pi"+(u+1))}for(i=0;i<t.g[n];i++)c="&promo"+(i+1),h(a,t.g[i],o,c);return t.d&&o.set("&cu",t.d,!0),t.clear(),e(o)}},f=function(t,e){return function(n){var o=t.b&&t.b.action;if("purchase"!=o&&"refund"!=o)return e(n)}},m=function(t){var e=0,n={};if(t&&"object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o],e++);return e?n:void 0},h=function(t,e,n,o){for(var i in e)if(e.hasOwnProperty(i))for(var r in t)if(t.hasOwnProperty(r)){var s=i.match("^"+r+"$");s&&n.set(o+t[r]+s.slice(1).join(""),e[i],!0)}};!function(){t.gaplugins=t.gaplugins||{},t.gaplugins.EC=i,i[o].setAction=i[o].h,i[o].addProduct=i[o].j,i[o].addImpression=i[o].i,i[o].addPromo=i[o].c,i[o].clear=i[o].clear,i[o].data=i[o].data;var n=t.GoogleAnalyticsObject||"ga";t[n]=t[n]||function(){(t[n].q=t[n].q||[])[e](arguments)},t[n]("provide","ec",i)}()}(),window.ga||(window.ga=function(){window.ga.q.push(arguments)},window.ga.q=[]);const wn=["input[pattern]","input[required]","textarea[required]","input[data-required-change]","textarea[data-required-change]"].join(",");S("[data-required-trimmed]",(function(t){const e=t.currentTarget;""===e.value.trim()?e.setCustomValidity(e.getAttribute("data-required-trimmed")):e.setCustomValidity("")})),s("change","[data-required-trimmed]",(function(t){const e=t.currentTarget;""===e.value.trim()?e.setCustomValidity(e.getAttribute("data-required-trimmed")):e.setCustomValidity(""),bn(e.form)})),x(wn,t=>{let e=t.checkValidity();function n(){const n=t.checkValidity();n!==e&&t.form&&bn(t.form),e=n}t.addEventListener("input",n),t.addEventListener("blur",(function e(){t.removeEventListener("input",n),t.removeEventListener("blur",e)}))});const yn=new WeakMap;function bn(t){const e=t.checkValidity();for(const o of n(t,"button[data-disable-invalid]",HTMLButtonElement))o.disabled=!e}function En(t){const e=document.querySelector(".sso-modal");e&&(e.classList.remove("success","error"),t?e.classList.add("success"):e.classList.add("error"))}o("button[data-disable-invalid]",{constructor:HTMLButtonElement,initialize(t){const e=t.form;e&&(!function(t){yn.get(t)||(t.addEventListener("change",()=>bn(t)),yn.set(t,!0))}(e),t.disabled=!e.checkValidity())}}),o("input[data-required-change], textarea[data-required-change]",(function(t){const e="radio"===t.type&&t.form?u(t.form,t.name,RadioNodeList).value:null;function n(n){const o=t.form;if(n&&"radio"===t.type&&o&&e)for(const i of u(o,t.name,RadioNodeList))i instanceof HTMLInputElement&&i.setCustomValidity(t.value===e?"unchanged":"");else t.setCustomValidity(t.value===(e||t.defaultValue)?"unchanged":"")}t.addEventListener("input",n),t.addEventListener("change",n),n(),t.form&&bn(t.form)})),document.addEventListener("reset",(function(t){if(t.target instanceof HTMLFormElement){const e=t.target;setTimeout(()=>bn(e))}})),o(".js-sso-modal-complete",(function(t){if(window.opener&&window.opener.external.ssoComplete){const e=t.getAttribute("data-error"),n=t.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:e,expiresAround:n}),window.close()}else{const e=t.getAttribute("data-fallback-url");e&&(window.location.href=e)}}));let Ln=null;function kn(){Ln=null}const jn=["is-render-pending","is-render-ready","is-render-loading","is-render-loaded"],xn=new WeakMap;function Tn(t){const e=xn.get(t);null!=e&&(e.load=e.hello=null,e.helloTimer&&(clearTimeout(e.helloTimer),e.helloTimer=null),e.loadTimer&&(clearTimeout(e.loadTimer),e.loadTimer=null))}function Sn(t){t.classList.remove(...jn),t.classList.add("is-render-failed"),Tn(t)}function An(t,e=!1){var n;!$t(t)||t.classList.contains("is-render-ready")||t.classList.contains("is-render-failed")||t.classList.contains("is-render-failed-fatally")||e&&!(null===(n=xn.get(t))||void 0===n?void 0:n.hello)||Sn(t)}function Cn(t,e){t&&t.postMessage&&t.postMessage(JSON.stringify(e),"*")}function Mn(t){const e="==".slice(0,(4-t.length%4)%4),n=t.replace(/-/g,"+").replace(/_/g,"/")+e,o=atob(n),i=new ArrayBuffer(o.length),r=new Uint8Array(i);for(let s=0;s<o.length;s++)r[s]=o.charCodeAt(s);return i}function Hn(t){const e=new Uint8Array(t);let n="";for(const o of e)n+=String.fromCharCode(o);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function _n(t,e,n){if("copy"===e)return n;if("convert"===e)return t(n);if(e instanceof Array)return n.map(n=>_n(t,e[0],n));if(e instanceof Object){const o={};for(const[i,r]of Object.entries(e))if(i in n)null!=n[i]?o[i]=_n(t,r.schema,n[i]):o[i]=null;else if(r.required)throw new Error("Missing key: "+i);return o}}function qn(t){return{required:!0,schema:t}}function On(t){return{required:!1,schema:t}}o(".js-render-target",(function(t){var e;null!==(e=xn.get(t))&&void 0!==e&&e.load||(Tn(t),xn.get(t)||(xn.set(t,{load:Date.now(),hello:null,helloTimer:window.setTimeout(An,1e4,t,!0),loadTimer:window.setTimeout(An,45e3,t)}),t.classList.add("is-render-automatic","is-render-requested")))})),window.addEventListener("message",(function(t){var e;let n=t.data;if(!n)return;if("string"==typeof n)try{n=JSON.parse(n)}catch(l){return}if("string"!=typeof n.type&&"render"!==n.type)return;const o=n.type;if("string"!=typeof n.identity)return;const r=n.identity;if("string"!=typeof n.body)return;const s=n.body;let a;for(const i of document.querySelectorAll(".js-render-target"))if(!r||i.getAttribute("data-identity")===r){a=i;break}if(!a)return;if(t.origin!==a.getAttribute("data-host"))return;const c=null!=n.payload?n.payload:void 0;switch(s){case"hello":{(xn.get(a)||{untimed:!0}).hello=Date.now();const t={type:"render:cmd",body:{cmd:"ack",ack:!0}},n={type:"render:cmd",body:{cmd:"branding",branding:!1}},o=null===(e=a.querySelector("iframe"))||void 0===e?void 0:e.contentWindow;if(!o)return;if(Cn(o,t),Cn(o,n),a.classList.contains("is-local")){const t=a.closest(".js-code-editor"),e=t instanceof HTMLElement?gn(t):null;if(e){let t=null;const n=(n,i)=>{if(i&&"setValue"===i.origin)return;const r=e.code();r!==t&&(t=r,Cn(o,{type:"render:data",body:r}))};e.editor.on("change",n),n()}}}break;case"error":Sn(a);break;case"error:fatal":Sn(a),a.classList.add("is-render-failed-fatal");break;case"error:invalid":Sn(a),a.classList.add("is-render-failed-invalid");break;case"loading":a.classList.remove(...jn),a.classList.add("is-render-loading");break;case"loaded":a.classList.remove(...jn),a.classList.add("is-render-loaded");break;case"ready":a.classList.remove(...jn),a.classList.add("is-render-ready"),c&&"number"==typeof c.height&&(a.style.height=`${c.height}px`),i(a,"render:hook:afterready",{container:a,payload:c});break;case"resize":c&&"number"==typeof c.height&&(a.style.height=`${c.height}px`);break;case"data":i(a,"edit:visual",c);break;default:i(a,"render:hook:message",{type:o,body:s,payload:c})}}));const $n={type:qn("copy"),id:qn("convert"),transports:On("copy")},In={appid:On("copy"),appidExclude:On("copy")},Dn={appid:On("copy"),appidExclude:On("copy")},Pn={publicKey:qn({rp:qn("copy"),user:qn({id:qn("convert"),name:qn("copy"),displayName:qn("copy")}),challenge:qn("convert"),pubKeyCredParams:qn("copy"),timeout:On("copy"),excludeCredentials:On([$n]),authenticatorSelection:On("copy"),attestation:On("copy"),extensions:On(In)}),signal:On("copy")},Nn={type:qn("copy"),id:qn("copy"),rawId:qn("convert"),response:qn({clientDataJSON:qn("convert"),attestationObject:qn("convert")}),clientExtensionResults:qn(Dn)},Rn={mediation:On("copy"),publicKey:qn({challenge:qn("convert"),timeout:On("copy"),rpId:On("copy"),allowCredentials:On([$n]),userVerification:On("copy"),extensions:On(In)}),signal:On("copy")},Vn={type:qn("copy"),id:qn("copy"),rawId:qn("convert"),response:qn({clientDataJSON:qn("convert"),authenticatorData:qn("convert"),signature:qn("convert"),userHandle:qn("convert")}),clientExtensionResults:qn(Dn)};function zn(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}function Bn(){return zn()?"supported":"unsupported"}function Un(t){const e=t.split("‍");let n=0;for(const o of e){n+=Array.from(o.split(/[\ufe00-\ufe0f]/).join("")).length}return n/e.length}async function Fn(t,e){let n;const o=new Promise(e=>{n=self.setTimeout(e,t)});if(!e)return o;try{await Promise.race([o,Wn(e)])}catch(Mn){throw self.clearTimeout(n),Mn}}function Wn(t){return new Promise((e,n)=>{const o=new Error("aborted");o.name="AbortError",t.aborted?n(o):t.addEventListener("abort",()=>n(o))})}function Xn(t){if(t.querySelector(".js-task-list-field"))for(const e of n(t,"task-lists",f))e.disabled=!1}function Gn(t,e,o){const i=l(t,".js-comment-update",HTMLFormElement);!function(t){for(const e of n(t,"task-lists",f))e.disabled=!0}(t);const r=i.elements.namedItem("task_list_track");r instanceof Element&&r.remove();const s=i.elements.namedItem("task_list_operation");s instanceof Element&&s.remove();const a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name","task_list_track"),a.setAttribute("value",e),i.appendChild(a);const u=document.createElement("input");if(u.setAttribute("type","hidden"),u.setAttribute("name","task_list_operation"),u.setAttribute("value",JSON.stringify(o)),i.appendChild(u),!i.elements.namedItem("task_list_key")){const t=l(i,".js-task-list-field"),e=c(t,"name").split("[")[0],n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name","task_list_key"),n.setAttribute("value",e),i.appendChild(n)}t.classList.remove("is-comment-stale"),H(i)}o(".js-task-list-container .js-task-list-field",(function(t){Xn(a(t,".js-task-list-container"))})),s("task-lists-move","task-lists",(function(t){const{src:e,dst:n}=t.detail;Gn(a(t.currentTarget,".js-task-list-container"),"reordered",{operation:"move",src:e,dst:n})})),s("task-lists-check","task-lists",(function(t){const{position:e,checked:n}=t.detail;Gn(a(t.currentTarget,".js-task-list-container"),`checked:${n?1:0}`,{operation:"check",position:e,checked:n})})),d(".js-task-list-container .js-comment-update",(async function(t,e){const n=a(t,".js-task-list-container"),o=t.elements.namedItem("task_list_track");o instanceof Element&&o.remove();const i=t.elements.namedItem("task_list_operation");let r;i instanceof Element&&i.remove();try{r=await e.json()}catch(s){let t;try{t=JSON.parse(s.response.text)}catch(Mn){}if(t&&t.stale&&tt("PRESERVE_STALE_COMMENTS")){const t=l(n,".js-task-list-field",HTMLTextAreaElement);t.classList.add("session-resumable-canceled"),t.classList.remove("js-session-resumable")}else if(t&&t.stale){const e=t.updated_markdown,o=t.updated_html,i=t.version;if(e&&o&&i){const t=l(n,".js-comment-body"),r=l(n,".js-body-version"),s=l(n,".js-task-list-field",HTMLTextAreaElement);t.innerHTML=o,s.value=e,n.setAttribute("data-body-version",i),r instanceof HTMLInputElement&&(r.value=i)}}else window.location.reload()}r&&(i&&r.json.source&&(l(n,".js-task-list-field",HTMLTextAreaElement).value=r.json.source),Xn(n))}));let Kn=!1;function Jn(t,e){let n=t.nextElementSibling;for(;n&&Zn(n);)n.hidden=e,n=n.nextElementSibling}function Yn(t,e){l(t,".js-runner-chevron-up").hidden=e,l(t,".js-runner-chevron-down").hidden=!e}s("click",".js-open-runner-group",(function(t){if(Kn)return;Kn=!0;const e=t.currentTarget,n=a(e,".js-runner-group");"false"===e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","true"),Jn(n,!1),Yn(n,!1)):(e.setAttribute("aria-expanded","false"),Jn(n,!0),Yn(n,!0)),Kn=!1}));function Zn(t){return null!=t&&t.classList.contains("js-runner")}let Qn;function to(){return!!Qn&&(Qn.remove(),Qn=null,!0)}s("details-menu-selected",".js-runner-group-visibility-menu",(function(t){const e=t.detail.relatedTarget,n=a(e,".js-runner-group-form"),o=c(e,"value");l(n,".js-runner-group-targets-selection").hidden="SELECTED"!==o}),{capture:!0}),s("click",".js-runner-group-checkbox",(function(t){const e=t.currentTarget;if(!(e instanceof HTMLInputElement))return;const n=a(e,".js-runner-group"),o=n.querySelector(".js-open-runner-group");if(!o)return;if(Kn)return;Kn=!0,e.checked&&(o.setAttribute("aria-expanded","true"),Jn(n,!1),Yn(n,!1));let i=n.nextElementSibling;for(;i&&Zn(i);){const t=l(i,".js-bulk-actions-toggle",HTMLInputElement);Zn(i.nextElementSibling)?t.checked=e.checked:(t.checked=!e.checked,t.click()),i=i.nextElementSibling}Kn=!1}));let eo=!1;let no=!1;function oo(t){const e=[];for(const n of function(){try{return document.cookie.split(";")}catch(t){return[]}}()){const[o,i]=n.trim().split("=");t===o&&void 0!==i&&e.push({key:o,value:i})}return e}function io(t,e,n=null,o=!1,i="lax"){let r=document.domain;if(null==r)throw new Error("Unable to get document domain");r.endsWith(".github.com")&&(r="github.com");const s="https:"===location.protocol?"; secure":"",a=n?`; expires=${n}`:"";!1===o&&(r=`.${r}`);try{document.cookie=`${t}=${e}; path=/; domain=${r}${a}${s}; samesite=${i}`}catch(c){}}d(".js-sudo-form",(async function(t,e){try{await e.text()}catch(n){if(!n.response)throw n;let e;switch(n.response.status){case 401:e="Incorrect password.";break;case 429:e="Too many password attempts. Please wait and try again later.";break;default:e="Failed to receive a response. Please try again later."}return l(t,".js-sudo-error").textContent=e,l(t,".js-sudo-error").hidden=!1,void(l(t,".js-sudo-password",HTMLInputElement).value="")}no=!0,a(t,"details").removeAttribute("open")}));let ro=null;function so(t){ro&&(ro.textContent="",ro.textContent=t)}!async function(){await q,ro=document.createElement("div"),ro.setAttribute("aria-live","polite"),ro.classList.add("sr-only"),document.body.append(ro)}();function ao(t){return t.toLowerCase()===t}function co(t){return t.toUpperCase()===t}function lo(t,e,n,o){for(var i=t.length,r=e.length,s=t.toLowerCase(),a=e.toLowerCase(),c=function(t){for(var e=t.length,n=new Array(e),o="/",i=0;i<e;i++){var r=t[i];"/"===o?n[i]=.9:"-"===o||"_"===o||" "===o?n[i]=.8:"."===o?n[i]=.6:ao(o)&&co(r)?n[i]=.7:n[i]=0,o=r}return n}(e),l=0;l<i;l++){n[l]=new Array(r),o[l]=new Array(r);for(var u=-1/0,d=l===i-1?-.005:-.01,f=0;f<r;f++)if(s[l]===a[f]){var m=-1/0;l?f&&(m=Math.max(o[l-1][f-1]+c[f],n[l-1][f-1]+1)):m=-.005*f+c[f],n[l][f]=m,o[l][f]=u=Math.max(m,u+d)}else n[l][f]=-1/0,o[l][f]=u+=d}}function uo(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var n=t.length,o=0,i=0;o<n;o+=1)if(0===(i=e.indexOf(t[o],i)+1))return!1;return!0}const fo=(t,e,n)=>{if(!uo(t,e))return-1/0;const o=function(t,e){var n=t.length,o=e.length;if(!n||!o)return-1/0;if(n===o)return 1/0;if(o>1024)return-1/0;var i=new Array(n),r=new Array(n);return lo(t,e,i,r),r[n-1][o-1]}(t,e);return o<n?-1/0:o},mo=(t,e,n)=>{t.innerHTML="";let o=0;for(const i of function(t,e){var n=t.length,o=e.length,i=new Array(n);if(!n||!o)return i;if(n===o){for(var r=0;r<n;r++)i[r]=r;return i}if(o>1024)return i;var s=new Array(n),a=new Array(n);lo(t,e,s,a);for(var c=!1,l=(r=n-1,o-1);r>=0;r--)for(;l>=0;l--)if(s[r][l]!==-1/0&&(c||s[r][l]===a[r][l])){c=r&&l&&a[r][l]===s[r-1][l-1]+1,i[r]=l--;break}return i}(e,n)){""!==n.slice(o,i)&&t.appendChild(document.createTextNode(n.slice(o,i))),o=i+1;const e=document.createElement("mark");e.textContent=n[i],t.appendChild(e)}t.appendChild(document.createTextNode(n.slice(o)))},ho=new WeakMap,po=new WeakMap,go=new WeakMap,vo=t=>{if(!go.has(t)&&t instanceof HTMLElement){const e=(t.getAttribute("data-value")||t.textContent||"").trim();return go.set(t,e),e}return go.get(t)||""};class FuzzyListElement extends HTMLElement{connectedCallback(){const t=this.querySelector("ul");if(!t)return;const e=new Set(t.querySelectorAll("li")),n=this.querySelector("input");n instanceof HTMLInputElement&&n.addEventListener("input",()=>{this.value=n.value});const o=new MutationObserver(t=>{let n=!1;for(const o of t)if("childList"===o.type&&o.addedNodes.length)for(const t of o.addedNodes)if(t instanceof HTMLLIElement&&!e.has(t)){const o=vo(t);n=n||uo(this.value,o),e.add(t)}n&&this.sort()});o.observe(t,{childList:!0});const i={handler:o,items:e,lazyItems:new Map,timer:null};po.set(this,i)}disconnectedCallback(){const t=po.get(this);t&&(t.handler.disconnect(),po.delete(this))}addLazyItems(t,e){const n=po.get(this);if(!n)return;const{lazyItems:o}=n,{value:i}=this;let r=!1;for(const s of t)o.set(s,e),r=r||Boolean(i)&&uo(i,s);r&&this.sort()}sort(){const t=ho.get(this);t&&(t.aborted=!0);const e={aborted:!1};ho.set(this,e);const{minScore:n,markSelector:o,maxMatches:i,value:r}=this,s=po.get(this);if(!s)return;if(!this.dispatchEvent(new CustomEvent("fuzzy-list-will-sort",{cancelable:!0,detail:r})))return;const{items:a,lazyItems:c}=s,l=this.hasAttribute("mark-selector"),u=this.querySelector("ul");if(!u)return;const d=[];if(r){for(const t of a){const e=vo(t),o=fo(r,e,n);o!==-1/0&&d.push({item:t,score:o})}for(const[t,e]of c){const o=fo(r,t,n);o!==-1/0&&d.push({text:t,render:e,score:o})}d.sort((t,e)=>e.score-t.score).splice(i)}else{let t=d.length;for(const e of a){if(t>=i)break;d.push({item:e,score:1}),t+=1}for(const[e,n]of c){if(t>=i)break;d.push({text:e,render:n,score:1}),t+=1}}requestAnimationFrame(()=>{if(e.aborted)return;const t=u.querySelector('input[type="radio"]:checked');u.innerHTML="";let n=0;const i=()=>{if(e.aborted)return;const s=Math.min(d.length,n+100),f=document.createDocumentFragment();for(let t=n;t<s;t+=1){const e=d[t];let n=null;if("render"in e&&"text"in e){const{render:t,text:o}=e;n=t(o),a.add(n),go.set(n,o),c.delete(o)}else"item"in e&&(n=e.item);n instanceof HTMLElement&&(l&&mo(o&&n.querySelector(o)||n,l?r:"",vo(n)),f.appendChild(n))}n=s;let m=!1;if(t instanceof HTMLInputElement)for(const e of f.querySelectorAll('input[type="radio"]:checked'))e instanceof HTMLInputElement&&e.value!==t.value&&(e.checked=!1,m=!0);if(u.appendChild(f),t&&m&&t.dispatchEvent(new Event("change",{bubbles:!0})),s<d.length)requestAnimationFrame(i);else{u.hidden=0===d.length;const t=this.querySelector("[data-fuzzy-list-show-on-empty]");t&&(t.hidden=d.length>0),this.dispatchEvent(new CustomEvent("fuzzy-list-sorted",{detail:d.length}))}};i()})}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get markSelector(){return this.getAttribute("mark-selector")||""}set markSelector(t){t?this.setAttribute("mark-selector",t):this.removeAttribute("mark-selector")}get minScore(){return Number(this.getAttribute("min-score")||0)}set minScore(t){Number.isNaN(t)||this.setAttribute("min-score",String(t))}get maxMatches(){return Number(this.getAttribute("max-matches")||1/0)}set maxMatches(t){Number.isNaN(t)||this.setAttribute("max-matches",String(t))}static get observedAttributes(){return["value","mark-selector","min-score","max-matches"]}attributeChangedCallback(t,e,n){if(e===n)return;const o=po.get(this);o&&(o.timer&&window.clearTimeout(o.timer),o.timer=window.setTimeout(()=>this.sort(),100))}}function wo(){return/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null}function yo(t){const e=(t.getAttribute("data-platforms")||"").split(","),n=wo();return Boolean(n&&e.includes(n))}function bo(t){const e=t.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(e){if(1===e.length){const t=Eo(e[0]);if(!t)return;return Object.freeze({start:t,end:t})}if(2===e.length){const t=Eo(e[0]),n=Eo(e[1]);if(!t||!n)return;return ko(Object.freeze({start:t,end:n}))}}else;}function Eo(t){const e=t.match(/L(\d+)/),n=t.match(/C(\d+)/);return e?Object.freeze({line:parseInt(e[1]),column:n?parseInt(n[1]):null}):null}function Lo(t,e,n){const o=[null,0],i=n(t.line);if(!i)return o;if(null==t.column)return[i,-1];let r=t.column-1;const s=function t(e){if(e.nodeType===Node.TEXT_NODE)return[e];if(!e.childNodes||!e.childNodes.length)return[];let n=[];for(const o of e.childNodes)n=n.concat(t(o));return n}(i);for(let a=0;a<s.length;a++){const t=s[a],n=r-(t.textContent||"").length;if(0===n){const n=s[a+1];return e&&n?[n,0]:[t,r]}if(n<0)return[t,r];r=n}return o}function ko(t){const e=[t.start,t.end];return e.sort(jo),e[0]===t.start&&e[1]===t.end?t:Object.freeze({start:e[0],end:e[1]})}function jo(t,e){return t.line===e.line&&t.column===e.column?0:t.line===e.line&&"number"==typeof t.column&&"number"==typeof e.column?t.column-e.column:t.line-e.line}function xo(t){return t.hasAttribute("data-maxlength")?parseInt(t.getAttribute("data-maxlength")||""):t.maxLength}function To(t){const e=xo(t);!function(t,e,n){const o=n.closest(".js-characters-remaining-container");if(!o)return;const i=l(o,".js-characters-remaining"),r=String(i.getAttribute("data-suffix")),s=e-Un(t);s<=20?(i.textContent=`${s} ${r}`,i.classList.toggle("text-red",s<=5),i.hidden=!1):i.hidden=!0}(t.value,e,t)}function So(t){if(!window._octo)return;const e=Math.floor((new Date).getTime()/1e3);t.timestamp=e;if(document.head&&document.head.querySelector('meta[name="octolytics-event-url"]')){const e=l(document.head,'meta[name="octolytics-event-url"]',HTMLMetaElement).content,n=JSON.stringify(t);navigator.sendBeacon&&navigator.sendBeacon(e,n)}}t("aE",FuzzyListElement),window.customElements.get("fuzzy-list")||(window.FuzzyListElement=FuzzyListElement,window.customElements.define("fuzzy-list",FuzzyListElement)),o(".js-remove-unless-platform",(function(t){yo(t)||t.remove()})),o(".js-show-for-platform",{constructor:HTMLElement,add(t){yo(t)&&(t.hidden=!1)}}),o(".js-hide-for-platform",{constructor:HTMLElement,add(t){yo(t)&&(t.hidden=!0)}}),x(".js-characters-remaining-field",(function(t){function e(){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&To(t)}e(),t.addEventListener("input",e),t.addEventListener("blur",()=>{t.removeEventListener("input",e)},{once:!0})})),s("click","[data-octo-click]",(function(t){if(!window._octo)return;const e=t.currentTarget,n=e instanceof HTMLElement&&e.getAttribute("data-octo-click")||"",o={};o.event_type=n;const i={},r={},s={};let a=[];e instanceof HTMLElement&&e.hasAttribute("data-octo-dimensions")&&(a=(e.getAttribute("data-octo-dimensions")||"").split(","));const c=document.head?document.head.querySelectorAll('meta[name^="octolytics-"]'):[];for(const u of c)if(u instanceof HTMLMetaElement)if(u.name.startsWith("octolytics-dimension-")){i[u.name.replace(/^octolytics-dimension-/,"")]=u.content}else if(u.name.startsWith("octolytics-measure-")){r[u.name.replace(/^octolytics-measure-/,"")]=u.content}else if(u.name.startsWith("octolytics-context-")){s[u.name.replace(/^octolytics-context-/,"")]=u.content}else if(u.name.startsWith("octolytics-actor-")){i[u.name.replace(/^octolytics-/,"").replace(/-/g,"_")]=u.content}else if(u.name.startsWith("octolytics-")){o[u.name.replace(/^octolytics-/,"").replace(/-/g,"_")]=u.content}const l=document.querySelector("meta[name=visitor-payload]");if(l instanceof HTMLMetaElement){const t=JSON.parse(atob(l.content));Object.assign(i,t)}if(e instanceof HTMLElement&&e.hasAttribute("data-ga-click")){const t=(e.getAttribute("data-ga-click")||"").split(",").map(t=>t.trim());i.category=t[0],i.action=t[1]}for(const u of a){const t=u.split(":"),e=t.shift();e&&(i[e]=t.join(":"))}o.dimensions=i,o.measures=r,o.context=s,So(o)}));const Ao=(t,e)=>{const n=t.querySelector(".js-form-action-text"),o=n||t;o.textContent=e?c(t,"data-comment-text"):c(o,"data-default-action-text")},Co=t=>{let e;return n=>{const o=n.currentTarget.value.trim();o!==e&&(e=o,Ao(t,Boolean(o)))}};o(".js-comment-and-button",{constructor:HTMLButtonElement,initialize(t){const e=l(t.form,".js-comment-field"),n=Co(t);return{add(){e.addEventListener("input",n),e.addEventListener("change",n)},remove(){e.removeEventListener("input",n),e.removeEventListener("change",n)}}}});const Mo=t=>{t.disabled=!0,t.hidden=!0},Ho=t=>{t.disabled=!1,t.hidden=!1},_o=t=>{const e=a(t,".js-new-comment-form"),n=e.querySelector(".js-structured-issue-comment-container");return{structuredIssueCommentContainer:n,structuredIssueCommentBody:n&&n.querySelector(".js-structured-issue-comment-body"),previewableComment:e.querySelector(".js-previewable-comment-form-fieldset")}};async function qo(t,e){const n=t?await(await g(t)).text():"",{previewableComment:o,structuredIssueCommentContainer:i,structuredIssueCommentBody:r}=_o(e);if(!o)return;if(!i)return;if(!r)return;Mo(o),Ho(i),r.innerHTML=n;const s=o.form,a=s.querySelector(".js-comment-and-button");if(""===n){const t=l(s,".js-comment-field").value.trim();return void Ao(a,Boolean(t))}Ao(a,!1);const c=Co(a);for(const l of i.elements)l.addEventListener("input",c),l.addEventListener("change",c)}function Oo(t,e){let n=t;if(n===e)return 1;const o=n.length;let i=0,r=0;for(let l=0;l<e.length;l++){const t=e[l],s=n.indexOf(t.toLowerCase()),a=n.indexOf(t.toUpperCase()),c=Math.min(s,a),u=c>-1?c:Math.max(s,a);if(-1===u)return 0;i+=.1,n[u]===t&&(i+=.1),0===u&&(i+=.8,0===l&&(r=1))," "===n.charAt(u-1)&&(i+=.8),n=n.substring(u+1,o)}const s=e.length,a=i/s;let c=(a*(s/o)+a)/2;return r&&c+.1<1&&(c+=.1),c}function*$o(t,e){for(const n of t){const t=e(n);null!=t&&(yield t)}}function Io(t){const e=document.querySelectorAll(t);if(e.length>0)return e[e.length-1]}o(".js-structured-issues-template-button",{constructor:HTMLButtonElement,initialize(t){async function e(){qo(t.getAttribute("data-url"),t)}return{add(){t.addEventListener("click",e)},remove(){t.removeEventListener("click",e)}}}}),o(".js-new-comment-form",{constructor:HTMLFormElement,initialize(t){function e(){const{previewableComment:e,structuredIssueCommentContainer:n,structuredIssueCommentBody:o}=_o(t);e&&n&&o&&(Ho(e),Mo(n),o.innerHTML="")}return{add(){t.addEventListener("reset",e)},remove(){t.removeEventListener("reset",e)}}}}),o(".js-autofocus-template",{initialize(t){const e=t.querySelector(".form-group *");return{add(){setTimeout(()=>{null==e||e.focus()},0)}}}});const Do=.6,Po=.4;function No(t){const e=function(t){const e=[...Object.values(t)].reduce((t,e)=>t+e.visitCount,0);return new Map(Object.keys(t).map(n=>[n,t[n].visitCount/e]))}(t),n=function(t){const e=(o=[...Object.keys(t)],i=e=>t[e].lastVisitedAt,o.sort((t,e)=>i(t)-i(e))),n=e.length;var o,i;return new Map(e.map((t,e)=>[t,(e+1)/n]))}(t);return function(t){return o=e.get(t)||0,i=n.get(t)||0,o*Do+i*Po;var o,i}}const Ro=/^\/orgs\/([a-z0-9-]+)\/teams\/([\w-]+)/,Vo=[/^\/([^/]+)\/([^/]+)\/?$/,/^\/([^/]+)\/([^/]+)\/blob/,/^\/([^/]+)\/([^/]+)\/tree/,/^\/([^/]+)\/([^/]+)\/issues/,/^\/([^/]+)\/([^/]+)\/pulls?/,/^\/([^/]+)\/([^/]+)\/pulse/],zo=[["organization",/^\/orgs\/([a-z0-9-]+)\/projects\/([0-9-]+)/],["repository",/^\/([^/]+)\/([^/]+)\/projects\/([0-9-]+)/]];function Bo(t){const e=Ko(),n=Math.floor(Date.now()/1e3),o=e[t]||{lastVisitedAt:n,visitCount:0};o.visitCount+=1,o.lastVisitedAt=n,e[t]=o,Go(function(t){const e=Object.keys(t);if(e.length<=100)return t;const n=No(t),o=e.sort((t,e)=>n(e)-n(t)).slice(0,50);return Object.fromEntries(o.map(e=>[e,t[e]]))}(e))}function Uo(t,e){return`team:${t}/${e}`}function Fo(t,e){return`repository:${t}/${e}`}function Wo(t,e){return`project:${t}/${e}`}const Xo=/^(team|repository|project):[^/]+\/[^/]+(\/([^/]+))?$/;function Go(t){!function(t,e){try{window.localStorage.setItem(t,e)}catch(n){}}("jump_to:page_views",JSON.stringify(t))}function Ko(){const t=function(t){try{return window.localStorage.getItem(t)}catch(e){return null}}("jump_to:page_views");if(!t)return{};let e;try{e=JSON.parse(t)}catch(o){return Go({}),{}}const n={};for(const i in e)i.match(Xo)&&(n[i]=e[i]);return n}}}}));
//# sourceMappingURL=frameworks-3367fb41.js.map