Physique_et_informatique/INA219/GitHub-chrisb2_pi_ina219_fichiers/github-bootstrap-d71a2b04.js

20 lines
499 KiB
JavaScript
Raw Permalink Normal View History

2023-02-06 21:15:30 +01:00
self.System=self.System||(()=>{const e={},t={},n=e=>e.replace(/^.\/(\w+)-[a-f0-9]{8,}.js$/,"./$1.js"),s=window.customElements?Promise.resolve():new Promise((e,t)=>{const n=document.getElementById("js-conditional-compat");if(!(n instanceof HTMLScriptElement))return t(new Error("unable to load compat.js"));const s=setTimeout(()=>{t(new Error("timed out loading compat.js"))},1e4);n.onload=()=>{clearTimeout(s),e()},n.onerror=()=>{clearTimeout(s),t(new Error("network error loading compat.js"))},n.src=n.getAttribute("data-src")||"",n.removeAttribute("data-src")}),o={register(r,i){const a=n(`./${((document.currentScript||{}).src||"").split("?").shift().split("/").pop()}`),c={},l=i((e,t)=>t?c[e]=t:Object.assign(c,e),o),u=r.map((e,t)=>o.import(n(e)).then(l.setters[t]));u.unshift(s),e[a]=Promise.all(u).then(()=>(l.execute(),c)).catch(e=>{throw e.message=`evaluating module ${a}: ${e.message}`,e}),t[a]&&(t[a](e[a]),delete t[a])},import:n=>e[n]||(e[n]=new Promise((e,s)=>{const o=setTimeout(()=>{s(new Error(`could not resolve ${n}`))},1e4);t[n]=t=>{clearTimeout(o),e(t)}}))};return o})(),System.register(["./frameworks.js","./vendor.js"],(function(){"use strict";var e,t,n,s,o,r,i,a,c,l,u,d,m,f,p,g,h,b,v,w,j,y,E,L,T,k,M,S,A,x,H,C,q,I,_,$,D,N,B,P,R,F,O,U,W,z,V,K,Y,J,X,G,Q,Z,ee,te,ne,se,oe,re,ie,ae,ce,le,ue,de,me,fe,pe,ge,he,be,ve,we,je,ye,Ee,Le,Te,ke,Me,Se,Ae,xe,He,Ce,qe,Ie,_e,$e,De,Ne,Be,Pe,Re,Fe,Oe,Ue,We,ze,Ve,Ke,Ye,Je,Xe,Ge,Qe,Ze,et,tt,nt,st,ot,rt,it,at,ct,lt,ut,dt,mt,ft,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,pt=e.a,gt=e.d,ht=e.f,bt=e.t,vt=e.r,wt=e.h}],execute:function(){window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};e((function(e,t){var n,s;n=window,s=document,e.exports={polyfill:function(){if(!("scrollBehavior"in s.documentElement.style&&!0!==n.__forceSmoothScrollPolyfill__)){var e,t=n.HTMLElement||n.Element,o=(e=n.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)?1:0),r={scroll:n.scroll||n.scrollTo,scrollBy:n.scrollBy,elementScroll:t.prototype.scroll||a,scrollIntoView:t.prototype.scrollIntoView},i=n.performance&&n.performance.now?n.performance.now.bind(n.performance):Date.now;n.scroll=n.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?p.call(n,s.body,void 0!==arguments[0].left?~~arguments[0].left:n.scrollX||n.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:n.scrollY||n.pageYOffset):r.scroll.call(n,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:n.scrollX||n.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:n.scrollY||n.pageYOffset))},n.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?r.scrollBy.call(n,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?argument
<li role="option" id="suggester-issue-${e.id}" data-value="${e.number}">
<small>#${e.number}</small> ${e.title}
</li>
`;vt((s=e,wt`
<ul role="listbox" class="suggester-container suggester suggestions list-style-none position-absolute">
${s.map(n)}
</ul>
`),t);var s}(i,t),i.length}function sp(e){if(!(e instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/suggesters/issue-suggester.ts:56");if("#"!==e.detail.key)return;const t=h(e.detail.item,"data-value");e.detail.value=`#${t}`}function op(e){if(!(e instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/suggesters/issue-suggester.ts:63");const{key:t,provide:n}=e.detail;if("#"!==t)return;const s=e.target;if(!(s instanceof Element))throw new Error("invariant: app/assets/modules/github/suggesters/issue-suggester.ts:68");n(async function(e,t){const n=await rp(e),s=document.createElement("div"),o=np(t,s,n),r=s.firstElementChild;if(!(r instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/suggesters/issue-suggester.ts:77");return{fragment:r,matched:o>0}}(h(s,"data-issue-url"),e.detail.text))}pt("text-expander[data-issue-url]",{subscribe:e=>b(v(e,"text-expander-change",op),v(e,"text-expander-value",sp))});const rp=we(F);function ip(e,t,n){const s=zc(n,e,{limit:5,score:ap(e).score,text:e=>e.description?`${e.name} ${e.description}`.trim().toLowerCase():`${e.login} ${e.name}`.trim().toLowerCase()});return function(e,t){const n=e=>{const t="user"===e.type?e.login:e.name,n="user"===e.type?e.name:e.description;return wt`
<li role="option" id="suggester-${e.id}-${e.type}-${t}" data-value="${t}">
<span>${t}</span>
<small>${n}</small>
</li>
`};vt((s=e,wt`
<ul role="listbox" class="suggester-container suggester suggestions list-style-none position-absolute">
${s.map(n)}
</ul>
`),t);var s}(s,t),s.length}function ap(e){let t;if(e){const n=e.toLowerCase().split("");t=function(t){if(!t)return 0;const s=function(e,t){let n,s,o,r;const i=function(e,t){let n=0;const s=[];for(;(n=e.indexOf(t,n))>-1;)s.push(n++);return s}(e,t[0]);if(0===i.length)return null;if(1===t.length)return[i[0],1,[]];for(r=null,s=0,o=i.length;s<o;s++){const o=i[s];if(!(n=cp(e,t,o+1)))continue;const a=n[n.length-1]-o;(!r||a<r[1])&&(r=[o,a,n])}return r}(t,n);if(!s)return 0;let o=e.length/s[1];return o/=s[0]/2+1,o}}else t=()=>2;return{score:t}}function cp(e,t,n){let s=n;const o=[];for(let r=1;r<t.length;r+=1){if(s=e.indexOf(t[r],s),-1===s)return;o.push(s++)}return o}function lp(e){if(!(e instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/suggesters/mention-suggester.ts:124");if("@"!==e.detail.key)return;const t=h(e.detail.item,"data-value");e.detail.value=`@${t}`}function up(e){if(!(e instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/suggesters/mention-suggester.ts:131");const{key:t,provide:n}=e.detail;if("@"!==t)return;const s=e.target;if(!(s instanceof Element))throw new Error("invariant: app/assets/modules/github/suggesters/mention-suggester.ts:136");n(async function(e,t){const n=await dp(e),s=document.createElement("div"),o=ip(t,s,n),r=s.firstElementChild;if(!(r instanceof HTMLElement))throw new Error("invariant: app/assets/modules/github/suggesters/mention-suggester.ts:145");return{fragment:r,matched:o>0}}(h(s,"data-mention-url"),e.detail.text))}pt("text-expander[data-mention-url]",{subscribe:e=>b(v(e,"text-expander-change",up),v(e,"text-expander-value",lp))});const dp=we(F);function mp(e,n){const s=p(e,".js-survey-question-form"),o=t(s,"input.js-survey-other-text",HTMLInputElement);s.classList.toggle("is-other-selected",n),o.hidden=!n,n?(o.required=!0,o.focus()):o.required=!1,ht(o,"change")}function fp(e,t=e.length){let n=0,s=0;for(let o=0;o<t;o++){const t=e.charCodeAt(o);gp(t)?pp(s)?n+=1:n+=3:t<=127?n+=1:t>=128&&t<=2047?n+=2:t>=2048&&t<=65535&&(n+=3),s=t}return n}function pp(e){return e>=55296&&e<=56319}function gp(e){return e>=56320&&e<=57343}ft("change","select.js-survey-select",(function(e){const t=e.currentTarget;mp(t,t.options[t.selectedIndex].classList.contains("js-survey-option-other"))})),ft("change","input.js-survey-radio",(function({currentTarget:e}){mp(e,e.classList.contains("js-survey-radio-other"))})),ft("change","input.js-survey-contact-checkbox",(function(e){const n=e.currentTarget,s=p(n,".js-survey-question-form"),o=t(s,".js-survey-contact-checkbox-hidden");n.checked?o.setAttribute("disabled","true"):o.removeAttribute("disabled")})),ft("click",".js-tagsearch-nav-item",e=>{p(e.currentTarget,".js-tagsearch-popover-content").scrollTop=0}),pt(".js-file-line-container, .js-code-block-container",{constructor:HTMLElement,subscribe(e){const n=document.querySelector(".js-tagsearch-popover");if(!(n instanceof HTMLElement))return{unsubscribe(){}};const s=t(n,".js-tagsearch-popover-content"),o=new WeakMap,r=new WeakMap;let i;async function a(t){const s=function(e,t,n){let s,o;if(document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);e&&(s=e.offsetNode,o=e.offset)}else if(document.caretRangeFromPoint){const e=document.caretRangeFromPoint(t,n);e&&(s=e.startContainer,o=e.startOffset)}if(!s||"number"!=typeof o||s.nodeType!==Node.TEXT_NODE)return;const r=s.textContent;if(!r)return null;const i=function(e,t,n){let s;for(;s=t.exec(e);){const e=s.index+s[0].length;if(s.index<n&&n<e)return[s[0],s.index,e]}return null}(r,e,o);if(!i)return null;const a=document.createRange();return a.setStart(s,i[1]),a.setEnd(s,i[2]),a}(/\w+[!?]?/g,t.clientX,t.clientY);if(!s)return;const i=s.commonAncestorContainer.parentElement;if(!i)throw new Error("invariant: app/assets/modules/github/tagsearch.ts:24");for(const e of i.classList)if(["pl-token","pl-c","pl-s","pl-k"].includes(e))return;const a=s.toString();if(!a||a.match(/\n|\s|[();&.=",]/))return;let c=r.get(i);if(c||(c=new Set,r.set(i,c)),c.has(a))return;c.add(a);let u=h(n,"data-tagsearch-lang");if("HTML+ERB"===u){
//# sourceMappingURL=github-bootstrap-bdd51374.js.map