-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute-profile.chunk.8e6a0.esm.js
1 lines (1 loc) · 14.1 KB
/
route-profile.chunk.8e6a0.esm.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"38Gp":function(t,e,n){"use strict";n.r(e),function(t){var o=n("+mXV"),i=n("Xjb4"),a=n("obyI"),r=n("C+Gs"),s=n("O1lG"),l=(n("ucLl"),n("f/Gm"),n("a/8j")),c=(n("6WUA"),n("4WT4")),d=n("YfLz"),u=n("gPBw"),f=(n("M72+"),n("YzSL"),n("Vzl/")),p=n("q9Eb");n("fHzH");const v=Object(i.b)(Object(r.a)({icon:{"& svg":{verticalAlign:"middle",height:"1.25em",fill:"#333"},marginRight:"1.5em"},publicHeader:{textOverflow:"ellipsis",overflow:"hidden",margin:"0 !important",maxWidth:"75vw"},privateHeader:{textOverflow:"ellipsis",overflow:"hidden",margin:"0 !important",maxWidth:"30vw"},"@media (max-width: 804px)":{privateHeader:{maxWidth:"75vw"}},wrapper:{display:"flex",justifyContent:"space-between",paddingTop:"15px",paddingBottom:"5px"}},({name:e,score:n,division:o,divisionPlace:i,globalPlace:a,ctftimeId:r,classes:s})=>t("div",{class:"card"},t("div",{class:"content"},t("div",{class:s.wrapper},t("h5",{class:"title "+s.publicHeader,title:e},e),r&&t("a",{href:"https://ctftime.org/team/"+r,target:"_blank",rel:"noopener noreferrer"},t(p.a,{style:"height: 20px;"}))),t("div",{class:"action-bar"},t("p",null,t("span",{class:"icon "+s.icon},t(d.a,null)),0===n?"No points earned":n+" total points"),t("p",null,t("span",{class:"icon "+s.icon},t(f.a,null)),0===n?"Unranked":`${i} in the ${o} division`),t("p",null,t("span",{class:"icon "+s.icon},t(f.a,null)),0===n?"Unranked":a+" across all teams"),t("p",null,t("span",{class:"icon "+s.icon},t(u.a,null)),o," division"))))));e.default=Object(r.a)({root:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(384px, 1fr))",width:"100%",maxWidth:"1500px",margin:"auto","& .card":{background:"#222",marginBottom:"20px"},"& input, & select, & option":{background:"#111",color:"#fff !important"}},col:{margin:"0 auto",width:"calc(100% - 20px)",marginLeft:"10px"},privateCol:{width:"calc(100% - 20px)",marginLeft:"10px"},errorCard:{background:"#222"}},({uuid:e,classes:n})=>{const[i,r]=Object(o.j)(!1),[d,u]=Object(o.j)(null),[f,p]=Object(o.j)({}),{name:h,score:m,solves:g,ctftimeId:b}=f,w=a.a.divisions[f.division],x=c.a.placementString(f.divisionPlace),y=c.a.placementString(f.globalPlace);return Object(o.d)(()=>{r(!1),Object(s.a)(e).then(({data:t,error:e})=>{e?u("Profile not found"):p(t),r(!0)})},[e]),Object(o.d)(()=>{document.title="Profile | "+a.a.ctfName},[]),i?null!==d?t("div",{class:"row u-center"},t("div",{class:"col-4"},t("div",{class:"card "+n.errorCard},t("div",{class:"content"},t("p",{class:"title"},"There was an error"),t("p",{class:"font-thin"},d))))):t("div",{class:n.root},t("div",{class:n.col},t(v,{name:h,score:m,division:w,divisionPlace:x,globalPlace:y,ctftimeId:b}),t(l.a,{solves:g}))):null})}.call(this,n("sL3o").h)},"4WT4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={};n.r(o),n.d(o,"placementString",(function(){return i}));const i=t=>{let e=String(t);if(t>=11&&t<=13)e+="th place";else switch(t%10){case 1:e+="st place";break;case 2:e+="nd place";break;case 3:e+="rd place";break;default:e+="th place"}return e}},"6WUA":function(t,e,n){"use strict";(function(t){function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function o(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},a=Object.keys(t);for(o=0;o<a.length;o++)e.indexOf(n=a[o])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)e.indexOf(n=a[o])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var i=n("C+Gs");Object(i.a)({quote:{fontSize:"small",overflowWrap:"break-word",userSelect:"all",fontFamily:"monospace !important",cursor:"pointer",background:"#111"}},n=>{let{classes:i,token:a}=n,r=o(n,["classes","token"]);return t("blockquote",e({class:i.quote},r),a)})}).call(this,n("sL3o").h)},"FrX+":function(t,e,n){"use strict";function o(t){return Object(i.h)(c.a,{...t,glyph:"clock",viewBox:"0 0 24 24"})}n.d(e,"a",(function(){return o}));var i=n("sL3o"),a=n("ziER"),r=n.n(a),s=n("5JeM"),l=n.n(s),c=n("VXtC");const d=new r.a({id:"clock",use:"clock-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff" id="clock"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /><path d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" /></symbol>'});l.a.add(d)},JltG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));const o=t=>{const e=new Date(t);return`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`},i=t=>{const e=new Date(t).getTimezoneOffset(),n=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),i=String(Math.abs(e)%60).padStart(2,"0"),a=e>0?"-":"+";return`${o(t)} UTC${a}${n}:${i}`},a=t=>{const e=Date.now()-t,n=Math.floor(e/1e3);if(n<60)return"just now";const i=Math.floor(n/60);if(i<60)return`${i} minute${1===i?"":"s"} ago`;const a=Math.floor(i/60);if(a<24)return`${a} hour${1===a?"":"s"} ago`;const r=Math.floor(a/24);return r<7?`${r} day${1===r?"":"s"} ago`:o(t)}},"M72+":function(t,e,n){"use strict";n("sL3o");var o=n("ziER"),i=n.n(o),a=n("5JeM"),r=n.n(a);n("VXtC");const s=new i.a({id:"user-circle",use:"user-circle-usage",viewBox:"0 0 496 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" fill="#ffffff" id="user-circle"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z" /></symbol>'});r.a.add(s)},O1lG:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=async t=>(await fetch(`/json/users/${t}.json`)).json()},VXtC:function(t,e,n){"use strict";(function(t){function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},a=Object.keys(t);for(o=0;o<a.length;o++)e.indexOf(n=a[o])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)e.indexOf(n=a[o])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(e){let{glyph:n,viewBox:a}=e,r=i(e,["glyph","viewBox"]);return t("svg",o({},r,{viewBox:a,xmlns:"http://www.w3.org/2000/svg"}),t("use",{xlinkHref:"#"+n}))}n.d(e,"a",(function(){return a}))}).call(this,n("sL3o").h)},"Vzl/":function(t,e,n){"use strict";function o(t){return Object(i.h)(c.a,{...t,glyph:"rank",viewBox:"0 0 24 24"})}n.d(e,"a",(function(){return o}));var i=n("sL3o"),a=n("ziER"),r=n.n(a),s=n("5JeM"),l=n.n(s),c=n("VXtC");const d=new r.a({id:"rank",use:"rank-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff" id="rank"><path d="M0 0h24v24H0z" fill="none" /><path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z" /></symbol>'});l.a.add(d)},YfLz:function(t,e,n){"use strict";function o(t){return Object(i.h)(c.a,{...t,glyph:"trophy",viewBox:"0 0 576 512"})}n.d(e,"a",(function(){return o}));var i=n("sL3o"),a=n("ziER"),r=n.n(a),s=n("5JeM"),l=n.n(s),c=n("VXtC");const d=new r.a({id:"trophy",use:"trophy-usage",viewBox:"0 0 576 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="#ffffff" id="trophy"><path d="M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z" /></symbol>'});l.a.add(d)},YzSL:function(t,e,n){"use strict";n("sL3o");var o=n("ziER"),i=n.n(o),a=n("5JeM"),r=n.n(a);n("VXtC");const s=new i.a({id:"envelope-open",use:"envelope-open-usage",viewBox:"0 0 512 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="#ffffff" id="envelope-open"><path d="M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z" /></symbol>'});r.a.add(s)},"a/8j":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var o=n("sL3o"),i=n("C+Gs"),a=n("JltG"),r=n("FrX+");const s=e=>Object(i.a)({root:{display:"grid",padding:"20px",paddingTop:"0",gridTemplateColumns:"repeat(4, minmax(max-content, 1fr))","& div":{margin:"auto",padding:"10px"}},title:{gridColumn:"1 / -1",margin:"20px auto !important"},label:{borderBottom:"1px solid #fff",width:"100%",textAlign:"center"},inlineLabel:{display:"none"},icon:{width:"60px",margin:"auto !important"},[`@media (max-width: ${e?"1500px":"800px"})`]:{inlineLabel:{display:"initial",borderRight:"1px solid #fff"},root:{gridTemplateColumns:"repeat(2, minmax(max-content, 1fr))","& div":{margin:"0"}},label:{display:"none"},category:{borderTop:"1px solid #fff"}}},({classes:e,solves:n})=>t("div",{class:"card "+e.root},0===n.length?t("div",{class:e.title},t("div",{class:e.icon},t(r.a,null)),t("h5",null,"This team has no solves.")):t(o.Fragment,null,t("h5",{class:"title "+e.title},"Solves"),t("div",{class:e.label},"Category"),t("div",{class:e.label},"Challenge"),t("div",{class:e.label},"Solve time"),t("div",{class:e.label},"Points"),n.map(n=>t(o.Fragment,{key:n.id},t("div",{class:`${e.inlineLabel} ${e.category}`},"Category"),t("div",{class:e.category},n.category),t("div",{class:e.inlineLabel},"Name"),t("div",null,n.name),t("div",{class:e.inlineLabel},"Solve time"),t("div",null,Object(a.b)(n.createdAt)),t("div",{class:e.inlineLabel},"Points"),t("div",null,n.points)))))),l=s(!1);s(!0)}).call(this,n("sL3o").h)},"f/Gm":function(t,e,n){"use strict";(function(t){var e=n("C+Gs");Object(e.a)({root:{padding:"25px"},submit:{marginTop:"25px"},icon:{"& svg":{verticalAlign:"middle",height:"16px",fill:"#333"}}},e=>{const{classes:n,children:o,onSubmit:i,disabled:a,buttonText:r,errors:s}=e;return t("form",{onSubmit:i,class:e.class},[].concat(o).map(e=>{if(void 0===e.props)return;if(!e.props.name)return e;let{icon:o,error:i,name:a}=e.props;void 0!==s&&void 0!==a&&(i=i||s[a]);const r=void 0!==i;return e.props.class+=" input-contains-icon",r&&(e.props.class+=" input-error"),t("div",{class:"form-section",key:a},r&&t("label",{class:"text-danger info font-light"},i),t("div",{class:n.input+" input-control"},e,t("span",{class:"icon"},void 0!==o&&t("div",{class:"icon "+n.icon},o))))}),t("button",{disabled:a,class:n.submit+" btn-info u-center",name:"btn",value:"submit",type:"submit"},r),t("span",{class:"fg-danger info"}))})}).call(this,n("sL3o").h)},fHzH:function(t,e,n){"use strict";(function(t){n("obyI");var e=n("C+Gs");n("+mXV");Object(e.a)({root:{fontSize:"12px",textAlign:"center"},link:{display:"inline",padding:"0"}},({classes:e})=>t("div",{class:e.root},"This site is protected by reCAPTCHA.",t("br",null),"The Google"," ",t("a",{class:e.link,href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy")," ","and"," ",t("a",{class:e.link,href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer"},"Terms of Service")," ","apply."))}).call(this,n("sL3o").h)},gPBw:function(t,e,n){"use strict";function o(t){return Object(i.h)(c.a,{...t,glyph:"address-book",viewBox:"0 0 448 512"})}n.d(e,"a",(function(){return o}));var i=n("sL3o"),a=n("ziER"),r=n.n(a),s=n("5JeM"),l=n.n(s),c=n("VXtC");const d=new r.a({id:"address-book",use:"address-book-usage",viewBox:"0 0 448 512",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="#ffffff" id="address-book"><path d="M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z" /></symbol>'});l.a.add(d)},obyI:function(t,e){"use strict";const n=JSON.parse(document.head.querySelector("meta[name=rctf-config]").content);e.a=n},q9Eb:function(t,e,n){"use strict";function o(t){return Object(i.h)(c.a,{...t,glyph:"ctftime",viewBox:"0 0 283 80"})}n.d(e,"a",(function(){return o}));var i=n("sL3o"),a=n("ziER"),r=n.n(a),s=n("5JeM"),l=n.n(s),c=n("VXtC");const d=new r.a({id:"ctftime",use:"ctftime-usage",viewBox:"0 0 283 80",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283 80" id="ctftime"><path fill="#e3000b" d="M0 80h283V0H0l33 40z" /><path fill="#fff" d="M62 58h18v-6H69V28h11v-7H62zm24-30h6v30h7V28h5v-7H86zm24 30h8V43h9v-6h-9v-9h11v-7h-19zm73-33h5v33h5V25h5v-4h-15zm20-4h4v37h-4zm21 14l-5-14h-4v37h4V32l5 13 5-13v26h5V21h-5zm21 19V42h7v-5h-7V25h12l1-4h-18v37h18l-1-4zM136 21v37h39V21zm34 32h-29V26h29v27m-16-14l-6 6 4 4 9-9-16-16h-7z" /></symbol>'});l.a.add(d)}}]);