chunk-be9328bc.8d665992.js 15 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-be9328bc"],{"02f4":function(t,n,e){var o=e("4588"),i=e("be13");t.exports=function(t){return function(n,e){var r,a,c=String(i(n)),s=o(e),p=c.length;return s<0||s>=p?t?"":void 0:(r=c.charCodeAt(s),r<55296||r>56319||s+1===p||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):r:t?c.slice(s,s+2):a-56320+(r-55296<<10)+65536)}}},"0390":function(t,n,e){"use strict";var o=e("02f4")(!0);t.exports=function(t,n,e){return n+(e?o(t,n).length:1)}},"0bfb":function(t,n,e){"use strict";var o=e("cb7c");t.exports=function(){var t=o(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},"0c0f":function(t,n,e){t.exports=e.p+"img/cascadia-code-light.d03837bc.png"},"0d89":function(t,n,e){t.exports=e.p+"img/dank-mono-dark.dbb6f3da.png"},"0def":function(t,n,e){t.exports=e.p+"img/fira-code-dark.f3819f25.png"},1080:function(t,n,e){var o={"./victor-mono-dark.png":"b65b","./victor-mono-light.png":"6012"};function i(t){var n=r(t);return e(n)}function r(t){if(!e.o(o,t)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return o[t]}i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id="1080"},"11c0":function(t,n,e){},"214f":function(t,n,e){"use strict";e("b0c5");var o=e("2aba"),i=e("32e9"),r=e("79e5"),a=e("be13"),c=e("2b4c"),s=e("520a"),p=c("species"),u=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var g=c(t),d=!r((function(){var n={};return n[g]=function(){return 7},7!=""[t](n)})),f=d?!r((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[p]=function(){return e}),e[g](""),!n})):void 0;if(!d||!f||"replace"===t&&!u||"split"===t&&!l){var h=/./[g],m=e(a,g,""[t],(function(t,n,e,o,i){return n.exec===s?d&&!i?{done:!0,value:h.call(n,e,o)}:{done:!0,value:t.call(e,n,o)}:{done:!1}})),v=m[0],b=m[1];o(String.prototype,t,v),i(RegExp.prototype,g,2==n?function(t,n){return b.call(t,this,n)}:function(t){return b.call(t,this)})}}},"23f0":function(t,n,e){t.exports=e.p+"img/source-code-pro-light.70f56206.png"},"28a5":function(t,n,e){"use strict";var o=e("aae3"),i=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),s=e("5f1b"),p=e("520a"),u=e("79e5"),l=Math.min,g=[].push,d="split",f="length",h="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));e("214f")("split",2,(function(t,n,e,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[f]||2!="ab"[d](/(?:ab)*/)[f]||4!="."[d](/(.?)(.?)/)[f]||"."[d](/()()/)[f]>1||""[d](/.?/)[f]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!o(t))return e.call(i,t,n);var r,a,c,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===n?m:n>>>0,v=new RegExp(t.source,u+"g");while(r=p.call(v,i)){if(a=v[h],a>l&&(s.push(i.slice(l,r.index)),r[f]>1&&r.index<i[f]&&g.apply(s,r.slice(1)),c=r[0][f],l=a,s[f]>=d))break;v[h]===r.index&&v[h]++}return l===i[f]?!c&&v.test("")||s.push(""):s.push(i.slice(l)),s[f]>d?s.slice(0,d):s}:"0"[d](void 0,0)[f]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,o){var i=t(this),r=void 0==e?void 0:e[n];return void 0!==r?r.call(e,i,o):b.call(String(i),e,o)},function(t,n){var o=u(b,t,this,n,b!==e);if(o.done)return o.value;var p=i(t),g=String(this),d=r(p,RegExp),f=p.unicode,h=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(v?"y":"g"),x=new d(v?p:"^(?:"+p.source+")",h),k=void 0===n?m:n>>>0;if(0===k)return[];if(0===g.length)return null===s(x,g)?[g]:[];var y=0,w=0,S=[];while(w<g.length){x.lastIndex=v?w:0;var E,C=s(x,v?g:g.slice(w));if(null===C||(E=l(c(x.lastIndex+(v?0:w)),g.length))===y)w=a(g,w,f);else{if(S.push(g.slice(y,w)),S.length===k)return S;for(var O=1;O<=C.length-1;O++)if(S.push(C[O]),S.length===k)return S;w=y=E}}return S.push(g.slice(y)),S}]}))},"2b8e":function(t,n,e){t.exports=e.p+"img/monolisa-light.e350ec83.png"},"31c7":function(t,n,e){t.exports=e.p+"img/meslo-light.a0dcb9fa.png"},"34ed":function(t,n,e){t.exports=e.p+"img/fira-code-light.b4d7d444.png"},3649:function(t,n,e){t.exports=e.p+"img/hack-light.964b2e1c.png"},3674:function(t,n,e){t.exports=e.p+"img/operator-mono-dark.ebe8efd3.png"},3731:function(t,n,e){t.exports=e.p+"img/jetbrains-mono-dark.7e989644.png"},"3e10":function(t,n,e){t.exports=e.p+"img/monoid-dark.938dec35.png"},4516:function(t,n,e){t.exports=e.p+"img/ubuntu-mono-dark.8d6989a1.png"},"45ba":function(t,n,e){},"4a05":function(t,n,e){t.exports=e.p+"img/monolisa-dark.e7683db7.png"},"4a0c":function(t,n,e){t.exports=e.p+"img/droid-sans-dark.ca78c224.png"},"4f65":function(t,n,e){t.exports=e.p+"img/fantasque-sans-mono-light.aa3a6091.png"},"50b7":function(t,n,e){t.exports=e.p+"img/dank-mono-light.d464cd00.png"},"520a":function(t,n,e){"use strict";var o=e("0bfb"),i=RegExp.prototype.exec,r=String.prototype.replace,a=i,c="lastIndex",s=function(){var t=/a/,n=/b*/g;return i.call(t,"a"),i.call(n,"a"),0!==t[c]||0!==n[c]}(),p=void 0!==/()??/.exec("")[1],u=s||p;u&&(a=function(t){var n,e,a,u,l=this;return p&&(e=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),s&&(n=l[c]),a=i.call(l,t),s&&a&&(l[c]=l.global?a.index+a[0].length:n),p&&a&&a.length>1&&r.call(a[0],e,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"533c":function(t,n,e){t.exports=e.p+"img/hasklig-light.6818d4df.png"},"5ac1":function(t,n,e){t.exports=e.p+"img/plex-mono-light.5bbfa5e2.png"},"5b5b":function(t,n,e){t.exports=e.p+"img/anonymous-pro-light.35f695b9.png"},"5f1b":function(t,n,e){"use strict";var o=e("23c6"),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"===typeof e){var r=e.call(t,n);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},6012:function(t,n,e){t.exports=e.p+"img/victor-mono-light.d31f124c.png"},"639d":function(t,n,e){"use strict";e("45ba")},"78ec":function(t,n,e){t.exports=e.p+"img/hack-dark.5660ef1b.png"},"865c":function(t,n,e){t.exports=e.p+"img/input-light.35f4bc64.png"},"885d":function(t,n,e){t.exports=e.p+"img/consolas-dark.851c1581.png"},"995b":function(t,n,e){t.exports=e.p+"img/inconsolata-light.d9ad2736.png"},a252:function(t,n,e){t.exports=e.p+"img/cartograph-dark.71938504.png"},a373:function(t,n,e){t.exports=e.p+"img/source-code-pro-dark.f61d06c0.png"},a668:function(t,n,e){var o={"./anonymous-pro-dark.png":"d01e","./anonymous-pro-light.png":"5b5b","./cartograph-dark.png":"a252","./cartograph-light.png":"ab4f","./cascadia-code-dark.png":"df63","./cascadia-code-light.png":"0c0f","./consolas-dark.png":"885d","./consolas-light.png":"ab41","./dank-mono-dark.png":"0d89","./dank-mono-light.png":"50b7","./droid-sans-dark.png":"4a0c","./droid-sans-light.png":"e270","./fantasque-sans-mono-dark.png":"d94a","./fantasque-sans-mono-light.png":"4f65","./fira-code-dark.png":"0def","./fira-code-light.png":"34ed","./hack-dark.png":"78ec","./hack-light.png":"3649","./hasklig-dark.png":"e3bd","./hasklig-light.png":"533c","./inconsolata-dark.png":"c3d5","./inconsolata-light.png":"995b","./input-dark.png":"d8d0","./input-light.png":"865c","./iosevka-dark.png":"fb5a","./iosevka-light.png":"d406","./jetbrains-mono-dark.png":"3731","./jetbrains-mono-light.png":"b273","./meslo-dark.png":"c9e9","./meslo-light.png":"31c7","./monoid-dark.png":"3e10","./monoid-light.png":"f282","./monolisa-dark.png":"4a05","./monolisa-light.png":"2b8e","./operator-mono-dark.png":"3674","./operator-mono-light.png":"b4ec","./plex-mono-dark.png":"ae34","./plex-mono-light.png":"5ac1","./roboto-mono-dark.png":"fe85","./roboto-mono-light.png":"e490","./source-code-pro-dark.png":"a373","./source-code-pro-light.png":"23f0","./sudo-dark.png":"c5de","./sudo-light.png":"c498","./ubuntu-mono-dark.png":"4516","./ubuntu-mono-light.png":"f84f","./victor-mono-dark.png":"b65b","./victor-mono-light.png":"6012"};function i(t){var n=r(t);return e(n)}function r(t){if(!e.o(o,t)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return o[t]}i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id="a668"},aae3:function(t,n,e){var o=e("d3f4"),i=e("2d95"),r=e("2b4c")("match");t.exports=function(t){var n;return o(t)&&(void 0!==(n=t[r])?!!n:"RegExp"==i(t))}},ab41:function(t,n,e){t.exports=e.p+"img/consolas-light.172dd0dd.png"},ab4f:function(t,n,e){t.exports=e.p+"img/cartograph-light.c182e87b.png"},ae34:function(t,n,e){t.exports=e.p+"img/plex-mono-dark.20b89851.png"},b0c5:function(t,n,e){"use strict";var o=e("520a");e("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},b273:function(t,n,e){t.exports=e.p+"img/jetbrains-mono-light.852ec89a.png"},b4ec:function(t,n,e){t.exports=e.p+"img/operator-mono-light.1494d886.png"},b65b:function(t,n,e){t.exports=e.p+"img/victor-mono-dark.32c2b8aa.png"},c3d5:function(t,n,e){t.exports=e.p+"img/inconsolata-dark.535ad22b.png"},c498:function(t,n,e){t.exports=e.p+"img/sudo-light.b886ecb8.png"},c5de:function(t,n,e){t.exports=e.p+"img/sudo-dark.e29ec8be.png"},c7d9:function(t,n,e){"use strict";e("11c0")},c9e9:function(t,n,e){t.exports=e.p+"img/meslo-dark.0afd3f6e.png"},d01e:function(t,n,e){t.exports=e.p+"img/anonymous-pro-dark.25e528b6.png"},d406:function(t,n,e){t.exports=e.p+"img/iosevka-light.0bb90e5c.png"},d8d0:function(t,n,e){t.exports=e.p+"img/input-dark.687b727e.png"},d94a:function(t,n,e){t.exports=e.p+"img/fantasque-sans-mono-dark.7feeeaaa.png"},df63:function(t,n,e){t.exports=e.p+"img/cascadia-code-dark.8e4b0f25.png"},e270:function(t,n,e){t.exports=e.p+"img/droid-sans-light.798fd56f.png"},e3bd:function(t,n,e){t.exports=e.p+"img/hasklig-dark.86e73584.png"},e490:function(t,n,e){t.exports=e.p+"img/roboto-mono-light.9e9c4704.png"},f282:function(t,n,e){t.exports=e.p+"img/monoid-light.34aa7546.png"},f6f1:function(t,n,e){"use strict";e.r(n);e("28a5");var o=function(){var t=this,n=t._self._c;return n("div",{staticClass:"negative-margins"},[n("el-row",[n("el-col",[n("h1",{staticClass:"centre"},[n("em",[t._v("Compare it to ")]),n("div",{staticClass:"select-container"},[n("div",{staticClass:"select"},[n("select",{ref:"otherFontSelect"},t._l(t.fonts,(function(e){return n("option",{key:e,domProps:{value:e.toLowerCase().split(" ").join("-")}},[t._v("\n "+t._s(e)+"\n ")])})),0)])])])])],1),n("div",{staticClass:"container"},[n("TwentyTwenty",{attrs:{before:t.victorMonoImage,after:t.otherFontImage}})],1),n("el-row",{attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{xs:22}},[n("p",{staticClass:"small centre"},[n("em",[t._v("Test and compare free programming fonts on\n "),n("a",{attrs:{target:"_blank",href:"https://www.programmingfonts.org/#victor-mono"}},[t._v("\n programmingfonts.org")])]),t._v("\n ⭐️\n ")])])],1)],1)},i=[],r=function(){var t=this,n=t._self._c;return n("div",{staticClass:"twentytwenty-container",style:t.containerStyle,on:{touchstart:t.startSlide,mousedown:t.startSlide}},[n("img",{attrs:{src:t.after,alt:"after"},on:{mousedown:function(t){t.preventDefault()},load:t.setDimensions}}),n("img",{style:t.beforeImgStyle,attrs:{src:t.before,alt:"before"},on:{mousedown:function(t){t.preventDefault()}}}),n("div",{staticClass:"twentytwenty-overlay",style:t.overlayStyle},[t.beforeLabel?n("div",{staticClass:"twentytwenty-before-label"},[t._v(t._s(t.beforeLabel))]):t._e(),t.afterLabel?n("div",{staticClass:"twentytwenty-after-label"},[t._v(t._s(t.afterLabel))]):t._e()]),n("div",{staticClass:"twentytwenty-handle",style:t.handleStyle},[n("div",{staticClass:"twentytwenty-arrow-left"}),n("div",{staticClass:"twentytwenty-arrow-right"})])])},a=[],c=(e("c5f6"),{data:function(){return{imgOffset:null,slideOffset:this.offset,sliding:!1,containerStyle:{},overlayStyle:{}}},props:{before:{type:String,required:!0},beforeLabel:{type:String},after:{type:String,required:!0},afterLabel:{type:String},offset:{type:[String,Number],default:.5,validator:function(t){return t>0&&t<=1}}},methods:{setDimensions:function(){var t=this.$el.querySelector("img");this.imgOffset=t.getBoundingClientRect(),this.containerStyle={width:"".concat(this.w,"px"),height:"".concat(this.h,"px")}},startSlide:function(t){this.sliding=!0,this.moveSlide(t),this.overlayStyle={opacity:0}},moveSlide:function(t){if(this.sliding){var n=(t.touches?t.touches[0].pageX:t.pageX)-this.imgOffset.left;n=n<0?0:n>this.w?this.w:n,this.slideOffset=n/this.w}},endSlide:function(){this.sliding=!1,this.overlayStyle={}},resize:function(){var t=this;this.containerStyle={},this.$nextTick((function(){return t.setDimensions()}))}},computed:{beforeImgStyle:function(){return{clip:"rect(0, ".concat(this.x,"px, ").concat(this.h,"px, 0)")}},handleStyle:function(){var t=40;return{width:"".concat(t,"px"),height:"".concat(t,"px"),top:"calc(50% - ".concat(t/2,"px)"),left:"calc(".concat(100*this.slideOffset,"% - ").concat(t/2,"px)")}},x:function(){return this.w*this.slideOffset},w:function(){if(this.imgOffset)return this.imgOffset.width},h:function(){if(this.imgOffset)return this.imgOffset.height}},mounted:function(){document.addEventListener("touchmove",this.moveSlide),document.addEventListener("touchend",this.endSlide),document.addEventListener("mousemove",this.moveSlide),document.addEventListener("mouseup",this.endSlide),window.addEventListener("resize",this.resize)},beforeDestroy:function(){document.removeEventListener("touchmove",this.moveSlide),document.removeEventListener("touchend",this.endSlide),document.removeEventListener("mousemove",this.moveSlide),document.removeEventListener("mouseup",this.endSlide),window.removeEventListener("resize",this.resize)}}),s=c,p=(e("c7d9"),e("2877")),u=Object(p["a"])(s,r,a,!1,null,null,null),l=u.exports,g={name:"Compare",components:{TwentyTwenty:l},props:{theme:{type:String,default:"dark"}},data:function(){return{otherFont:"",fonts:["Anonymous Pro","Cartograph","Cascadia Code","Consolas","Dank Mono","Droid Sans","Fantasque Sans Mono","Fira Code","Hack","Hasklig","Inconsolata","Input","Iosevka","JetBrains Mono","Meslo","Monoid","MonoLisa","Operator Mono","Plex Mono","Roboto Mono","Source Code Pro","Sudo","Ubuntu Mono"]}},computed:{victorMonoImage:function(){return e("1080")("./victor-mono-".concat(this.theme,".png"))},otherFontImage:function(){return this.otherFont?e("a668")("./".concat(this.otherFont,"-").concat(this.theme,".png")):""}},mounted:function(){var t=this;this.$refs.otherFontSelect.addEventListener("change",(function(n){t.otherFont=n.target.value})),this.pickRandom()},methods:{pickRandom:function(){var t=Math.floor(Math.random()*this.fonts.length);this.$refs.otherFontSelect.selectedIndex=t,this.$refs.otherFontSelect.dispatchEvent(new Event("change"))}}},d=g,f=(e("639d"),Object(p["a"])(d,o,i,!1,null,"4d49fb19",null));n["default"]=f.exports},f84f:function(t,n,e){t.exports=e.p+"img/ubuntu-mono-light.369c8d21.png"},fb5a:function(t,n,e){t.exports=e.p+"img/iosevka-dark.4e9a2b78.png"},fe85:function(t,n,e){t.exports=e.p+"img/roboto-mono-dark.05ea9e1a.png"}}]);
  2. //# sourceMappingURL=chunk-be9328bc.8d665992.js.map