(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1303:function(t,e,o){"use strict";o.r(e);var r=o(33),n=(o(50),o(43),o(45),o(87),o(88),o(110),o(46),o(303),o(15),o(34),o(276),o(69),o(40),{props:{text:{required:!0,type:String},showPieChart:{required:!1,type:Boolean,default:!1},percentAgree:{required:!1,type:Number,default:0}},watch:{text:function(){this.animIndex=0,this.animateText()}},mounted:function(){var t=this;this.animateText(),this.showPieChart&&setTimeout((function(){t.$refs.pie.setAttribute("stroke-dasharray","".concat(31.4*t.percentAgree/100," 31.4"))}),1900)},data:function(){return{animIndex:0,selectors:[]}},computed:{textArr:function(){return this.text.split(" ")}},methods:{animateText:function(){0==this.animIndex&&(this.selectors=Array.from(this.$refs.wavyText.querySelectorAll(".letter"))),this.animIndex=f.length?this.currLvl=0:0!==this.currLvl&&(this.showContinue=!0))},computed:{currPrompt:function(){return this.lvls[this.currLvl].text},option1Style:function(){var style=x({},f[this.currLvl].option1.style);return style&&this.enlargeOption1&&(style.transform+=" scale(1.035)"),style},option2Style:function(){var style=x({},f[this.currLvl].option2.style);return style&&this.enlargeOption2&&(style.transform+=" scale(1.035)"),style},percentAgree:function(){var t,e=this.results[this.lvls[this.currLvl].id],o=e.pull+e.nothing;return t=1==this.chosen?(e.nothing||0)/o:(e.pull||0)/o,Math.round(100*t)},percentDisagree:function(){return 100-this.percentAgree},resultText:function(){var t=this.results[this.lvls[this.currLvl].id],e=t.pull+t.nothing;return"".concat(this.percentAgree,"% of people agree with you, ").concat(this.percentDisagree,"% disagree (").concat(e.toLocaleString()," votes)")},promptFontStyle:function(){return window.innerWidth>600?"calc(min(5vmin, 41px) * ".concat((100-.1*(this.currPrompt.length-130))/100,")"):"calc(min(7.4vmin, 42px) * ".concat((100-.08*(this.currPrompt.length-130))/100,")")},resultFontSize:function(){return window.innerWidth>600?"calc(min(4.5vmin, 38px) * ".concat((100-.1*(this.currPrompt.length-130))/100,")"):"calc(min(7vmin, 38px) * ".concat((100-.1*(this.currPrompt.length-130))/100,")")}},methods:{choose:function(t){var e=this;this.chosen=t,this.submitChoice(),this.enlargeOption1=!1,this.enlargeOption2=!1;var o=this.lvls[this.currLvl].id,path="/absurd-trolley-problems";if("time-machine"===o)1===this.chosen&&setTimeout((function(){e.showSplat1=!0}),750);else if("lifespan"===o)1===this.chosen?setTimeout((function(){e.$refs.option1.src="".concat(path,"/one-guy-hurt.svg")}),1e3):setTimeout((function(){e.$refs.option2.src="".concat(path,"/five-guys-hurt.svg")}),1100);else if("eternity"===o){if(2===this.chosen){this.showExplosion=!0;var r=window.getComputedStyle(this.$refs.trolley).getPropertyValue("transform");this.$refs.explosion.style="transform: ".concat(r)}}else if("placebo"===o){setTimeout((function(){e.showSplat1=!0}),750)}else if("mercy"===o){var n=1===this.chosen?750:350;setTimeout((function(){e.showSplat1=!0}),n)}else if(0!==this.chosen){var l=1===this.chosen?750:1e3;setTimeout((function(){e["showSplat".concat(e.chosen)]=!0}),l)}},submitChoice:function(){h.a.post("https://2ixpck9cs0.execute-api.us-east-1.amazonaws.com/prod/vote",{option:2===this.chosen?"pull":"nothing",question:f[this.currLvl].id});var t=JSON.parse(localStorage.getItem("absurd-trolley-problems-state"))||{kills:new Array(f.length).fill(0)};t.level=this.currLvl+1,t.kills[this.currLvl]=f[this.currLvl]["option".concat(this.chosen)].kill||0,"mystery"===f[this.currLvl].id&&(1==this.chosen?t.kills[this.currLvl]=Math.random()<.5?2:0:t.kills[this.currLvl]=Math.random()<.1?10:0),localStorage.setItem("absurd-trolley-problems-state",JSON.stringify(t))},startOver:function(){this.showContinue=!1,this.currLvl=0,localStorage.removeItem("absurd-trolley-problems-state")},preload:function(){var path="/absurd-trolley-problems";f.forEach((function(t){var e=new Image,o=new Image;t.option1.src&&(e.src="".concat(path,"/").concat(t.option1.src,".svg")),t.option2.src&&(o.src="".concat(path,"/").concat(t.option2.src,".svg"))})),["splat","you","explosion","gas","skull","you-pull","you-step","you","trolley-fire","circle-track","five-guys-hurt","one-guy-hurt"].forEach((function(t){(new Image).src="".concat(path,"/").concat(t,".svg")}))},nextLvl:function(){this.currLvl!==f.length-1?(this.currLvl++,this.chosen=0,this.showOptions=!1,this.showSplat1=!1,this.showSplat2=!1,this.showExplosion=!1):this.$emit("done")}}},k=(o(790),Object(l.a)(w,(function(){var t,e=this,o=e._self._c;return o("div",[e.showContinue?o("ResumeModal",{on:{continue:function(t){e.showContinue=!1},startOver:e.startOver}}):e._e(),e._v(" "),o("div",{staticClass:"level"},[e._v("Level "+e._s(e.currLvl+1)+": "+e._s(e.lvls[e.currLvl].title))]),e._v(" "),o("div",{staticClass:"diagram",class:Object(r.a)({},e.lvls[e.currLvl].diagramClass,!0)},[o("img",{class:Object(r.a)({},e.lvls[e.currLvl].trackClass||"track",!0),attrs:{src:"/absurd-trolley-problems/".concat(e.lvls[e.currLvl].track||"track",".svg")}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].option1.hide&&!e.showSplat1,expression:"!lvls[currLvl].option1.hide && !showSplat1"}],key:e.lvls[e.currLvl].option1.src,ref:"option1",staticClass:"option1",style:e.option1Style,attrs:{src:"/absurd-trolley-problems/".concat(e.lvls[e.currLvl].option1.src,".svg")}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].option1.hide&&e.showSplat1,expression:"!lvls[currLvl].option1.hide && showSplat1"}],ref:"splat1",staticClass:"splat1",attrs:{src:"/absurd-trolley-problems/splat.svg"}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].option2.hide&&!e.showSplat2,expression:"!lvls[currLvl].option2.hide && !showSplat2"}],key:e.lvls[e.currLvl].option2.src,ref:"option2",staticClass:"option2",style:e.option2Style,attrs:{src:"/absurd-trolley-problems/".concat(e.lvls[e.currLvl].option2.src,".svg")}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].option2.hide&&e.showSplat2,expression:"!lvls[currLvl].option2.hide && showSplat2"}],ref:"splat2",staticClass:"splat2",attrs:{src:"/absurd-trolley-problems/splat.svg"}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].hideYou&&2!==e.chosen,expression:"!lvls[currLvl].hideYou && chosen !== 2"}],class:Object(r.a)({},e.lvls[e.currLvl].youClass||"you",!0),attrs:{src:"/absurd-trolley-problems/you.svg"}}),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.lvls[e.currLvl].hideYou&&2===e.chosen,expression:"!lvls[currLvl].hideYou && chosen === 2"}],class:Object(r.a)({},e.lvls[e.currLvl].youClass||"you",!0),attrs:{src:"/absurd-trolley-problems/you-pull.svg"}}),e._v(" "),o("div",{ref:"trolley",staticClass:"trolley-wrapper",class:(t={},Object(r.a)(t,"trolley-option"+e.chosen,!0),Object(r.a)(t,e.lvls[e.currLvl].trolleyClass||"trolley",!0),t)},[o("img",{attrs:{src:"/absurd-trolley-problems/trolley.svg"}})]),e._v(" "),o("img",{directives:[{name:"show",rawName:"v-show",value:e.showExplosion,expression:"showExplosion"}],ref:"explosion",staticClass:"explosion",attrs:{src:"/absurd-trolley-problems/explosion.svg"}})]),e._v(" "),o("div",{staticClass:"prompt",style:{fontSize:e.promptFontStyle}},[o("WavyText",{key:e.lvls[e.currLvl].text,attrs:{text:e.lvls[e.currLvl].text},on:{done:function(t){e.showOptions=!0}}})],1),e._v(" "),0===e.chosen?o("div",{key:"q-".concat(e.currLvl),staticClass:"options",class:{hidden:!e.showOptions}},[o("button",{staticClass:"action",style:{fontSize:e.promptFontStyle},on:{click:function(t){return e.choose(2)},mouseenter:function(t){e.enlargeOption2=!0},mouseleave:function(t){e.enlargeOption2=!1}}},[e._v("\n "+e._s(e.lvls[e.currLvl].option1.text||"Pull the lever")+"\n ")]),e._v(" "),o("button",{staticClass:"action",style:{fontSize:e.promptFontStyle},on:{click:function(t){return e.choose(1)},mouseenter:function(t){e.enlargeOption1=!0},mouseleave:function(t){e.enlargeOption1=!1}}},[e._v("\n "+e._s(e.lvls[e.currLvl].option2.text||"Do nothing")+"\n ")])]):o("div",{staticClass:"next-wrapper",style:{fontSize:e.resultFontSize}},[o("div",{staticClass:"stat"},[o("WavyText",{attrs:{showPieChart:!0,percentAgree:e.percentAgree,text:e.resultText}})],1),e._v(" "),o("button",{staticClass:"action action-next",style:{fontSize:e.resultFontSize},on:{click:e.nextLvl}},[e._v("\n Next\n "),o("img",{staticClass:"action-icon",attrs:{src:"/absurd-trolley-problems/arrow.svg"}})])])],1)}),[],!1,null,"bc056712",null).exports),Y={components:{WavyText:c},computed:{kills:function(){var t=JSON.parse(localStorage.getItem("absurd-trolley-problems-state")).kills;return t.reduce((function(t,a){return t+a}),0)}}},C=(o(793),{components:{Diagram:k,WavyText:c,EndScreen:Object(l.a)(Y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"end-screen"},[e("div",{staticClass:"content-wrapper"},[e("img",{staticClass:"trolley-fire",attrs:{src:"/absurd-trolley-problems/trolley-fire.svg"}}),t._v(" "),e("div",{staticClass:"congrats"},[e("WavyText",{attrs:{text:"Congratulations! You have solved philosophy."}})],1),t._v(" "),e("div",{staticClass:"stats"},[e("img",{staticClass:"stats-icon",attrs:{src:"/absurd-trolley-problems/skull.svg"}}),t._v(" "),e("WavyText",{attrs:{text:"Kill count: ".concat(t.kills)}})],1)]),t._v(" "),e("NuxtLink",{staticClass:"more",attrs:{to:"/"}},[t._v("More posts on Neal.fun")])],1)}),[],!1,null,"5aa8ef4b",null).exports},data:function(){return{done:!1}}}),O=(o(795),Object(l.a)(C,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("nuxt-link",{attrs:{to:"/"}},[e("img",{staticClass:"site-title",attrs:{src:"/general/logo.svg"}})]),t._v(" "),e("div",{staticClass:"title"},[e("WavyText",{attrs:{text:"Absurd Trolley Problems"}})],1),t._v(" "),t.done?e("EndScreen"):e("Diagram",{on:{done:function(e){t.done=!0}}})],1)}),[],!1,null,"6b4ddb2d",null));e.default=O.exports},276:function(t,e,o){"use strict";var r=o(2),n=o(19),l=o(9),c=o(6),path=o(204),d=o(4),h=o(109),f=o(12),v=o(201),m=o(39),y=o(81),x=o(202),w=o(3),k=o(80).f,Y=o(29).f,C=o(21).f,O=o(281),W=o(282).trim,_="Number",S=c[_],L=path[_],A=S.prototype,z=c.TypeError,I=d("".slice),T=d("".charCodeAt),N=function(t){var e=x(t,"number");return"bigint"==typeof e?e:M(e)},M=function(t){var e,o,r,n,l,c,d,code,h=x(t,"number");if(y(h))throw z("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=W(h),43===(e=T(h,0))||45===e){if(88===(o=T(h,2))||120===o)return NaN}else if(48===e){switch(T(h,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+h}for(c=(l=I(h,2)).length,d=0;dn)return NaN;return parseInt(l,r)}return+h},X=h(_,!S(" 0o1")||!S("0b1")||S("+0x1")),j=function(t){return m(A,t)&&w((function(){O(t)}))},E=function(t){var e=arguments.length<1?0:S(N(t));return j(this)?v(Object(e),this,E):e};E.prototype=A,X&&!n&&(A.constructor=E),r({global:!0,constructor:!0,wrap:!0,forced:X},{Number:E});var P=function(t,source){for(var e,o=l?k(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;o.length>r;r++)f(source,e=o[r])&&!f(t,e)&&C(t,e,Y(source,e))};n&&L&&P(path[_],L),(X||n)&&P(path[_],S)},281:function(t,e,o){var r=o(4);t.exports=r(1..valueOf)},282:function(t,e,o){var r=o(4),n=o(24),l=o(13),c=o(283),d=r("".replace),h=RegExp("^["+c+"]+"),f=RegExp("(^|[^"+c+"])["+c+"]+$"),v=function(t){return function(e){var o=l(n(e));return 1&t&&(o=d(o,h,"")),2&t&&(o=d(o,f,"$1")),o}};t.exports={start:v(1),end:v(2),trim:v(3)}},283:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},303:function(t,e,o){var r=o(2),n=o(304),l=o(112);r({target:"Array",proto:!0},{fill:n}),l("fill")},304:function(t,e,o){"use strict";var r=o(25),n=o(84),l=o(31);t.exports=function(t){for(var e=r(this),o=l(e),c=arguments.length,d=n(c>1?arguments[1]:void 0,o),h=c>2?arguments[2]:void 0,f=void 0===h?o:n(h,o);f>d;)e[d++]=t;return e}},401:function(t,e,o){var content=o(767);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("60f25b80",content,!0,{sourceMap:!1})},410:function(t,e,o){var content=o(787);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("5f3b114b",content,!0,{sourceMap:!1})},411:function(t,e,o){var content=o(789);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("49f7c3a6",content,!0,{sourceMap:!1})},412:function(t,e,o){var content=o(791);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("77c1e064",content,!0,{sourceMap:!1})},413:function(t,e,o){var content=o(794);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("78a80716",content,!0,{sourceMap:!1})},414:function(t,e,o){var content=o(796);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(108).default)("0bc543a8",content,!0,{sourceMap:!1})},766:function(t,e,o){"use strict";o(401)},767:function(t,e,o){var r=o(107)(!1);r.push([t.i,".wavy-text-word[data-v-0b03d878]{display:inline-block;white-space:pre;will-change:transform}.wavy-text .wavy-text-word[data-v-0b03d878]:nth-child(4n){animation:wavy-0b03d878 2s ease-in-out infinite alternate-reverse}.wavy-text .wavy-text-word[data-v-0b03d878]:nth-child(4n+1){animation:wavy2-0b03d878 1.7s ease-in-out infinite alternate-reverse}.wavy-text .wavy-text-word[data-v-0b03d878]:nth-child(4n+2){animation:wavy3-0b03d878 1.5s ease-in-out infinite alternate-reverse}.wavy-text .wavy-text-word[data-v-0b03d878]:nth-child(4n+3){animation:wavy4-0b03d878 2.5s ease-in-out infinite alternate-reverse}.letter[data-v-0b03d878]{opacity:0;transition:opacity .2s linear}.pie-chart[data-v-0b03d878]{width:40px;height:40px;margin-top:-6px;overflow:visible;margin-right:5px;display:inline-block;position:relative;top:6px;line-height:0}.pie-chart circle[data-v-0b03d878]{transition:stroke-dasharray 1s ease-in-out}.pie-chart-black[data-v-0b03d878]{stroke-width:9px}@keyframes wavy-0b03d878{0%{transform:translate(-1.3%,-1.5%)}to{transform:translate(1.3%,1.4%)}}@keyframes wavy2-0b03d878{0%{transform:translate(1%,-1.4%)}to{transform:translate(-1.3%,1.5%)}}@keyframes wavy3-0b03d878{0%{transform:translate(.5%,-1%)}to{transform:translate(.9%,1.5%)}}@keyframes wavy4-0b03d878{0%{transform:translate(.8%,1.5%)}to{transform:translate(-.5%,1.2%)}}@media (prefers-reduced-motion){.wavy-text .wavy-text-word[data-v-0b03d878]{animation:none!important}}@media only screen and (max-width:600px){.pie-chart[data-v-0b03d878]{height:25px;width:25px;margin-right:3px;top:2px}.pie-chart-middle[data-v-0b03d878]{display:none}.pie-chart-black[data-v-0b03d878]{stroke-width:10px}}",""]),t.exports=r},785:function(t){t.exports=JSON.parse('[{"id":"original","title":"The Original","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, killing 1 person instead. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"src":"one-guy","kill":1,"style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}}},{"id":"four-guys","title":"Four People","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, killing 4 people instead. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"kill":4,"src":"four-guys","style":{"left":"72%","transform":"translateY(-130%) rotate(-10deg)","maxWidth":"18%"}}},{"id":"life-savings","title":"Life Savings","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, but then your life savings will be destroyed. What do you do?","option1":{"src":"five-guys","kill":5,"style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"src":"life-savings","kill":0,"style":{"left":"69%","transform":"translateY(-139%) rotate(-5deg)","maxWidth":"23%"}}},{"id":"you","title":"You","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, sacrificing yourself instead. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"kill":1,"src":"yourself","style":{"left":"75%","transform":"translateY(-150%) rotate(-5deg)","maxWidth":"15%"}},"hideYou":true},{"id":"painting","title":"Priceless Painting","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, but then the original copy of the Mona Lisa will be destroyed. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"kill":0,"src":"mona-lisa","style":{"left":"76%","transform":"translateY(-158%) rotate(8deg)","maxWidth":"10%"}}},{"id":"bribes","title":"Bribes","text":"Oh no! A trolley is heading towards a rich man. The rich man offers you $500,000 to pull the lever, which would divert the trolley and kill someone else. What do you do?","option1":{"kill":1,"src":"rich-guy","style":{"left":"64%","transform":"translateY(-20%)","maxWidth":"12%"}},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%) rotate(2deg)","maxWidth":"10.2%"}}},{"id":"sentience","title":"Levels of sentience","text":"Oh no! A trolley is heading towards 5 lobsters. You can pull the lever to divert it to the other track, running over a cat instead. What do you do?","option1":{"kill":5,"src":"lobsters","style":{"left":"56%","transform":"translateY(32%) rotate(19deg)","maxWidth":"30%"}},"option2":{"kill":1,"src":"cat","style":{"left":"74%","transform":"translateY(-190%) rotate(3deg)","maxWidth":"13%"}}},{"id":"sleeping","title":"Sleeping","text":"Oh no! A trolley is heading towards 5 people who are sleeping and won\'t feel pain. You can pull the lever to divert it to the other track, running over someone who is wide awake instead. What do you do?","option1":{"kill":5,"src":"five-guys-sleeping","style":{"left":"61%","transform":"translateY(-27%)","maxWidth":"21%"}},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}}},{"id":"personal-choices","title":"Personal choices","text":"Oh no! A trolley is heading towards 5 people who tied themselves to the track. You can pull the lever to divert it to the other track, killing 1 person who accidentally tripped onto the track instead. What do you do?","option1":{"kill":5,"src":"five-guys-smile","style":{"left":"61%","transform":"translateY(-18%)","maxWidth":"22%"}},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}}},{"id":"mercy","title":"Mercy","text":"Oh no! A trolley is heading towards 5 people. The lever just speeds up the trolley, which might make it less painful. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"kill":5,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}},"diagramClass":"speed-up"},{"id":"minor","title":"Minor Inconvenience","text":"Oh no! A trolley is heading towards one guy. You can pull the lever to divert it to the other track, but then your Amazon package will be late. What do you do?","option1":{"kill":1,"src":"one-guy","style":{"left":"63%","transform":"translateY(-15%)","maxWidth":"10%"}},"option2":{"kill":0,"src":"","hide":true}},{"id":"best-friend","title":"Best Friend","text":"Oh no! A trolley is heading towards your best friend. You can pull the lever to divert it to the other track, killing 5 strangers instead. What do you do?","option1":{"kill":1,"src":"best-friend","style":{"left":"64%","transform":"translateY(-35%)","maxWidth":"14%"}},"option2":{"kill":5,"src":"five-guys","style":{"left":"74%","transform":"translateY(-127%) rotate(-10deg)","maxWidth":"20%"}}},{"id":"glasses","title":"Can\'t see","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, killing 1 person instead. At least, that\'s what you think is happening. You forgot your glasses and can\'t see that well. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}},"diagramClass":"no-glasses"},{"id":"cousins","title":"Cousins","text":"Oh no! A trolley is heading towards one of your first cousins. You can pull the lever to divert it to the other track, killing 3 of your second cousins instead. What do you do?","option1":{"kill":1,"src":"one-cousin","style":{"left":"63%","transform":"translateY(-30%)","maxWidth":"18%"}},"option2":{"kill":3,"src":"second-cousins","style":{"left":"71%","transform":"translateY(-139%) rotate(-10deg)","maxWidth":"21%"}}},{"id":"age","title":"Age","text":"Oh no! A trolley is heading towards 5 elderly people. You can pull the lever to divert it to the other track, running over a baby instead. What do you do?","option1":{"kill":5,"src":"five-elderly","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"src":"one-baby","kill":1,"style":{"left":"76%","transform":"translateY(-210%) rotate(15deg)","maxWidth":"5.2%"}}},{"id":"clones","title":"Clones","text":"Oh no! A trolley is barreling towards 5 identical clones of you. You can pull the lever to divert it to the other track, sacrificing yourself instead. What do you do?","option1":{"kill":5,"src":"five-clones","style":{"left":"60%","transform":"translateY(-30%) rotate(10deg)","maxWidth":"25%"}},"option2":{"kill":1,"src":"yourself","style":{"left":"75%","transform":"translateY(-150%) rotate(-5deg)","maxWidth":"15%"}},"hideYou":true},{"id":"mystery","title":"Mystery Box","text":"Oh no! A trolley is heading towards a mystery box with a 50% chance of containing two people. You can pull the lever to divert it to the other track, hitting a mystery box with a 10% chance of 10 people instead. What do you do?","option1":{"src":"50-2","style":{"left":"64%","transform":"translateY(-45%) rotate(15deg)","maxWidth":"15.2%"}},"option2":{"src":"10-10","style":{"left":"76%","transform":"translateY(-158%) rotate(7deg)","maxWidth":"15%"}}},{"id":"robots","title":"I am Robot","text":"Oh no! A trolley is heading towards 5 sentient robots. You can pull the lever to divert it to the other track, killing 1 human instead. What do you do?","option1":{"kill":5,"src":"five-robots","style":{"left":"62%","transform":"translateY(-50%) rotate(13deg)","maxWidth":"19%"}},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}}},{"id":"economic","title":"Economic Damage","text":"Oh no! A trolley is heading towards 3 empty trolleys worth $900,000. You can pull the lever to divert it to the other track, hitting 1 empty trolley worth $300,000 instead. What do you do?","option1":{"kill":0,"src":"three-trolleys","style":{"left":"50%","transform":"translateY(-33%) rotate(1deg)","width":"68%"}},"option2":{"kill":0,"src":"one-trolley","style":{"left":"73%","transform":"translateY(-129%) rotate(-7deg)","width":"26%"}},"diagramClass":"economic"},{"id":"external","title":"External costs","text":"Oh no! A trolley is releasing 100kg of C02 per year which will kill 5 people over 30 years. You can pull the lever to divert it to the other track, hitting a brick wall and decommissioning the trolley. What do you do?","option2":{"kill":0,"src":"brick-wall","style":{"left":"75%","transform":"translateY(-121%)","maxWidth":"14%"}},"diagramClass":"brick-wall","option1":{"kill":5,"hide":true}},{"id":"reincarnation","title":"Reincarnation","text":"Oh no! You\'re a reincarnated being who will eventually be reincarnated as every person in this classic trolley problem. What do you do?","option1":{"kill":5,"src":"five-guys-you","style":{"left":"59%","transform":"translateY(-31%)","maxWidth":"23%"}},"option2":{"kill":1,"src":"one-guy-you","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"}}},{"id":"harmless","title":"Harmless Prank?","text":"Oh no! A trolley is heading towards nothing, but you kinda want to prank the trolley driver. What do you do?","option1":{"kill":0,"hide":true},"option2":{"kill":0,"hide":true}},{"id":"citizen","title":"Citizens","text":"Oh no! A trolley is heading towards a good citizen. You can pull the lever to divert it to the other track, running over someone who litters instead. What do you do?","option1":{"kill":1,"src":"good-citizen","style":{"left":"63%","transform":"translateY(-28%)","maxWidth":"17%"}},"option2":{"kill":1,"src":"bad-citizen","style":{"left":"71%","transform":"translateY(-149%) rotate(-10deg)","maxWidth":"16%"}}},{"id":"eternity","title":"Eternity","text":"Oh no! Due to a construction error, a trolley is stuck in an eternal loop. If you pull the lever the trolley will explode, and if you don\'t the trolley and its passengers will go in circles for eternity. What do you do?","option1":{"src":"five-guys","hide":true},"option2":{"src":"one-guy","kill":5,"hide":true},"track":"circle-track","trackClass":"circle-track","trolleyClass":"circle-trolley","youClass":"circle-you"},{"id":"enemy","title":"Enemy","text":"Oh no! A trolley is heading towards your worst enemy. You can pull the lever to divert the trolley and save them, or you can do nothing and no one will ever know. What do you do?","option1":{"kill":1,"src":"enemy","style":{"left":"63%","transform":"translateY(-16%)","maxWidth":"10%"}},"option2":{"kill":0,"hide":true}},{"id":"lifespan","title":"Lifespan","text":"Oh no! A trolley is heading towards a person and will lower their lifespan by 50 years. You can pull the lever to divert the trolley and lower the lifespan of 5 people by 10 years each instead. What do you do?","option1":{"kill":0,"src":"one-guy","style":{"left":"63%","transform":"translateY(-16%)","maxWidth":"10%"}},"option2":{"kill":0,"src":"five-guys-lifespan","style":{"left":"71%","transform":"translateY(-125%) rotate(-10deg)","maxWidth":"21%"}}},{"id":"time-machine","title":"Time Machine","text":"Oh no! A trolley is heading towards 5 people. You can pull the lever to divert it to the other track, sending the trolley into the future to kill 5 people 100 years from now. What do you do?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"}},"option2":{"src":"portal","kill":5,"style":{"left":"76%","transform":"translateY(-160%)","maxWidth":"9%"}},"diagramClass":"future"},{"id":"free-will","title":"Free Will","text":"Oh no! A trolley problem is playing out before you. Do you actually have a choice in this situation? Or has everything been predetermined since the universe began?","option1":{"kill":5,"src":"five-guys","style":{"left":"60%","transform":"translateY(-19%)","maxWidth":"21%"},"text":"I have a choice"},"option2":{"kill":1,"src":"one-guy","style":{"left":"76%","transform":"translateY(-158%)","maxWidth":"10%"},"text":"I don\'t have a choice"}}]')},786:function(t,e,o){"use strict";o(410)},787:function(t,e,o){var r=o(107)(!1);r.push([t.i,".modal[data-v-46086f05]{max-width:min(400px,90%);top:50%;left:50%;transform:translate(-50%,-50%);padding:25px 30px;border:3px solid #000;border-radius:10px;font-size:32px;z-index:999;background:#fff;line-height:110%}.modal[data-v-46086f05],.modal-bg[data-v-46086f05]{width:100%;position:absolute}.modal-bg[data-v-46086f05]{background:hsla(0,0%,100%,.7);top:0;left:0;height:100%;z-index:998;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}",""]),t.exports=r},788:function(t,e,o){"use strict";o(411)},789:function(t,e,o){var r=o(107)(!1);r.push([t.i,".options[data-v-041c757e]{display:flex;grid-gap:15px;margin-top:20px}.option[data-v-041c757e]{display:block;font-family:JustSquash;background:#fff;border:2px solid #000;border-radius:5px;padding:10px 20px;cursor:pointer;color:#000;line-height:80%;font-size:28px}.option[data-v-041c757e]:hover{background:#000;color:#fff}.option-secondary[data-v-041c757e]{background:none;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:JustSquash;font-size:28px;cursor:pointer;color:#000;white-space:nowrap}.option-secondary[data-v-041c757e]:hover{transform:scale(1.03)}@media only screen and (max-width:600px){.question[data-v-041c757e]{-webkit-text-stroke:.2px #fff;font-size:30px;line-height:105%}}",""]),t.exports=r},790:function(t,e,o){"use strict";o(412)},791:function(t,e,o){var r=o(107),n=o(200),l=o(792),c=r(!1),d=n(l);c.push([t.i,"@font-face{font-family:Composition;src:url("+d+')}.diagram[data-v-bc056712]{text-align:center;position:relative;margin-left:auto;margin-right:auto;margin-top:75px;width:100%;aspect-ratio:2.15/1;max-width:calc(min(105vh, 80vw, 1100px));pointer-events:none}.trolley[data-v-bc056712]{max-width:26%;transform:translateY(-144%);transform-origin:center center;z-index:5}.circle-trolley[data-v-bc056712],.trolley[data-v-bc056712]{position:absolute;width:100%;left:0;top:50%}.circle-trolley[data-v-bc056712]{max-width:25%;transform-origin:center center;animation:circle-bc056712 4s linear infinite}.trolley-option1[data-v-bc056712]{animation:option1-bc056712 2s linear forwards}.trolley-option2[data-v-bc056712]{animation:option2-bc056712 2s linear forwards}.speed-up .trolley-option1[data-v-bc056712]{animation:option1-bc056712 2s linear forwards}.speed-up .trolley-option2[data-v-bc056712]{animation:option1-bc056712 .8s linear forwards}.placebo .trolley-option1[data-v-bc056712],.placebo .trolley-option2[data-v-bc056712]{animation:option1-bc056712 2s linear forwards}.track[data-v-bc056712]{left:0;width:100%;transform:translateY(-50%)}.circle-track[data-v-bc056712],.track[data-v-bc056712]{position:absolute;top:50%;max-width:100%}.circle-track[data-v-bc056712]{left:50%;width:70%;transform:translate(-50%,-90%)}.option1[data-v-bc056712]{position:absolute;top:50%;z-index:3;transition:transform .15s ease-in-out}.splat1[data-v-bc056712]{transform:translateY(-10%);left:64%;animation:splat1Grow-bc056712 .3s linear forwards}.splat1[data-v-bc056712],.splat2[data-v-bc056712]{position:absolute;top:50%;max-width:15%}.splat2[data-v-bc056712]{transform:translateY(-150%);left:74%;animation:splat2Grow-bc056712 .3s linear forwards}.option2[data-v-bc056712]{position:absolute;top:50%;transition:transform .15s ease-in-out}.prompt[data-v-bc056712]{max-width:1100px;margin-left:auto;margin-right:auto;padding:0 25px;margin-top:-10px}.prompt span[data-v-bc056712]{opacity:0;animation:fadeIn .25s linear forwards}.you[data-v-bc056712]{position:absolute;top:60%;transform:translateY(-30%);left:14%;max-width:14%}.explosion[data-v-bc056712]{display:block;position:absolute;width:100%;max-width:25%;left:0;top:50%;transform-origin:center center}.explosition[data-v-bc056712]:after{content:"bang!";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;z-index:5}.circle-you[data-v-bc056712]{position:absolute;top:60%;transform:translateY(-30%);left:0;max-width:14%}.action[data-v-bc056712]{display:block;font-family:JustSquash;background:#fff;border:2px solid #000;border-radius:5px;padding:10px 20px;cursor:pointer;color:#000;line-height:80%}.action[data-v-bc056712]:hover{filter:invert(100%);border-color:#fff}.action-next[data-v-bc056712]{background:#000;color:#fff;display:flex;justify-content:center;align-items:center;padding:8px 25px}.action-next[data-v-bc056712]:hover{filter:100%;border-color:#fff}.action-icon[data-v-bc056712]{max-height:18px;margin-left:8px;position:relative;top:2px}.options[data-v-bc056712]{display:flex;justify-content:center;grid-gap:10px;margin-top:25px;transition:opacity .9s linear .15s}.hidden[data-v-bc056712]{opacity:0;pointer-events:none}.no-glasses .option1[data-v-bc056712],.no-glasses .option2[data-v-bc056712],.no-glasses .splat1[data-v-bc056712],.no-glasses .splat2[data-v-bc056712],.no-glasses .track[data-v-bc056712],.no-glasses .trolley[data-v-bc056712]{filter:blur(8px);padding:9px}.brick-wall .trolley-option2[data-v-bc056712]{animation:option2Bricks-bc056712 2s linear forwards}.future .trolley-option2[data-v-bc056712]{animation:option2Future-bc056712 2s linear forwards}.trolley-option2.circle-trolley[data-v-bc056712]{display:none}.trolley-option1.circle-trolley[data-v-bc056712]{animation:circle-bc056712 4s linear infinite}.level[data-v-bc056712]{position:absolute;top:54px;left:50%;transform:translateX(-50%);font-size:18px;font-family:Composition}.stat[data-v-bc056712]{margin-right:20px}.next-wrapper[data-v-bc056712]{position:fixed;bottom:0;left:50%;transform:translateX(-50%) translateY(100%);color:#000;width:100%;padding:20px;display:flex;justify-content:center;align-items:center;border-top:3px solid #000;background:#fff;animation:goUp-bc056712 .5s ease-in-out 1.5s forwards;box-shadow:0 -10px 25px 5px #fff;font-family:JustSquash}.brick-wall .trolley-wrapper[data-v-bc056712]:after{content:"";position:absolute;top:-20%;left:-12%;width:30%;height:100%;background-image:url(/absurd-trolley-problems/gas.svg);background-size:100% 100%;background-repeat:no-repeat;z-index:-1}.reflexes .trolley-wrapper[data-v-bc056712]{animation:option1-bc056712 4s cubic-bezier(.5,0,.75,0) forwards}.giant[data-v-bc056712]{max-width:20%;position:absolute;top:50%;z-index:3;transform:translateY(-70%);left:60%}.economic .option1[data-v-bc056712]{z-index:10}@keyframes splat1Grow-bc056712{0%{transform:translateY(-10%) scale(0)}to{transform:translateY(-10%) scale(1)}}@keyframes splat2Grow-bc056712{0%{transform:translateY(-150%) scale(0)}to{transform:translateY(-150%) scale(1)}}@keyframes goUp-bc056712{0%{transform:translateX(-50%) translateY(100%)}to{transform:translateX(-50%) translateY(0)}}@keyframes option2-bc056712{20%{transform:translateX(95%) translateY(-99%) scale(1) rotate(0deg)}26%{transform:translateX(119%) translateY(-95%) scale(1) rotate(-15deg)}31%{transform:translateX(138%) translateY(-99%) scale(1) rotate(-43deg)}37%{transform:translateX(158%) translateY(-113%) scale(1) rotate(-49deg)}42%{transform:translateX(186%) translateY(-130%) scale(1.02) rotate(-38deg)}52%{transform:translateX(237%) translateY(-138%) scale(1.05) rotate(-18deg)}65%{transform:translateX(316%) translateY(-122%) scale(1.05) rotate(-10deg)}70%{opacity:1}to{opacity:0;transform:translateX(495%) translateY(-100%) scale(1.05) rotate(-10deg)}}@keyframes option2Bricks-bc056712{20%{transform:translateX(95%) translateY(-99%) scale(1) rotate(0deg)}26%{transform:translateX(119%) translateY(-95%) scale(1) rotate(-15deg)}31%{transform:translateX(138%) translateY(-99%) scale(1) rotate(-43deg)}37%{transform:translateX(158%) translateY(-113%) scale(1) rotate(-49deg)}42%{transform:translateX(186%) translateY(-130%) scale(1.02) rotate(-38deg)}49.999%{opacity:1}50%{opacity:0}52%{transform:translateX(237%) translateY(-138%) scale(1.05) rotate(-18deg)}to{opacity:0}}@keyframes option2Future-bc056712{20%{transform:translateX(95%) translateY(-99%) scale(1) rotate(0deg)}26%{transform:translateX(119%) translateY(-95%) scale(1) rotate(-15deg)}31%{transform:translateX(138%) translateY(-99%) scale(1) rotate(-43deg)}37%{transform:translateX(158%) translateY(-113%) scale(1) rotate(-49deg)}42%{transform:translateX(186%) translateY(-130%) scale(1.02) rotate(-38deg)}49.999%{opacity:1}50%{opacity:0}52%{transform:translateX(237%) translateY(-138%) scale(1.05) rotate(-18deg)}to{opacity:0}}@keyframes option1-bc056712{75%{opacity:1}to{transform:translateX(465%) translateY(63%) scale(1.3);opacity:0}}@keyframes circle-bc056712{0%{transform:translate(40%,-125%) rotate(-25deg)}25%{transform:translate(160%,-135%) rotate(-15deg) scale(.95)}49.999%{transform:translate(270%,-125%) rotate(-5deg)}50%{transform:translate(270%,-100%) rotate(15deg) scaleX(-1)}75%{transform:translate(160%,-85%) rotate(20deg) scaleX(-1.05)}to{transform:translate(40%,-100%) rotate(25deg) scaleX(-1)}}@media only screen and (max-width:600px){.action[data-v-bc056712]{width:100%;padding:14px 0;font-size:29px}.options[data-v-bc056712]{padding:0 20px;position:fixed;bottom:35px;width:100%}.trolley[data-v-bc056712]{top:51.5%}.prompt[data-v-bc056712]{margin-left:auto;margin-right:auto;padding:0 12px 0 21px;line-height:120%;-webkit-text-stroke:.3px #fff}.diagram[data-v-bc056712]{width:109vw;max-width:109vw;margin-top:70px;position:relative;left:3px}.level[data-v-bc056712]{font-size:18px;top:92px;white-space:nowrap}.next-wrapper[data-v-bc056712]{display:block;padding:8px 20px 15px;text-align:center;line-height:110%;border-top:2px solid #000;box-shadow:0 -10px 50px 50px #fff}.stat[data-v-bc056712]{-webkit-text-stroke:.2px #fff;margin-bottom:10px;margin-right:0}.circle-trolley[data-v-bc056712]{top:52%}.circle-you[data-v-bc056712]{left:7%}}@media only screen and (max-width:425px) and (max-height:600px){.diagram[data-v-bc056712]{margin-top:50px}.level[data-v-bc056712]{top:45px;font-size:17px}.options[data-v-bc056712]{bottom:25px}.prompt[data-v-bc056712]{margin-top:-20px}.action[data-v-bc056712]{font-size:26px}}',""]),t.exports=c},792:function(t,e,o){t.exports=o.p+"fonts/Composition-Regular.d7b7a2e.woff2"},793:function(t,e,o){"use strict";o(413)},794:function(t,e,o){var r=o(107)(!1);r.push([t.i,".end-screen[data-v-5aa8ef4b]{position:absolute;top:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;height:100%;pointer-events:none}.content-wrapper[data-v-5aa8ef4b]{color:#000;text-align:center;padding:0 20px;line-height:250%}.congrats[data-v-5aa8ef4b]{font-size:52px}.stats[data-v-5aa8ef4b]{font-size:42px;display:flex;justify-content:center;margin-top:22px}.stats-icon[data-v-5aa8ef4b]{height:35px;margin-right:10px;position:relative;top:3px}.trolley-fire[data-v-5aa8ef4b]{max-width:300px;margin-top:-75px;margin-bottom:10px}.more[data-v-5aa8ef4b]{position:absolute;bottom:10%;left:50%;transform:translateX(-50%);font-size:28px;color:#000;white-space:nowrap;text-decoration:none;border-bottom:2px solid #000;pointer-events:all}.more[data-v-5aa8ef4b]:hover{transform:translateX(-50%) scale(1.04)}@media screen and (max-width:900px){.congrats[data-v-5aa8ef4b]{font-size:46px}.stats[data-v-5aa8ef4b]{font-size:36px}}@media screen and (max-width:600px){.trolley-fire[data-v-5aa8ef4b]{max-width:250px}.congrats[data-v-5aa8ef4b]{font-size:40px;-webkit-text-stroke:.5px #fff}.stats[data-v-5aa8ef4b]{font-size:34px;-webkit-text-stroke:.3px #fff}.more[data-v-5aa8ef4b]{bottom:9%}}",""]),t.exports=r},795:function(t,e,o){"use strict";o(414)},796:function(t,e,o){var r=o(107),n=o(200),l=o(797),c=r(!1),d=n(l);c.push([t.i,"@font-face{font-family:JustSquash;font-weight:700;src:url("+d+")}.container[data-v-6b4ddb2d]{font-family:JustSquash;padding:0 25px;width:100vw;overflow:hidden}.title[data-v-6b4ddb2d]{font-size:42px;margin-top:5px;text-align:center;line-height:100%}.title-word[data-v-6b4ddb2d]{display:inline-block}.site-title[data-v-6b4ddb2d]{width:135px;position:absolute;top:13px;left:13px}.site-title[data-v-6b4ddb2d]:hover{transform:scale(1.05)}@media only screen and (max-width:800px){.site-title[data-v-6b4ddb2d]{width:100px}}@media only screen and (max-width:600px){.container[data-v-6b4ddb2d]{padding:0}.title[data-v-6b4ddb2d]{font-size:37px;margin-top:48px}.site-title[data-v-6b4ddb2d]{width:80px;opacity:.5}}@media only screen and (max-width:425px) and (max-height:600px){.site-title[data-v-6b4ddb2d]{display:none}.title[data-v-6b4ddb2d]{margin-top:5px;font-size:35px}}",""]),t.exports=c},797:function(t,e,o){t.exports=o.p+"fonts/JustSquash.211b53a.woff2"}}]);