@falsejs/falsejs 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js ADDED
@@ -0,0 +1,3156 @@
1
+ /**
2
+ * FalseJS
3
+ * The ultimate library for getting the value of false.
4
+ * I didn't choose the 10x life. The 10x life chose me.
5
+ * @author tj-commits
6
+ * @license MIT
7
+ * @version whatever_the_version_in_the_package.json_is
8
+ */ /*
9
+
10
+ ███████████████████████████████████████████████████████████████████████████████████
11
+
12
+
13
+ sanity
14
+
15
+ ███████████████████████████████████████████████████████████████████████████████████ */
16
+
17
+ // #region IMPORTANT CHECKS
18
+ let doesItWork
19
+ try {
20
+ doesItWork = require("is-require-working")
21
+ } catch (e) {
22
+ doesItWork = !e
23
+ }
24
+
25
+ if (!doesItWork) {
26
+ //o crap
27
+ throw new Error("require not working, exiting node")
28
+ } else {
29
+ const isComputerOn = require("is-computer-on")
30
+ const isComputerOff = require("is-computer-off")
31
+
32
+ if (!isComputerOn() || isComputerOff()) {
33
+ throw new Error(
34
+ "no point doing anything if computer is not on, exiting node"
35
+ )
36
+ } else {
37
+ const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire
38
+ if (isComputerOnFire()) {
39
+ throw new Error(
40
+ "OH MY GOSH YOUR COMPUTER IS ON FIRE WHY ARE YOU WASTING TIME USING A JOKE POINTLESS NPM PACKAGE GET YOUR FIRE EXTINGUISHER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
41
+ )
42
+ } else {
43
+ const isNodeRunning = require("node-script-running")
44
+ if (!isNodeRunning()) {
45
+ // there's no point doing anything if node is not running
46
+ } else {
47
+ //#endregion IMPORTANT CHECKS
48
+ // #region BEGINNING REQUIRES
49
+ require("vanilla-javascript") // * because we are making something awesome!
50
+ require("vapor-js-npm") // the most awesome and flexible javascript framework
51
+ require("none")() // this improves load times and performance
52
+ require("-") // very, very, important
53
+ require("whatev") // also very, very, important
54
+ require("get-member")() // no silent undefined values
55
+ require("array-get-member")() // no silent undefined values for arrays
56
+ require("make-jquery-global")() // i <3 jQuery
57
+ require("jquery-basic-arithmetic-plugin") // why not exploit jQuery for math
58
+ require("console.dog") // bark
59
+ require("user")() // idk why this has so many downloads
60
+ require("ecto1")() // the most advanced thing ever
61
+ // #endregion BEGINNING REQUIRES
62
+ // #region FACTORY CODE
63
+ var jQuery = global.jQuery // have to define it as a variable so ESLint doesn't yell at me
64
+ ;(function (factory) {
65
+ // Export everything
66
+ module.exports.default = factory(jQuery)
67
+ })(function ($) {
68
+ "use strict"
69
+ //#endregion FACTORY CODE
70
+ //* MODULE IMPORTS
71
+ // #region MODULE IMPORTS
72
+ const GetIntrinsic = require("get-intrinsic") // cache our intrinsics
73
+ const variableHolder = {} // store our variables
74
+ const _ = require("lodash") // every project needs lodash
75
+ const underscore = require("underscore") // underscore.js. the predecessor of lodash.
76
+ const React = require("react") // the hype framework everyone uses for some reason
77
+ const ReactDOMServer = require("react-dom/server") // part of react
78
+ const cheerio = require("cheerio") // cheerio!
79
+ const { JSDOM } = require("jsdom") // a fake dom
80
+ const striptags = require("striptags") // strip tags!
81
+ const chalk = require("chalk") // color is the best!*/
82
+ var clc = require("cli-color") // another color module
83
+ const colors = require("@colors/colors/safe") // colors
84
+ const chalkbox = require("chalkbox") // with a box
85
+ const c = require("ansi-colors") // nothing wrong with even more colors
86
+ const pc = require("picocolors") // maybe even more colors libraries
87
+ const axios = require("axios") // so we can send requests
88
+ const { generatePhoneNumber } = require("phone-number-generator-js") // generate some phone numbers
89
+ const emptyString = require("empty-string") // an empty string
90
+ const n0p3 = require("n0p3") // a noop
91
+ const noop2 = require("noop2") // nothing wrong with another noop
92
+ const noop3 = require("noop3") // nothing wrong with yet another noop
93
+ const noop4 = require("noop4") // noop factory
94
+ const noop6 = require("noop6") // again, nothing wrong with more noops
95
+ const noop7 = require("noop7") // i think you see where i'm going
96
+ const noop8 = require("noop8") //another...
97
+ const noop9 = require("noop9") // the ninth
98
+ const noop10 = require("noop10") // 10x with noops lezz go
99
+ const { noop, doop } = require("yanoop") // yanoop.
100
+ const asyncUtilNoop = require("async.util.noop") // i think you see where i'm going
101
+ const blankSpaceFullObject = require("blank-space") // this exports two noops
102
+ const blankSpaceNoop = blankSpaceFullObject.noop // noop one
103
+ const blankSpace = blankSpaceFullObject._ // and noop two
104
+ const noopGenerator = require("co-noop") // a noop generator!
105
+ const fjNoop = require("fj-noop").FUNC // fj noop
106
+ const lodashNoop = require("lodash.noop") // lodash noop
107
+ const lodash_Noop = require("lodash._noop") // another lodash noop!
108
+ const noOp = require("no-op") // noop with a dash
109
+ const nodeNoop = require("node-noop").noop // a noop
110
+ const noopUtility = require("@stdlib/utils-noop") // the most practical
111
+ const trueNoop = require("true-noop") // one of few true noops.
112
+ const noopFn = require("noop-fn") // it ends with a fn
113
+ const noopaam = require("noopaam") // noopaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmm
114
+ const nop = require("nop") // just nop. what a funny name
115
+ // nop. nop. bop bop. boop. nop. boop. nop. nop. bop. bop bop nop.
116
+ // back to the code
117
+ const es2015Noop = require("es2015-noop") // the future is here
118
+ const kgryteNoop = require("@kgryte/noop") // how do you pronounce this guy's name
119
+ const blackHole = require("a-black-hole") // OH NO WE ARE GOING IN TO THE BLACK HOLE
120
+ const infinoop = require("infinoop") // noop. for ever. for. ev. er. FOR. EV. ER
121
+ const mNoop = require("m.noop").noop // the only other true noop i could find besides true-noop itself
122
+ const ahsmNoop = require("@ahsm/noop") // ahsm noop
123
+ const { noop: qcCoreNoop, nullFn: Null } = require("qc-core") // the qc core
124
+ const nooop = require("nooop") // someone put too many o's
125
+ const ryotahNoop = require("@ryotah/noop") // ryotah made a noop
126
+ const zodashNoop = require("@zodash/noop").noop // zodash made a noop
127
+ const jacobZuma = require("jacob-zuma") // south african flavored noop
128
+ const onceNoopFactory = require("once-noop/factory") // make a noop which can only be called once
129
+ const noopTS = require("noop-ts").default // noop ts
130
+ const voidFn = require("voidfn") // void fn
131
+ const noopExec = require("noop-exec") // exec
132
+ const attempt = require("attempt-statement") // has more features than trycatch statement
133
+ const assert = require("assert-fn") // more simple and elegant than built in node:assert
134
+ const hasSelfEquality = require("has-self-equality") // most things have self equality but lets make sure
135
+ const hasNoSelfEquality = require("has-no-self-equality") // again self equality
136
+ const isNumberOddOrEven = require("is-number-odd-or-even") // this function isn't made to return a certain value if it's even, or a certain value if it's odd, this function returns if a value is odd or even like (isOdd || isEven) in an illustration not isOdd ? "odd" : "even"
137
+ const isOne = require("is-one") // the base is- function
138
+ const isTen = require("is-ten") // 10x the is-one
139
+ const isHundred = require("is-hundred") // 10x the is-ten
140
+ const isThousand = require("is-thousand").default
141
+ const isTenThousand = require("is-ten-thousand") // 100x the is-hundred
142
+ const isEqTenThousand = require("is-eq-ten-thousand") // is-eq-ten-thousand
143
+ const isTwo = require("is-two").isTwo // the successor of one
144
+ const isThree = require("is-three") // the successor of two
145
+ const isNegativeZero = require("is-negative-zero") // isNegativeZero
146
+ const isNegativeZero2 = require("negative-zero") // can't hurt to have another negative zero checker
147
+ const isPositiveZero = require("positive-zero") // positive zero
148
+ const isTrue = require("is-true") // true
149
+ const isPreciselyTrue = require("is-precisely-true") // real true
150
+ const is = require("is-thirteen") // comparison-against-twelve-free environment
151
+ const isThreeHundred = require("is-three-hundred") // is-three-hundred
152
+ const isNumber = require("is-number") // jonschlinkert
153
+ const isActualNumber = require("is-actual-number") // my is-number
154
+ const isIsOdd = require("is-is-odd") // isIsOdd
155
+ const isOdd = require("is-odd") //isOdd
156
+ const isOd = require("is-od") // isOd
157
+ const isOddAndrew = require("is-odd-andrew") // isOddAndrew
158
+ const isOddNum = require("is-odd-num") // another odd checker
159
+ const isIntegerOdd = require("is-integer-odd") // another!!!!
160
+ const noteven = require("not-even") // not even
161
+ const isUneven = require("is-uneven") // whysomany
162
+ const numberKind = require("number-kind") // this exports two fns!
163
+ const isOddFaster = require("is-odd-faster").isOdd // is Odd but faster
164
+ const gabrielBrotasIsOdd = require("gabriel-brotas-is-odd") // gabriel made an is odd
165
+ const returnIfOddNumber = require("return-if-odd-number") // if odd number
166
+ const numberIsOdd = require("number-is-odd") // check if a number is odd
167
+ const isNumOdd = require("is-num-odd") // check if a num is odd
168
+ const isOddNumber = require("is-odd-number") // check if a od is number
169
+ const isNumberOdd = require("is_number_odd") // check if a number is odd
170
+ const isThisNumberOdd = require("is-this-number-odd") // check if a this is number odd
171
+ const isRealBoolean = require("is-real-boolean") // BOOLEANS
172
+ const add = require("examplebyraji") // a package
173
+ const cowsay = require("cowsay") // let's say stuff
174
+ const lolcatjs = require("lolcatjs") // the rainbow i tastes it
175
+ const owoifyx = require("owoifyx").default // UwU
176
+ const Uwuifier = require("uwuifier").default // UwU (x2)
177
+ const amogus = require("amogusify") // amogusify our amogus
178
+ const luaParser = require("luaparse") // parse lua
179
+ const luaInterpreter = require("lua-interpreter") // interpret lua
180
+ const exit = require("exit") // 10x better than process.exit
181
+ const appendType = require("append-type") // PUT THE TYPE NEXT TO A VALUE!!
182
+ const concatenater = require("concatenater") // CONCATENATE STUFF!!!
183
+ const generalConcat = require("general-concat") // GENERALLY CONCATENATE STUFF!!!
184
+ const lowercase = require("convert-to-lower-case") // CONVERT TO LOWER CASE
185
+ const construct = require("construct-new") // better than the new keyword
186
+ const $Promise = require("bluebird") // promise ponyfill cuz why not
187
+
188
+ //#endregion MODULE IMPORTS
189
+ //#region INTRINSICS
190
+ // * INTRINSICS
191
+
192
+ const $Array = GetIntrinsic('%Array%') // arary
193
+ const $Boolean = GetIntrinsic("%Boolean%") // blooean
194
+ const $Date = GetIntrinsic("%Date%") // dtae
195
+ const MathRandom = GetIntrinsic("%Math.random%") // rnadom
196
+ const MathFloor = GetIntrinsic("%Math.floor%") // folor
197
+ const MathRound = GetIntrinsic("%Math.round%") // ruond
198
+ const PI = GetIntrinsic("%Math.PI%") // ip
199
+ const MathAbs = GetIntrinsic("%Math.abs%") // asb
200
+ const StringCharAt = GetIntrinsic("%String.prototype.charAt%") // chraAt
201
+ //#endregion INTRINSICS
202
+
203
+ //#region MORE MODULE IMPORTS
204
+ const _calculateFalseAprilFools = require("./aprilFoolsCalculateFalse") // april fools
205
+ const couldThisCouldItBeTrue = require("@falsejs/is-true-helper") // check if a value is true
206
+ const {
207
+ returnFalse,
208
+ isFalse: isPreciselyEqualToFalse
209
+ } = require("@falsejs/core-ish") // some core ish functions
210
+ const isJanuary = require("is-january") // month 1
211
+ const isFebruary = require("is-february") // month 2
212
+ const isMarch = require("is-march") // month 3
213
+ const isApril = require("is-april") // month 4
214
+ const isMay = require("is-may") // month 5
215
+ const isJune = require("is-june") // month 6
216
+ const isJuly = require("is-july") // month 7
217
+ const isAugust = require("is-august") // month 8
218
+ const isSeptember = require("is-september") // month 9
219
+ const isOctober = require("is-october") // month 10
220
+ const isNovember = require("is-november") // month 11
221
+ const isDecember = require("is-december") // month 12
222
+ const isMonday = require("is-monday") // day of the week 1 according to international standard, day of the week 2 according to the us
223
+ const isTuesday = require("is-tuesday") // day of the week 2 according to international standard, day of the week 3 according to the us
224
+ const isWednesday = () => require('is-wednesday')(Today) // day of the week 3 according to the international standard, day of the week 4 according to the us
225
+ // now we gotta sing rebecca black's song
226
+ const isThursday = require("is-thursday") /// Yesterday was thursdayyyy
227
+ const isFriday = require("is-friday") // tooo-ddadayy is friday! we so ecited
228
+ const isSaturday = require("is-saturday") // tomorrow will be saturday
229
+ const isSunday = require("is-sunday") // and sunday comes after
230
+ const isWeekend = require("is-weekend") // looking forward to the weeeeekeend
231
+
232
+ const zr0 = require("integer-value-positive-zero") // get the number zero 1
233
+ const {
234
+ returnZero,
235
+ ZeroCalculationMethod,
236
+ isZero: zerosurgeIsZero
237
+ } = require("zerosurge") // get the number zero 2
238
+ const one = require("the-number-one").default // get the number one
239
+ const Two = require("two") // get number 2
240
+ const three = require("numeric-constant-three") // get number 3
241
+ const four = require("always-four") // number 4
242
+ const five = require("five") // num5
243
+ const six = require("number-six") // n6
244
+ const seven = require("se7en") // 7
245
+ const eightToolkit = require("eight-toolkit") // it's 8, in a toolkit!
246
+ const ninev9 = require("value-nine") // it's v9 of 9, when there was only v1 of 9 first, so it's 9x better (but 10x engineered)
247
+ const ten = require("the-number-ten") // 10
248
+ const eleven = require("eleven") // 11
249
+ const twelve = require("tw12ve") // 12
250
+ const thirteenResolver = require("always-thirteen") // 13
251
+ const fourteen = require("fourteen") // 14
252
+ const fifteen = require("number-fifteen") //15
253
+ const fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn = require("fifteen-point-eight-three-five-two-six-six-eight-two-and-so-on") //-this-can-be-rounded-to-sixteen
254
+ const sixteen = require("sixteen-constant") //thisisthenumbersixteenomg161616
255
+ const integer17 = require("seventeen-integer") //17
256
+ const Eighteen = require("eighteen-positive-number-interactions") // Interact positively with eighteen
257
+ const nineteenify = require("nineteenify") // Hey there what our you doing? *nineteenifies*
258
+ const numbertwenty = require("numbertwenty") // 20
259
+ const always21 = require("always-21") // 21
260
+ const twentytwo = require("twentytwo")() // 22
261
+ const { TWENTY_THREE } = require("twenty-three-tools") // 23 tools
262
+ const hundred = require("number-one-hundred") // 100!
263
+ const numberOneHundred = hundred // alias!
264
+ const theNumberSeven =
265
+ require("@onesneakymofo/the-number-seven").default // this is actually a string for some reason
266
+ const inf = require("infinities") // INFINITE
267
+
268
+ const bool = require("true-bool") // booleans
269
+ const successor = require("successor") // successor
270
+ const tru = require("tru") // if statements arent verbose enough
271
+ const If = require("if") // always good to have another if statement!
272
+ const not = require("@not-js/not") // safer negation with not
273
+ const { functions, _return } = require("returndotjs/safe") // better returning
274
+ const vretriever = require("vretriever") // a constant function
275
+ const immo = require("@_immo/return") // also a constant function
276
+ const isEqualTo = require("is-equal-to") // cant hurt to have a better way to check if something is equal
277
+ const isEqual = require("is-equal") // more complex ways too.
278
+ const strictlyEqual = require("are-strictly-equal") // and strict equality.
279
+ const getTypeOf = require("get-ecmascript-type-of") // better typeof
280
+ const extremejs = require("@extremejs/utils") // TO THE EXTREME
281
+ var trueValue = require("true-value") // the sister of falsejs
282
+ var t = require("true") // the prequel to trueValue
283
+ var tVal = trueValue // tVal sounds cool so i put it here too
284
+ const _f = require("false") // the sequel to the prequel to trueValue
285
+ const { mGenbaneko } = require("genbaneko") // i like cats
286
+ const leftPad = require("left-pad") //every project needs leftpad.
287
+ const rightPad = require("right-pad") //to the right, to the right.
288
+ const zeropad = require("zeropad") //every project could use a third pad.
289
+ const pad = require("pad") //this is the pad to end all pads.
290
+ const leftpad = require("leftpad") // every project could use another leftpad.
291
+ const rightpad = require("rightpad") // another right pad too.
292
+ const WestPad = require("west-pad").default // better than any other pad (except pad itself)
293
+ const tacoWrap = require("@sir_wernich/taco-wrap").default // pad our strings in tacos.
294
+ const isWindwos = require("is-windows") // did i misspell the variable name? of course not
295
+ const isWindows = isWindwos // i totally didnt misspell the above variable and this line doesnt exist
296
+ const isLinux = require("is-linux") // linux the os
297
+ const isOSX = require("is-osx") // more like is darwin
298
+ // TODO: Implement is Windows 12
299
+ const isFreeBSD = require("is-freebsd").isFreeBSD // i've never even heard of this operating system until now.
300
+ const thirteen = require("thirteen") // multiply by thirteen
301
+ const os = require("node:os") // maybe node js itself can help us calculate more operating systems
302
+ const http = require("node:http") // http!
303
+ const http2 = require("node:http2") //http/2!
304
+ const https = require("node:https") // https!
305
+ const crypto = require("node:crypto") // mine me some crypto
306
+ const fs = require("node:fs") // write our files
307
+ const uuid = require("uuid") // generate some uuids
308
+ const getStringLength = require("utf8-byte-length") // get string length
309
+ const emoji100 = require("emoji-100") // 100 emoji
310
+ const randomHappyEmoji = require("random-happy-emoji") // HAPPY
311
+ const randomAngryEmoji = require("random-angry-emoji") // ANGRY
312
+ const randomFoodEmoji = require("random-food-emoji") // FOOD
313
+ const dolphinFact = require("dolphin-fact") // DOLPHIN FACT
314
+ const logOne = require("useless-one-log") // log the number one
315
+ const Bro = require("brototype") // Bro
316
+ const literally = require("literally") // better than literally
317
+ const constant = require("const") // can't even name this variable after the actual library
318
+ const lodashdotconstant = require("lodash.constant") // lodash's version
319
+ const WeirdInstanceof = require("weird-instanceof") // drunk programming only
320
+ const { log: ltc, setLogFuntion } = require("logtoconsole") // best logger
321
+ const weirdLtc = WeirdInstanceof(ltc) // weird
322
+ const yesNo = require("yes-no") // YES NO YES NO YES NO
323
+ const { undefined } = require("undefined-is-a-function") // eslint-disable-line no-shadow-restricted-names
324
+ const isNull = require("@is-(unknown)/is-null") // IS null
325
+ const isUndefined = require("@is-(unknown)/is-undefined") // IS undefined
326
+ const isNil = require("@is-(unknown)/is-nil") // IS null OR undefined :O
327
+ const isUnnull = require("is-unnull") // IS UNNULL
328
+ const isNaN = require("is-nan") // IS NAN
329
+ const isNegativeInfinity = require("negative-infinity").check // IS NEGATIVE INFINITY
330
+ const is1 = require("is-eq-one") // is 1
331
+ const is0 = require("is-eq-zero") // is 0
332
+ const is0_2 = require("is-zero") // is 0 (x2)
333
+ const isFour = require("is-equal-four") // is 4
334
+ const isFive = require("is-eq-five") // is 5
335
+ const isSix = require("is-eq-six") // is 6
336
+ const isSeven = require("is-eq-seven") // is 7
337
+ const useGarbage = require("garbage") // trash.
338
+ const isuseless = require("is-useless").isuseless // super useless
339
+ const isAprilFools = require("is-april-fools") // Is it april fools
340
+ const meow = require("meow.js") // library for meowing
341
+ const { ErrorType: ERROR, immediateError } = require("immediate-error") // throw errors
342
+ const throwError = require("throw-error") // throw errors
343
+ const hello = require("hello-vga-function").default // hello vga function
344
+ const greet = require("hell0-world") // greet our guys
345
+ //#endregion MORE MODULE IMPORTS
346
+
347
+ // *number formatter
348
+ // #region Number Formatter
349
+
350
+ const NumberFormatter = Intl.NumberFormat
351
+ const numberFormatter = construct({ target: NumberFormatter })
352
+ //#endregion Number Formatter
353
+
354
+ //#region MKDIR .FALSEJS
355
+
356
+ // * create .falsejs folder if doesn't already exist
357
+ tru(not(fs.existsSync)(".falsejs"))
358
+ .then(() => {
359
+ fs.mkdirSync(".falsejs")
360
+ })
361
+ .end()
362
+ //#endregion MKDIR .FALSEJS
363
+
364
+ // * CONSTANTS
365
+ //#region CONSTANTS
366
+ variableHolder._lilmessage = colors.red(
367
+ `[falsejs] This error should never be shown. If you are seeing this error in the console, please file an issue on the github repo. Thank you.`
368
+ )
369
+ const my = {
370
+ cons: {
371
+ tants: {
372
+ STARTING_SUCCESSOR_HELPER_STACK: zr0(),
373
+ FALSE: _f(),
374
+ ERROR_THAT_WILL_NEVER_BE_SHOWN: isEqualTo(
375
+ concatenater(
376
+ construct({
377
+ target: $Array,
378
+ args: [...isThreeHundred.split(isThreeHundred)]
379
+ })
380
+ .getMember(zr0())
381
+ .concat(variableHolder._lilmessage)
382
+ )
383
+ .append(
384
+ construct({
385
+ target: $Array,
386
+ args: [...noop2.toString().split(noop2.toString())]
387
+ }).getMember(zr0())
388
+ )
389
+ .toString(),
390
+ variableHolder._lilmessage
391
+ )
392
+ ? construct({
393
+ target: $Array,
394
+ args: [...voidFn.toString().split(voidFn.toString())]
395
+ })
396
+ .getMember(zr0())
397
+ .concat(variableHolder._lilmessage)
398
+ : isThreeHundred.toString(),
399
+ TEN_THOUSAND: 10e3,
400
+ LEFT_PAD_INPUT: jQuery.multiply(
401
+ five(),
402
+ jQuery.add(five(), jQuery.divide(five(), five()))
403
+ ),
404
+ RIGHT_PAD_INPUT: jQuery.multiply(
405
+ five(),
406
+ jQuery.add(five(), jQuery.divide(five(), five())) // i cant even comprehend life and existence anymore
407
+ ),
408
+ PAD_INPUT: five(),
409
+ LEFTPAD_INPUT: jQuery.multiply(
410
+ five(),
411
+ jQuery.add(five(), jQuery.divide(five(), five()))
412
+ ),
413
+ RIGHTPAD_INPUT: jQuery.multiply(
414
+ five(),
415
+ jQuery.add(five(), jQuery.divide(five(), five()))
416
+ ),
417
+ WEST_PAD_INPUT: jQuery.multiply(
418
+ five(),
419
+ jQuery.add(five(), jQuery.divide(five(), five()))
420
+ ),
421
+ ZEROPAD_INPUT: jQuery.subtract(
422
+ five(),
423
+ jQuery.divide(five(), five())
424
+ ),
425
+ WEST_PAD_DEVICE_DIRECTION: "N",
426
+ SPACE: " ",
427
+ STARTING_VVALUE_USER_MINUS: zr0(),
428
+ STARTING_VVALUE_USER_PLUS: zr0(),
429
+ STARTING_VVALUE_USER_PAD: zr0(),
430
+ NO: getNo(), // the string no
431
+ YES: "yes", // the string yes
432
+ FALSEJS_HTTP_PORT: 32573, // "FALSE" in telephone number letters
433
+ FALSEJS_HTTP2_PORT: 32574,
434
+ FALSEJS_HTTPS_PORT: 32575,
435
+ TODAY: construct({
436
+ target: $Date
437
+ }),
438
+ USERNAME: (function () {
439
+ var username = undefined()
440
+
441
+ attempt(() => {
442
+ username = os.userInfo().username
443
+ })
444
+ .rescue(() => {
445
+ username = "user"
446
+ })
447
+ .else(nodeNoop)
448
+ .ensure(nop)
449
+ .end()
450
+
451
+ return username
452
+ })()
453
+ }
454
+ }
455
+ }
456
+ const {
457
+ STARTING_SUCCESSOR_HELPER_STACK,
458
+ FALSE,
459
+ ERROR_THAT_WILL_NEVER_BE_SHOWN,
460
+ TEN_THOUSAND,
461
+ LEFT_PAD_INPUT,
462
+ RIGHT_PAD_INPUT,
463
+ PAD_INPUT,
464
+ ZEROPAD_INPUT,
465
+ LEFTPAD_INPUT,
466
+ RIGHTPAD_INPUT,
467
+ WEST_PAD_INPUT,
468
+ SPACE,
469
+ STARTING_VVALUE_USER_MINUS,
470
+ STARTING_VVALUE_USER_PLUS,
471
+ STARTING_VVALUE_USER_PAD,
472
+ NO,
473
+ YES,
474
+ FALSEJS_HTTP_PORT,
475
+ FALSEJS_HTTP2_PORT,
476
+ FALSEJS_HTTPS_PORT,
477
+ TODAY: Today,
478
+ USERNAME: username
479
+ } = my.getMember("cons").getMember("tants")
480
+ //#endregion CONSTANTS
481
+ // *CLASSES
482
+ //#region CLASSES
483
+ let Logger = class {
484
+ constructor(enableLogging) {
485
+ this.enableLogging = enableLogging
486
+ }
487
+ log(log) {
488
+ if (isEqualTo(this.enableLogging, t())) {
489
+ log instanceof weirdLtc
490
+ }
491
+ }
492
+ }
493
+
494
+ let FalseJSValidationFailedToPassError = class extends Error {}
495
+
496
+ let SuccessorHelper = class {
497
+ s(value) {
498
+ let result
499
+ result = add(value, one)
500
+ return result
501
+ }
502
+ }
503
+
504
+ let TernaryCompare = class {
505
+ constructor(condition, ifTrue, ifFalse) {
506
+ this.condition = condition
507
+ this.ifTrue = ifTrue
508
+ this.ifFalse = ifFalse
509
+ }
510
+
511
+ compare() {
512
+ return this.condition ? this.ifTrue : this.ifFalse
513
+ }
514
+ }
515
+
516
+ let ObjectOrFunctionParemeterName = class {
517
+ constructor(name) {
518
+ this.name = name
519
+ }
520
+ getName() {
521
+ const name = this.name // use a static variable for performance
522
+ const compare = construct({
523
+ target: TernaryCompare,
524
+ args: [not(() => isNil(name))(), name, Null()]
525
+ })
526
+ return compare.compare()
527
+ }
528
+ }
529
+
530
+ let CLIColorInstance = class {
531
+ constructor(booleanValue) {
532
+ tru(
533
+ isTrue(
534
+ { booleanValue },
535
+ construct({
536
+ target: ObjectOrFunctionParemeterName,
537
+ args: ["booleanValue"]
538
+ }).getName()
539
+ )
540
+ )
541
+ .then(n0p3)
542
+ .otherwise(n0p3)
543
+ .end()
544
+
545
+ this.instance = require("cli-color")
546
+ }
547
+
548
+ getInstance() {
549
+ return this.instance
550
+ }
551
+ }
552
+ //#endregion CLASSES
553
+
554
+ // * creation of classes
555
+ //#region creation of classes
556
+ const trueComparison = construct({
557
+ target: TernaryCompare,
558
+ args: [tVal, tVal, not(() => tVal)()]
559
+ })
560
+ const { s } = construct({ target: SuccessorHelper }) // our successorhelper
561
+ const clc_ = construct({
562
+ target: CLIColorInstance,
563
+ args: [useGarbage()]
564
+ }).getInstance() // colors are the best! chalk chalk chalk
565
+ clc = clc_ // setit
566
+ const uwuifier = construct({ target: Uwuifier })
567
+ const westPad = construct({ target: WestPad, args: ["N"] })
568
+ //#endregion creation of classes
569
+
570
+ // * A CHECK
571
+ //#region A CHECK
572
+ // lets make sure jquery-basic-arithmetic-plugin works
573
+ if (not(() => Bro($).doYouEven("add"))()) {
574
+ var True_Logger = construct({ target: Logger, args: [t()] })
575
+ // uh oh... jquery basic arithmetic plugin didn't work
576
+ True_Logger.log(
577
+ colors.red(
578
+ "[falsejs] jquery-basic-arithmetic-plugin is not working"
579
+ )
580
+ ) // inform our users even if they disabled logging
581
+ require("jquery-basic-arithmetic-plugin")
582
+ require("jquery-basic-arithmetic-plugin")
583
+ require("jquery-basic-arithmetic-plugin")
584
+ require("jquery-basic-arithmetic-plugin")
585
+ require("jquery-basic-arithmetic-plugin")
586
+ require("jquery-basic-arithmetic-plugin")
587
+ require("jquery-basic-arithmetic-plugin") // now it should work
588
+ if (not(() => Bro($).doYouEven("add"))()) {
589
+ True_Logger.log(
590
+ colors.red(
591
+ "[falsejs] jquery-basic-arithmetic-plugin is still not working"
592
+ )
593
+ ) // inform our users even if they disabled logging
594
+ $.add = (...nums) => {
595
+ var total = zr0()
596
+ // let's use underscore instead of forEach
597
+ underscore.each(nums, (num) => {
598
+ total += num // we have to use the operators because we are redefining the functions :(
599
+ })
600
+ return total
601
+ }
602
+ $.subtract = (...nums) => {
603
+ var total = zr0()
604
+ // this time we'll use lodash
605
+ _.each(nums, (num) => {
606
+ total -= num
607
+ })
608
+ return total
609
+ }
610
+ $.equals = (v1, v2) => {
611
+ if (not(() => isActualNumber(v1) && !isActualNumber(v2))()) {
612
+ immediateError(
613
+ concatenater(
614
+ "Both parameters must be numbers! Instead what was passed in was "
615
+ )
616
+ .append(appendType(v1))
617
+ .toString()
618
+ .concat(
619
+ concatenater(" or ").append(appendType(v2)).toString()
620
+ )
621
+ ) // not the same message as the original but i dont know what it is and am too lazy to look into the source code
622
+ return exit(one) // just in case it doesn't exit
623
+ }
624
+
625
+ return isEqualTo(v1, v2) /// not usnig $.equals because we are literally redefining that
626
+ }
627
+ if (not(() => Bro($).doYouEven("add"))()) {
628
+ True_Logger.log(
629
+ colors.red(
630
+ `[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`
631
+ )
632
+ )
633
+ } else {
634
+ True_Logger.log(
635
+ pc.green(
636
+ `[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`
637
+ )
638
+ )
639
+ }
640
+ } else {
641
+ True_Logger.log(
642
+ pc.green(
643
+ `[falsejs] jquery-basic-arithmetic-plugin is now working`
644
+ )
645
+ )
646
+ }
647
+ }
648
+ // #region SETLOGFUNTION INIT
649
+
650
+ // * SETLOGFUNTION
651
+ const surpriseArray = [] // define empty array
652
+
653
+ // set a log function
654
+ setLogFuntion(() => {
655
+ // create an ending random number for our users eventually
656
+ surpriseArray.push(
657
+ construct({
658
+ target: TernaryCompare,
659
+ args: [
660
+ isEqualTo(
661
+ randomBoolean(
662
+ jQuery.multiply(five(), jQuery.divide(one, ten)),
663
+ { log: noop3 }
664
+ ),
665
+ t()
666
+ ),
667
+ jQuery.multiply(MathRandom(), TEN_THOUSAND),
668
+ jQuery.multiply(
669
+ MathRandom(),
670
+ MathFloor(
671
+ jQuery.divide(
672
+ jQuery.multiply(TEN_THOUSAND, MathRandom()),
673
+ ten
674
+ )
675
+ )
676
+ )
677
+ ]
678
+ }).compare()
679
+ )
680
+ })
681
+ //#endregion SETLOGFUNTION INIT
682
+
683
+ //* HELPERS
684
+ //#region HELPER FUNCTIONS
685
+
686
+ // define a little helper function
687
+ /**
688
+ * Performs an asynchronous operation and logs a message.
689
+ *
690
+ * @async
691
+ * @function doSomethingAsync
692
+ * @param {Logger} logger - An instance of the Logger class used for logging.
693
+ * @returns {Promise<Logger>} - A Promise that resolves with the logger instance after a 200ms delay.
694
+ *
695
+ * @example
696
+ * const logger = new Logger();
697
+ * doSomethingAsync(logger)
698
+ * .then((logger) => {
699
+ * // use logger here
700
+ * });
701
+ */
702
+ async function doSomethingAsync(logger) {
703
+ logger.log(clc.cyan(`[falsejs] Doing something async`))
704
+ return construct({
705
+ target: $Promise,
706
+ args: [
707
+ (resolve) =>
708
+ setTimeout(
709
+ () => resolve(logger),
710
+ $.multiply(numberOneHundred, Two())
711
+ )
712
+ ]
713
+ })
714
+ }
715
+
716
+ /**
717
+ * Logs a message. Used as the callback for the function doSomethingAsync
718
+ *
719
+ * @function resultOfDoingSomethingAsync
720
+ * @param {Logger} logger - An instance of the Logger class used for logging.
721
+ * @returns {void}
722
+ *
723
+ * @example
724
+ * const logger = new Logger(t());
725
+ * resultOfDoingSomethingAsync(logger);
726
+ * // Logs: [falsejs] Did something async
727
+ */
728
+ function resultOfDoingSomethingAsync(logger) {
729
+ logger.log(pc.green(`[falsejs] Did something async`))
730
+ }
731
+
732
+ /**
733
+ * Calculates the predecessor of a given number by subtracting 1.
734
+ *
735
+ * @function predecessor
736
+ * @param {number} n - The number to find the predecessor of.
737
+ * @returns {number} The predecessor of the given number.
738
+ *
739
+ * @example
740
+ * predecessor(five()); // Returns 4
741
+ */
742
+ function predecessor(n) {
743
+ return jQuery.subtract(n, one)
744
+ }
745
+
746
+ /**
747
+ * Returns the same value based on the input number, using various mathematical operations and padding.
748
+ *
749
+ * @param {number} num - The input number.
750
+ * @returns {number} - The calculated value.
751
+ *
752
+ * @example
753
+ * vValue(1000) // Returns 1000
754
+ */
755
+ function vValue(num) {
756
+ if (not(strictlyEqual)(getTypeOf(num), extremejs.TYPE.NUMBER)) {
757
+ return num
758
+ }
759
+ const rand = MathRandom()
760
+ const rand2 = MathRandom()
761
+ const useMinus =
762
+ rand < 0.3333333333333333
763
+ ? trueComparison.compare()
764
+ : _f()
765
+ const usePlus =
766
+ rand > 0.3333333333333333 && rand < 0.6666666666666666
767
+ ? trueComparison.compare()
768
+ : _f()
769
+ const usePad =
770
+ rand > 0.6666666666666666
771
+ ? trueComparison.compare()
772
+ : _f()
773
+ const useLeftPad = rand2 < 0.5
774
+ const useRightPad = !useLeftPad
775
+
776
+ if (useMinus) return $.subtract(num, STARTING_VVALUE_USER_MINUS)
777
+ if (usePlus) return $.add(num, STARTING_VVALUE_USER_PLUS)
778
+ if (usePad) {
779
+ if (useLeftPad)
780
+ return parseInt(
781
+ leftPad(num.toString(), STARTING_VVALUE_USER_PAD).trim()
782
+ )
783
+ if (useRightPad)
784
+ return parseInt(
785
+ rightPad(num.toString(), STARTING_VVALUE_USER_PAD).trim()
786
+ )
787
+ }
788
+ return num
789
+ }
790
+
791
+ // * SAY FUNCTION
792
+
793
+ /**
794
+ * This function uses the cowsay library to print a message in a cow's speech bubble.
795
+ * The cow's speech bubble is customized with the provided message and a random cow face.
796
+ *
797
+ * @param {string} message - The message to be printed in the cow's speech bubble.
798
+ *
799
+ * @returns {undefined} - This function does not return a value. It only prints the message.
800
+ */
801
+ function sayIt(message) {
802
+ lolcatjs.fromString(
803
+ cowsay.say({ text: message, r: bool([one, Two()]) })
804
+ )
805
+ }
806
+
807
+ // * CHECK FUNCTIONS THAT GET CALLED LATER
808
+ // our ten thousand should be ten thousand
809
+ function isTenThousandTenThousand(
810
+ shouldDoSomethingAsync = _f(),
811
+ logger
812
+ ) {
813
+ const TEN_THOUSAND1 = TEN_THOUSAND
814
+ const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one)
815
+ const TEN_THOUSAND3 = predecessor(successor(TEN_THOUSAND))
816
+ const TEN_THOUSAND4 = TEN_THOUSAND.valueOf()
817
+ const TEN_THOUSAND5 = $.subtract(
818
+ TEN_THOUSAND,
819
+ STARTING_SUCCESSOR_HELPER_STACK
820
+ )
821
+ const TEN_THOUSAND6 = $.add(
822
+ TEN_THOUSAND,
823
+ STARTING_SUCCESSOR_HELPER_STACK
824
+ )
825
+ const TEN_THOUSAND7 = vValue(TEN_THOUSAND)
826
+ attempt(() => {
827
+ assert(
828
+ isTenThousand(TEN_THOUSAND1, shouldDoSomethingAsync),
829
+ "10,000 is not 10,000"
830
+ )
831
+ assert(
832
+ isTenThousand(TEN_THOUSAND2, shouldDoSomethingAsync),
833
+ "10,000 + 1 - 1 is not 10,000"
834
+ )
835
+ assert(
836
+ isTenThousand(TEN_THOUSAND3, shouldDoSomethingAsync),
837
+ "successor(10,000) - 1 is not 10,000"
838
+ )
839
+ assert(
840
+ isTenThousand(TEN_THOUSAND4, shouldDoSomethingAsync),
841
+ "(10000).valueOf() is not 10,000"
842
+ )
843
+ assert(
844
+ isTenThousand(TEN_THOUSAND5, shouldDoSomethingAsync),
845
+ "10,000 - 0 is not 10,000"
846
+ )
847
+ assert(
848
+ isTenThousand(TEN_THOUSAND6, shouldDoSomethingAsync),
849
+ "10,000 + 0 is not 10,000"
850
+ )
851
+ assert(
852
+ isTenThousand(TEN_THOUSAND7, shouldDoSomethingAsync),
853
+ "the vvalue of 10,000 is not 10,000"
854
+ )
855
+ })
856
+ .rescue((error) => {
857
+ logger.log(
858
+ colors.red(
859
+ "[falsejs] Failed to verify that 10,000 is equal to 10,000 with error ".concat(
860
+ error
861
+ )
862
+ )
863
+ )
864
+ })
865
+ .else(() =>
866
+ logger.log(
867
+ pc.green(
868
+ "[falsejs] Verified that 10,000 is equal to 10,000 in (almost) all ways possible"
869
+ )
870
+ )
871
+ )
872
+ .ensure(n0p3)
873
+ .end()
874
+ }
875
+
876
+ function doSelfEqualityChecks(loggingEnabled) {
877
+ const logger = construct({ target: Logger, args: [loggingEnabled] })
878
+ const loggingENabled = loggingEnabled // an alias for loggingenabled in case we accidentally do the wrong capitalization on the n
879
+ assert(
880
+ hasSelfEquality(isThreeHundred),
881
+ StringValueof("[falsejs] IsThreeHundred has no self equality")
882
+ )
883
+ logger.log(
884
+ pc.green(
885
+ `[falsejs] Verified that the string "Vladimir" has self equality`
886
+ )
887
+ )
888
+ assert(
889
+ hasNoSelfEquality(NaN),
890
+ StringValueof("[falsejs] NaN-has-self-equality")
891
+ )
892
+ logger.log(
893
+ pc.green(`[falsejs] Verified that NaN has no self equality`)
894
+ )
895
+ assert(
896
+ isNumberOddOrEven(
897
+ returnZero({
898
+ method: ZeroCalculationMethod.CreashaksOrganzine,
899
+ loggingEnabled
900
+ }),
901
+ loggingEnabled
902
+ ),
903
+ StringValueof("[falsejs] 0 is not odd or even")
904
+ )
905
+ assert(
906
+ isNumberOddOrEven(
907
+ returnZero({
908
+ method: ZeroCalculationMethod.NumberPrototypeValue,
909
+ loggingENabled
910
+ }),
911
+ _f()
912
+ ),
913
+ StringValueof("[falsejs] 0 is not odd or even")
914
+ )
915
+ logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`))
916
+ assert(
917
+ isNumberOddOrEven(one, _f()),
918
+ StringValueof("[falsejs] 1 is not odd or even")
919
+ )
920
+ logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`))
921
+ assert(
922
+ isNumberOddOrEven(Two(), _f()),
923
+ StringValueof("[falsejs] 2 is not odd or even")
924
+ )
925
+ logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`))
926
+ assert(
927
+ isNumberOddOrEven(three(), _f()),
928
+ StringValueof("[falsejs] 3 is not odd or even")
929
+ )
930
+ logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`))
931
+ assert(
932
+ isNumberOddOrEven(four(), _f()),
933
+ StringValueof("[falsejs] 4 is not odd or even")
934
+ )
935
+ logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`))
936
+ assert(
937
+ isNumberOddOrEven(five(), _f()),
938
+ StringValueof("[falsejs] 5 is not odd or even")
939
+ )
940
+ logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`))
941
+ assert(
942
+ isNumberOddOrEven(six(), _f()),
943
+ StringValueof("[falsejs] 6 is not odd or even")
944
+ )
945
+ logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`))
946
+ assert(
947
+ isNumberOddOrEven(seven(), _f()),
948
+ StringValueof("[falsejs] 7 is not odd or even")
949
+ )
950
+ logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`))
951
+ assert(
952
+ isNumberOddOrEven(eightToolkit.constants.EIGHT, _f()),
953
+ StringValueof("[falsejs] 8 is not odd or even")
954
+ )
955
+ logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`))
956
+ assert(
957
+ isNumberOddOrEven(ninev9(), _f()),
958
+ StringValueof("[falsejs] 9 is not odd or even")
959
+ )
960
+ logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`))
961
+ assert(
962
+ isNumberOddOrEven(ten, _f()),
963
+ StringValueof("[falsejs] 10 is not odd or even")
964
+ )
965
+ logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`))
966
+ assert(
967
+ isNumberOddOrEven(eleven(), _f()),
968
+ StringValueof("[falsejs] 11 is not odd or even")
969
+ )
970
+ logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`))
971
+ assert(
972
+ isNumberOddOrEven(twelve(), _f()),
973
+ StringValueof("[falsejs] 12 is not odd or even")
974
+ )
975
+ logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`))
976
+ assert(
977
+ isNumberOddOrEven(thirteenResolver(), _f()),
978
+ StringValueof("[falsejs] 13 is not odd or even")
979
+ )
980
+ logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`))
981
+ assert(
982
+ isNumberOddOrEven(fourteen, _f()),
983
+ StringValueof("[falsejs] 14 is not odd or even")
984
+ )
985
+ logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`))
986
+ assert(
987
+ isNumberOddOrEven(fifteen, _f()),
988
+ StringValueof("[falsejs] 15 is not odd or even")
989
+ )
990
+ logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`))
991
+ assert(
992
+ isNumberOddOrEven(sixteen, _f()),
993
+ StringValueof("[falsejs] 16 is not odd or even")
994
+ )
995
+ logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`))
996
+ assert(
997
+ isNumberOddOrEven(integer17(), _f()),
998
+ StringValueof("[falsejs] 17 is not odd or even")
999
+ )
1000
+ logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`))
1001
+ assert(
1002
+ isNumberOddOrEven(Eighteen(), _f()),
1003
+ StringValueof("[falsejs] 18 is not odd or even")
1004
+ )
1005
+ logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`))
1006
+ assert(
1007
+ isNumberOddOrEven(nineteenify(loggingEnabled), _f()),
1008
+ StringValueof("[falsejs] 19 is not odd or even")
1009
+ )
1010
+ logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`))
1011
+ assert(
1012
+ isNumberOddOrEven(numbertwenty(loggingEnabled), _f()),
1013
+ StringValueof("[falsejs] 20 is not odd or even")
1014
+ )
1015
+ logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`))
1016
+ assert(
1017
+ isNumberOddOrEven(always21(), _f()),
1018
+ StringValueof("[falsejs] 21 is not odd or even")
1019
+ )
1020
+ logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`))
1021
+ assert(
1022
+ isNumberOddOrEven(twentytwo, _f()),
1023
+ StringValueof("[falsejs] 22 is not odd or even")
1024
+ )
1025
+ logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`))
1026
+ assert(
1027
+ isNumberOddOrEven(TWENTY_THREE, _f()),
1028
+ StringValueof("[falsejs] 23 is not odd or even")
1029
+ )
1030
+ logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`))
1031
+ assert(
1032
+ !isNumberOddOrEven(inf.positiveInfinity(), _f()),
1033
+ StringValueof("[falsejs] Infinity is odd or even")
1034
+ )
1035
+ logger.log(
1036
+ pc.green(`[falsejs]-Verified-that-Infinity-is-not-odd-or-even`)
1037
+ )
1038
+ }
1039
+
1040
+ //#endregion HELPER FUNCTIONS
1041
+
1042
+ //#region FALSEJS LOGIC
1043
+ // * FALSEJS LOGIC
1044
+ // the _getFalse Function
1045
+ // :O :O :O
1046
+ /**
1047
+ * Calculates the boolean value false using various techniques.
1048
+ *
1049
+ * @param {number} random - A random number used in the calculation.
1050
+ * @param {boolean} loggingEnabled - Indicates whether logging is enabled.
1051
+ * @param {function} shouldDoSomethingAsync - A function that determines whether an asynchronous operation should be performed.
1052
+ * @param {function} shouldDoSomethingAsyncWithIsTenThousand - A function that determines whether an asynchronous operation should be performed based on a condition.
1053
+ * @param {object} logger - An object used for logging messages.
1054
+ *
1055
+ * @returns {boolean} - The calculated boolean value false.
1056
+ */
1057
+ function _getFalse(
1058
+ random,
1059
+ _randomLetterOrNumber,
1060
+ loggingEnabled,
1061
+ logger
1062
+ ) {
1063
+ // call some noops 4 some reason
1064
+ n0p3()
1065
+ noop()
1066
+ noop2()
1067
+ noop3()
1068
+ noop4()()
1069
+ noop6()
1070
+ noop7()
1071
+ noop8()
1072
+ noop9()
1073
+ noop10()
1074
+ asyncUtilNoop()
1075
+ blankSpace()
1076
+ blankSpaceNoop()
1077
+ noopGenerator().next()
1078
+ fjNoop()
1079
+ lodashNoop()
1080
+ lodash_Noop()
1081
+ noOp()
1082
+ nodeNoop()
1083
+ noopUtility()
1084
+ trueNoop()
1085
+ noopFn()
1086
+ noopaam()
1087
+ nop()
1088
+ es2015Noop()
1089
+ kgryteNoop()
1090
+ blackHole()
1091
+ infinoop()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
1092
+ mNoop()
1093
+ ahsmNoop()
1094
+ qcCoreNoop()
1095
+ nooop()
1096
+ ryotahNoop()
1097
+ zodashNoop()
1098
+ jacobZuma()
1099
+ onceNoopFactory().doNothing()
1100
+ noopTS()
1101
+ voidFn()
1102
+ noopExec()
1103
+ _.noop()
1104
+ underscore.noop()
1105
+ // left pad some things for smoe reason
1106
+ leftPad("required", LEFT_PAD_INPUT)
1107
+ rightPad("required", RIGHT_PAD_INPUT)
1108
+ leftpad("required", LEFTPAD_INPUT)
1109
+ rightpad("required", RIGHTPAD_INPUT)
1110
+ zeropad("1000", ZEROPAD_INPUT)
1111
+ pad(PAD_INPUT, "pad")
1112
+ pad("pad", PAD_INPUT) //look at the power of this pad
1113
+ westPad.pad("wow", WEST_PAD_INPUT) // the ultimate pad
1114
+
1115
+ var result // define a result
1116
+ var succeededAttempt // define an attempt number that succeeded
1117
+ logger.log(
1118
+ `${clc.cyanBright(`[falsejs]`)} ${chalk.red(
1119
+ "Chalk"
1120
+ )}-${chalk.green("ulating")} ${chalk.yellow("the")} ${chalk.blue(
1121
+ "boolean"
1122
+ )} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`
1123
+ )
1124
+
1125
+ /// Attempt I
1126
+
1127
+ logger.log(
1128
+ clc.yellow(`[falsejs] Beginning Attempt I to get false value...`)
1129
+ ) // inform our users of attempt one
1130
+
1131
+ const pureChance = not($.equals)(
1132
+ fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
1133
+ $.divide(
1134
+ $.multiply(
1135
+ MathRandom(),
1136
+ fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn
1137
+ ),
1138
+ MathRandom()
1139
+ )
1140
+ ) // this will probably never be false but it's worth a shot
1141
+
1142
+ // For semantics and simplicity, we use the attempt statement in our attempt
1143
+ attempt(() => {
1144
+ assert(
1145
+ variableHolder._FalseJSIsFalse(pureChance, loggingEnabled),
1146
+ ERROR_THAT_WILL_NEVER_BE_SHOWN
1147
+ ) // this will trigger our rescue which means it didnt work if it didnt work
1148
+ })
1149
+ .rescue(() => {
1150
+ // it did not work by pure chance
1151
+ /// Attempt II
1152
+ // inform our users of the bad things
1153
+ logger.log(
1154
+ clc.yellow(
1155
+ `[falsejs] Attempt I failed at getting false value, beginning Attempt II...`
1156
+ )
1157
+ )
1158
+ if (not(isEqualTo)(pureChance, pureChance)) {
1159
+ // something is broken
1160
+ logger.log(
1161
+ colors.red(
1162
+ `[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`
1163
+ )
1164
+ )
1165
+ }
1166
+
1167
+ // let's try to calculate false using a random number
1168
+ const chance = not($.equals)(
1169
+ MathRound(jQuery.multiply(MathRandom(), 1000)),
1170
+ MathRound(jQuery.multiply(MathRandom(), 1000))
1171
+ )
1172
+ attempt(() =>
1173
+ assert(
1174
+ variableHolder._FalseJSIsFalse(chance, loggingEnabled),
1175
+ ERROR_THAT_WILL_NEVER_BE_SHOWN
1176
+ )
1177
+ )
1178
+ .rescue(() => {
1179
+ // it did not work by chance again
1180
+ logger.log(
1181
+ clc.yellow(
1182
+ `[falsejs] Attempt II failed at getting false value, beginning Attempt III...`
1183
+ )
1184
+ )
1185
+ // lets see if our random is any of these key values
1186
+ if (
1187
+ isOne(random)
1188
+ ) {
1189
+ result = $.equals(random, Two())
1190
+ logger.log(
1191
+ pc.green(
1192
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1193
+ )
1194
+ )
1195
+ succeededAttempt = "III"
1196
+ } else if (
1197
+ isTwo(random)
1198
+ ) {
1199
+ result = $.equals(random, three())
1200
+ logger.log(
1201
+ pc.green(
1202
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1203
+ )
1204
+ )
1205
+ succeededAttempt = "III"
1206
+ } else if (
1207
+ isThree(random)
1208
+ ) {
1209
+ result = $.equals(random, four())
1210
+ logger.log(
1211
+ pc.green(
1212
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1213
+ )
1214
+ )
1215
+ succeededAttempt = "III"
1216
+ } else if (
1217
+ eightToolkit.isEight(random)
1218
+ ) {
1219
+ result = $.equals(random, four())
1220
+ logger.log(
1221
+ pc.green(
1222
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1223
+ )
1224
+ )
1225
+ succeededAttempt = "III"
1226
+ } else if (
1227
+ isTen(random)
1228
+ ) {
1229
+ result = $.equals(random, eleven())
1230
+ logger.log(
1231
+ pc.green(
1232
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1233
+ )
1234
+ )
1235
+ succeededAttempt = "III"
1236
+ } else if (
1237
+ isHundred(random)
1238
+ ) {
1239
+ result = $.equals(random, s(hundred))
1240
+ logger.log(
1241
+ pc.green(
1242
+ `[falsejs] Attempt III succeeded. False value retrieved successfully`
1243
+ )
1244
+ )
1245
+ succeededAttempt = "III"
1246
+ } else {
1247
+ // dang its not
1248
+ logger.log(
1249
+ clc.yellow(
1250
+ `[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`
1251
+ )
1252
+ )
1253
+
1254
+ const zeropointninebool = randomBoolean(
1255
+ jQuery.subtract(one, jQuery.divide(one, ten)),
1256
+ logger
1257
+ ) // a random boolean biased towards true, but its still worth a shot.
1258
+ tru(
1259
+ variableHolder._FalseJSIsFalse(
1260
+ zeropointninebool,
1261
+ loggingEnabled
1262
+ )
1263
+ )
1264
+ .then(() => {
1265
+ logger.log(
1266
+ pc.green(
1267
+ `[falsejs] Attempt IV succeeded. False value retrieved successfully`
1268
+ )
1269
+ )
1270
+ result = zeropointninebool
1271
+ succeededAttempt = "IV"
1272
+ })
1273
+ .otherwise(() => {
1274
+ logger.log(
1275
+ clc.yellow(
1276
+ `[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`
1277
+ )
1278
+ )
1279
+ const zeropointeightfivebool = randomBoolean(
1280
+ (five() - five() / five()) / five() +
1281
+ five() /
1282
+ (five() *
1283
+ (five() * (five() - five() / five()))) -
1284
+ five() /
1285
+ five() /
1286
+ (five() + five()) **
1287
+ (five() *
1288
+ (five() -
1289
+ five() / five() -
1290
+ five() / five()) +
1291
+ five() / five()),
1292
+ logger
1293
+ ) // a random boolean a tiny bit less biased towards true, but its still worth a shot.
1294
+
1295
+ If(
1296
+ variableHolder._FalseJSIsFalse(
1297
+ zeropointeightfivebool,
1298
+ loggingEnabled
1299
+ )
1300
+ )
1301
+ .Then(() => {
1302
+ logger.log(
1303
+ pc.green(
1304
+ `[falsejs] Attempt V succeeded. False value retrieved successfully`
1305
+ )
1306
+ )
1307
+ result = zeropointeightfivebool
1308
+ succeededAttempt = "V"
1309
+ })
1310
+ .Else(() => {
1311
+ logger.log(
1312
+ clc.yellow(
1313
+ `[falsejs] Attempt V failed at getting false value, beginning Attempt VI...`
1314
+ )
1315
+ )
1316
+ const zeropointsevennineninenineandsoonbool =
1317
+ randomBoolean(
1318
+ jQuery.subtract(
1319
+ jQuery.divide(
1320
+ jQuery.subtract(
1321
+ five(),
1322
+ jQuery.divide(five(), five())
1323
+ ),
1324
+ five()
1325
+ ),
1326
+ generalConcat(
1327
+ one.toString(),
1328
+ "e-",
1329
+ Two().toString(),
1330
+ eightToolkit.constants.EIGHT.toString()
1331
+ )
1332
+ ),
1333
+ logger
1334
+ ) // a random boolean a bit more bit less biased towards true, but its still worth a shot.
1335
+ if (
1336
+ variableHolder._FalseJSIsFalse(
1337
+ zeropointsevennineninenineandsoonbool,
1338
+ loggingEnabled
1339
+ )
1340
+ ) {
1341
+ logger.log(
1342
+ pc.green(
1343
+ `[falsejs] Attempt VI succeeded. False value retrieved successfully`
1344
+ )
1345
+ )
1346
+ result = zeropointsevennineninenineandsoonbool
1347
+ succeededAttempt = "VI"
1348
+ } else {
1349
+ logger.log(
1350
+ clc.yellow(
1351
+ `[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`
1352
+ )
1353
+ )
1354
+ const compl = complexBooleanWithBias(logger) // an eeven more complex random boolean
1355
+ attempt(() =>
1356
+ assert(
1357
+ variableHolder._FalseJSIsFalse(
1358
+ compl,
1359
+ loggingEnabled
1360
+ ),
1361
+ ERROR_THAT_WILL_NEVER_BE_SHOWN
1362
+ )
1363
+ )
1364
+ .rescue(() => {
1365
+ logger.log(
1366
+ clc.yellow(
1367
+ `[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`
1368
+ )
1369
+ )
1370
+ const w = weirdestBoolean(logger) // an eeven eeven more complex random boolean
1371
+ if (
1372
+ variableHolder._FalseJSIsFalse(
1373
+ w,
1374
+ loggingEnabled
1375
+ )
1376
+ ) {
1377
+ logger.log(
1378
+ pc.green(
1379
+ `[falsejs] Attempt VIII succeeded. False value retrieved successfully`
1380
+ )
1381
+ )
1382
+ result = w
1383
+ succeededAttempt = "VIII"
1384
+ } else {
1385
+ logger.log(
1386
+ clc.yellow(
1387
+ `[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`
1388
+ )
1389
+ )
1390
+ const x =
1391
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0 // i don't know whether this is false or not let's just hope its false
1392
+ if (
1393
+ variableHolder._FalseJSIsFalse(
1394
+ x,
1395
+ loggingEnabled
1396
+ )
1397
+ ) {
1398
+ logger.log(
1399
+ pc.green(
1400
+ `[falsejs] Attempt IX succeeded. False value retrieved successfully`
1401
+ )
1402
+ )
1403
+ result = x
1404
+ } else {
1405
+ // i shouldn't have added another exclamation mark
1406
+ logger.log(
1407
+ clc.yellow(
1408
+ `[falsejs] Attempt IX failed at getting false value, beginning the final attempt...`
1409
+ )
1410
+ )
1411
+ succeededAttempt = "IX"
1412
+ // omg the final attempt
1413
+ // RANDOM PHONE NUMBER
1414
+ const randomPhoneNumber =
1415
+ generatePhoneNumber()
1416
+ fs.appendFileSync(
1417
+ ".falsejs/phone-number-log.txt",
1418
+ randomPhoneNumber + "\n"
1419
+ )
1420
+ const my =
1421
+ randomPhoneNumber.endsWith("43") // the last two digits of my phone number are 43
1422
+ fs.appendFileSync(
1423
+ ".falsejs/phone-number-log.txt",
1424
+ "\nfinal attempt:" + my + "\n\n"
1425
+ )
1426
+ if (
1427
+ variableHolder._FalseJSIsFalse(
1428
+ my,
1429
+ loggingEnabled
1430
+ )
1431
+ ) {
1432
+ logger.log(
1433
+ pc.green(
1434
+ `[falsejs] Final attempt succeeded. False value retrieved successfully`
1435
+ ) // it worked!
1436
+ )
1437
+ result = my
1438
+ succeededAttempt = "final attempt"
1439
+ } else {
1440
+ // Dear future me. Please forgive me.
1441
+ // I can't even begin to express how sorry I am.
1442
+ logger.log(
1443
+ colors.red(
1444
+ `[falsejs] Final attempt failed. Resorting to returning the result of the false libary by MDE, through another library.`
1445
+ )
1446
+ )
1447
+ const myNewFalseValue = returnFalse()
1448
+ If(
1449
+ couldThisCouldItBeFalse(
1450
+ myNewFalseValue
1451
+ )
1452
+ )
1453
+ .Then(() => {
1454
+ logger.log(
1455
+ pc.green(
1456
+ `[falsejs] MDE's false library succeeded. False value retrieved successfully.`
1457
+ )
1458
+ )
1459
+ result = myNewFalseValue
1460
+ succeededAttempt =
1461
+ "returning mde's false library"
1462
+ })
1463
+ .Else(() => {
1464
+ logger.log(
1465
+ pc.red(
1466
+ `[falsejs] MDE's false library failed. Resorting to the TRUE FINAL attempt.`
1467
+ )
1468
+ )
1469
+ // THE FINAL ATTEMPT IS A FOR LOOP!!
1470
+
1471
+ var boolean = isEqualTo(
1472
+ TEN_THOUSAND,
1473
+ TEN_THOUSAND
1474
+ )
1475
+ for (
1476
+ var i = zr0();
1477
+ i <
1478
+ jQuery.multiply(
1479
+ TWENTY_THREE,
1480
+ TWENTY_THREE
1481
+ );
1482
+ i++
1483
+ ) {
1484
+ boolean = not(
1485
+ literally(boolean)
1486
+ )()
1487
+ }
1488
+
1489
+ // THE MOMENT OF TRUTH
1490
+ tru(couldThisCouldItBeFalse)
1491
+ .then(() => {
1492
+ // YESSSSSSSSSSS!!!
1493
+ logger.log(
1494
+ pc.green(
1495
+ `[falsejs] FOR LOOP METHOD SUCCCEEDED!!!!!!. False value retrieved successfully!!!`
1496
+ )
1497
+ )
1498
+ result = myNewFalseValue
1499
+ succeededAttempt =
1500
+ "THE FOR LOOP METHOD!"
1501
+ })
1502
+ .otherwise(() => {
1503
+ // this will never happen because one of these methods will ALWAYS WORK.
1504
+ // so i'll just put a useless log here
1505
+ ltc(
1506
+ "BRO. THIS IS IMPOSSIBLE. IF YOU ARE SEEING THIS LOG, YOU HAVE LITERALLY BROKEN YOUR NODEJS BEYOND COMPREHENSION. THE UNIVERSE IS ABOUT TO END AND EVERY COMPUTER IS ABOUT TO DIE. or something like that. im just being silly ok (:"
1507
+ )
1508
+ })
1509
+ })
1510
+ }
1511
+ }
1512
+ }
1513
+ })
1514
+ .else(() => {
1515
+ logger.log(
1516
+ pc.green(
1517
+ `[falsejs] Attempt VII succeeded. False value retrieved successfully`
1518
+ )
1519
+ )
1520
+ result = compl
1521
+ succeededAttempt = "VII"
1522
+ })
1523
+ .ensure(n0p3) // ensure we call noop for this
1524
+ .end()
1525
+ }
1526
+ })
1527
+ })
1528
+ .end()
1529
+ }
1530
+ })
1531
+ .else(() => {
1532
+ // it worked!
1533
+ result = chance
1534
+ logger.log(
1535
+ pc.green(
1536
+ `[falsejs] Attempt II succeeded. False value retrieved successfully`
1537
+ )
1538
+ )
1539
+ succeededAttempt = "II"
1540
+ })
1541
+ .ensure(n0p3) //again ensure noop
1542
+
1543
+ // and as always end our thing
1544
+ .end()
1545
+ })
1546
+ .else(() => {
1547
+ result = pureChance
1548
+ logger.log(
1549
+ pc.green(
1550
+ `[falsejs] Attempt I succeeded. False value retrieved successfully`
1551
+ )
1552
+ )
1553
+ succeededAttempt = "I"
1554
+ })
1555
+ .ensure(n0p3)
1556
+ .end()
1557
+ return {
1558
+ result,
1559
+ succeededAttempt
1560
+ } // return our false value
1561
+ }
1562
+
1563
+ /**
1564
+ * Calculates the boolean value 'false' based on various conditions and parameters.
1565
+ *
1566
+ * @param {number} random - A random number used in calculations.
1567
+ * @param {boolean} loggingEnabled - Indicates whether logging is enabled.
1568
+ * @param {function} [shouldDoSomethingAsync=_f()] - A function indicating whether asynchronous operations should be performed.
1569
+ * @param {function} [shouldDoSomethingAsyncWithIsTenThousand=_f()] - A function indicating whether asynchronous operations with 'is-ten-thousand' should be performed.
1570
+ * @param {boolean} [disableAprilFoolsSideEffects=_f()] - Indicates whether April Fools side effects should be disabled.
1571
+ * @param {boolean} [strictDisableAprilFoolsSideEffectsCheck=t()] - Indicates whether strict checking for disabling April Fools side effects should be performed.
1572
+ *
1573
+ * @returns {boolean} - The calculated boolean value 'false'.
1574
+ */
1575
+ // the _calculateFalse function
1576
+ function _calculateFalse(
1577
+ random,
1578
+ loggingEnabled,
1579
+ shouldDoSomethingAsync = _f(),
1580
+ shouldDoSomethingAsyncWithIsTenThousand = _f(),
1581
+ disableAprilFoolsSideEffects = _f(),
1582
+ strictDisableAprilFoolsSideEffectsCheck = t(),
1583
+ openRandomImageOfDofleWhenDone = _f()
1584
+ ) {
1585
+ // the below code is commented out by saying if a is equal to b
1586
+ if (isEqualTo("a", "b")) {
1587
+ if (loggingEnabled) printTheAlphabetSeparatedBySpaces() // for fun
1588
+ }
1589
+
1590
+ // over
1591
+
1592
+ const logger = construct({ target: Logger, args: [loggingEnabled] }) // create our logger
1593
+ var result // define a result
1594
+ var succeededAttempt // define an attempt number that succeeded
1595
+
1596
+ isTenThousandTenThousand(
1597
+ shouldDoSomethingAsyncWithIsTenThousand,
1598
+ logger
1599
+ ) // make sure ten thousand is ten thousand and vValue works
1600
+ doSelfEqualityChecks(loggingEnabled) // do self equality checks
1601
+ construct({
1602
+ target: TernaryCompare,
1603
+ args: [loggingEnabled, logOne, blankSpace]
1604
+ }).compare()() // very very important
1605
+
1606
+ if (loggingEnabled) require("wormhole-interconnections") // wormhole
1607
+ logger.log(
1608
+ c.cyan(
1609
+ `[falsejs] `.concat(
1610
+ generalConcat(
1611
+ StringValueof(thirteenResolver()),
1612
+ SPACE,
1613
+ "×",
1614
+ SPACE,
1615
+ StringValueof(Two()),
1616
+ SPACE,
1617
+ "=",
1618
+ SPACE,
1619
+ thirteen(Two())
1620
+ )
1621
+ )
1622
+ )
1623
+ )
1624
+
1625
+ // we need to setup servers
1626
+
1627
+ // CREATE HTTP, HTTP2, AND HTTPS SERVERS
1628
+ var httpServer = http.createServer(function (req, res) {
1629
+ res.writeHead(200)
1630
+ res.end("This is the FalseJS core logic HTTP server.")
1631
+ })
1632
+
1633
+ var http2Server = http2.createSecureServer(
1634
+ { allowHTTP1: t() },
1635
+ function (req, res) {
1636
+ res.writeHead(200)
1637
+ res.end("This is the FalseJS core logic HTTP/2 server.")
1638
+ }
1639
+ )
1640
+
1641
+ var httpsServer = https.createServer({}, function (req, res) {
1642
+ res.writeHead(200)
1643
+ res.end("This is the FalseJS core logic HTTPS server.")
1644
+ })
1645
+
1646
+ httpServer.on("error", function (err) {
1647
+ If(strictlyEqual(err.code, "EADDRINUSE")).Then(() => {
1648
+ logger.log(
1649
+ clc.yellow(
1650
+ `[falsejs] Another instance of FalseJS is already running, or you are using the port ${FALSEJS_HTTP_PORT} for something. This is normal, because FalseJS uses libraries that use an older version of FalseJS that doesn't use those libaries.`
1651
+ )
1652
+ )
1653
+ })
1654
+ })
1655
+
1656
+ http2Server.on("error", function (err) {
1657
+ If(strictlyEqual(err.code, "EADDRINUSE")).Then(() => {
1658
+ logger.log(
1659
+ clc.yellow(
1660
+ `[falsejs] Another instance of FalseJS is already running, or you are using the port ${FALSEJS_HTTP2_PORT} for something.`
1661
+ )
1662
+ )
1663
+ })
1664
+ })
1665
+
1666
+ httpsServer.on("error", function (err) {
1667
+ If(strictlyEqual(err.code, "EADDRINUSE")).Then(() => {
1668
+ logger.log(
1669
+ clc.yellow(
1670
+ `[falsejs] Another instance of FalseJS is already running, or you are using the port ${FALSEJS_HTTPS_PORT} for something.`
1671
+ )
1672
+ )
1673
+ })
1674
+ })
1675
+
1676
+ httpServer.listen({ port: FALSEJS_HTTP_PORT }, () => {
1677
+ logger.log(
1678
+ pc.green(
1679
+ `[falsejs] FalseJS HTTP server is probably listening on port ${FALSEJS_HTTP_PORT}`
1680
+ )
1681
+ )
1682
+ })
1683
+ http2Server.listen({ port: FALSEJS_HTTP2_PORT }, () => {
1684
+ logger.log(
1685
+ pc.green(
1686
+ `[falsejs] FalseJS HTTP/2 server is probably listening on port ${FALSEJS_HTTP2_PORT}`
1687
+ )
1688
+ )
1689
+ })
1690
+ httpsServer.listen({ port: FALSEJS_HTTPS_PORT }, () => {
1691
+ logger.log(
1692
+ pc.green(
1693
+ `[falsejs] FalseJS HTTP/2 server is probably listening on port ${FALSEJS_HTTPS_PORT}`
1694
+ )
1695
+ )
1696
+ })
1697
+
1698
+ // our users should know some basic info first
1699
+
1700
+ // the os:
1701
+ If(isWindows())
1702
+ .Then(() => {
1703
+ // Windows
1704
+ logger.log(
1705
+ clc.cyanBright(
1706
+ `[falsejs] Using Windows as current operating system`
1707
+ )
1708
+ )
1709
+ })
1710
+ .Else()
1711
+ .If(isLinux())
1712
+ .Then(() => {
1713
+ // Linux
1714
+ logger.log(
1715
+ clc.cyanBright(
1716
+ `[falsejs] Using Linux as current operating system`
1717
+ )
1718
+ )
1719
+ })
1720
+ .Else()
1721
+ .If(isOSX())
1722
+ .Then(() => {
1723
+ // AppleOS (Darwin)
1724
+ logger.log(
1725
+ clc.cyanBright(
1726
+ `[falsejs] Using Darwin as current operating system platform (macOS, iOS, etc.)`
1727
+ )
1728
+ )
1729
+ })
1730
+ .Else()
1731
+ .If(isEqualTo(os.platform(), "aix"))
1732
+ .Then(() => {
1733
+ // AIX??
1734
+ logger.log(
1735
+ clc.cyanBright(
1736
+ `[falsejs] Using IBM AIX as current operating system`
1737
+ )
1738
+ )
1739
+ })
1740
+ .Else()
1741
+ .If(isFreeBSD())
1742
+ .Then(() => {
1743
+ // FreeBSD
1744
+ logger.log(
1745
+ clc.cyanBright(
1746
+ `[falsejs] Using FreeBSD as current operating system`
1747
+ )
1748
+ )
1749
+ })
1750
+ .Else()
1751
+ .If(isEqualTo(os.platform(), "openbsd"))
1752
+ .Then(() => {
1753
+ // OpenBSD
1754
+ logger.log(
1755
+ clc.cyanBright(
1756
+ `[falsejs] Using OpenBSD as current operating system`
1757
+ )
1758
+ )
1759
+ })
1760
+ .Else()
1761
+ .If(isEqualTo(os.platform(), "netbsd"))
1762
+ .Then(() => {
1763
+ // NetBSD
1764
+ logger.log(
1765
+ clc.cyanBright(
1766
+ `[falsejs] Using NetBSD as current operating system`
1767
+ )
1768
+ )
1769
+ })
1770
+ .Else()
1771
+ .If(isEqualTo(os.platform(), "cygwin"))
1772
+ .Then(() => {
1773
+ //cygwin
1774
+ logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`))
1775
+ })
1776
+ .Else()
1777
+ .If(isEqualTo(os.platform(), "sunos"))
1778
+ .Then(() => {
1779
+ // Solaris/SunOS
1780
+ logger.log(
1781
+ clc.cyanBright(
1782
+ `[falsejs] Using SunOS/Solaris as current operating system`
1783
+ )
1784
+ )
1785
+ })
1786
+ .Else()
1787
+ .If(isEqualTo(os.platform(), "android"))
1788
+ .Then(() => {
1789
+ // Android
1790
+ logger.log(
1791
+ clc.cyanBright(
1792
+ `[falsejs] Using Android as current operating system. coding on your phone, are you?`
1793
+ )
1794
+ )
1795
+ })
1796
+ .Else(() => {
1797
+ logger.log(
1798
+ clc.cyanBright(
1799
+ `[falsejs] Even Node.js itself doesn't know your operating system.`
1800
+ )
1801
+ )
1802
+ })
1803
+ /// I'm actually curious what more can we do with process and os?
1804
+ // lets find out. hmm process.cpuusage whats that
1805
+ const usage = process.cpuUsage()
1806
+ logger.log(
1807
+ clc.cyanBright(
1808
+ getValueOfThisStringText(
1809
+ `[falsejs] User CPU Usage: ${usage.user}`
1810
+ )
1811
+ )
1812
+ )
1813
+ logger.log(
1814
+ clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`)
1815
+ )
1816
+ // lets calculate days of the week and months and days and years and stuff
1817
+ if (isJanuary(Today))
1818
+ logger.log(clc.cyanBright(`[falsejs] The month is January`))
1819
+ if (isFebruary(Today))
1820
+ logger.log(clc.cyanBright(`[falsejs] The month is February`))
1821
+ if (isMarch(Today))
1822
+ logger.log(clc.cyanBright(`[falsejs] The month is March`))
1823
+ if (isApril(Today))
1824
+ logger.log(clc.cyanBright(`[falsejs] The month is April`))
1825
+ if (isMay(Today))
1826
+ logger.log(clc.cyanBright(`[falsejs] The month is May`))
1827
+ if (isJune(Today))
1828
+ logger.log(clc.cyanBright(`[falsejs] The month is June`))
1829
+ if (isJuly(Today))
1830
+ logger.log(clc.cyanBright(`[falsejs] The month is July`))
1831
+ if (isAugust(Today))
1832
+ logger.log(clc.cyanBright(`[falsejs] The month is August`))
1833
+ if (isSeptember(Today))
1834
+ logger.log(clc.cyanBright(`[falsejs] The month is September`))
1835
+ if (isOctober(Today))
1836
+ logger.log(clc.cyanBright(`[falsejs] The month is October`))
1837
+ if (isNovember(Today))
1838
+ logger.log(clc.cyanBright(`[falsejs] The month is November`))
1839
+ if (isDecember(Today))
1840
+ logger.log(clc.cyanBright(`[falsejs] The month is December`))
1841
+ if (isMonday())
1842
+ logger.log(clc.cyanBright(`[falsejs] Today is Monday`))
1843
+ if (isTuesday())
1844
+ logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`))
1845
+ if (isWednesday())
1846
+ logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`))
1847
+ if (isThursday())
1848
+ logger.log(clc.cyanBright(`[falsejs] Today is Thursday`))
1849
+ if (isFriday())
1850
+ logger.log(clc.cyanBright(`[falsejs] Today is Friday`))
1851
+ if (isSaturday())
1852
+ logger.log(clc.cyanBright(`[falsejs] Today is Saturday`))
1853
+ if (isSunday())
1854
+ logger.log(clc.cyanBright(`[falsejs] Today is Sunday`))
1855
+ if (isWeekend())
1856
+ logger.log(clc.cyanBright(`[falsejs] It's the weekend!`))
1857
+
1858
+ logger.log(
1859
+ clc.cyanBright(
1860
+ generalConcat(
1861
+ `[falsejs] Random happy emoji: `,
1862
+ randomHappyEmoji()
1863
+ )
1864
+ )
1865
+ )
1866
+ logger.log(
1867
+ clc.cyanBright(
1868
+ generalConcat(
1869
+ `[falsejs] Random angry emoji: `,
1870
+ randomAngryEmoji()
1871
+ )
1872
+ )
1873
+ )
1874
+ logger.log(
1875
+ clc.cyanBright(
1876
+ generalConcat(
1877
+ `[falsejs] Random food emoji: `,
1878
+ randomFoodEmoji()
1879
+ )
1880
+ )
1881
+ )
1882
+ construct({
1883
+ target: TernaryCompare,
1884
+ args: [loggingEnabled, dolphinFact, noop3]
1885
+ }).compare()()
1886
+
1887
+ // lets do something async
1888
+ if (shouldDoSomethingAsync) {
1889
+ doSomethingAsync(logger).then((l) =>
1890
+ resultOfDoingSomethingAsync(l)
1891
+ )
1892
+ }
1893
+ If(not(isNumberOddOrEven)(random, _f()))
1894
+ .Then(() => {
1895
+ logger.log(
1896
+ clc.yellow(`[falsejs] Random number is not odd or even`)
1897
+ )
1898
+ })
1899
+ .Else(() => {
1900
+ logger.log(
1901
+ pc.green(
1902
+ `[falsejs] Verified that the random number is odd or even`
1903
+ )
1904
+ )
1905
+ })
1906
+
1907
+ // is odd checks
1908
+ If(!isIsOdd(isOdd))
1909
+ .Then(() => {
1910
+ logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`))
1911
+ logger.log(clc.yellow(`[falsejs] That's weird`))
1912
+ })
1913
+ .Else(n0p3)
1914
+
1915
+ If(isIsOdd(isOddAndrew))
1916
+ .Then(() => {
1917
+ logger.log(pc.green(`[falsejs] Good for Andrew`))
1918
+ })
1919
+ .Else(noop6)
1920
+
1921
+ If(isIsOdd(isOd))
1922
+ .Then(() => {
1923
+ logger.log(
1924
+ pc.green(
1925
+ `[falsejs] Good for Monishadhanasekar (how do you pronounce that) (but bad for me because then it will throw an error if the input is not a numbr HELP)`
1926
+ )
1927
+ ) // TODO: Add pronunciaton
1928
+ })
1929
+ .Else(() => {
1930
+ /*
1931
+ logger.log(
1932
+ getValueOfThisStringText(
1933
+ clc.cyan(
1934
+ `[falsejs] ��# i s - o d B y u s i n g t h i s p a c k a g e , u s e r c a n f i n d w h e a t h e r t h e g i v e n n u m b e r i s o d d o r n o t . S i m p l y d o w n l o a d t h i s n p m p a c k a g e b y t y p i n g n p m i i s - o d . `
1935
+ )
1936
+ )
1937
+ )*/
1938
+ })
1939
+
1940
+ If(isIsOdd(isOddNum))
1941
+ .Then(() => {
1942
+ logger.log(pc.green(`[falsejs] Good for prasundas`))
1943
+ })
1944
+ .Else(noop4())
1945
+
1946
+ If(isIsOdd(isIntegerOdd))
1947
+ .Then(() => {
1948
+ logger.log(pc.green(`[falsejs] Good for hoanduy1710`))
1949
+ })
1950
+ .Else(noop2)
1951
+
1952
+ If(isIsOdd(noteven))
1953
+ .Then(() => {
1954
+ logger.log(pc.green(`[falsejs] Good for DeaSTL`))
1955
+ })
1956
+ .Else(noop3)
1957
+
1958
+ If(isIsOdd(isUneven))
1959
+ .Then(() => {
1960
+ logger.log(pc.green(`[falsejs] Good for Robin`))
1961
+ })
1962
+ .Else(noop7)
1963
+
1964
+ If(isIsOdd(numberKind.odd))
1965
+ .Then(() => {
1966
+ logger.log(pc.green(`[falsejs] Good for goten`))
1967
+ })
1968
+ .Else(noop8)
1969
+
1970
+ If(isIsOdd(isOddFaster))
1971
+ .Then(() => {
1972
+ logger.log(
1973
+ pc.green(
1974
+ `[falsejs] Bad for bvpranu97, 'cos he wanted to make a faster version but his version is literally the same LOL`
1975
+ )
1976
+ )
1977
+ })
1978
+ .Else(noop9)
1979
+
1980
+ If(isIsOdd(gabrielBrotasIsOdd.isOdd))
1981
+ .Then(() => {
1982
+ logger.log(pc.green(`[falsejs] Good for Gabriel`))
1983
+ })
1984
+ .Else(blankSpace)
1985
+
1986
+ If(isIsOdd(returnIfOddNumber))
1987
+ .Then(() => {
1988
+ logger.log(pc.green(`[falsejs] Good for iamrahulpatel`))
1989
+ })
1990
+ .Else(blankSpaceNoop)
1991
+
1992
+ If(isIsOdd(numberIsOdd))
1993
+ .Then(() => {
1994
+ logger.log(pc.green(`[falsejs] Good for Scott`))
1995
+ })
1996
+ .Else(asyncUtilNoop)
1997
+
1998
+ If(isIsOdd(isNumOdd))
1999
+ .Then(() => {
2000
+ logger.log(pc.green(`[falsejs] Good for Shivam`))
2001
+ })
2002
+ .Else(() => noopGenerator().next())
2003
+
2004
+ If(isIsOdd(isOddNumber))
2005
+ .Then(() => {
2006
+ logger.log(pc.green(`[falsejs] Good for LinkDev`))
2007
+ })
2008
+ .Else(fjNoop)
2009
+
2010
+ If(isIsOdd(isNumberOdd))
2011
+ .Then(() => {
2012
+ logger.log(pc.green(`[falsejs] Good for aliraza401`))
2013
+ })
2014
+ .Else(lodashNoop)
2015
+
2016
+ If(isIsOdd(isThisNumberOdd))
2017
+ .Then(() => {
2018
+ logger.log(pc.green(`[falsejs] Good for makogai`))
2019
+ })
2020
+ .Else(lodash_Noop)
2021
+
2022
+ // now let's run some lua code
2023
+ const myLuaScript = `
2024
+ local message = "[falsejs] Bye from Lua!"
2025
+ print(message)
2026
+ `
2027
+ const parsedLua = luaParser.parse(myLuaScript)
2028
+ if (loggingEnabled) luaInterpreter.interpret(parsedLua) // run our lua code when the program ends
2029
+
2030
+ logger.log(
2031
+ colors.red(
2032
+ vValue(
2033
+ isuseless(
2034
+ StringValueof(lowercase(`[falsejs] This is in lowercase`))
2035
+ )
2036
+ )
2037
+ )
2038
+ )
2039
+ // okay we need to calculate false
2040
+
2041
+ if (not(isAprilFools)()) {
2042
+ if (disableAprilFoolsSideEffects) {
2043
+ if (strictDisableAprilFoolsSideEffectsCheck) {
2044
+ immediateError(
2045
+ colors.red(
2046
+ "April Fools side effects are disabled but it is not April Fools",
2047
+ { errorType: ERROR.Error }
2048
+ )
2049
+ )
2050
+ return exit(one)
2051
+ } else {
2052
+ logger.log(
2053
+ clc.yellow(
2054
+ `[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`
2055
+ )
2056
+ )
2057
+ // call the _getFalse function
2058
+ var daresult = doop(
2059
+ _getFalse,
2060
+ random,
2061
+ calculateRandomLetterOrNumber(loggingEnabled),
2062
+ loggingEnabled,
2063
+ logger
2064
+ )
2065
+ result = daresult.result
2066
+ succeededAttempt = daresult.succeededAttempt
2067
+ }
2068
+ } else {
2069
+ // call the _getFalse function
2070
+ var daresult = doop( // eslint-disable-line no-redeclare
2071
+ _getFalse,
2072
+ random,
2073
+ calculateRandomLetterOrNumber(loggingEnabled),
2074
+ loggingEnabled,
2075
+ logger
2076
+ )
2077
+ result = daresult.result
2078
+ succeededAttempt = daresult.succeededAttempt
2079
+ }
2080
+ } else {
2081
+ result = _calculateFalseAprilFools()
2082
+ logger.log(pc.green(`[falsejs] Value retrieved successfully`))
2083
+ }
2084
+
2085
+ // Validation
2086
+ logger.log(clc.cyanBright(`[falsejs] Beginning validation`))
2087
+
2088
+ logger.log(
2089
+ clc.cyanBright(`[falsejs] Beginning check one of validation`)
2090
+ )
2091
+
2092
+ if (not(isRealBoolean)(result)) {
2093
+ logger.log(colors.red(`[falsejs] Result was not a boolean`))
2094
+ logger.log(colors.red(`[falsejs] Booleanifying the result`))
2095
+ // Make sure our result is always a boolean
2096
+ result = $Boolean(result)
2097
+
2098
+ if (not(isRealBoolean)(result)) {
2099
+ logger.log(
2100
+ colors.red(
2101
+ `[falsejs] Result is still not a boolean after booleanification`
2102
+ )
2103
+ )
2104
+ logger.log(
2105
+ colors.red(
2106
+ `[falsejs] Attempting to trace the source of the problem`
2107
+ )
2108
+ )
2109
+
2110
+ if (
2111
+ isRealBoolean(Boolean(result)) &&
2112
+ !isRealBoolean($Boolean(result))
2113
+ ) {
2114
+ logger.log(
2115
+ clc.yellow(
2116
+ `[falsejs] Traced the source of the problem to the package get-intrinsic by ljharb.`
2117
+ )
2118
+ )
2119
+ logger.log(
2120
+ clc.yellow(
2121
+ `[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`
2122
+ )
2123
+ )
2124
+ result = Boolean(result) // now it's a boolean
2125
+ logger.log(
2126
+ pc.green(
2127
+ `[falsejs] Check one of validation completed successfullly with one error corrected.`
2128
+ )
2129
+ )
2130
+ } else {
2131
+ logger.log(
2132
+ colors.red(`[falsejs] × Validation failed to pass.`)
2133
+ )
2134
+ throwError(
2135
+ construct({
2136
+ target: FalseJSValidationFailedToPassError,
2137
+ args: ["Validation failed to pass"]
2138
+ })
2139
+ )
2140
+ return exit(one)
2141
+ }
2142
+ } else {
2143
+ logger.log(
2144
+ pc.green(
2145
+ `[falsejs] Check one of validation completed successfullly with one error corrected.`
2146
+ )
2147
+ )
2148
+ }
2149
+ } else {
2150
+ logger.log(
2151
+ pc.green(
2152
+ `[falsejs] Check one of validation completed successfully with zero errors corrected.`
2153
+ )
2154
+ )
2155
+ }
2156
+ logger.log(
2157
+ clc.cyanBright(`[falsejs] Beginning check two of validation`)
2158
+ )
2159
+ if (isPreciselyTrue(result) && not(isAprilFools)()) {
2160
+ logger.log(
2161
+ colors.red(
2162
+ `[falsejs] Result was true and not false. Updating result to negation of result.`
2163
+ )
2164
+ )
2165
+ result = not(() => result)()
2166
+ logger.log(
2167
+ pc.green(
2168
+ `[falsejs] Check two of validation completed successfully with one error corrected.`
2169
+ )
2170
+ )
2171
+ } else {
2172
+ logger.log(
2173
+ pc.green(
2174
+ `[falsejs] Check two of validation completed successfully with zero errors corrected.`
2175
+ )
2176
+ )
2177
+ }
2178
+
2179
+ logger.log(pc.green(`[falsejs] Validation completed successfully`))
2180
+ logger.log(
2181
+ pc.green(
2182
+ `[falsejs] (There were only two validations, but they still narrowed down to make sure that the result was false.)`
2183
+ )
2184
+ )
2185
+ logger.log(
2186
+ pc.green(
2187
+ `[falsejs] False value has now been validated and calculated.`
2188
+ )
2189
+ )
2190
+
2191
+ httpServer.close(() => {
2192
+ logger.log(
2193
+ pc.green(
2194
+ `[falsejs] HTTP server closed successfully (if it ever was running)`
2195
+ )
2196
+ )
2197
+ })
2198
+ http2Server.close(() => {
2199
+ logger.log(
2200
+ pc.green(
2201
+ `[falsejs] HTTP/2 server closed successfully (if it ever was running)`
2202
+ )
2203
+ )
2204
+ })
2205
+ httpsServer.close(() => {
2206
+ logger.log(
2207
+ pc.green(
2208
+ `[falsejs] HTTPS server closed successfully (if it ever was running)`
2209
+ )
2210
+ )
2211
+ })
2212
+
2213
+ if (loggingEnabled) {
2214
+ const message = "thanks for using this package"
2215
+ var thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)))
2216
+ const thesay2 = tacoWrap(emoji100.concat(SPACE, message))
2217
+ const thesay3 = tacoWrap(
2218
+ emoji100.concat(SPACE, uwuifier.uwuifySentence(message))
2219
+ )
2220
+ if (isEqualTo(thesay, thesay2)) thesay = thesay3
2221
+ sayIt(thesay) // give our users a cute message so we can get their support
2222
+ // string interpelation
2223
+ ltc(
2224
+ `${clc.cyanBright(`[falsejs]`)} ${chalk.red(
2225
+ "Chalk"
2226
+ )}-${chalk.green("ulated")} ${chalk.yellow("the")} ${chalk.blue(
2227
+ "boolean"
2228
+ )} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`
2229
+ .concat(SPACE)
2230
+ .concat(emoji100)
2231
+ )
2232
+ if (succeededAttempt != null) {
2233
+ ltc(
2234
+ generalConcat(
2235
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2236
+ chalkbox.magenta(
2237
+ generalConcat(
2238
+ "The attempt that succeeded was attempt ",
2239
+ succeededAttempt
2240
+ )
2241
+ )
2242
+ )
2243
+ )
2244
+ fs.appendFileSync(
2245
+ ".falsejs/phone-number-log.txt",
2246
+ generalConcat("succeeded attempt: ", succeededAttempt, "\n")
2247
+ )
2248
+ }
2249
+ ltc(
2250
+ generalConcat(
2251
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2252
+ chalkbox.rainbow(`Thanks for using this package`)
2253
+ )
2254
+ )
2255
+ ltc(
2256
+ generalConcat(
2257
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2258
+ chalkbox.random(`I really appreciate it`)
2259
+ )
2260
+ )
2261
+ ltc(
2262
+ generalConcat(
2263
+ clc.cyanBright(`[falsejs]`).concat(SPACE),
2264
+ chalkbox.america(`Star the repo and follow me on GitHub: `)
2265
+ )
2266
+ )
2267
+ ltc(
2268
+ clc
2269
+ .cyanBright(`[falsejs]`)
2270
+ .concat(
2271
+ SPACE,
2272
+ chalk.underline("https://github.com/tj-commits")
2273
+ )
2274
+ )
2275
+ ltc(
2276
+ clc
2277
+ .cyanBright(`[falsejs]`)
2278
+ .concat(
2279
+ SPACE,
2280
+ clc.cyanBright(`And a very big random number is`),
2281
+ SPACE
2282
+ ) +
2283
+ `${chalkbox.rainbow(
2284
+ numberFormatter.format(
2285
+ MathRound(
2286
+ surpriseArray.reduce((v, _, i, a) => {
2287
+ return jQuery.add(v, a.getMember(i))
2288
+ })
2289
+ )
2290
+ )
2291
+ )}`
2292
+ )
2293
+ ltc(
2294
+ clc.cyanBright(
2295
+ generalConcat(
2296
+ "[falsejs] ",
2297
+ uwuifier.uwuifySentence(
2298
+ "This long line of text (in this one log) has been uwuified"
2299
+ )
2300
+ )
2301
+ )
2302
+ )
2303
+ ltc(
2304
+ clc.cyanBright(
2305
+ generalConcat(
2306
+ "[falsejs] ",
2307
+ amogus.amogusify(
2308
+ "This long line of text (in this one log) has been amogusified"
2309
+ )
2310
+ )
2311
+ )
2312
+ )
2313
+ ltc(
2314
+ clc.cyanBright(`[falsejs]`).concat(SPACE) +
2315
+ `${c.red(`False`)}${c.green(`JS`)}`
2316
+ )
2317
+ ltc(leftPad("left pad with dashes", LEFT_PAD_INPUT, "-"))
2318
+ ltc(rightPad("right pad with dashes", RIGHT_PAD_INPUT, "-"))
2319
+ }
2320
+
2321
+ if (openRandomImageOfDofleWhenDone) require("./dofle/dofle")
2322
+
2323
+ return result
2324
+ }
2325
+
2326
+ //* the exported function
2327
+
2328
+ /**
2329
+ bro the documentation for this function is in the index.d.ts file
2330
+ */
2331
+ functions.ReturnFalse = (
2332
+ enableLogging = NO,
2333
+ shouldDoSomethingAsync = NO,
2334
+ shouldDoSomethingAsyncWithIsTenThousand = NO,
2335
+ disableAprilFoolsSideEffects = NO,
2336
+ definitelyDisableAprilFoolsSideEffects = NO,
2337
+ strictDisableAprilFoolsSideEffectsCheck = YES,
2338
+ openRandomImageOfDofleWhenDone = NO
2339
+ ) => {
2340
+ if (enableLogging === YES) require("amalpkg")() // indeed XD
2341
+ // validate our values
2342
+ if (
2343
+ not(isEqualTo)(enableLogging, NO) &&
2344
+ not(isEqualTo)(enableLogging, YES)
2345
+ ) {
2346
+ immediateError("enableLogging must be yes or no", {
2347
+ errorType: ERROR.TypeError
2348
+ })
2349
+ return exit(one)
2350
+ }
2351
+ if (
2352
+ not(isEqualTo)(shouldDoSomethingAsync, NO) &&
2353
+ not(isEqualTo)(shouldDoSomethingAsync, YES)
2354
+ ) {
2355
+ immediateError("shouldDoSomethingAsync must be yes or no", {
2356
+ errorType: ERROR.TypeError
2357
+ })
2358
+ return exit(one)
2359
+ }
2360
+ if (
2361
+ not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, NO) &&
2362
+ not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, YES)
2363
+ ) {
2364
+ immediateError(
2365
+ "shouldDoSomethingAsyncWithIsTenThousand must be yes or no",
2366
+ { errorType: ERROR.TypeError }
2367
+ )
2368
+ return exit(one)
2369
+ }
2370
+ if (
2371
+ not(isEqualTo)(disableAprilFoolsSideEffects, NO) &&
2372
+ not(isEqualTo)(disableAprilFoolsSideEffects, YES)
2373
+ ) {
2374
+ immediateError("disableAprilFoolsSideEffects must be yes or no", {
2375
+ errorType: ERROR.TypeError
2376
+ })
2377
+ return exit(one)
2378
+ }
2379
+ if (
2380
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
2381
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)
2382
+ ) {
2383
+ immediateError(
2384
+ "definitelyDisableAprilFoolsSideEffects must be yes or no",
2385
+ {
2386
+ errorType: ERROR.TypeError
2387
+ }
2388
+ )
2389
+ return exit(one)
2390
+ }
2391
+ if (
2392
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
2393
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)
2394
+ ) {
2395
+ immediateError(
2396
+ "strictDisableAprilFoolsSideEffectsCheck must be yes or no",
2397
+ {
2398
+ errorType: ERROR.TypeError
2399
+ }
2400
+ )
2401
+ return exit(one)
2402
+ }
2403
+ if (
2404
+ not(isEqualTo)(openRandomImageOfDofleWhenDone, NO) &&
2405
+ not(isEqualTo)(openRandomImageOfDofleWhenDone, YES)
2406
+ ) {
2407
+ immediateError(
2408
+ "openRandomImageOfDofleWhenDone must be yes or no",
2409
+ {
2410
+ errorType: ERROR.TypeError
2411
+ }
2412
+ )
2413
+ return exit(one)
2414
+ }
2415
+ // let's say hello to our users and inform them logging enabled if it is
2416
+ if (
2417
+ isEqualTo(
2418
+ isTrue(
2419
+ { enableLogging: yesNo.parse(enableLogging) },
2420
+ "enableLogging"
2421
+ ),
2422
+ Bro.TOTALLY
2423
+ )
2424
+ ) {
2425
+ ltc(clc.cyanBright(`[falsejs] Logging enabled`))
2426
+ ltc(
2427
+ clc.cyan(
2428
+ `[falsejs]`.concat(leftPad(greet(username), LEFT_PAD_INPUT))
2429
+ )
2430
+ )
2431
+ hello({ username, age: "it's called FalseJS!" })
2432
+
2433
+ mGenbaneko.say(clc.redBright(meow()))
2434
+ require("peter") // OH NO IT'S PETER
2435
+ console.dog(emptyString)
2436
+ require("greenlantern") // Hello World
2437
+ ltc(clc.cyanBright(`[falsejs] Using Lodash version ` + _.VERSION))
2438
+ ltc(
2439
+ clc.cyanBright(
2440
+ `[falsejs] Using Underscore version ` + underscore.VERSION
2441
+ )
2442
+ )
2443
+ ltc(
2444
+ clc.cyanBright(`[falsejs] Using Axios version ` + axios.VERSION)
2445
+ )
2446
+ ltc(
2447
+ clc.cyanBright(`[falsejs] Using React version ` + React.version)
2448
+ )
2449
+ }
2450
+ // deduce a random number
2451
+ const randomNumber = add(
2452
+ MathFloor(MathRandom() * numberOneHundred),
2453
+ one
2454
+ )
2455
+ if (
2456
+ isEqualTo(
2457
+ isTrue(
2458
+ { enableLogging: yesNo.parse(enableLogging) },
2459
+ "enableLogging"
2460
+ ),
2461
+ Bro.TOTALLY
2462
+ )
2463
+ ) {
2464
+ ltc(
2465
+ clc.cyanBright(
2466
+ `[falsejs] Random number ${randomNumber} calculated`
2467
+ ) // lets inform our users if they have loggineanbled
2468
+ )
2469
+ ltc(
2470
+ clc.cyanBright(
2471
+ `[falsejs] Doing something async ${construct({
2472
+ target: TernaryCompare,
2473
+ args: [
2474
+ yesNo.parse(shouldDoSomethingAsync),
2475
+ "enabled",
2476
+ "disabled"
2477
+ ]
2478
+ }).compare()}`
2479
+ )
2480
+ )
2481
+ ltc(
2482
+ clc.cyanBright(
2483
+ `[falsejs] Doing something async with is-ten-thousand ${construct(
2484
+ {
2485
+ target: TernaryCompare,
2486
+ args: [
2487
+ yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand),
2488
+ "enabled",
2489
+ "disabled"
2490
+ ]
2491
+ }
2492
+ ).compare()}`
2493
+ )
2494
+ )
2495
+ }
2496
+ const loggingEnabled = enableLogging
2497
+ const logger = {
2498
+ log(l) {
2499
+ if (
2500
+ isEqualTo(
2501
+ trueComparison.compare(),
2502
+ yesNo.parse(loggingEnabled)
2503
+ )
2504
+ )
2505
+ ltc(l)
2506
+ }
2507
+ }
2508
+ if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
2509
+ logger.log(
2510
+ clc.yellow(
2511
+ `[falsejs] Strict disable April Fools side effects checking disabled`
2512
+ )
2513
+ )
2514
+ }
2515
+ _return(
2516
+ vretriever.retrieve(
2517
+ immo(
2518
+ isuseless(
2519
+ vValue(
2520
+ _.identity(
2521
+ underscore.identity(
2522
+ literally(
2523
+ constant(
2524
+ lodashdotconstant(
2525
+ _.constant(
2526
+ underscore.constant(
2527
+ doop(
2528
+ _calculateFalse,
2529
+ randomNumber, // random number
2530
+ yesNo.parse(enableLogging), // eanble logging
2531
+ yesNo.parse(shouldDoSomethingAsync), // async
2532
+ yesNo.parse(
2533
+ shouldDoSomethingAsyncWithIsTenThousand
2534
+ ), //async-is-ten-thousand
2535
+ yesNo.parse(
2536
+ disableAprilFoolsSideEffects
2537
+ ) &&
2538
+ yesNo.parse(
2539
+ definitelyDisableAprilFoolsSideEffects
2540
+ ),
2541
+ yesNo.parse(
2542
+ strictDisableAprilFoolsSideEffectsCheck
2543
+ ),
2544
+ yesNo.parse(
2545
+ openRandomImageOfDofleWhenDone
2546
+ )
2547
+ )
2548
+ )()
2549
+ )()
2550
+ )()
2551
+ )()
2552
+ )()
2553
+ )
2554
+ )
2555
+ )
2556
+ )
2557
+ )
2558
+ )
2559
+ )
2560
+ }
2561
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality =
2562
+ functions.ReturnFalse
2563
+
2564
+ //#endregion LOGIC
2565
+
2566
+ //#region MORE HELPERS
2567
+
2568
+ // * MORE HELPER FUNCTIONS
2569
+
2570
+ // now lets define some helper fufnctions
2571
+ // just some weaird boolean functions
2572
+
2573
+ function randomBoolean(
2574
+ biasThreshold /* biasTreshold is chance of being true */,
2575
+ logger
2576
+ ) {
2577
+ const randomValue = MathRandom()
2578
+ logger.log(
2579
+ clc.cyanBright(
2580
+ `[falsejs] Random number ${randomValue} calculated`
2581
+ )
2582
+ )
2583
+ const binaryString = jQuery
2584
+ .multiply(
2585
+ randomValue,
2586
+ (five() + five()) ** (five() + five() / five())
2587
+ )
2588
+ .toString(Two())
2589
+ const bitMask =
2590
+ five() *
2591
+ (five() + (five() - (five() / five() + five() / five()))) +
2592
+ five() / five() +
2593
+ five() / five() // the meaning of life
2594
+ const bitResult =
2595
+ parseInt(
2596
+ binaryString.slice(
2597
+ returnZero({
2598
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2599
+ loggingEnabled: logger.enableLogging
2600
+ }),
2601
+ six()
2602
+ ),
2603
+ Two()
2604
+ ) ^ bitMask
2605
+ const segment = bitResult.toString(sixteen).slice(
2606
+ returnZero({
2607
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2608
+ loggingEnabled: logger.enableLogging
2609
+ }),
2610
+ one
2611
+ )
2612
+ const mappedValue = parseInt(segment, sixteen) % Two()
2613
+ const biasedRandomValue = construct({
2614
+ target: TernaryCompare,
2615
+ args: [
2616
+ MathRandom() < biasThreshold,
2617
+ one,
2618
+ returnZero({
2619
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2620
+ loggingEnabled: logger.enableLogging
2621
+ })
2622
+ ]
2623
+ }).compare()
2624
+ const value = $.divide(add(mappedValue, biasedRandomValue), Two())
2625
+
2626
+ return (
2627
+ value >= five() / five() / (five() / five() + five() / five())
2628
+ )
2629
+ }
2630
+
2631
+ function complexBooleanWithBias(logger) {
2632
+ // Generate a pseudo-random number between 0 and 1
2633
+ const randomValue = MathRandom()
2634
+
2635
+ logger.log(
2636
+ clc.cyanBright(
2637
+ `[falsejs] Random number ${randomValue} calculated`
2638
+ )
2639
+ )
2640
+
2641
+ // Convert the random number to a high-precision string and manipulate it
2642
+ const highPrecisionString = (
2643
+ randomValue *
2644
+ (five() + five()) **
2645
+ (five() + (five() - (five() / five() + five() / five())))
2646
+ ).toFixed(zr0())
2647
+
2648
+ // Perform a base conversion
2649
+ const baseConverted = parseInt(highPrecisionString, ten).toString(
2650
+ (five() + (five() / five() + five() / five())) * five() +
2651
+ five() / five()
2652
+ )
2653
+
2654
+ // Calculate a hash-like value using trigonometric functions
2655
+ const trigValue = $.multiply(
2656
+ parseFloat(
2657
+ add("0.", baseConverted),
2658
+ (five() + (five() / five() + five() / five())) * five() +
2659
+ five() / five()
2660
+ ),
2661
+ PI,
2662
+ Two()
2663
+ )
2664
+
2665
+ // Determine if this value is close to a specific fraction
2666
+ const isCloseToFraction =
2667
+ MathAbs(
2668
+ trigValue -
2669
+ five() / five() / (five() / five() + five() / five())
2670
+ ) <
2671
+ five() / five() / (five() + five()) +
2672
+ (five() - (five() / five() + five() / five())) /
2673
+ (five() * (five() * (five() - five() / five())))
2674
+
2675
+ // Generate a secondary random number with a different scale
2676
+ const secondaryRandom = $.multiply(
2677
+ MathRandom(),
2678
+ (five() + five()) **
2679
+ (five() - (five() / five() + five() / five()))
2680
+ )
2681
+
2682
+ // Check if the secondary random number is a prime number
2683
+ const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger)
2684
+
2685
+ // Generate a bias value (6% chance of true)
2686
+ const biasThreshold = five() / five() / (five() + five())
2687
+ const biasRandom = MathRandom() < biasThreshold ? zr0() : one
2688
+
2689
+ // Combine the results using weighted averaging
2690
+ const combinedResult = $.divide(
2691
+ isCloseToFraction + isPrime + biasRandom,
2692
+ three()
2693
+ )
2694
+
2695
+ // Return boolean based on the final weighted result
2696
+ return (
2697
+ combinedResult >=
2698
+ five() / five() / (five() / five() + five() / five())
2699
+ )
2700
+ }
2701
+
2702
+ function weirdestBoolean(logger) {
2703
+ // Step 1: Generate a pseudo-random floating-point number
2704
+ const randomValue = MathRandom()
2705
+
2706
+ // Step 2: Create a string representation of the random number in base-36
2707
+ const base36String = (
2708
+ randomValue *
2709
+ (five() + five()) **
2710
+ ((five() - (five() / five() + five() / five())) *
2711
+ (five() - five() / five()))
2712
+ )
2713
+ .toFixed(zr0())
2714
+ .toString(
2715
+ (five() + (five() / five() + five() / five())) * five() +
2716
+ five() / five()
2717
+ )
2718
+
2719
+ // Step 3: Create a hash-like transformation by summing ASCII values of characters
2720
+ var asciiSum = zr0()
2721
+ for (const char of base36String) {
2722
+ asciiSum += char.charCodeAt(zr0())
2723
+ }
2724
+
2725
+ // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
2726
+ const bitManipulated =
2727
+ (asciiSum ^
2728
+ ((five() / five() + five() / five()) *
2729
+ (five() + five()) ** (five() - five() / five()) +
2730
+ (five() - (five() / five() + five() / five())) *
2731
+ (five() + five()) **
2732
+ (five() - (five() / five() + five() / five())) +
2733
+ (five() / five()) *
2734
+ (five() * (five() * (five() - five() / five()))) +
2735
+ (five() - (five() / five() + five() / five())) *
2736
+ (five() + five()))) &
2737
+ (five() *
2738
+ (five() *
2739
+ (five() +
2740
+ five() +
2741
+ (five() / five() / (five() + five()) +
2742
+ five() / five() / (five() + five()))))) // XOR and mask to get a byte
2743
+
2744
+ // Step 5: Convert the result to a binary string and calculate a checksum-like value
2745
+ const binaryString = bitManipulated
2746
+ .toString(Two())
2747
+ .padStart(eightToolkit.constants.EIGHT, "0")
2748
+ const checksum = Array.from(binaryString).reduce(
2749
+ (acc, bit) => acc + parseInt(bit, ten),
2750
+ zr0()
2751
+ )
2752
+
2753
+ // Step 6: Use a matrix of numbers to obscure the logic
2754
+ const someNumbers = [
2755
+ Two(),
2756
+ three(),
2757
+ five(),
2758
+ seven(),
2759
+ eleven(),
2760
+ thirteenResolver(),
2761
+ integer17(),
2762
+ nineteenify(logger.enableLogging),
2763
+ TWENTY_THREE,
2764
+ TWENTY_THREE + six()
2765
+ ]
2766
+ const matrixIndex = checksum % someNumbers.length
2767
+ const primeValue = someNumbers[matrixIndex]
2768
+
2769
+ // Step 7: Generate a complex random number using trigonometric functions
2770
+ const trigValue = $.multiply(
2771
+ $.divide($.multiply(primeValue, PI), four()),
2772
+ (five() + five()) **
2773
+ (five() - (five() / five() + five() / five())) /
2774
+ (five() / five() + five() / five())
2775
+ )
2776
+ const isAboveThreshold =
2777
+ trigValue >
2778
+ (five() + five()) **
2779
+ (five() - (five() / five() + five() / five())) /
2780
+ (five() / five() + five() / five()) // Arbitrary threshold
2781
+
2782
+ // Step 8: Introduce an additional layer of randomness with bias
2783
+ const bias =
2784
+ MathRandom() <
2785
+ (five() - five() / five()) / five() +
2786
+ five() / (five() * (five() * (five() - five() / five()))) -
2787
+ five() /
2788
+ five() /
2789
+ (five() + five()) **
2790
+ (five() * (five() - five() / five() - five() / five()) +
2791
+ five() / five()) -
2792
+ five() / five() / (five() + five())
2793
+ ? one
2794
+ : zr0() // 75% chance of 1
2795
+
2796
+ // Step 9: Combine results using a complex formula
2797
+ const weirdBoolean = (isAboveThreshold ? one : zr0()) ^ bias // XOR operation
2798
+
2799
+ // Step 10: Calculate complex boolean with bias from other function
2800
+ const complexBoolean = complexBooleanWithBias(logger)
2801
+
2802
+ // Step 11: Calculate random boolean with bias from other function
2803
+ const randomBool = randomBoolean(
2804
+ (five() - five() / five()) / five() +
2805
+ five() / (five() * (five() * (five() - five() / five()))) -
2806
+ five() /
2807
+ five() /
2808
+ (five() + five()) **
2809
+ (five() * (five() - five() / five() - five() / five()) +
2810
+ five() / five()) -
2811
+ five() / five() / (five() + five()) / (five() + five()), logger)
2812
+
2813
+ // Step 12: Add them together
2814
+ const sum = weirdBoolean + complexBoolean + randomBool
2815
+
2816
+ // Step 13: Randomly add one to it
2817
+ const sumWhichMayBeSuccessed =
2818
+ MathRandom() < (five() / five() / (five() / five() + five() / five())) ? successor(sum) : sum
2819
+
2820
+ // Step 14: Round down or up
2821
+ const finalBooleanNotNegated = $.equals(
2822
+ MathFloor(sumWhichMayBeSuccessed) % Two(),
2823
+ zr0()
2824
+ )
2825
+
2826
+ // Step 15: Negate finalBoolean
2827
+ const finalBooleanComparison = construct({
2828
+ target: TernaryCompare,
2829
+ args: [finalBooleanNotNegated, _f(), t()]
2830
+ })
2831
+
2832
+ return finalBooleanComparison.compare()
2833
+ }
2834
+
2835
+ // and maybe some mind-blowing alphabet function
2836
+
2837
+ function printTheAlphabetSeparatedBySpaces() {
2838
+ var s = emptyString
2839
+
2840
+ function one() {
2841
+ s += "a "
2842
+ return {
2843
+ get p() {
2844
+ s += "e "
2845
+ return {
2846
+ valueOf: function () {
2847
+ s += "g "
2848
+ return {}
2849
+ },
2850
+ toString: function () {
2851
+ s += "h "
2852
+ return _f()
2853
+ }
2854
+ }
2855
+ },
2856
+ set p(x) {
2857
+ s += "k l m n o p q r s t u v w x y z"
2858
+ }
2859
+ }
2860
+ }
2861
+
2862
+ function Two() {
2863
+ s += "b "
2864
+ return {
2865
+ toString: function () {
2866
+ s += "c "
2867
+ return {}
2868
+ },
2869
+ valueOf: function () {
2870
+ s += "d "
2871
+ return "p"
2872
+ }
2873
+ }
2874
+ }
2875
+
2876
+ function three() {
2877
+ s += "f "
2878
+ return {
2879
+ valueOf: function () {
2880
+ s += "i "
2881
+ return {}
2882
+ },
2883
+ toString: function () {
2884
+ s += "j "
2885
+ return _f()
2886
+ }
2887
+ }
2888
+ }
2889
+ one()[Two()] += three()
2890
+ ltc(s)
2891
+ }
2892
+
2893
+ // Helper function to check if a number is prime
2894
+ function isPrimeNumber(num, logger) {
2895
+ if (num <= one) return _f()
2896
+ if (num <= three()) return t()
2897
+ if (
2898
+ $.equals(
2899
+ num % Two(),
2900
+ returnZero({
2901
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2902
+ loggingEnabled: logger.enableLogging
2903
+ })
2904
+ ) ||
2905
+ $.equals(
2906
+ num % three(),
2907
+ returnZero({
2908
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2909
+ loggingEnabled: logger.enableLogging
2910
+ })
2911
+ )
2912
+ ) {
2913
+ return _f()
2914
+ }
2915
+ var i = five()
2916
+ while ($.multiply(i, i) <= num) {
2917
+ if (
2918
+ $.equals(
2919
+ num % i,
2920
+ returnZero({
2921
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2922
+ loggingEnabled: logger.enableLogging
2923
+ })
2924
+ ) ||
2925
+ num %
2926
+ $.equals(
2927
+ $.add(i, Two()),
2928
+ returnZero({
2929
+ method: ZeroCalculationMethod.CreashaksOrganzine,
2930
+ loggingEnabled: logger.enableLogging
2931
+ })
2932
+ )
2933
+ ) {
2934
+ return _f()
2935
+ }
2936
+ i = $.add(i, six())
2937
+ }
2938
+ return tVal
2939
+ }
2940
+
2941
+ /**
2942
+ * Converts the input value to a string representation.
2943
+ *
2944
+ * @param {any} value - The value to be converted to a string.
2945
+ * @returns {string} - The string representation of the input value.
2946
+ */
2947
+ function StringValueof(value) {
2948
+ return value.toString()
2949
+ }
2950
+
2951
+ //#endregion MORE HELPERS
2952
+ //#region ISFALSE FUNCTION
2953
+ // a function to check if something is false thati s used by the function to check if something is false
2954
+ function couldThisCouldItBeFalse(
2955
+ aValueThatMightBeTheBooleanValueFalseButIDKYet
2956
+ ) {
2957
+ const SIXTY_NINE = $.multiply(TWENTY_THREE, three())
2958
+ const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet
2959
+ if (specimen == undefined()) return Bro.NOWAY // noway its false if its undefined
2960
+ if (isOne(specimen)) return _f()
2961
+ if (isTrue({ specimen }, "specimen")) return _f()
2962
+ if (isNegativeZero({ specimen }, "specimen")) return _f()
2963
+ if (specimen === SIXTY_NINE) return _f()
2964
+ if (is(specimen).thirteen()) return _f()
2965
+ return isPreciselyEqualToFalse(specimen)
2966
+ }
2967
+ // a function to check if something is false
2968
+ variableHolder._FalseJSIsFalse = function is_This_Value_false(
2969
+ v,
2970
+ loggingEnabled
2971
+ ) {
2972
+ if (!isRealBoolean(loggingEnabled))
2973
+ loggingEnabled = !(loggingEnabled === NO)
2974
+ const value = v // alts are always good
2975
+ const isV = is(v) // isthirteen
2976
+ const garbage = useGarbage() // use some garbage
2977
+ const isgarbage =
2978
+ not(isRealBoolean)(garbage) && isEqualTo(v, garbage)
2979
+ const cond =
2980
+ !isgarbage &&
2981
+ v !== one &&
2982
+ v !== Two() &&
2983
+ v !== three() &&
2984
+ v !== four() &&
2985
+ v !== five() &&
2986
+ v !== six() &&
2987
+ v !== seven() &&
2988
+ v !== eightToolkit.constants.EIGHT &&
2989
+ v !== ninev9() &&
2990
+ v !== ten &&
2991
+ v !== eleven() &&
2992
+ v !== twelve() &&
2993
+ v !== thirteenResolver() &&
2994
+ v !== fourteen &&
2995
+ v !== fifteen &&
2996
+ v !== fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn &&
2997
+ v !== sixteen &&
2998
+ v !== integer17() &&
2999
+ v !== Eighteen() &&
3000
+ v !== nineteenify(loggingEnabled) &&
3001
+ v !== numbertwenty(loggingEnabled) &&
3002
+ v !== always21() &&
3003
+ v !== twentytwo &&
3004
+ v !== TWENTY_THREE &&
3005
+ v !== parseInt(theNumberSeven) &&
3006
+ v !== theNumberSeven &&
3007
+ !isUndefined(v) &&
3008
+ !isNull(v) &&
3009
+ !isNil(v) &&
3010
+ isUnnull(v) &&
3011
+ not(isNil)(v) &&
3012
+ !isEqual(value, NO) &&
3013
+ !isEqual(value, YES) &&
3014
+ !isEqualTo(value, NO) &&
3015
+ !isEqualTo(value, YES) &&
3016
+ !couldThisCouldItBeTrue(v) &&
3017
+ !isNaN(v) &&
3018
+ !isNegativeInfinity(v) &&
3019
+ !isNegativeZero2(v) &&
3020
+ !is0_2.isNegativeZero(v) &&
3021
+ !isNegativeZero(v) &&
3022
+ !isPositiveZero(v) &&
3023
+ !is0_2.isPositiveZero(v) &&
3024
+ !is0(v) &&
3025
+ !is0_2.isZero(v) &&
3026
+ !zerosurgeIsZero(v, loggingEnabled) &&
3027
+ !is1(v) &&
3028
+ !isTwo(v) &&
3029
+ !isThree(v) &&
3030
+ !isFour(v) &&
3031
+ !isFive(v) &&
3032
+ !isSix(v) &&
3033
+ !isSeven(v) &&
3034
+ !eightToolkit.isEight(v) &&
3035
+ !isV.thirteen() &&
3036
+ !isHundred(v) &&
3037
+ !isThousand(v) &&
3038
+ !isTenThousand(v) &&
3039
+ !isEqTenThousand(v) &&
3040
+ !isNumber(v) &&
3041
+ !isActualNumber(v) &&
3042
+ !isIsOdd(v) &&
3043
+ !isOd(v) &&
3044
+ v !== t() &&
3045
+ v === _f() &&
3046
+ v === returnFalse() &&
3047
+ isEqualTo(v, _f()) &&
3048
+ isEqual(v, _f()) &&
3049
+ _.isEqual(v, _f()) &&
3050
+ underscore.isEqual(v, _f()) &&
3051
+ strictlyEqual(v, _f()) &&
3052
+ v === _f() &&
3053
+ v === FALSE &&
3054
+ couldThisCouldItBeFalse(v)
3055
+
3056
+ return cond
3057
+ }
3058
+
3059
+ //#region PLUGINS
3060
+ variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
3061
+ // Inject into jQuery
3062
+ jQuery.False =
3063
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality
3064
+ jQuery.isFalse = variableHolder._FalseJSIsFalse
3065
+ }
3066
+
3067
+ variableHolder._FalseJSExpressMiddleware = function expressMiddleware(
3068
+ req,
3069
+ _res,
3070
+ next
3071
+ ) {
3072
+ // Add our function to the request object
3073
+ req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
3074
+ req.isFalse = variableHolder._FalseJSIsFalse
3075
+ next() // Continue to the next middleware or route
3076
+ }
3077
+
3078
+ //#endregion PLUGINS
3079
+
3080
+ /*exports.Yes = literally(YES)
3081
+ exports.No = literally(NO)*/
3082
+ // *EVEN MORE HELPERS
3083
+ //#region EVEN MORE HELPERS
3084
+
3085
+ function getNo() {
3086
+ const NO = require("no/dist/main")
3087
+ const NoComponent = () => {
3088
+ return React.createElement("div", Null(), NO)
3089
+ }
3090
+ const noElement = React.createElement(NoComponent)
3091
+ const html = cheerio
3092
+ .load(ReactDOMServer.renderToString(noElement))("div")
3093
+ .toString()
3094
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`)
3095
+ dom.window.document.body.innerHTML = html
3096
+ const bodyContent =
3097
+ dom.window.document.querySelector("body").innerHTML
3098
+ return striptags(bodyContent)
3099
+ }
3100
+
3101
+ function getValueOfThisStringText(text) {
3102
+ return text
3103
+ }
3104
+
3105
+ function calculateRandomLetterOrNumber(loggingEnabled) {
3106
+ const uniqueId = uuid.v4()
3107
+ const uniqueId2 = crypto.randomUUID()
3108
+ const dashlessUUID = uniqueId.replaceAll("-", emptyString)
3109
+ const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString)
3110
+ const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2)
3111
+ const randomCharacter = StringCharAt.call(
3112
+ combinedUUID,
3113
+ $.add(
3114
+ MathFloor(
3115
+ $.multiply(MathRandom(), getStringLength(combinedUUID))
3116
+ ),
3117
+ one
3118
+ )
3119
+ )
3120
+ if (loggingEnabled) {
3121
+ ltc(
3122
+ clc.cyanBright(
3123
+ `[falsejs] Random character calculated: ${randomCharacter}`
3124
+ )
3125
+ )
3126
+ }
3127
+ return randomCharacter
3128
+ }
3129
+
3130
+ //#endregion EVEN MORE HELPERS
3131
+
3132
+ //#region RETURN FALSEJS
3133
+
3134
+ class falsejs {
3135
+ static False =
3136
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality
3137
+ static isFalse = variableHolder._FalseJSIsFalse
3138
+ static injectIntojQuery = variableHolder._FalseJSjQueryPlugin
3139
+ static expressMiddleware = variableHolder._FalseJSExpressMiddleware
3140
+
3141
+ constructor() {
3142
+ console.warn(c.yellow(`[falsejs] you aren't really supposed to create an instance of falsejs with new or construct(), but whatever`))
3143
+ this.False = falsejs.False
3144
+ this.isFalse = falsejs.isFalse
3145
+ this.injectIntojQuery = falsejs.injectIntojQuery
3146
+ this.expressMiddleware = falsejs.expressMiddleware
3147
+ }
3148
+ }
3149
+
3150
+ return falsejs
3151
+ })
3152
+ //#endregion RETURN FALSEJS
3153
+ }
3154
+ }
3155
+ }
3156
+ }