forked from APACGAMONDE/APACGAMONDE-Bank-ShareHoldings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframeworks-7967763f.js.download
8 lines (8 loc) · 104 KB
/
frameworks-7967763f.js.download
1
2
3
4
5
6
7
8
System.register(["./vendor.js"],(function(t){"use strict";var e,n,o,i,r;return{setters:[function(t){e=t.S,n=t.o,o=t.a,i=t.f,r=t.T}],execute:function(){t({$:qe,A:ot,B:async function(t,e){for(let n=0;n<e;n++)try{return await t()}catch(Cn){if(n===e-1)throw Cn;await Se(1e3*Math.pow(2,n+1))}throw new Error("retry failed")},C:function(t){return new Promise((e,n)=>{window.setTimeout(()=>{n(new Error("timeout"))},t)})},D:function(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)}))},E:U,F:function(t){return Ae.get(t)},G:function(t){void 0===t.interactive&&(t.interactive=!0);window.ga("send","event",t.category,t.action,t.label,t.value,{nonInteraction:!t.interactive})},H: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)}},I:d,J:function(t,e,n){const o=n?Object.assign({},n):{};o.mode="same-origin";const i=new Request(t,o);return i.headers.append("Scoped-CSRF-Token",e),i},K:re,L:Pe,M: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}nt(t,"change",!1)},N:async function(t){return Ae.get(t)||De(await(e=t,n="codeEditor:ready",new Promise(t=>{e.addEventListener(n,t,{once:!0})})));var e,n},O:function(t,e,n){const o=n||HTMLInputElement,i=t.elements.namedItem(e);if(i instanceof o)return i;throw new a(`Element not found by name: <${o.name}> ${e}`)},P: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 w(n,{headers:{Accept:"application/json"}});return await o.json()}()||(Xe||(Xe=async function(){const t=c(document,"link[rel=sso-modal]",HTMLLinkElement),e=await qe({content:b(document,t.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(t){t.error?(n=!1,Ie(n)):(n=!0,Ie(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(Be).catch(Be)),await Xe)},Q:function(t,e){return new Promise((function(n,o){!function i(r){w(t,e).then((function(t){switch(t.status){case 200:n(t);break;case 202:setTimeout(()=>i(1.5*r),r);break;default:o(new h(t))}}),o)}(1e3)}))},R:function(t){return t&&t.default||t},T:function(t,e){0===Object.keys(Zt.children).length&&document.addEventListener("keydown",oe);const n=function(t){return t.split(",").map(t=>t.split(" "))}(e||t.getAttribute("data-hotkey")||"").map(e=>Zt.insert(e).add(t));Qt.set(t,n)},U:function(t){const e=Qt.get(t);if(e&&e.length)for(const n of e)n&&n.delete(t);0===Object.keys(Zt.children).length&&document.removeEventListener("keydown",oe)},V:function(){return Promise.resolve()},W:Wt,X:rt,Y:Bt,Z:async function(t,e,n=!1){const o=Ze.get(t);o&&o.abort();if(Ye("PAGE_STALE_CHECK")){const o=t.closest(".js-updatable-content[data-url], .js-updatable-content [data-url]");!n&&o&&o===t&&(Qe[u(o,"data-url")]=e)}return tn(t,e)},_:We,a:l,a$:zn,a0:function(t){Rt.push(t)},a1:function(t,e){t.removeEventListener("keydown",D),t.removeEventListener("keyup",M),t.removeEventListener("input",H);const n=S.get(t);n&&(null!=n.timer&&n.listener===e&&clearTimeout(n.timer),S.delete(t))},a2:Ut,a3:function(t,e){const n=t.currentTarget;if(!(n instanceof HTMLAnchorElement))throw new Error("invariant: app/assets/modules/github/pjax.ts:32");if(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(location.protocol!==n.protocol||location.hostname!==n.hostname)return;if(n.href.indexOf("#")>-1&&wt(n)===wt(location))return;if(t.defaultPrevented)return;const o={url:n.href,container:null,target:n};Object.assign(o,e),lt(n,"pjax:click",{options:o,relatedEvent:t})&&(ut(o),t.preventDefault(),lt(n,"pjax:clicked",{options:o}))},a4:function(t,e){const n=t.currentTarget;if(!(n instanceof HTMLFormElement))throw new Error("invariant: app/assets/modules/github/pjax.ts:66");const o={type:(n.method||"GET").toUpperCase(),url:n.action,container:null,target:n};if(Object.assign(o,e),"GET"===o.type){if(n.querySelector("input[type=file]"))return;if("string"!=typeof o.url)throw new Error("invariant: app/assets/modules/github/pjax.ts:79");const t=vt(o.url);t.search+=(t.search?"&":"")+rt(n),o.url=t.toString()}else o.data=new FormData(n);ut(o),t.preventDefault()},a5:Jt,a6:K,a7:G,a8:function(){return st},a9:Ue,aA:function(t){const e=Fn(t),n=function(t){const e=t.match(/(file-.+?-)L\d+?/i);return e?e[1]:""}(t);return{blobRange:e,anchorPrefix:n}},aB:Fn,aC:function({anchorPrefix:t,blobRange:e}){return e?`#${t}${function(t){const{start:e,end:n}=Kn(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)}`:"#"},aD:function(t,e){const[n,o]=Gn(t.start,!0,e),[i,r]=Gn(t.end,!1,e);if(!n||!i)return;let a=o,s=r;-1===a&&(a=0);-1===s&&(s=i.childNodes.length);if(!n.ownerDocument)throw new Error("DOMRange needs to be inside document");const c=n.ownerDocument.createRange();return c.setStart(n,a),c.setEnd(i,s),c},aE:function(t,e){e.appendChild(t.extractContents()),t.insertNode(e)},aF:jn,aG:function(){const t=P[I()-1];if(t)return t.url},aH:function(){const t=P[I()+1];if(t)return t.url},aI:function(t,e){const n=t.closest("[data-pjax-container]");if(!n)throw new Error(`no pjax container for ${function(t){const e=[];let n=t;for(;n&&(e.push(Y(n)),!(n instanceof window.Window))&&9!==n.nodeType&&!n.id;){if(n.parentNode instanceof Document){e.push("#document");break}if(!(n.parentNode instanceof HTMLElement))break;n=n.parentNode}return e.reverse().join(" > ")}(t)}`);const o=yt(n),i=vt(t.href);return i.search+=`${i.search?"&":""}_pjax=${encodeURIComponent(o)}`,w(i.href,{headers:Object.assign({Accept:"text/html","X-PJAX":"true","X-PJAX-Container":o},e&&e.headers)})},aJ:function(t,e){z.set(t,e),n=e,n.catch(()=>{});var n},aK:B,aL:_t,aM:Ve,aN:function(t,e){const n=s(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,u(e,"data-status"));e.hasAttribute("data-subscription-status")&&function(t,e){t.classList.toggle("notification-unsubscribed","unsubscribed"===e)}(n,u(e,"data-subscription-status"));e.hasAttribute("data-starred-status")&&function(t,e){t.classList.toggle("notification-starred","starred"===e)}(n,u(e,"data-starred-status"))},aO:W,aP:function(t){const e=t.getAttribute("data-details-container")||".js-details-container",n=s(t,e).classList;return n.contains("Details--on")||n.contains("open")},aQ:Xn,aR:async function(){return window.PublicKeyCredential&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable&&await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()?"supported":"unsupported"},aS:$n,aT:async function(t){const e=Mn(Cn,qn,t),n=await navigator.credentials.get(e);return Mn(Sn,In,n)},aV: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}))},aW:tt,aX:et,aY:function(t){qt.push(t)},aZ:function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},a_:function(){return new Promise(window.requestAnimationFrame)},aa:function(t){const e=t.split("");let n=0;for(const o of e){const t=Array.from(o.split(/[\ufe00-\ufe0f]/).join("")).length;n+=t}return n/e.length},ab:Je,ac:function(t){return w(t.action,{method:t.method,body:new FormData(t)})},ad:bn,ae:R,af:En,ag:function(t){const e=W(t);e&&bn(e)},ah:function(t,e){window.ga("provide",t,e)},ai:function(t){window.ga("set",{location:t})},aj:function(t){window.ga("set",{title:t})},ak:function(t,e){window.ga("set",t,e)},al:function(t,e={page:""}){e.page=t||"",window.ga("send","pageview",e)},am:function(t,e,n={}){window.ga("create",t,e,n),window.ga("set","transport","sendBeacon"in window.navigator?"beacon":"xhr")},an:function(t,e={}){window.ga(()=>{window.ga("require",t,e)})},ao:xn,aq: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()},at:it,au:Fe,av:ze,aw:function(t,e){ye(t),we(t,e)},ax:function(t){const e=t.getAttribute("data-hydro-click-payload")||"",n=t.getAttribute("data-hydro-click-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";Ht(e,n,o)},ay:async function(t){const e=(n=t,"low"===n||"medium"===n||"high"===n||"two_factor"===n?n:null);var n;if(!e)throw new Error("invariant violation: level");return"true"===await y(`/sessions/in_sudo?requested_access_level=${e}`,{headers:{accept:"application/json"}})||async function(){if(Bn)return!1;Bn=!0,Vn=!1;const t=(await async function(){const t=document.body;if(!t)throw new Error("invariant violation: body");const e=c(document,"link[rel=sudo-modal]",HTMLLinkElement),n=document.querySelector(".js-sudo-prompt");if(n instanceof HTMLTemplateElement)return n;if(e){const n=await b(document,function(t){const e=new URL(t,window.location.origin),n=new URLSearchParams(e.search.slice(1));return n.set("webauthn-support",Xn()),e.search=n.toString(),e.toString()}(e.href));return t.appendChild(n),c(document,".js-sudo-prompt",HTMLTemplateElement)}throw new Error("couldn't load sudo prompt")}()).content.cloneNode(!0);if(!(t instanceof DocumentFragment))throw new Error("invariant violation: content instanceof DocumentFragment");const e=await qe({content:t});return await new Promise(t=>{e.addEventListener("dialog:remove",(function(){Bn=!1,t()}),{once:!0})}),Vn}()},az:async function(t,e){if(Ze.get(t))return;const n=new XMLHttpRequest,o=u(t,"data-url"),i=t.hasAttribute("data-retain-focus");n.open("GET",o),n.setRequestHeader("Accept","text/html"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),null!=e&&n.setRequestHeader("X-Request-Purpose",e);Ze.set(t,n);try{const e=await function(t){return new Promise((e,n)=>{t.onload=()=>{200===t.status?e(t.responseText):n(new Error(`XMLHttpRequest ${t.statusText}`))},t.onerror=n,t.send(null)})}(n);if(Fe(t,i))throw new Error("element had interactions");return Ye("PAGE_STALE_CHECK")&&(Qe[o]=e),tn(t,e,i)}catch(r){"XMLHttpRequest abort"!==r.message&&console.warn("Failed to update content",t,r)}finally{Ze.delete(t)}},b:b,b0:function(t){if(Zn(),!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",Zn,{once:!0});document.addEventListener("keydown",t=>{"Escape"===t.key&&Zn()&&t.stopImmediatePropagation()}),Un=e},b1:async function(t){const e=Mn(Cn,Nn,t),n=await navigator.credentials.create(e);return Mn(Sn,Rn,n)},c:j,e:function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")},f:async function(t,e){const n=m(t,e);n.headers.set("Accept","application/json");const o=await self.fetch(n),i=new h(o);return g(o,i),o.json()},g:u,h:s,i:y,j:function(t){const e=S.get(t);e&&e.listener.call(null,t)},k:function(t,e,n={wait:null}){S.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",M),t.addEventListener("input",H)},l:It,m:E,n:we,o:x,p:function(t){ut({url:t.url,container:t.container,replace:t.replace})},q:c,s:me,t:function(t){const e=t.getAttribute("data-hydro-view")||"",n=t.getAttribute("data-hydro-view-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";Ht(e,n,o)},u:function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t},v:ve,w:function(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)}))},x:w,y:St});class a extends Error{constructor(t){super(t),this.name="QueryError",this.framesToPop=1}}function s(t,e,n){const o=n||HTMLElement,i=t.closest(e);if(i instanceof o)return i;throw new a(`Element not found: <${o.name}> ${e}`)}function c(t,e,n){const o=n||HTMLElement,i=t.querySelector(e);if(i instanceof o)return i;throw new a(`Element not found: <${o.name}> ${e}`)}function l(t,e,n){const o=n||HTMLElement,i=[];for(const r of t.querySelectorAll(e))r instanceof o&&i.push(r);return i}function u(t,e){const n=t.getAttribute(e);if(null!=n)return n;throw new a(`Attribute not found on element: ${e}`)}class f extends Error{constructor(t,e){super(`${t} for HTTP ${e.status}`),this.response=e}}function d(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}class h extends Error{constructor(t){super(),this.response=t,this.framesToPop=1}}const p=window.AbortError||class extends Error{};function g(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 m(t,e){const n=e?Object.assign({},e):{};n.credentials||(n.credentials="same-origin");const o=new Request(t,n);if(o.headers.append("X-Requested-With","XMLHttpRequest"),/#csrf-token=/.test(o.url))throw new TypeError("URL with encoded CSRF token was passed to fetch(); csrfRequestWithToken(url, token) must be used instead");return o}async function v(t,e){const n=await self.fetch(t);if(e&&e.aborted)throw new p("The operation was aborted");return n}async function w(t,e){const n=m(t,e),o=await v(n,e&&e.signal);return g(o,new h(o)),o}async function y(t,e){const n=m(t,e),o=await v(n,e&&e.signal);return g(o,new h(o)),o.text()}async function b(t,e,n){const o=m(e,n),i=await v(o,n&&n.signal);return g(i,new h(i)),function(t,e){const n=e.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new f(`expected response with text/html, but was ${n}`,e);const o=e.headers.get("x-html-safe");if(!o)throw new f("missing X-HTML-Safe nonce",e);if(o!==t)throw new f("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),i),d(t,await i.text())}function E(t,e){const n=new Map;return function(...o){const i=e?e(...o):JSON.stringify(o),r=n.get(i);if(void 0!==r)return r;const a=t(...o);return n.set(i,a),a}}let T=!1;const k=new e;function L(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){T||(T=!0,document.addEventListener("focus",L,!0)),k.add(t,e),document.activeElement instanceof HTMLElement&&document.activeElement.matches(t)&&e(document.activeElement)}t("d","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function j(t,e){return t(e={exports:{}},e.exports),e.exports}const _=t("r","interactive"===document.readyState||"complete"===document.readyState?Promise.resolve():new Promise(t=>{document.addEventListener("DOMContentLoaded",()=>{t()})})),C=t("z","complete"===document.readyState?Promise.resolve():new Promise(t=>{window.addEventListener("load",t)})),S=new WeakMap;function A(t){const e=S.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=S.get(e);n&&(n.keypressed=!0,null!=n.timer&&clearTimeout(n.timer))}function M(t){const e=t.currentTarget,n=S.get(e);n&&(n.keypressed=!1,n.inputed&&A(e))}function H(t){const e=t.currentTarget,n=S.get(e);n&&(n.inputed=!0,n.keypressed||A(e))}const P=[];let O,N=0;function R(){return O}function q(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(Cn){return 0}}function I(){return q()-1+N}function $(t){O=t;const e=location.href;P[I()]={url:e,state:O},P.length=q(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}function X(){return(new Date).getTime()}function B(t,e,n){N=0;const o=Object.assign({},{_id:X()},t);history.pushState(o,e,n),$(o)}function U(t,e,n){const o=Object.assign({},{_id:R()._id},t);history.replaceState(o,e,n),$(o)}function V(){}O=function(){const t={_id:(new Date).getTime()};return $(t),t}(),window.addEventListener("popstate",(function(t){const e=t.state;e&&e._id&&(e._id<(R()._id||NaN)?N--:N++,$(e))}),!0),window.addEventListener("hashchange",(function(){if(q()>P.length){const t={_id:X()};history.replaceState(t,"",location.href),$(t)}}),!0);class F{constructor(){this.previousReceiver={resolve:V,reject:V}}push(t){return this.previousReceiver.resolve=this.previousReceiver.reject=V,new Promise((e,n)=>{const o={resolve:e,reject:n};this.previousReceiver=o,t.then((function(...t){o.resolve(...t)}),(function(...t){o.reject(...t)}))})}}function W(t,e=location.hash){return G(t,K(e))}function G(t,e){return""===e?null:t.getElementById(e)||t.getElementsByName(e)[0]}function K(t){try{return decodeURIComponent(t.slice(1))}catch(e){return""}}function Y(t){if(t instanceof window.Window)return"window";if(t instanceof window.Document)return"#document";const e=[t.nodeName.toLowerCase()];if(!(t instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/inspect.ts:36");const n=t.id;if(n&&e.push(`#${n}`),"function"==typeof t.getAttribute&&t.getAttribute("class")){const n=(t.getAttribute("class")||"").trim().split(/\s+/).join(".");n&&e.push(`.${n}`)}return e.join("")}t("S",F);const z=new WeakMap;function J(t,e){const n=function(t,e){const n=l(t,"link[rel=pjax-prefetch]",HTMLLinkElement);for(const o of n)if(o.href===e)return o;return null}(t,e);if(n){const t=z.get(n);return n.remove(),z.delete(n),t||null}return null}var Z;Z="function"==typeof FormData&&"entries"in FormData.prototype?function(t){return Array.from(new FormData(t).entries())}:function(t){for(var e=[],n=t.elements,o=0;o<n.length;o++){var i=n[o],r=i.tagName.toUpperCase();if("SELECT"===r||"TEXTAREA"===r||"INPUT"===r){var a=i.type,s=i.name;if(s&&!i.disabled&&"submit"!==a&&"reset"!==a&&"button"!==a&&("radio"!==a&&"checkbox"!==a||i.checked))if("SELECT"===r)for(var c=i.getElementsByTagName("option"),l=0;l<c.length;l++){var u=c[l];u.selected&&e.push([s,u.value])}else"file"===a?(console.warn("form-data-entries could not serialize <input type=file>",i),e.push([s,""])):e.push([s,i.value])}}return e};var Q=t("ar",Z);function tt(t){const e=t.closest("form");if(!(e instanceof HTMLFormElement))return;let n=et(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 et(t){const e=t.querySelector("input.is-submit-button-value");return e instanceof HTMLInputElement?e:null}function nt(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:n}))}function ot(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),tt(e)),nt(t,"submit",!0)&&t.submit()}function it(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}function rt(t){const e=new URLSearchParams;for(const[n,o]of Q(t))e.append(n,o);return e.toString()}const at={container:null,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0};let st;const ct=new F;function lt(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}function ut(t){const e={url:"",container:null};if(Object.assign(e,at,t),"string"!=typeof e.url)throw new Error("invariant: app/assets/modules/github/pjax.ts:109");e.requestUrl=e.url;const n=vt(e.url),o=n.hash,i=e.container,r=yt(i);if("GET"===e.type&&(n.search+=`${n.search?"&":""}_pjax=${encodeURIComponent(r)}`,e.url=n.toString()),st||(st={id:gt(),url:window.location.href,title:document.title,container:r,fragment:e.fragment},U(st,st.title,st.url)),"string"!=typeof e.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.ts:231");let a=J(i,e.requestUrl);if(!a){if(!e.url)throw new Error("invariant: app/assets/modules/github/pjax.ts:234");a=w(e.url,{method:e.type,body:e.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":r}})}if(!0===e.push&&!0!==e.replace){if(s=st.id,c=mt(i),kt[s]=c,xt.push(s),jt(Lt,0),jt(xt,20),"string"!=typeof e.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.ts:248");B(null,"",e.requestUrl)}var s,c;lt(i,"pjax:start",{url:e.url}),lt(i,"pjax:send"),ct.push(a).then((async function(t){const n=st,a=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}(),s=t.headers.get("X-PJAX-Version"),c=function(t,e,n){if("string"!=typeof n.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.ts:430");const o={url:Tt(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,a;if(i){const e=t.match(/<head[^>]*>([\s\S.]*)<\/head>/i),n=t.match(/<body[^>]*>([\s\S.]*)<\/body>/i);r=e?Array.from(d(document,e[0]).childNodes):[],a=n?Array.from(d(document,n[0]).childNodes):[]}else r=a=Array.from(d(document,t).childNodes);if(0===a.length)return o;const s=bt(r,"title",HTMLTitleElement);let c;if(o.title=s.length>0&&s[s.length-1].textContent||"",n.fragment){if("body"===n.fragment)c=a;else{const t=bt(a,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=a);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=bt(o.contents,"script[src]",HTMLScriptElement);for(const e of t)e.remove();if(o.scripts=t,!o.contents)throw new Error("invariant: app/assets/modules/github/pjax.ts:515");o.contents=o.contents.filter(e=>-1===t.indexOf(e))}o.title&&(o.title=o.title.trim());return o}(await t.text(),t,e),{contents:u}=c,f=vt(c.url);if(o&&(f.hash=o,c.url=f.href),a&&s&&a!==s)return void ft(c.url);if(!u)return void ft(c.url);st={id:null!=e.id?e.id:gt(),url:c.url,title:c.title,container:r,fragment:e.fragment},!0!==e.push&&!0!==e.replace||U(st,c.title,c.url);const h=document.activeElement,p=null!=e.container&&e.container.contains(h);if(h instanceof HTMLElement&&p)try{h.blur()}catch(Cn){}c.title&&(document.title=c.title),lt(i,"pjax:beforeReplace",{contents:u,state:st,previousState:n}),Et(i,u);const g=l(i,"input[autofocus], textarea[autofocus]").pop();g&&document.activeElement!==g&&g.focus(),c.scripts&&function(t){const e=l(document,"script[src]",HTMLScriptElement);for(const n of t){const{src:t}=n;if(e.some(e=>e.src===t))return;const o=document.createElement("script"),i=n.getAttribute("type");i&&(o.type=i),o.src=t,document.head&&document.head.appendChild(o)}}(c.scripts);let m=e.scrollTo;if(o){const t=W(document,o);if(t){m=t.getBoundingClientRect().top+window.pageYOffset}}"number"==typeof m&&window.scrollTo(window.pageXOffset,m),lt(i,"pjax:success"),lt(i,"pjax:complete"),lt(i,"pjax:end")}),(function(t){let n=e.requestUrl;if("string"!=typeof n)throw new Error("invariant: app/assets/modules/github/pjax.ts:125");t instanceof h&&(n=Tt(t.response,n));const o=lt(i,"pjax:error");"GET"===e.type&&o&&ft(n),lt(i,"pjax:complete"),lt(i,"pjax:end")}))}function ft(t){st&&U(null,"",st.url),window.location.replace(t)}let dt=!0;const ht=window.location.href,pt=window.history.state;function gt(){return(new Date).getTime()}function mt(t){const e=t.cloneNode(!0);return[yt(t),Array.from(e.childNodes),Date.now()]}function vt(t){const e=document.createElement("a");return e.href=t,e}function wt(t){return t.href.replace(/#.*/,"")}function yt(t){if(t.id)return`#${t.id}`;throw new Error("pjax container has no id")}function bt(t,e,n){let o=[];for(const i of t)i instanceof Element&&(i instanceof n&&i.matches(e)&&o.push(i),o=o.concat(l(i,e,n)));return o}function Et(t,e){t.innerHTML="";for(const n of e)null!=n&&t.appendChild(n)}function Tt(t,e){const n=t.headers.get("X-PJAX-URL");return n?((o=vt(n)).search=o.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),o.href.replace(/\?($|#)/,"$1")):e;var o}pt&&pt.container&&(st=pt),"state"in window.history&&(dt=!1);const kt={},Lt=[],xt=[];function jt(t,e){for(;t.length>e;){const e=t.shift();if(null==e)return;delete kt[e]}}function _t(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){dt||ct.push(Promise.resolve(new Response));const e=st,n=t.state;let o=null;if(n&&n.container){if(dt&&ht===n.url)return;if(e){if(e.id===n.id)return;o=e.id<n.id?"forward":"back"}const[t,i,r]=kt[n.id]||[],a=document.querySelector(t||n.container);if(a instanceof HTMLElement){e&&function(t,e,n){let o,i;kt[e]=n,"forward"===t?(o=xt,i=Lt):(o=Lt,i=xt);o.push(e);const r=i.pop();r&&delete kt[r];jt(o,20)}(o,e.id,mt(a)),lt(a,"pjax:popstate",{state:n,direction:o,cachedAt:r});const t={id:n.id,url:n.url,container:a,push:!1,fragment:n.fragment||"",scrollTo:!1};i?(lt(a,"pjax:start"),st=n,n.title&&(document.title=n.title),lt(a,"pjax:beforeReplace",{contents:i,state:n,previousState:e}),Et(a,i),lt(a,"pjax:end")):ut(t),a.offsetHeight}else ft(location.href)}dt=!1}));let Ct=[];function St(t,e=!1){void 0===t.timestamp&&(t.timestamp=(new Date).getTime()),Ct.push(t),e?Mt():async function(){await C,null==Dt&&(Dt=window.requestIdleCallback(Mt))}()}let At,Dt=null;function Mt(){var t,e;if(Dt=null,_t(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:Ct});navigator.sendBeacon&&navigator.sendBeacon(n,o),Ct=[]}function Ht(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),St(o,!0)}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(c){i=!0,r=c}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n("click","[data-hydro-click]",(function(t){const e=t.currentTarget;Ht(e.getAttribute("data-hydro-click")||"",e.getAttribute("data-hydro-click-hmac")||"",e.getAttribute("data-hydro-client-context")||"")}));class Ot extends Error{constructor(t,e){super(t),this.response=e}}function Nt(){let t,e;return[new Promise((function(n,o){t=n,e=o})),t,e]}const Rt=[],qt=[];function It(t,n){At||(At=new e,document.addEventListener("submit",$t)),At.add(t,n)}function $t(t){if(!(t.target instanceof HTMLFormElement))return;const e=t.target,n=At&&At.matches(e);if(!n||0===n.length)return;const o=function(t){const e={method:t.method||"GET",url:t.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===e.method.toUpperCase()){const n=function(t){const e=new URLSearchParams;for(const o of Q(t)){var n=Pt(o,2);const t=n[0],i=n[1];e.append(t,i)}return e.toString()}(t);n&&(e.url+=(~e.url.indexOf("?")?"&":"?")+n)}else e.body=new FormData(t);return e}(e),i=Pt(Nt(),3),r=i[0],a=i[1],s=i[2];t.preventDefault(),async function(t,e,n,o){let i=!1;for(const r of t){const t=Pt(Nt(),2),a=t[0],s=t[1],c=()=>(i=!0,s(),o),l={text:c,json:()=>(n.headers.set("Accept","application/json"),c()),html:()=>(n.headers.set("Accept","text/html"),c())};await Promise.race([a,r.data.call(null,e,l,n)])}return i}(n,e,o,r).then(async t=>{if(t){for(const t of qt)await t(e);(async function(t){const e=await window.fetch(t.url,{method:t.method,body:null!==t.body?t.body:void 0,headers:t.headers,credentials:"same-origin"}),n={url:e.url,status:e.status,statusText:e.statusText,headers:e.headers,text:"",get json(){const t=JSON.parse(this.text);return delete this.json,this.json=t,this.json},get html(){return delete this.html,this.html=function(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}(document,this.text),this.html}},o=await e.text();if(n.text=o,e.ok)return n;throw new Ot("request failed",n)})(o).then(a,s).catch(()=>{}).then(()=>{for(const t of Rt)t(e)})}else e.submit()},t=>{e.submit(),setTimeout(()=>{throw t})})}class Xt{constructor(t){this.closed=!1,this.unsubscribe=()=>{t(),this.closed=!0}}}function Bt(t,e,n,o={capture:!1}){return t.addEventListener(e,n,o),new Xt(()=>{t.removeEventListener(e,n,o)})}function Ut(...t){return new Xt(()=>{for(const e of t)e.unsubscribe()})}function Vt(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 Ft(t,e){let n=e;const o=t.ownerDocument;if(!o)return;if(!o.body)return;const i=o.documentElement;if(!i)return;if(t===i)return;const r=Wt(t,n);if(!r)return;n=r._container;const a=n===o.documentElement?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},s=r.top-a.top,c=r.left-a.left,l=n.clientHeight,u=n.clientWidth;return{top:s,left:c,bottom:l-(s+t.offsetHeight),right:u-(c+t.offsetWidth),height:l,width:u}}function Wt(t,e){let n=t;const o=n.ownerDocument;if(!o)return;const i=o.documentElement;if(!i)return;const r=o.body;if(!r)return;const a=o.defaultView.HTMLElement;let s=0,c=0;const l=n.offsetHeight,u=n.offsetWidth;for(;n!==o.body&&n!==e;){if(s+=n.offsetTop||0,c+=n.offsetLeft||0,!(n.offsetParent instanceof a))return;n=n.offsetParent}let f,d,h;if(e&&e!==o&&e!==o.defaultView&&e!==o.documentElement&&e!==o.body){if(!(e instanceof a))return;h=e,f=e.scrollHeight,d=e.scrollWidth}else h=i,f=function(t,e){return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight)}(r,i),d=function(t,e){return Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)}(r,i);return{top:s,left:c,bottom:f-(s+l),right:d-(c+u),_container:h}}function Gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Kt{constructor(t){Gt(this,"parent",void 0),Gt(this,"children",[]),this.parent=t}delete(t){const e=this.children.indexOf(t);return-1!==e&&(this.children=this.children.slice(0,e).concat(this.children.slice(e+1)),0===this.children.length&&this.parent.delete(this),!0)}add(t){return this.children.push(t),this}}class Yt{constructor(t){Gt(this,"parent",null),Gt(this,"children",{}),this.parent=t||null}get(t){return this.children[t]}insert(t){let e=this;for(let n=0;n<t.length;n+=1){const o=t[n];let i=e.get(o);if(n===t.length-1)return i instanceof Yt&&(e.delete(i),i=null),i||(i=new Kt(e),e.children[o]=i),i;i instanceof Kt&&(i=null),i||(i=new Yt(e),e.children[o]=i),e=i}return e}delete(t){for(const e in this.children){if(this.children[e]===t){const t=delete this.children[e];return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),t}}return!1}}function zt(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&&"checkbox"!==n&&"radio"!==n||t.isContentEditable}function Jt(t){return`${t.ctrlKey?"Control+":""}${t.altKey?"Alt+":""}${t.metaKey?"Meta+":""}${t.shiftKey&&t.key.toUpperCase()!==t.key?"Shift+":""}${t.key}`}const Zt=new Yt,Qt=new WeakMap;let te=Zt,ee=null;function ne(){ee=null,te=Zt}function oe(t){if(t.target instanceof Node&&zt(t.target))return;null!=ee&&clearTimeout(ee),ee=setTimeout(ne,1500);const e=te.get(Jt(t));var n;if(e)return te=e,e instanceof Kt?(zt(n=e.children[e.children.length-1])?n.focus():n.click(),t.preventDefault(),void ne()):void 0;ne()}function ie(t,e){let n=t;const o=t.ownerDocument;if(!o||!o.defaultView)throw new Error("invariant: app/assets/modules/github/scrollto.ts:5");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: container is not HTMLElement -- app/assets/modules/github/scrollto.ts:26");n.scrollTop=e.top,null!=e.left&&(n.scrollLeft=e.left)}}function re(t){return!function(t){return t.offsetWidth<=0&&t.offsetHeight<=0}(t)}const ae=navigator.userAgent.match(/Macintosh/),se=ae?"metaKey":"ctrlKey",ce=ae?"Meta":"Control";let le=!1,ue={x:0,y:0};function fe(t){t instanceof MouseEvent&&(ue.x===t.clientX&&ue.y===t.clientY||(le=!1),ue={x:t.clientX,y:t.clientY})}function de(t){if(le)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&&ke(o,e)}o(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:t=>Ut(Bt(t,"mouseover",fe),Bt(t,"mouseover",de))});let he=0;function pe(t){if(t.target!==document.body&&t.target instanceof HTMLElement&&!t.target.classList.contains("js-navigation-enable"))return;le=!0;const e=Le();let n=!1;if(e){const o=e.querySelector(".js-navigation-item.navigation-focus")||e;n=i(o,"navigation:keydown",{hotkey:Jt(t),originalEvent:t,originalTarget:t.target})}n||t.preventDefault()}function ge(t){const e=t.currentTarget;if(!(e instanceof Element))throw new Error("invariant: app/assets/modules/github/navigation.ts:325");const n=t.modifierKey||t.altKey||t.ctrlKey||t.metaKey;i(e,"navigation:open",{modifierKey:n,shiftKey:t.shiftKey})||t.preventDefault()}function me(t){const e=Le();t!==e&&(e&&ve(e),t.classList.add("js-active-navigation-container"))}function ve(t){t.classList.remove("js-active-navigation-container")}function we(t,e){const n=e||t,o=xe(t)[0],i=n.closest(".js-navigation-item")||o;if(me(t),i instanceof HTMLElement){if(ke(i,t))return;const e=Vt(i);if(!e)throw new Error("invariant: app/assets/modules/github/navigation.ts:411");Ce(e,i)}}function ye(t){const e=t.querySelectorAll(".js-navigation-item.navigation-focus");for(const n of e)n.classList.remove("navigation-focus")}function be(t,e){const n=xe(e),o=n.indexOf(t),i=n[o-1];if(i){if(ke(i,e))return;const t=Vt(i);if(!t)throw new Error("invariant: app/assets/modules/github/navigation.ts:438");"page"===je(e)?_e(t,i):Ce(t,i)}}function Ee(t,e){const n=xe(e),o=n.indexOf(t),i=n[o+1];if(i){if(ke(i,e))return;const t=Vt(i);if(!t)throw new Error("invariant: app/assets/modules/github/navigation.ts:458");"page"===je(e)?_e(t,i):Ce(t,i)}}function Te(t,e=!1){i(t,"navigation:keyopen",{modifierKey:e})}function ke(t,e){return!i(t,"navigation:focus")||(ye(e),t.classList.add("navigation-focus"),!1)}function Le(){return document.querySelector(".js-active-navigation-container")}function xe(t){const e=[];for(const n of t.querySelectorAll(".js-navigation-item"))n instanceof HTMLElement&&re(n)&&e.push(n);return e}function je(t){return t.getAttribute("data-navigation-scroll")||"item"}function _e(t,e,n="smooth"){const o=Ft(e,t);o&&(o.bottom<=0?e.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&e.scrollIntoView({behavior:n,block:"end"}))}function Ce(t,e){const n=Wt(e,t),o=Ft(e,t);if(null!=n&&null!=o)if(o.bottom<=0&&document.body){ie(t,{top:(null!=t.offsetParent?t.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height)})}else o.top<=0&&ie(t,{top:n.top})}function Se(t){return new Promise(e=>window.setTimeout(e,t))}o(".js-active-navigation-container",{add(){he++,1===he&&document.addEventListener("keydown",pe)},remove(){he--,0===he&&document.removeEventListener("keydown",pe)}}),n("navigation:keydown",".js-active-navigation-container",(function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/navigation.ts:184");const e=t.currentTarget;if(!(e instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/navigation.ts:186");const n=t.detail.originalTarget.matches("input, textarea"),o=t.target;if(!(o instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/navigation.ts:189");if(o.classList.contains("js-navigation-item"))if(n){if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":Ee(o,e);break;case"Control+p":be(o,e)}switch(Jt(t.detail.originalEvent)){case"ArrowUp":be(o,e);break;case"ArrowDown":Ee(o,e);break;case"Enter":case`${ce}+Enter`:Te(o,t.detail.originalEvent[se])}}else{if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":Ee(o,e);break;case"Control+p":be(o,e);break;case"Alt+v":!function(t,e){const n=xe(e);let o=n.indexOf(t);const i=Vt(t);if(null==i)return;let r,a;for(;(r=n[o-1])&&(a=Ft(r,i))&&a.top>=0;)o--;if(r){if(ke(r,e))return;_e(i,r)}}(o,e);break;case"Control+v":!function(t,e){const n=xe(e);let o=n.indexOf(t);const i=Vt(t);if(null==i)return;let r,a;for(;(r=n[o+1])&&(a=Ft(r,i))&&a.bottom>=0;)o++;if(r){if(ke(r,e))return;_e(i,r)}}(o,e)}switch(Jt(t.detail.originalEvent)){case"j":case"J":Ee(o,e);break;case"k":case"K":be(o,e);break;case"o":case"Enter":case`${ce}+Enter`:Te(o,t.detail[se])}}else{const o=xe(e)[0];if(o)if(n){if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":ke(o,e)}switch(Jt(t.detail.originalEvent)){case"ArrowDown":ke(o,e)}}else{if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":case"Control+v":ke(o,e)}switch(Jt(t.detail.originalEvent)){case"j":ke(o,e)}}}if(n){if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":case"Control+p":t.preventDefault()}switch(Jt(t.detail.originalEvent)){case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Enter":t.preventDefault()}}else{if(ae)switch(Jt(t.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":t.preventDefault()}switch(Jt(t.detail.originalEvent)){case"j":case"k":t.preventDefault();break;case"o":case"Enter":case`${se}+Enter`:t.preventDefault()}}})),n("click",".js-active-navigation-container .js-navigation-item",(function(t){if(!(t instanceof MouseEvent))throw new Error("invariant: app/assets/modules/github/navigation.ts:339");ge(t)})),n("navigation:keyopen",".js-active-navigation-container .js-navigation-item",(function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/navigation.ts:344");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 ge(t)}));const Ae=new WeakMap;function De(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 Ae.set(t.target,e),e}n("codeEditor:ready",".js-code-editor",De),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(ae,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(ae),s(t)||(t=[]),t},a=function(t){return"function"==typeof t},s=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,""):""},f=function(t){var e=k.createElement("img");return e.width=1,e.height=1,e.src=t,e},d=function(){},h=function(t){return encodeURIComponent instanceof Function?encodeURIComponent(t):(n(28),t)},p=function(t,e,o,i){try{t.addEventListener?t.addEventListener(e,o,!!i):t.attachEvent&&t.attachEvent("on"+e,o)}catch(Cn){n(27)}},g=/^[\w\-:/.?=&%!]+$/,m=function(t,e,n,o){t&&(n?(o="",e&&g.test(e)&&(o=' id="'+e+'"'),g.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("(?:&|#|\\?)"+h(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 T=window,k=document,L=window,x=function(t){var e=L._gaUserPrefs;if(e&&e.ioo&&e.ioo()||t&&!0===L["ga-disable-"+t])return!0;try{var n=L.external;if(n&&n._gaUserPrefs&&"oo"==n._gaUserPrefs)return!0}catch(In){}return!1},j=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},_=function(t,e,o,i,r,a){if(!(r=!x(r)&&!(A.test(k.location.hostname)||"/"==o&&S.test(i))))return!1;if(e&&1200<e.length&&(e=e.substring(0,1200),n(24)),o=t+"="+e+"; path="+o+"; ",a&&(o+="expires="+new Date((new Date).getTime()+a).toGMTString()+"; "),i&&"none"!=i&&(o+="domain="+i+";"),i=k.cookie,k.cookie=o,!(i=i!=k.cookie))t:{for(t=j(t),i=0;i<t.length;i++)if(e==t[i]){i=!0;break t}i=!1}return i},C=function(t){return h(t).replace(/\(/g,"%28").replace(/\)/g,"%29")},S=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,A=/(^|\.)doubleclick\.net$/i,D=function(){return(ft||v()?"https:":"http:")+"//www.google-analytics.com"},M=function(t){this.name="len",this.message=t+"-8192"},H=function(t,e,n){if(n=n||d,2036>=e.length)P(t,e,n);else{if(!(8192>=e.length))throw R("len",e.length),new M(e.length);N(t,e,n)||O(t,e,n)||P(t,e,n)}},P=function(t,e,n){var o=f(t+"?"+e);o.onload=o.onerror=function(){o.onload=null,o.onerror=null,n()}},O=function(t,e,n){var o=T.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)},N=function(t,e,n){return!!T.navigator.sendBeacon&&(!!T.navigator.sendBeacon(t,e)&&(n(),!0))},R=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="+h(n.substring(0,100))),t.push("aip=1"),t.push("z="+Y()),P(D()+"/collect",t.join("&"),d))},q=function(t){var e=T.gaData=T.gaData||{};return e[t]=e[t]||{}},I=function(){this.M=[]};function $(t){if(100!=t.get(Ne)&&eo(et(t,ke))%1e4>=100*nt(t,Ne))throw"abort"}function X(t){if(x(et(t,je)))throw"abort"}function B(){var t=k.location.protocol;if("http:"!=t&&"https:"!=t)throw"abort"}function U(t){try{T.navigator.sendBeacon?n(42):T.XMLHttpRequest&&"withCredentials"in new T.XMLHttpRequest&&n(40)}catch(On){}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+"="+h(""+n))))})),e.push("z="+z()),t.set(vt,e.join("&"),!0)}function V(t){var e=et(t,Ie)||D()+"/collect",n=et(t,yt);if(!n&&t.get(wt)&&(n="beacon"),n){var o=et(t,vt),i=(i=t.get(mt))||d;"image"==n?P(e,o,i):"xhr"==n&&O(e,o,i)||"beacon"==n&&N(e,o,i)||H(e,o,i)}else H(e,et(t,vt),t.get(mt));e=t.get(je),n=(e=q(e)).hitcount,e.hitcount=n?n+1:1,e=t.get(je),delete q(e).pending_experiments,t.set(mt,d,!0)}function F(t){var e;(T.gaData=T.gaData||{}).expId&&t.set(zt,(T.gaData=T.gaData||{}).expId),(T.gaData=T.gaData||{}).expVar&&t.set(Jt,(T.gaData=T.gaData||{}).expVar);var n=t.get(je);if(n=q(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(T.navigator&&"preview"==T.navigator.loadPurpose)throw"abort"}function G(t){var e=T.gaDevIds;s(e)&&0!=e.length&&t.set("&did",e.join(","),!0)}function K(t){if(!t.get(je))throw"abort"}I.prototype.add=function(t){this.M.push(t)},I.prototype.D=function(t){try{for(var e=0;e<this.M.length;e++){var n=t.get(this.M[e]);n&&a(n)&&n.call(T,t)}}catch(In){}(e=t.get(mt))!=d&&a(e)&&(t.set(mt,d,!0),setTimeout(e,10))};var Y=function(){return Math.round(2147483647*Math.random())},z=function(){try{var t=new Uint32Array(1);return T.crypto.getRandomValues(t),2147483647&t[0]}catch(e){return Y()}};function J(t){var e=nt(t,ne);if(500<=e&&n(15),"transaction"!=(o=et(t,gt))&&"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=a(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 je:_n.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},at=function(t,e,n,o,i){return t=new it(t,e,n,o,i),Q.set(t.name,t),t.name},st=function(t,e){tt.push([new RegExp("^"+t+"$"),e])},ct=function(t,e,n){return at(t,e,n,void 0,lt)},lt=function(){},ut=c(window.GoogleAnalyticsObject)&&u(window.GoogleAnalyticsObject)||"ga",ft=!1,dt=ct("apiVersion","v"),ht=ct("clientVersion","_v");at("anonymizeIp","aip");var pt=at("adSenseId","a"),gt=at("hitType","t"),mt=at("hitCallback"),vt=at("hitPayload");at("nonInteraction","ni"),at("currencyCode","cu"),at("dataSource","ds");var wt=at("useBeacon",void 0,!1),yt=at("transport");at("sessionControl","sc",""),at("sessionGroup","sg"),at("queueTime","qt");var bt=at("_s","_s");at("screenName","cd");var Et=at("location","dl",""),Tt=at("referrer","dr"),kt=at("page","dp","");at("hostname","dh");var Lt=at("language","ul"),xt=at("encoding","de");at("title","dt",(function(){return k.title||void 0})),st("contentGroup([0-9]+)",(function(t){return new it(t[0],"cg"+t[1])}));var jt=at("screenColors","sd"),_t=at("screenResolution","sr"),Ct=at("viewportSize","vp"),St=at("javaEnabled","je"),At=at("flashVersion","fl");at("campaignId","ci"),at("campaignName","cn"),at("campaignSource","cs"),at("campaignMedium","cm"),at("campaignKeyword","ck"),at("campaignContent","cc");var Dt=at("eventCategory","ec"),Mt=at("eventAction","ea"),Ht=at("eventLabel","el"),Pt=at("eventValue","ev"),Ot=at("socialNetwork","sn"),Nt=at("socialAction","sa"),Rt=at("socialTarget","st"),qt=at("l1","plt"),It=at("l2","pdt"),$t=at("l3","dns"),Xt=at("l4","rrt"),Bt=at("l5","srt"),Ut=at("l6","tcp"),Vt=at("l7","dit"),Ft=at("l8","clt"),Wt=at("timingCategory","utc"),Gt=at("timingVar","utv"),Kt=at("timingLabel","utl"),Yt=at("timingValue","utt");at("appName","an"),at("appVersion","av",""),at("appId","aid",""),at("appInstallerId","aiid",""),at("exDescription","exd"),at("exFatal","exf");var zt=at("expId","xid"),Jt=at("expVar","xvar"),Zt=at("exp","exp"),Qt=at("_utma","_utma"),te=at("_utmz","_utmz"),ee=at("_utmht","_utmht"),ne=at("_hc",void 0,0),oe=at("_ti",void 0,0),ie=at("_to",void 0,20);st("dimension([0-9]+)",(function(t){return new it(t[0],"cd"+t[1])})),st("metric([0-9]+)",(function(t){return new it(t[0],"cm"+t[1])})),at("linkerParam",void 0,void 0,(function(t){var e=ln(t=t.get(ke),0);return"_ga=1."+h(e+"."+t)}),lt);var re=at("usage","_u"),ae=at("_um");at("forceSSL",void 0,void 0,(function(){return ft}),(function(t,e,o){n(34),ft=!!o}));var se=at("_j1","jid");st("\\&(.*)",(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=at("previewTask"),ue=at("checkProtocolTask"),fe=at("validationTask"),de=at("checkStorageTask"),he=at("historyImportTask"),pe=at("samplerTask"),ge=at("_rlt"),me=at("buildHitTask"),ve=at("sendHitTask"),we=at("ceTask"),ye=at("devIdTask"),be=at("timingTask"),Ee=at("displayFeaturesTask"),Te=ct("name"),ke=ct("clientId","cid"),Le=ct("clientIdTime"),xe=at("userId","uid"),je=ct("trackingId","tid"),_e=ct("cookieName",void 0,"_ga"),Ce=ct("cookieDomain"),Se=ct("cookiePath",void 0,"/"),Ae=ct("cookieExpires",void 0,63072e3),De=ct("legacyCookieDomain"),Me=ct("legacyHistoryImport",void 0,!0),He=ct("storage",void 0,"cookie"),Pe=ct("allowLinker",void 0,!1),Oe=ct("allowAnchor",void 0,!0),Ne=ct("sampleRate","sf",100),Re=ct("siteSpeedSampleRate",void 0,1),qe=ct("alwaysSendReferrer",void 0,!1),Ie=at("transportUrl"),$e=at("_r","_r");function Xe(t,e,o,i){e[t]=function(){try{return i&&n(i),o.apply(this,arguments)}catch(Cn){throw R("exc",t,Cn&&Cn.name),Cn}}}var Be=function(t,e,n){this.V=t,this.fa=e,this.$=!1,this.oa=n,this.ea=1},Ue=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(Re))return 0}return 0==t.V?0:(void 0===n&&(n=z()),0==n%t.V?Math.floor(n/t.V)%t.ea+1:0)};var Ve=function(t){var e={};if(Fe(e)||We(e)){var n=e[qt];null==n||1/0==n||isNaN(n)||(0<n?(Ge(e,$t),Ge(e,Ut),Ge(e,Bt),Ge(e,It),Ge(e,Xt),Ge(e,Vt),Ge(e,Ft),t(e)):p(T,"load",(function(){Ve(t)}),!1))}},Fe=function(t){var e;if(!(e=(e=T.performance||T.webkitPerformance)&&e.timing))return!1;var n=e.navigationStart;return 0!=n&&(t[qt]=e.loadEventStart-n,t[$t]=e.domainLookupEnd-e.domainLookupStart,t[Ut]=e.connectEnd-e.connectStart,t[Bt]=e.responseStart-e.requestStart,t[It]=e.responseEnd-e.responseStart,t[Xt]=e.fetchStart-n,t[Vt]=e.domInteractive-n,t[Ft]=e.domContentLoadedEventStart-n,!0)},We=function(t){if(T.top!=T)return!1;var e=T.external,n=e&&e.onloadT;return e&&!e.isValidLoadTime&&(n=void 0),2147483648<n&&(n=void 0),0<n&&e.setPageReadyTime(),null!=n&&(t[qt]=n,!0)},Ge=function(t,e){var n=t[e];(isNaN(n)||1/0==n||0>n)&&(t[e]=void 0)},Ke=function(t){return function(e){if("pageview"==e.get(gt)&&!t.I){t.I=!0;var n=function(t){var e=Math.min(nt(t,Re),100);return!(eo(et(t,ke))%100>=e)}(e);e=0<w(e.get(Et),"gclid").length,(n||e)&&Ve((function(e){t.send(n?"timing":"adtiming",e)}))}}},Ye=!1,ze=function(t){if("cookie"==et(t,He)){var e=et(t,_e),o=Qe(t),i=nn(et(t,Se)),r=en(et(t,Ce)),a=1e3*nt(t,Ae),s=et(t,je);if("auto"!=r)_(e,o,i,r,s,a)&&(Ye=!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(Ce,r),o=Qe(t),_(e,o,i,r,s,a))return void(Ye=!0);t.data.set(Ce,"auto")}}},Je=function(t){if("cookie"==et(t,He)&&!Ye&&(ze(t),!Ye))throw"abort"},Ze=function(t){if(t.get(Me)){var e=et(t,Ce),o=et(t,De)||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=C(et(t,ke)),n=en(et(t,Ce)).split(".").length;return 1<(t=on(et(t,Se)))&&(n+="-"+t),["GA1",n,e].join(".")},tn=function(t,e,n){for(var o,i=[],r=[],a=0;a<t.length;a++){var s=t[a];s.H[n]==e?i.push(s):null==o||s.H[n]<o?(r=[s],o=s.H[n]):s.H[n]==o&&r.push(s)}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=j(t);t="__utma"==t?6:2;for(var r=0;r<i.length;r++){var a=(""+i[r]).split(".");a.length>=t&&o.push({hash:a[0],R:i[r],O:a})}if(0!=o.length)return 1==o.length?o[0]:an(e,o)||an(n,o)||an(null,o)||o[0]}function an(t,e){var n;null==t?n=t=1:(n=eo(t),t=eo(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 sn=new RegExp(/^https?:\/\/([^\/:]+)/),cn=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function ln(t,e){var n=new Date,o=T.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 eo(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=fn(this,t.href,e)));if("form"==t.tagName.toLowerCase())return dn(this,t)}if("string"==typeof t)return fn(this,t,e)};var fn=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=")},dn=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=fn(t,e.action))}};function hn(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||T.event;t:{var a=o.target||o.srcElement;for(o=100;a&&0<o;){if(a.href&&a.nodeName.match(/^a(?:rea)?$/i)){i=a;break t}a=a.parentNode,o--}i={}}("http:"==i.protocol||"https:"==i.protocol)&&hn(t,i.hostname||"")&&i.href&&(i.href=fn(r,i.href,e))}catch(s){n(26)}}var r=this;this.T||(this.T=!0,p(k,"mousedown",i,!1),p(k,"keyup",i,!1)),o&&p(k,"submit",(function(e){if((e=(e=e||T.event).target||e.srcElement)&&e.action){var n=e.action.match(sn);n&&hn(t,n[1])&&dn(r,e)}}))};var pn,gn=/^(GTM|OPT)-[A-Z0-9]+$/,mn=/;_gaexp=[^;]*/g,vn=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,wn=function(t,e,o){this.U=se,this.aa=e,(e=o)||(e=(e=et(t,Te))&&"t0"!=e?Tn.test(e)?"_gat_"+C(et(t,je)):"_gat_"+C(e):"_gat"),this.Y=e,Ue(new Be(10),t)&&(n(30),this.pa=!0)},yn=function(t,e){e.get(t.U)||("1"==j(t.Y)[0]?e.set(t.U,"",!0):e.set(t.U,""+Y(),!0))},bn=function(t,e){if(e.get(t.U)){var n=6e5;t.pa&&(n/=10),_(t.Y,"1",e.get(Se),e.get(Ce),e.get(je),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(dt),o(ht),o(je),o(ke),o(xe),o(t.U),n.set(rt(re).F,i(e));var r=t.aa;n.map((function(t,e){r+=h(t)+"=",r+=h(""+e)+"&"})),r+="z="+Y(),f(r),e.set(t.U,"",!0)}},Tn=/^gtm\d+$/,kn=function(t,e){var n;(t=t.b).get("dcLoaded")||(o(t,29),(e=e||{})[_e]&&(n=C(e[_e])),function(t,e){var n=e.get(me);e.set(me,(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))},Ln=function(t){if(!t.get("dcLoaded")&&"cookie"==t.get(He)){o(t,51);var e=new wn(t);yn(e,t),bn(e,t),t.get(e.U)&&(t.set($e,1,!0),t.set(Ie,D()+"/r/collect",!0))}},xn=function(t){return t?(1*t).toFixed(3):"0"},jn=function(t){var e=T.performance;if(e&&e.getEntriesByName){n(35);var o="https://www.google-analytics.com/analytics.js?wpid="+t;m(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 a=e.getEntriesByName(o);if(r&&1==r.length&&a&&1==a.length){n(37);var s=r[0],c=a[0],l={tid:t,ad:xn(s.duration),bd:xn(c.duration),ar:xn(s.responseEnd-s.requestStart),br:xn(c.responseEnd-c.requestStart),an:xn(s.domainLookupEnd-s.domainLookupStart),bn:xn(c.domainLookupEnd-c.domainLookupStart),ac:xn(s.connectEnd-s.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+"="+h(l[u]));i.push("z="+Y()),P("https://www.google-analytics.com/u/d",i.join("&"),d)}}catch(f){}}))}},_n=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,Sn=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){Ue(new Be(1e4,!0,e),r.b)&&(t=j(t))&&0<t.length&&n(o)}var r=this;this.b=new Z,this.filters=new I,e(Te,t[Te]),e(je,u(t[je])),e(_e,t[_e]),e(Ce,t[Ce]||y()),e(Se,t[Se]),e(Ae,t[Ae]),e(De,t[De]),e(Me,t[Me]),e(Pe,t[Pe]),e(Oe,t[Oe]),e(Ne,t[Ne]),e(Re,t[Re]),e(qe,t[qe]),e(He,t[He]),e(xe,t[xe]),e(Le,t[Le]),e(dt,1),e(ht,"j48"),o(ce,X),o(le,W),o(ue,B),o(fe,K),o(de,Je),o(he,Ze),o(pe,$),o(ge,J),o(we,F),o(ye,G),o(Ee,Ln),o(me,U),o(ve,V),o(be,Ke(this)),An(this.b,t[ke]),Dn(this.b),this.b.set(pt,function(){var t=T.gaGlobal=T.gaGlobal||{};return t.hid=t.hid||Y()}()),function(t,e,n){if(!pn){var o;o=k.location.hash;var i=T.name,r=/^#?gaso=([^&]*)/;(i=(o=(o=o&&o.match(r)||i&&i.match(r))?o[1]:j("GASO")[0]||"")&&o.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))&&(_("GASO",""+o,n,e,t,0),window._udo||(window._udo=e),window._utcp||(window._utcp=n),t=i[1],m("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(t?"prefix="+t+"&":"")+Y(),"_gasojs")),pn=!0}}(this.b.get(je),this.b.get(Ce),this.b.get(Se)),this.ra=new Be(1e4,!0,"gaexp10"),i("_gid","gacookie11",41),i("_gaid","gacookie12",44)},An=function(t,e){if("cookie"==et(t,He)){var o;Ye=!1;t:{var i=j(et(t,_e));if(i&&!(1>i.length)){o=[];for(var r=0;r<i.length;r++){var a,s=(a=i[r].split(".")).shift();("GA1"==s||"1"==s)&&1<a.length?(1==(s=a.shift().split("-")).length&&(s[1]="1"),s[0]*=1,s[1]*=1,a={H:s,s:a.join(".")}):a=void 0,a&&o.push(a)}if(1==o.length){n(13),o=o[0].s;break t}if(0!=o.length){if(n(14),i=en(et(t,Ce)).split(".").length,1==(o=tn(o,i,0)).length){o=o[0].s;break t}i=on(et(t,Se)),o=(o=tn(o,i,1))[0]&&o[0].s;break t}n(12)}o=void 0}o||(o=et(t,Ce),null!=(o=rn("__utma",i=et(t,De)||y(),o))?(n(10),o=o.O[1]+"."+o.O[2]):o=void 0),o&&(t.data.set(ke,o),Ye=!0)}if(o=t.get(Oe),(r=w(k.location[o?"href":"search"],"_ga"))&&(t.get(Pe)?-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,h(e))),!t.get(ke))if(e=(e=T.gaGlobal&&T.gaGlobal.vid)&&-1!=e.search(/^(?:utma\.)?\d+\.\d+$/)?e:void 0)n(17),t.data.set(ke,e);else{for(n(8),o=(e=T.navigator.userAgent+(k.cookie?k.cookie:"")+(k.referrer?k.referrer:"")).length,i=T.history.length;0<i;)e+=i--^o++;t.data.set(ke,[Y()^2147483647&eo(e),Math.round((new Date).getTime()/1e3)].join("."))}ze(t)},Dn=function(t){var e=T.navigator,o=T.screen,i=k.location;if(t.set(Tt,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(qe))),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(_t,o.width+"x"+o.height),o&&t.set(jt,o.colorDepth+"-bit");o=k.documentElement;var a=(r=k.body)&&r.clientWidth&&r.clientHeight,s=[];if(o&&o.clientWidth&&o.clientHeight&&("CSS1Compat"===k.compatMode||!a)?s=[o.clientWidth,o.clientHeight]:a&&(s=[r.clientWidth,r.clientHeight]),o=0>=s[0]||0>=s[1]?"":s.join("x"),t.set(Ct,o),t.set(At,function(){var t,e,n;if((n=(n=T.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(a){}if(!e)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e="WIN 6,0,21,0",t.AllowScriptAccess="always",e=t.GetVariable("$version")}catch(a){}if(!e)try{e=(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(a){}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(St,e&&"function"==typeof e.javaEnabled&&e.javaEnabled()||!1),t.set(Lt,(e&&(e.language||e.browserLanguage)||"").toLowerCase()),i&&t.get(Oe)&&(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))}};Sn.prototype.get=function(t){return this.b.get(t)},Sn.prototype.set=function(t,e){this.b.set(t,e)};var Mn={pageview:[kt],event:[Dt,Mt,Ht,Pt],social:[Ot,Nt,Rt],timing:[Wt,Gt,Yt,Kt]};Sn.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][gt],n=arguments),e&&((n=b(Mn[e]||[],n))[gt]=e,this.b.set(n,void 0,!0),this.filters.D(this.b),this.b.data.m={},Ue(this.ra,this.b)&&jn(this.b.get(je))))},Sn.prototype.ma=function(t,e){var n=this;Vn(t,n,e)||(Wn(t,(function(){Vn(t,n,e)})),Fn(String(n.get(Te)),t,void 0,e,!0))};var Hn,Pn,Nn,Rn,qn=function(t){return"prerender"!=k.visibilityState&&(t(),!0)},$n=function(t){if(!qn(t)){n(16);var e=!1,o=function(){if(!e&&qn(t)){e=!0;var n=o,i=k;i.removeEventListener?i.removeEventListener("visibilitychange",n,!1):i.detachEvent&&i.detachEvent("onvisibilitychange",n)}};p(k,"visibilitychange",o)}},Xn=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,Bn=function(t){if(a(t[0]))this.u=t[0];else{var e=Xn.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||!a(t)))throw"abort";if(Un(this.c)||Un(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort"}};function Un(t){return 0<=t.indexOf(".")||0<=t.indexOf(":")}Hn=new E,Nn=new E,Rn=new E,Pn={ec:45,ecommerce:46,linkid:47};var Vn=function(t,e,n){e==Jn||e.get(Te);var o=Hn.get(t);return!!a(o)&&(e.plugins_=e.plugins_||new E,!!e.plugins_.get(t)||(e.plugins_.set(t,new o(e,n||{})),!0))},Fn=function(t,e,o,i,r){if(!a(Hn.get(e))&&!Nn.get(e)){if(Pn.hasOwnProperty(e)&&n(Pn[e]),gn.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(">m")==e&&(i.G=!0);var s=String(t.get("name"));"t0"!=s&&(i.target=s),x(String(t.get("trackingId")))||(i.ja=String(t.get(ke)),i.ka=Number(t.get(Le)),o=o.palindrome?vn:mn,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(),T[t]=T[t]||[],o={"gtm.start":o},r||(o.event="gtm.js"),T[t].push(o),o=function(t){function e(t,e){e&&(n+="&"+t+"="+h(e))}var n="https://www.google-analytics.com/gtm/js?id="+h(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&&Pn.hasOwnProperty(e)?(n(39),o=e+".js"):n(43),o&&(o&&0<=o.indexOf("/")||(o=(ft||v()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+o),t=(i=Yn(o)).protocol,o=k.location.protocol,("https:"==t||t==o||"http:"==t&&"http:"==o)&&Kn(i)&&(m(i.url,void 0,r),Nn.set(e,!0)))}},Wn=function(t,e){var n=Rn.get(t)||[];n.push(e),Rn.set(t,n)},Gn=function(t,e){Hn.set(t,e),e=Rn.get(t)||[];for(var n=0;n<e.length;n++)e[n]();Rn.set(t,[])},Kn=function(t){var e=Yn(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/"))))},Yn=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||"",a=o+"//"+i[0]+(i[1]?":"+i[1]:"");return l(t,"//")?t=o+t:l(t,"/")?t=a+t:!t||l(t,"?")?t=a+i[2]+(t||r):0>t.split("/")[0].indexOf(":")&&(t=a+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||""}},zn={ga:function(){zn.f=[]}};zn.ga(),zn.D=function(t){var e=zn.J.apply(zn,arguments);e=zn.f.concat(e);for(zn.f=[];0<e.length&&!zn.v(e[0])&&(e.shift(),!(0<zn.f.length)););zn.f=zn.f.concat(e)},zn.J=function(t){for(var e=[],n=0;n<arguments.length;n++)try{var o=new Bn(arguments[n]);o.g?Gn(o.a[0],o.a[1]):(o.i&&(o.ha=Fn(o.c,o.a[0],o.X,o.W)),e.push(o))}catch(Cn){}return e},zn.v=function(t){try{if(t.u)t.u.call(T,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=Fn(t.c,t.a[0],t.X,t.W)),!Vn(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),zn.D.apply(zn,[arguments])};Jn.h={},Jn.P=[],Jn.L=0,Jn.answer=42;var Zn=[je,Ce,Te];Jn.create=function(t){var e=b(Zn,[].slice.call(arguments));e[Te]||(e[Te]="t0");var n=""+e[Te];return Jn.h[n]?Jn.h[n]:(e=new Sn(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(Te)==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=T[ut];if(!t||42!=t.answer){if(Jn.L=t&&t.l,Jn.loaded=!0,Xe("create",e=T[ut]=Jn,e.create),Xe("remove",e,e.remove),Xe("getByName",e,e.j,5),Xe("getAll",e,e.getAll,6),Xe("get",e=Sn.prototype,e.get,7),Xe("set",e,e.set,4),Xe("send",e,e.send),Xe("requireSync",e,e.ma),Xe("get",e=Z.prototype,e.get),Xe("set",e,e.set),!v()&&!ft){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&&(ft=!0)}v()||ft||!Ue(new Be(1e4))||(n(36),ft=!0),(T.gaplugins=T.gaplugins||{}).Linker=un,e=un.prototype,Gn("linker",un),Xe("decorate",e,e.ca,20),Xe("autoLink",e,e.S,25),Gn("displayfeatures",kn),Gn("adfeatures",kn),t=t&&t.q,s(t)?zn.D.apply(Jn,t):n(50)}},Jn.da=function(){for(var t=Jn.getAll(),e=0;e<t.length;e++)t[e].get(Te)};var Qn=Jn.N,to=T[ut];function eo(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}to&&to.r?Qn():$n(Qn),$n((function(){zn.D(["provide","render",d])}))}(),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",f(this,e)),t.set("_rlt",d(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"},a={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",quantity:"qt",coupon:"cc","dimension(\\d+)":"cd","metric(\\d+)":"cm"},s={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=h(n)},i[o].j=function(t){(t=h(t))&&this.f[e](t)},i[o].i=function(t){var o=h(t);if(o){var i,r=t.list||"";t=t.listSource||"";for(var a=0;a<this.a[n];a++)if(this.a[a].name==r){i=this.a[a];break}i||(i=new c(r,t),this.a[e](i)),i.e[e](o)}},i[o].c=function(t){(t=h(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 f=function(t,e){return function(o){var i,c,l;for(t.b&&p(r,t.b,o,"&"),i=0;i<t.f[n];i++)c="&pr"+(i+1),p(a,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++)p(a,l.e[u],o,c+"pi"+(u+1))}for(i=0;i<t.g[n];i++)c="&promo"+(i+1),p(s,t.g[i],o,c);return t.d&&o.set("&cu",t.d,!0),t.clear(),e(o)}},d=function(t,e){return function(n){var o=t.b&&t.b.action;if("purchase"!=o&&"refund"!=o)return e(n)}},h=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},p=function(t,e,n,o){for(var i in e)if(e.hasOwnProperty(i))for(var r in t)if(t.hasOwnProperty(r)){var a=i.match("^"+r+"$");a&&n.set(o+t[r]+a.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 Me=[];let He=0;function Pe(t){!async function(){Me.push(t),await _,function(){const t=He;He=Me.length,Oe(Me.slice(t),null,window.location.href)}()}()}function Oe(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)}Pe.clear=()=>{Me.length=He=0};let Ne=window.location.href;window.addEventListener("popstate",(function(){Ne=window.location.href})),window.addEventListener("hashchange",(function(t){const e=window.location.href;try{Oe(Me,t.oldURL||Ne,e)}finally{Ne=e}}));let Re=null;async function qe(t){const e=c(document,"#site-details-dialog",HTMLTemplateElement).content.cloneNode(!0);if(!(e instanceof DocumentFragment))throw new Error("invariant violation: clonedDetails instanceof HTMLElement");const n=c(e,"details"),o=c(n,"details-dialog"),r=c(n,".js-details-dialog-spinner");if(t.detailsClass&&n.classList.add(...t.detailsClass.split(" ")),t.dialogClass&&o.classList.add(...t.dialogClass.split(" ")),!document.body)throw new Error("invariant violation: document.body");document.body.append(e);const a=await t.content;return r.remove(),o.prepend(a),n.addEventListener("toggle",()=>{n.hasAttribute("open")||(i(o,"dialog:remove"),n.remove())}),o}function Ie(t){const e=document.querySelector(".sso-modal");e&&(e.classList.remove("success","error"),t?e.classList.add("success"):e.classList.add("error"))}document.addEventListener("pjax:start",(function(){Re=window.location.href})),document.addEventListener("pjax:end",(function(){Oe(Me,Re,window.location.href)})),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 $e,Xe=null;function Be(){Xe=null}function Ue(){const t=document.getElementById("ajax-error-message");t&&t.classList.add("visible")}function Ve(){const t=document.getElementById("ajax-error-message");t&&t.classList.remove("visible")}function Fe(t,e=!1){return We(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||!it(n))||(!(!t.contains(n)||function(t){if(!($e instanceof Element))return!1;const e=t.closest("a[href], button");if(!e)return!1;const n=$e.closest("a[href], button");return e===n}(n))||$e instanceof Element&&t.contains($e)&&!!$e.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 We(t){for(const e of t.querySelectorAll("input, textarea"))if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&Ge(e))return!0;return!1}function Ge(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}n("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)?(Ue(),t.stopImmediatePropagation()):setTimeout((function(){t.defaultPrevented||Ue()}),0))})),n("deprecatedAjaxSend","[data-remote]",(function(){Ve()})),n("click",".js-ajax-error-dismiss",(function(){Ve()})),document.addEventListener("mouseup",(function(t){$e=t.target}));const Ke=E((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 Ye=t("as",E((function(t){return-1!==Ke().indexOf(t)})));function ze(t,e){return Je(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 Je(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,a=e.left,s=n.getBoundingClientRect(),c=s.top,l=s.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 a(t,e,n){if(0===e&&0===n)return[0,0];var a=r(t),s=a.top+n,c=a.left+e;t===o||t===i||t===o.documentElement||t===o.body?o.defaultView.scrollTo(c,s):(t.scrollTop=s,t.scrollLeft=c);var l=r(t);return[l.left-a.left,l.top-a.top]}function s(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,a=n.overflowY,s=n.overflowX;if("fixed"===r||"auto"===a||"auto"===s||"scroll"===a||"scroll"===s)break}return e}}var c=s(t),l=0,u=0;for(;c;){var f=a(c,e-l,n-u);if(l+=f[0],u+=f[1],l===e&&u===n)break;c=s(c)}}(n,l-a,c-r)}return t}))}const Ze=new WeakMap,Qe=t("aU",{});function tn(t,e,n=!1){return ze(document,()=>{const o=d(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=u(e,"data-updatable-content-scroll-position-id");en.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 en=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=en.get(e);null!=n&&(t.scrollTop=n)}});let nn=!1,on=0;const rn=[];function an(){rn.length?nn||(window.addEventListener("resize",cn,{passive:!0}),document.addEventListener("scroll",cn,{passive:!0}),nn=!0):function(){const t={passive:!0};window.removeEventListener("resize",cn,t),document.removeEventListener("scroll",cn,t),nn=!1}()}function sn(){ln(!0)}function cn(){ln()}function ln(t=!1){for(const e of rn)if(e.element.offsetHeight>0){const{element:n,placeholder:o,top:i}=e,r=n.getBoundingClientRect();if(o){const a=o.getBoundingClientRect();n.classList.contains("is-stuck")?a.top>wn(n,i)?fn(e):dn(e):r.top<=wn(n,i)?un(e):t&&dn(e)}else r.top<=wn(n,i)?un(e):fn(e)}}function un({element:t,placeholder:e,top:n}){if(e){const o=t.getBoundingClientRect();yn(t,wn(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 fn({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 dn({element:t,placeholder:e,offsetParent:n,top:o}){if(e){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();if(yn(t,wn(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 hn(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")){if(!(e instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/sticky.ts:151");return e}const n=document.createElement("div");if(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)throw new Error("invariant: app/assets/modules/github/sticky.ts:161");return t.parentNode.insertBefore(n,t)}async function pn(t){await C,function(t){const e=hn(t),n=window.getComputedStyle(t).position;t.style.position="static";const o=t.offsetParent;t.style.position="fixed";const i=vn(t),r={element:t,placeholder:e,offsetParent:o,top:"auto"===i?0:parseInt(i||"0")};t.style.position=n,rn.push(r)}(t),ln(),an()}function gn(){for(const t of l(document,".js-position-sticky, .js-notification-shelf-offset-top"))mn(t)}function mn(t){if(t.classList.contains("js-notification-top-shelf"))return;yn(t,(parseInt(vn(t))||0)+on)}function vn(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 wn(t,e){return t.classList.contains("js-notification-top-shelf")?e:e+on}function yn(t,e){t.style.setProperty("top",`${e}px`,"important")}function bn(t){const e=t.ownerDocument;t.scrollIntoView(),e&&e.defaultView&&e.defaultView.scrollBy(0,-En(e))}function En(t){sn();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}))}o(".js-sticky",{constructor:HTMLElement,add(t){pn(t)},remove(t){!function(t){const e=rn.map(t=>t.element).indexOf(t);rn.splice(e,1)}(t),an()}}),o(".js-notification-top-shelf",{constructor:HTMLElement,add(t){!async function(t){if(null===t.offsetParent)return;await C;const e=Math.floor(t.getBoundingClientRect().height);e>0&&(on=e,gn(),sn())}(t)},remove(){for(const t of l(document,".js-notification-top-shelf"))t.remove();on>0&&(on=0,gn(),sn())}}),o(".js-notification-shelf-offset-top, .js-position-sticky",{constructor:HTMLElement,add:mn});const Tn="ontransitionend"in window;function kn(t){return"height"===getComputedStyle(t).transitionProperty}function Ln(t,e){t.style.transition="none",e(),t.offsetHeight,t.style.transition=""}function xn(t,e){const n=t.getAttribute("data-details-container")||".js-details-container",o=s(t,n);!function(t,e){if(!Tn)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=kn(o);o instanceof HTMLElement&&(o.addEventListener("transitionend",()=>{o.style.display="",o.style.visibility="",t&&Ln(o,(function(){o.style.height=""}))},{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",t&&Ln(o,(function(){o.style.height=getComputedStyle(o).height})),o.offsetHeight)}e();for(const o of n)if(o instanceof HTMLElement&&kn(o)){const t=getComputedStyle(o).height;o.style.boxSizing="",o.style.height="0px"===t?`${o.scrollHeight}px`:"0px"}}(o,()=>{const n=null!=e?e:!o.classList.contains("open");o.classList.toggle("open",n),o.classList.toggle("Details--on",n),t.setAttribute("aria-expanded",n.toString()),Promise.resolve().then(()=>{!function(t){const e=t.querySelectorAll("input[autofocus], textarea[autofocus]"),n=e[e.length-1];n instanceof HTMLElement&&document.activeElement!==n&&n.focus()}(o),function(t){t.classList.contains("tooltipped")&&(t.classList.remove("tooltipped"),t.addEventListener("mouseleave",()=>{t.classList.add("tooltipped"),t instanceof HTMLElement&&t.blur()},{once:!0}))}(t),function(t){const e=t.closest(".js-edit-repository-meta");e instanceof HTMLFormElement&&e.reset()}(t);const e=new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:o.classList.contains("Details--on")}});o.dispatchEvent(e)})})}function jn(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}n("click",".js-details-target",(function(t){const{currentTarget:e}=t;e instanceof HTMLElement&&(xn(e),t.preventDefault())})),Pe((function({target:t}){t&&jn(t)}));var _n=j((function(t){
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @license MIT
*/
var e;e=function(){if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,o,i,r,a,s,c,l,u,f,d,h,p,g,m,v,w,y,b,E,T={},k=/\s+/g,L=/left|right|inline/,x="Sortable"+(new Date).getTime(),j=window,_=j.document,C=j.parseInt,S=j.setTimeout,A=j.jQuery||j.Zepto,D=j.Polymer,M=!1,H="draggable"in _.createElement("div"),P=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((E=_.createElement("x")).style.cssText="pointer-events:auto","auto"===E.style.pointerEvents),O=!1,N=Math.abs,R=Math.min,q=[],I=[],$=function(){return!1},X=rt((function(t,e,n){if(n&&e.scroll){var o,i,r,a,s,f,d=n[x],h=e.scrollSensitivity,p=e.scrollSpeed,g=t.clientX,m=t.clientY,v=window.innerWidth,w=window.innerHeight;if(l!==n&&(c=e.scroll,l=n,u=e.scrollFn,!0===c)){c=n;do{if(c.offsetWidth<c.scrollWidth||c.offsetHeight<c.scrollHeight)break}while(c=c.parentNode)}c&&(o=c,i=c.getBoundingClientRect(),r=(N(i.right-g)<=h)-(N(i.left-g)<=h),a=(N(i.bottom-m)<=h)-(N(i.top-m)<=h)),r||a||(a=(w-m<=h)-(m<=h),((r=(v-g<=h)-(g<=h))||a)&&(o=j)),T.vx===r&&T.vy===a&&T.el===o||(T.el=o,T.vx=r,T.vy=a,clearInterval(T.pid),o&&(T.pid=setInterval((function(){if(f=a?a*p:0,s=r?r*p:0,"function"==typeof u)return u.call(d,s,f,t);o===j?j.scrollTo(j.pageXOffset+s,j.pageYOffset+f):(o.scrollTop+=f,o.scrollLeft+=s)}),24)))}}),30),B=function(t){function e(t,e){return null!=t&&!0!==t||null!=(t=n.name)?"function"==typeof t?t:function(n,o){var i=o.options.group.name;return e?t:t&&(t.join?t.indexOf(i)>-1:i==t)}:$}var n={},o=t.group;o&&"object"==typeof o||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){M={capture:!1,passive:!1}}}))}catch(lt){}function U(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=at({},e),t[x]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==U.supportPointer};for(var o in n)!(o in e)&&(e[o]=n[o]);for(var i in B(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&H,G(t,"mousedown",this._onTapStart),G(t,"touchstart",this._onTapStart),e.supportPointer&&G(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(G(t,"dragover",this),G(t,"dragenter",this)),I.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function V(e,n){"clone"!==e.lastPullMode&&(n=!0),i&&i.state!==n&&(z(i,"display",n?"none":""),n||i.state&&(e.options.group.revertClone?(r.insertBefore(i,a),e._animate(t,i)):r.insertBefore(i,t)),i.state=n)}function F(t,e,n){if(t){n=n||_;do{if(">*"===e&&t.parentNode===n||it(t,e))return t}while(t=W(t))}return null}function W(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function G(t,e,n){t.addEventListener(e,n,M)}function K(t,e,n){t.removeEventListener(e,n,M)}function Y(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(k," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return _.defaultView&&_.defaultView.getComputedStyle?n=_.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function J(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function Z(t,e,n,o,r,a,s,c){t=t||e[x];var l=_.createEvent("Event"),u=t.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);l.initEvent(n,!0,!0),l.to=r||e,l.from=a||e,l.item=o||e,l.clone=i,l.oldIndex=s,l.newIndex=c,e.dispatchEvent(l),u[f]&&u[f].call(t,l)}function Q(t,e,n,o,i,r,a,s){var c,l,u=t[x],f=u.options.onMove;return(c=_.createEvent("Event")).initEvent("move",!0,!0),c.to=e,c.from=t,c.dragged=n,c.draggedRect=o,c.related=i||e,c.relatedRect=r||e.getBoundingClientRect(),c.willInsertAfter=s,t.dispatchEvent(c),f&&(l=f.call(u,c,a)),l}function tt(t){t.draggable=!1}function et(){O=!1}function nt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function ot(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||">*"!==e&&!it(t,e)||n++;return n}function it(t,e){if(t){var n=(e=e.split(".")).shift().toUpperCase(),o=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==n&&t.nodeName.toUpperCase()!=n||e.length&&((" "+t.className+" ").match(o)||[]).length!=e.length)}return!1}function rt(t,e){var n,o;return function(){void 0===n&&(n=arguments,o=this,S((function(){1===n.length?t.call(o,n[0]):t.apply(o,n),n=void 0}),e))}}function at(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function st(t){return S(t,0)}function ct(t){return clearTimeout(t)}return U.prototype={constructor:U,_onTapStart:function(e){var n,o=this,i=this.el,r=this.options,a=r.preventOnFilter,c=e.type,l=e.touches&&e.touches[0],u=(l||e).target,f=e.target.shadowRoot&&e.path&&e.path[0]||u,d=r.filter;if(function(t){q.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&q.push(o)}}(i),!t&&!(/mousedown|pointerdown/.test(c)&&0!==e.button||r.disabled)&&!f.isContentEditable&&(u=F(u,r.draggable,i))&&s!==u){if(n=ot(u,r.draggable),"function"==typeof d){if(d.call(this,e,u,this))return Z(o,f,"filter",u,i,i,n),void(a&&e.preventDefault())}else if(d&&(d=d.split(",").some((function(t){if(t=F(f,t.trim(),i))return Z(o,t,"filter",u,i,i,n),!0}))))return void(a&&e.preventDefault());r.handle&&!F(f,r.handle,i)||this._prepareDragStart(e,l,u,n)}},_prepareDragStart:function(o,i,c,l){var u,f=this,d=f.el,h=f.options,g=d.ownerDocument;c&&!t&&c.parentNode===d&&(w=o,r=d,t=c,h.handleReplacedDragElement&&(e=c.getAttribute("id")),n=t.parentNode,a=t.nextSibling,s=c,m=h.group,p=l,this._lastX=(i||o).clientX,this._lastY=(i||o).clientY,t.style["will-change"]="all",u=function(){f._disableDelayedDrag(),t.draggable=f.nativeDraggable,Y(t,h.chosenClass,!0),f._triggerDragStart(o,i),Z(f,r,"choose",t,r,r,p)},h.ignore.split(",").forEach((function(e){J(t,e.trim(),tt)})),G(g,"mouseup",f._onDrop),G(g,"touchend",f._onDrop),G(g,"touchcancel",f._onDrop),G(g,"selectstart",f),h.supportPointer&&G(g,"pointercancel",f._onDrop),h.delay?(G(g,"mouseup",f._disableDelayedDrag),G(g,"touchend",f._disableDelayedDrag),G(g,"touchcancel",f._disableDelayedDrag),G(g,"mousemove",f._disableDelayedDrag),G(g,"touchmove",f._disableDelayedDrag),h.supportPointer&&G(g,"pointermove",f._disableDelayedDrag),f._dragStartTimer=S(u,h.delay)):u())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),K(t,"mouseup",this._disableDelayedDrag),K(t,"touchend",this._disableDelayedDrag),K(t,"touchcancel",this._disableDelayedDrag),K(t,"mousemove",this._disableDelayedDrag),K(t,"touchmove",this._disableDelayedDrag),K(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,n){(n=n||("touch"==e.pointerType?e:null))?(w={target:t,clientX:n.clientX,clientY:n.clientY},this._onDragStart(w,"touch")):this.nativeDraggable?(G(t,"dragend",this),G(r,"dragstart",this._onDragStart)):this._onDragStart(w,!0);try{_.selection?st((function(){_.selection.empty()})):window.getSelection().removeAllRanges()}catch(lt){}},_dragStarted:function(){if(r&&t){var e=this.options;Y(t,e.ghostClass,!0),Y(t,e.dragClass,!1),U.active=this,Z(this,r,"start",t,r,r,p)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,P||z(o,"display","none");var t=_.elementFromPoint(y.clientX,y.clientY),e=t,n=I.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(y.clientX,y.clientY)),e)do{if(e[x]){for(;n--;)I[n]({clientX:y.clientX,clientY:y.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);P||z(o,"display","")}},_onTouchMove:function(t){if(w){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=r.clientX-w.clientX+i.x,s=r.clientY-w.clientY+i.y,c=t.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!U.active){if(n&&R(N(r.clientX-this._lastX),N(r.clientY-this._lastY))<n)return;this._dragStarted()}this._appendGhost(),b=!0,y=r,z(o,"webkitTransform",c),z(o,"mozTransform",c),z(o,"msTransform",c),z(o,"transform",c),t.preventDefault()}},_appendGhost:function(){if(!o){var e,n=t.getBoundingClientRect(),i=z(t),a=this.options;Y(o=t.cloneNode(!0),a.ghostClass,!1),Y(o,a.fallbackClass,!0),Y(o,a.dragClass,!0),z(o,"top",n.top-C(i.marginTop,10)),z(o,"left",n.left-C(i.marginLeft,10)),z(o,"width",n.width),z(o,"height",n.height),z(o,"opacity","0.8"),z(o,"position","fixed"),z(o,"zIndex","100000"),z(o,"pointerEvents","none"),a.fallbackOnBody&&_.body.appendChild(o)||r.appendChild(o),e=o.getBoundingClientRect(),z(o,"width",2*n.width-e.width),z(o,"height",2*n.height-e.height)}},_onDragStart:function(e,n){var o=e.dataTransfer,i=this.options;this._offUpEvents(),m.checkPull(this,this,t,e),Y(t,i.dragClass,!0),n?("touch"===n?(G(_,"touchmove",this._onTouchMove),G(_,"touchend",this._onDrop),G(_,"touchcancel",this._onDrop),i.supportPointer&&(G(_,"pointermove",this._onTouchMove),G(_,"pointerup",this._onDrop))):(G(_,"mousemove",this._onTouchMove),G(_,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(o&&(o.effectAllowed="move",i.setData&&i.setData.call(this,o,t)),G(_,"drop",this),this._dragStartId=st(this._dragStarted))},_onDragOver:function(s){var c,l,u,p,g=this.el,w=this.options,y=w.group,E=U.active,T=m===y,k=!1,j=w.sort;if(void 0!==s.preventDefault&&(s.preventDefault(),!w.dragoverBubble&&s.stopPropagation()),!t.animated&&(b=!0,w.handleReplacedDragElement&&!t.parentNode&&e&&Y(t=_.getElementById(e)||t,this.options.ghostClass,!0),E&&!w.disabled&&(T?j||(p=!r.contains(t)):v===this||(E.lastPullMode=m.checkPull(this,E,t,s))&&y.checkPut(this,E,t,s))&&(void 0===s.rootEl||s.rootEl===this.el))){if(X(s,w,this.el),O)return;if(c=F(s.target,w.draggable,g),l=t.getBoundingClientRect(),v!==this&&(v=this,k=!0),p)return V(E,!0),n=r,void(i||a?r.insertBefore(t,i||a):j||r.appendChild(t));if(0===g.children.length||g.children[0]===o||g===s.target&&function(t,e){var n=t.lastElementChild.getBoundingClientRect();return e.clientY-(n.top+n.height)>5||e.clientX-(n.left+n.width)>5}(g,s)){if(0!==g.children.length&&g.children[0]!==o&&g===s.target&&(c=g.lastElementChild),c){if(c.animated)return;u=c.getBoundingClientRect()}V(E,T),!1!==Q(r,g,t,l,c,u,s)&&(t.contains(g)||(g.appendChild(t),n=g),this._animate(l,t),c&&this._animate(u,c))}else if(c&&!c.animated&&c!==t&&void 0!==c.parentNode[x]){f!==c&&(f=c,d=z(c),h=z(c.parentNode));var C=(u=c.getBoundingClientRect()).right-u.left,A=u.bottom-u.top,D=L.test(d.cssFloat+d.display)||"flex"==h.display&&0===h["flex-direction"].indexOf("row"),M=c.offsetWidth>t.offsetWidth,H=c.offsetHeight>t.offsetHeight,P=(D?(s.clientX-u.left)/C:(s.clientY-u.top)/A)>.5,N=c.nextElementSibling,R=!1;if(D){var q=t.offsetTop,I=c.offsetTop;R=q===I?c.previousElementSibling===t&&!M||P&&M:c.previousElementSibling===t||t.previousElementSibling===c?(s.clientY-u.top)/A>.5:I>q}else k||(R=N!==t&&!H||P&&H);var $=Q(r,g,t,l,c,u,s,R);!1!==$&&(1!==$&&-1!==$||(R=1===$),O=!0,S(et,30),V(E,T),t.contains(g)||(R&&!N?g.appendChild(t):c.parentNode.insertBefore(t,R?N:c)),n=t.parentNode,this._animate(l,t),this._animate(u,c))}}},_animate:function(t,e){var n=this.options.animation;if(n){var o=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),z(e,"transition","none"),z(e,"transform","translate3d("+(t.left-o.left)+"px,"+(t.top-o.top)+"px,0)"),e.offsetWidth,z(e,"transition","all "+n+"ms"),z(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=S((function(){z(e,"transition",""),z(e,"transform",""),e.animated=!1}),n)}},_offUpEvents:function(){var t=this.el.ownerDocument;K(_,"touchmove",this._onTouchMove),K(_,"pointermove",this._onTouchMove),K(t,"mouseup",this._onDrop),K(t,"touchend",this._onDrop),K(t,"pointerup",this._onDrop),K(t,"touchcancel",this._onDrop),K(t,"pointercancel",this._onDrop),K(t,"selectstart",this)},_onDrop:function(e){var s=this.el,c=this.options;clearInterval(this._loopId),clearInterval(T.pid),clearTimeout(this._dragStartTimer),ct(this._cloneId),ct(this._dragStartId),K(_,"mouseover",this),K(_,"mousemove",this._onTouchMove),this.nativeDraggable&&(K(_,"drop",this),K(s,"dragstart",this._onDragStart)),this._offUpEvents(),e&&(b&&(e.preventDefault(),!c.dropBubble&&e.stopPropagation()),o&&o.parentNode&&o.parentNode.removeChild(o),r!==n&&"clone"===U.active.lastPullMode||i&&i.parentNode&&i.parentNode.removeChild(i),t&&(this.nativeDraggable&&K(t,"dragend",this),tt(t),t.style["will-change"]="",Y(t,this.options.ghostClass,!1),Y(t,this.options.chosenClass,!1),Z(this,r,"unchoose",t,n,r,p),r!==n?(g=ot(t,c.draggable))>=0&&(Z(null,n,"add",t,n,r,p,g),Z(this,r,"remove",t,n,r,p,g),Z(null,n,"sort",t,n,r,p,g),Z(this,r,"sort",t,n,r,p,g)):t.nextSibling!==a&&(g=ot(t,c.draggable))>=0&&(Z(this,r,"update",t,n,r,p,g),Z(this,r,"sort",t,n,r,p,g)),U.active&&(null!=g&&-1!==g||(g=p),Z(this,r,"end",t,n,r,p,g),this.save()))),this._nulling()},_nulling:function(){r=t=n=o=a=i=s=c=l=w=y=b=g=f=d=v=m=U.active=null,q.forEach((function(t){t.checked=!0})),q.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)F(t=n[o],r.draggable,this.el)&&e.push(t.getAttribute(r.dataIdAttr)||nt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var i=n.children[o];F(i,this.options.draggable,n)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return F(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&B(n)},destroy:function(){var t=this.el;t[x]=null,K(t,"mousedown",this._onTapStart),K(t,"touchstart",this._onTapStart),K(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(K(t,"dragover",this),K(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),I.splice(I.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},G(_,"touchmove",(function(t){U.active&&t.preventDefault()})),U.utils={on:G,off:K,css:z,find:J,is:function(t,e){return!!F(t,e,t)},extend:at,throttle:rt,closest:F,toggleClass:Y,clone:function(t){return D&&D.dom?D.dom(t).cloneNode(!0):A?A(t).clone(!0)[0]:t.cloneNode(!0)},index:ot,nextTick:st,cancelNextTick:ct},U.create=function(t,e){return new U(t,e)},U.version="1.7.0",U},t.exports=e()}));function Cn(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 a=0;a<o.length;a++)r[a]=o.charCodeAt(a);return i}function Sn(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,"")}t("ap",_n);const An="copy",Dn="convert";function Mn(t,e,n){if(e===An)return n;if(e===Dn)return t(n);if(e instanceof Array)return n.map(n=>Mn(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]=Mn(t,r.schema,n[i]):o[i]=null;else if(r.required)throw new Error(`Missing key: ${i}`);return o}}function Hn(t){return{required:!0,schema:t}}function Pn(t){return{required:!1,schema:t}}const On={type:Hn(An),id:Hn(Dn),transports:Pn(An)},Nn={publicKey:Hn({rp:Hn(An),user:Hn({id:Hn(Dn),name:Hn(An),displayName:Hn(An),icon:Pn(An)}),challenge:Hn(Dn),pubKeyCredParams:Hn(An),timeout:Pn(An),excludeCredentials:Pn([On]),authenticatorSelection:Pn(An),attestation:Pn(An),extensions:Pn(An)}),signal:Pn(An)},Rn={type:Hn(An),id:Hn(An),rawId:Hn(Dn),response:Hn({clientDataJSON:Hn(Dn),attestationObject:Hn(Dn)})},qn={mediation:Pn(An),publicKey:Hn({challenge:Hn(Dn),timeout:Pn(An),rpId:Pn(An),allowCredentials:Pn([On]),userVerification:Pn(An),extensions:Pn(An)}),signal:Pn(An)},In={type:Hn(An),id:Hn(An),rawId:Hn(Dn),response:Hn({clientDataJSON:Hn(Dn),authenticatorData:Hn(Dn),signature:Hn(Dn),userHandle:Hn(Dn)})};function $n(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}function Xn(){return $n()?"supported":"unsupported"}let Bn=!1;let Un,Vn=!1;function Fn(t){const e=t.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(e){if(1===e.length){const t=Wn(e[0]);if(!t)return;return Object.freeze({start:t,end:t})}if(2===e.length){const t=Wn(e[0]),n=Wn(e[1]);if(!t||!n)return;return Kn(Object.freeze({start:t,end:n}))}}else;}function Wn(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 Gn(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 a=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 s=0;s<a.length;s++){const t=a[s],n=r-(t.textContent||"").length;if(0===n){const n=a[s+1];return e&&n?[n,0]:[t,r]}if(n<0)return[t,r];r=n}return o}function Kn(t){const e=[t.start,t.end];return e.sort(Yn),e[0]===t.start&&e[1]===t.end?t:Object.freeze({start:e[0],end:e[1]})}function Yn(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 zn(t){if(t.querySelector(".js-task-list-field"))for(const e of l(t,"task-lists",r))e.disabled=!1}function Jn(t,e,n){const o=c(t,".js-comment-update",HTMLFormElement);!function(t){for(const e of l(t,"task-lists",r))e.disabled=!0}(t);const i=o.elements.namedItem("task_list_track");i instanceof Element&&i.remove();const a=o.elements.namedItem("task_list_operation");a instanceof Element&&a.remove();const s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","task_list_track"),s.setAttribute("value",e),o.appendChild(s);const f=document.createElement("input");if(f.setAttribute("type","hidden"),f.setAttribute("name","task_list_operation"),f.setAttribute("value",JSON.stringify(n)),o.appendChild(f),!o.elements.namedItem("task_list_key")){const t=u(c(o,".js-task-list-field"),"name").split("[")[0],e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","task_list_key"),e.setAttribute("value",t),o.appendChild(e)}t.classList.remove("is-comment-stale"),ot(o)}function Zn(){return!!Un&&(Un.remove(),Un=null,!0)}It(".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 c(t,".js-sudo-error").textContent=e,c(t,".js-sudo-error").hidden=!1,void(c(t,".js-sudo-password",HTMLInputElement).value="")}Vn=!0,s(t,"details").removeAttribute("open")})),o(".js-task-list-container .js-task-list-field",(function(t){zn(s(t,".js-task-list-container"))})),n("task-lists-move","task-lists",(function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/task-list.ts:49");const{src:e,dst:n}=t.detail;Jn(s(t.currentTarget,".js-task-list-container"),"reordered",{operation:"move",src:e,dst:n})})),n("task-lists-check","task-lists",(function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/task-list.ts:55");const{position:e,checked:n}=t.detail;Jn(s(t.currentTarget,".js-task-list-container"),`checked:${n?1:0}`,{operation:"check",position:e,checked:n})})),It(".js-task-list-container .js-comment-update",(async function(t,e){const n=s(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(a){let t;try{t=JSON.parse(a.response.text)}catch(Cn){}if(t&&t.stale){const e=t.updated_markdown,o=t.updated_html,i=t.version;if(e&&o&&i){const t=c(n,".js-comment-body"),r=c(n,".js-body-version"),a=c(n,".js-task-list-field",HTMLTextAreaElement);t.innerHTML=o,a.value=e,n.setAttribute("data-body-version",i),r instanceof HTMLInputElement&&(r.value=i)}}else window.location.reload()}r&&(i&&r.json.source&&(c(n,".js-task-list-field",HTMLTextAreaElement).value=r.json.source),zn(n))}))}}}));
//# sourceMappingURL=frameworks-ebecd1d7.js.map