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