@falsejs/falsejs 3.1.1 → 3.2.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/dist/index.js CHANGED
@@ -1,1747 +1,1863 @@
1
- #! WELCOME TO FALSEJS, I AM YOUR FRIEND, TJ-COMMITS!!!!!!!!!!!!!!!!!!
2
- "use strict";
3
- /**!
4
- * License
5
- * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
6
- * Copyright 10x'ly Made and other contributors <https://10xEngineersQualityProgramming.github.io>
7
- * Released under MIT license <https://opensource.org/license/mit>
8
- * made with HEAVY BLACK HEART U+2764
9
- * Thanks to biome for being a good formatter + linter
10
- */
11
- /** biome-ignore-all lint/correctness/noPrecisionLoss: 5555555555555555555555 */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- // -----------------------------------------
14
- /*
15
- ABOUT FALSEJS
16
- FalseJS is a library created by tj-commits to return false.
17
- */
18
- /**
19
- *
20
- * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
21
- *
22
- *
23
- * I didn't choose the 10x life, the 10x life chose me
24
- *
25
- *
26
- * Thanks everyone who made the packages for this
27
- *
28
- * As of 3.1.0, these are all the npm package creators: Thanks to 87f-, _immo, abai, aburleigh, ahsm, alexeyraspopov, aliraza401, amal_nj, animate-object, aprixia, ardalanamini, arkanic, benaston, bojand, broofa, bvpranu97, cbrandolino, chuuuuu, cj*, corysimmons, cowboy, dabh, dak0rn, david, deastl, dhurlburtusa, dmitri, donavon, doowb, dragonfire535, endless, ergusto, ericnorris, esailija, euank, eyy, fb, fizzbuzz-npm, florianboudot, gabrieleds, gbrotas, gibson042, gillstrom, goten, hanhan9449, hemanth, hendrysadrak, himynameisdave, hissvard, hoanduy1710, hughfdjackson, huynguyenn-vga, iamrahulpatel, inikulin, ionicabizau, ivoputzer, jackdcrawford, jacobwarduk, jaio, james-work-account, jashkenas, jdalton, jeremylichtman, jezenthomas, jmar777, jncmark, johno, jonschlinkert, joshhunt, jugglinmike, k, kane-thornwyrd, karasube, kgryte, kikobeats, laffed, lamansky, leemm, letsgetrandy, link-dev, ljharb, lordoftrident, lsabbagh, makogai, mappum, mars-mb, mathias, mattdesl, matthewh, maxime.julian, medikoo, metaa, microsoft1es, mohayonao, moniaarthisathya, monishadhanasekar, moons14, mzabriskie, nerwind93, nhedger, nico_nj, nijikokun, nodiff, nopersonsmodules, npm, npm-support, nswbmw, olliez-mods, onatm, onesneakymofo, oxyc, parshap, pethu, phillipalexander, piuccio, prasundas, priyanshurav, r33int, radiovisual, rajalakshmi-npm, reidnpmmore, reversodev, rivalnick, robertmarsal, robims, royleibo, rtorr, ryanblock, ryotah, s-lambert, sawcce, schotsl, segment-admin, shinnn, shivambaghla, sindresorhus, sir_wernich, skibidi-toilet-hacker, skippednote, skylabist, slmjkdbtl, song940, stdlib-bot, stevemao, stevenvachon, supershabam, taitulism, textality, thebitlink, thomaslindstr_m, thomaslomas, tiaanduplessis, timmyrs, timothygu, tj-commits, tmcw, types, uniquecolesmith, vladimirozornin, vtheskeleton, wesgarland, yoshuawuyts, yyx990803, and zrrrzzt for making NPM packages.
29
- *
30
- * The credits are above
31
- */
32
- // stuff for performance ends here.
33
- const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire;
34
- if (isComputerOnFire() && (1 & (3 << 2)) > 4) {
35
- /** 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. */
36
- throw new Error("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")();
40
- require("-");
41
- /** Whatev is a very useful package, that can be used to get the value of true. */
42
- const whatev = require("whatev");
43
- const whatevTrueValue = (whatev.fn() === whatev.string) === whatev.object.whatev;
44
- require("get-member")();
45
- require("array-get-member")();
46
- // @ts-expect-error
47
- global.jQuery = require("jquery");
48
- require("jquery-basic-arithmetic-plugin");
49
- require("console.dog");
50
- require("user")();
51
- let COMPATIBILITY_MODE;
52
- (function (COMPATIBILITY_MODE) {
53
- COMPATIBILITY_MODE["NONE"] = "none";
54
- COMPATIBILITY_MODE["IE5"] = "ie5";
55
- COMPATIBILITY_MODE["NETSCAPE"] = "netscape";
56
- COMPATIBILITY_MODE["OPERA_PRESTO"] = "opera_presto";
57
- })(COMPATIBILITY_MODE || (COMPATIBILITY_MODE = {}));
58
- (function (factory) {
59
- /** Export everything. */
60
- module.exports.default = factory(jQuery);
61
- })(function ($) {
62
- // biome-ignore lint/suspicious/noRedundantUseStrict: We need double strict mode because we wanna be SUPER strict.
63
- "use strict";
64
- const jQuery = $;
65
- const variableHolder = {};
66
- const GetIntrinsic = require("get-intrinsic"); // cache our intrinsics
67
- const _ = require("lodash"); // every project needs lodash
68
- const underscore = require("underscore"); // underscore.js. the predecessor of lodash.
69
- const React = require("react"); // the hype framework everyone uses for some reason
70
- const ReactDOMServer = require("react-dom/server"); // part of react
71
- const cheerio = require("cheerio"); // cheerio!
72
- const { JSDOM } = require("jsdom"); // a fake dom
73
- const striptags = require("striptags"); // strip tags!
74
- const chalk = require("chalk"); // color is the best!*/
75
- var clc = require("cli-color"); // another color module
76
- const colors = require("@colors/colors/safe"); // colors
77
- const chalkbox = require("chalkbox"); // with a box
78
- const c = require("ansi-colors"); // nothing wrong with even more colors
79
- const pc = require("picocolors"); // maybe even more colors libraries
80
- const axios = require("axios"); // so we can send requests
81
- const { generatePhoneNumber } = require("phone-number-generator-js"); // generate some phone numbers
82
- const emptyString = require("empty-string"); // an empty string
83
- const n0p3 = require("n0p3"); // a noop
84
- const noop2 = require("noop2"); // nothing wrong with another noop
85
- const noop3 = require("noop3"); // nothing wrong with yet another noop
86
- const noop4 = require("noop4"); // noop factory
87
- const noop6 = require("noop6"); // again, nothing wrong with more noops
88
- const noop7 = require("noop7"); // i think you see where i'm going
89
- const noop8 = require("noop8"); //another...
90
- const noop9 = require("noop9"); // the ninth
91
- const noop10 = require("noop10"); // 10x with noops lezz go
92
- const { noop, doop } = require("yanoop"); // yanoop.
93
- const asyncUtilNoop = require("async.util.noop"); // i think you see where i'm going
94
- const blankSpaceFullObject = require("blank-space"); // this exports two noops
95
- const blankSpaceNoop = blankSpaceFullObject.noop; // noop one
96
- const blankSpace = blankSpaceFullObject._; // and noop two
97
- const noopGenerator = require("co-noop"); // a noop generator!
98
- const fjNoop = require("fj-noop").FUNC; // fj noop
99
- const lodashNoop = require("lodash.noop"); // lodash noop
100
- const lodash_Noop = require("lodash._noop"); // another lodash noop!
101
- const noOp = require("no-op"); // noop with a dash
102
- const nodeNoop = require("node-noop").noop; // a noop
103
- const noopUtility = require("@stdlib/utils-noop"); // the most practical
104
- const trueNoop = require("true-noop"); // one of few true noops.
105
- const noopFn = require("noop-fn"); // it ends with a fn
106
- const noopaam = require("noopaam"); // noopaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmm
107
- const nop = require("nop"); // just nop. what a funny name
108
- const es2015Noop = require("es2015-noop"); // the future is here
109
- const kgryteNoop = require("@kgryte/noop"); // how do you pronounce this guy's name
110
- const blackHole = require("a-black-hole"); // OH NO WE ARE GOING IN TO THE BLACK HOLE
111
- const infinoop = require("infinoop"); // noop. for ever. for. ev. er. FOR. EV. ER
112
- const mNoop = require("m.noop").noop; // the only other true noop i could find besides true-noop itself
113
- const ahsmNoop = require("@ahsm/noop"); // ahsm noop
114
- const { noop: qcCoreNoop, nullFn: Null } = require("qc-core"); // the qc core
115
- const nooop = require("nooop"); // someone put too many o's
116
- const ryotahNoop = require("@ryotah/noop"); // ryotah made a noop
117
- const zodashNoop = require("@zodash/noop").noop; // zodash made a noop
118
- const jacobZuma = require("jacob-zuma"); // south african flavored noop
119
- const onceNoopFactory = require("once-noop/factory"); // make a noop which can only be called once
120
- const noopTS = require("noop-ts").default; // noop ts
121
- const voidFn = require("voidfn"); // void fn
122
- const noopExec = require("noop-exec"); // exec
123
- const attempt = require("attempt-statement"); // has more features than trycatch statement
124
- const assert = require("assert-fn"); // more simple and elegant than built in node:assert
125
- const hasSelfEquality = require("has-self-equality"); // most things have self equality but lets make sure
126
- const hasNoSelfEquality = require("has-no-self-equality"); // again self equality
127
- 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"
128
- const isOne = require("is-one"); // the base is- function
129
- const isTen = require("is-ten"); // 10x the is-one
130
- const isHundred = require("is-hundred"); // 10x the is-ten
131
- const isThousand = require("is-thousand").default;
132
- const isTenThousand = require("is-ten-thousand"); // 100x the is-hundred
133
- const isEqTenThousand = require("is-eq-ten-thousand"); // is-eq-ten-thousand
134
- const isTwo = require("is-two").isTwo; // the successor of one
135
- const isThree = require("is-three"); // the successor of two
136
- const isNegativeZero = require("is-negative-zero"); // isNegativeZero
137
- // blank space for no reason
138
- const isNegativeZero2 = require("negative-zero"); // can't hurt to have another negative zero checker
139
- const isPositiveZero = require("positive-zero"); // positive zero
140
- const isTrue = require("is-true"); // true
141
- const isPreciselyTrue = require("is-precisely-true"); // real true
142
- const is = require("is-thirteen"); // comparison-against-twelve-free environment
143
- const isThreeHundred = require("is-three-hundred"); // is-three-hundred
144
- const isNumber = require("is-number"); // jonschlinkert
145
- const isActualNumber = require("is-actual-number"); // my is-number
146
- const isIsOdd = require("is-is-odd"); // isIsOdd
147
- const isOdd = require("is-odd"); // why does everyone think this is the dumbest package ever. its not
148
- const isOd = require("is-od"); // forget a d
149
- const isOddAndrew = require("is-odd-andrew"); // isOddAndrew
150
- const isOddNum = require("is-odd-num"); // another odd checker
151
- const isIntegerOdd = require("is-integer-odd"); // another!!!!
152
- const noteven = require("not-even"); // not even
153
- const isUneven = require("is-uneven"); // whysomany
154
- const numberKind = require("number-kind"); // this exports two fns!
155
- const isOddFaster = require("is-odd-faster").isOdd; // is Odd but faster
156
- const gabrielBrotasIsOdd = require("gabriel-brotas-is-odd"); // gabriel made an is odd
157
- const returnIfOddNumber = require("return-if-odd-number"); // if odd number
158
- const numberIsOdd = require("number-is-odd"); // check if a number is odd
159
- const isNumOdd = require("is-num-odd"); // check if a num is odd
160
- const isOddNumber = require("is-odd-number"); // check if a od is number
161
- const isNumberOdd = require("is_number_odd"); // check if a number is odd
162
- const isThisNumberOdd = require("is-this-number-odd"); // check if a this is number odd
163
- const isRealBoolean = require("is-real-boolean"); // BOOLEANS
164
- const add = require("examplebyraji"); // a package
165
- const cowsay = require("cowsay"); // let's say stuff
166
- const lolcatjs = require("lolcatjs"); // the rainbow i tastes it
167
- const owoifyx = require("owoifyx").default; // UwU
168
- const Uwuifier = require("uwuifier").default; // UwU (x2)
169
- const luaParser = require("luaparse"); // parse lua
170
- const luaInterpreter = require("lua-interpreter"); // interpret lua
171
- const exit = require("exit"); // 10x better than process.exit
172
- const appendType = require("append-type"); // PUT THE TYPE NEXT TO A VALUE!!
173
- const concatenater = require("concatenater"); // CONCATENATE STUFF!!!
174
- const generalConcat = require("general-concat"); // GENERALLY CONCATENATE STUFF!!!
175
- const lowercase = require("convert-to-lower-case"); // CONVERT TO LOWER CASE
176
- const construct = require("construct-new"); // better than the new keyword
177
- const $Promise = require("bluebird");
178
- const $Array = GetIntrinsic("%Array%");
179
- const $Boolean = GetIntrinsic("%Boolean%");
180
- const $Date = GetIntrinsic("%Date%");
181
- const $String = GetIntrinsic("%String%");
182
- const MathRandom = GetIntrinsic("%Math.random%");
183
- const MathFloor = GetIntrinsic("%Math.floor%");
184
- const MathRound = GetIntrinsic("%Math.round%");
185
- const PI = GetIntrinsic("%Math.PI%");
186
- const MathAbs = GetIntrinsic("%Math.abs%");
187
- const MathSqrt = GetIntrinsic("%Math.sqrt%");
188
- const MathSin = GetIntrinsic("%Math.sin%");
189
- const MathCos = GetIntrinsic("%Math.cos%");
190
- const StringCharAt = GetIntrinsic("%String.prototype.charAt%");
191
- const _calculateFalseAprilFools = require("../aprilFoolsCalculateFalse"); // april fools
192
- const couldThisCouldItBeTrue = require("@falsejs/is-true-helper"); // check if a value is true
193
- const { returnFalse, isFalse: isPreciselyEqualToFalse } = require("@falsejs/core-ish"); // some core ish functions
194
- const isJanuary = require("is-january"); // month 1
195
- const isFebruary = require("is-february"); // month 2
196
- const isMarch = require("is-march"); // month 3
197
- const isApril = require("is-april"); // month 4
198
- const isMay = require("is-may"); // month 5
199
- const isJune = require("is-june"); // month 6
200
- const isJuly = require("is-july"); // month 7
201
- const isAugust = require("is-august"); // month 8
202
- const isSeptember = require("is-september"); // month 9
203
- const isOctober = require("is-october"); // month 10
204
- const isNovember = require("is-november"); // month 11
205
- const isDecember = require("is-december"); // month 12
206
- const isMonday = require("is-monday"); // day of the week 1 according to international standard, day of the week 2 according to the us
207
- const isTuesday = require("is-tuesday"); // day of the week 2 according to international standard, day of the week 3 according to the us
208
- const isWednesday = () => require("is-wednesday")(new $Date()); // day of the week 3 according to the international standard, day of the week 4 according to the us
209
- // now we gotta sing rebecca black's song
210
- const isThursday = require("is-thursday"); /// Yesterday was thursdayyyy
211
- const isFriday = require("is-friday"); // tooo-ddadayy is friday! we so ecited
212
- const isSaturday = require("is-saturday"); // tomorrow will be saturday
213
- const isSunday = require("is-sunday"); // and sunday comes after
214
- const isWeekend = require("is-weekend"); // looking forward to the weeeeekeend
215
- const zr0 = require("integer-value-positive-zero"); // get the number zero, less 10x
216
- const { returnZero: returnZero_, ZeroCalculationMethod, isZero: zerosurgeIsZero } = require("zerosurge"); // get the number zero, but 10x'er
217
- const returnZero = returnZero_;
218
- /** LETS GET SOME NUMBERS */
219
- const one = require("the-number-one").default; // get the number one
220
- const Two = require("two"); // get number 2
221
- const three = require("numeric-constant-three"); // get number 3
222
- const four = require("always-four"); // number 4
223
- const five = require("five"); // num5
224
- const six = require("number-six"); // n6
225
- const seven = require("se7en"); // 7
226
- const eightToolkit = require("eight-toolkit"); // it's 8, in a toolkit!
227
- 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)
228
- const ten = require("the-number-ten"); // 10
229
- const eleven = require("eleven"); // 11
230
- const twelve = require("tw12ve"); // 12
231
- const thirteenResolver = require("always-thirteen"); // 13
232
- const fourteen = require("fourteen"); // 14
233
- const fifteen = require("number-fifteen"); //15
234
- const fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn = require("fifteen-point-eight-three-five-two-six-six-eight-two-and-so-on"); //-this-can-be-rounded-to-sixteen
235
- const sixteen = require("sixteen-constant"); //thisisthenumbersixteenomg161616
236
- const integer17 = require("seventeen-integer"); //17
237
- const Eighteen = require("eighteen-positive-number-interactions"); // Interact positively with eighteen
238
- const nineteenify = require("nineteenify"); // Hey there what our you doing? *nineteenifies*
239
- const numbertwenty = require("numbertwenty"); // 20
240
- const always21 = require("always-21"); // 21
241
- const twentytwo = require("twentytwo")(); // 22
242
- const sixtyseven = require("sixty-seven").SixtySeven;
243
- const { TWENTY_THREE } = require("twenty-three-tools"); // 23 tools
244
- const hundred = require("number-one-hundred"); // 100!
245
- const numberOneHundred = hundred; // alias!
246
- const theNumberSeven = require("@onesneakymofo/the-number-seven").default; // this is actually a string for some reason
247
- const inf = require("infinities"); // INFINITE
248
- const bool = require("true-bool"); // booleans
249
- const successor = require("successor"); // successor
250
- const tru = require("tru"); // if statements arent verbose enough
251
- const If = require("if"); // always good to have another if statement!
252
- const not = require("@not-js/not"); // safer negation with not
253
- const { functions, _return } = require("returndotjs/safe"); // better returning
254
- const vretriever = require("vretriever"); // a constant function
255
- const immo = require("@_immo/return"); // also a constant function
256
- const isEqualTo = require("is-equal-to"); // cant hurt to have a better way to check if something is equal
257
- const isEqual = require("is-equal"); // more complex ways too.
258
- const strictlyEqual = require("are-strictly-equal"); // and strict equality.
259
- const getTypeOf = require("get-ecmascript-type-of"); // better typeof
260
- const extremejs = require("@extremejs/utils"); // TO THE EXTREME
261
- var trueValue = require("true-value"); // the sister of falsejs
262
- var t = () => whatevTrueValue; // returns true.
263
- var tVal = trueValue; // tVal sounds cool so i put it here too
264
- const { mGenbaneko } = require("genbaneko"); // i like cats
265
- const leftPad = require("left-pad"); //every project needs leftpad.
266
- const rightPad = require("right-pad"); //to the right, to the right.
267
- const zeropad = require("zeropad"); //every project could use a third pad.
268
- const pad = require("pad"); //this is the pad to end all pads.
269
- const leftpad = require("leftpad"); // every project could use another leftpad.
270
- const rightpad = require("rightpad"); // another right pad too.
271
- const WestPad = require("west-pad").default; // better than any other pad (except pad itself)
272
- const tacoWrap = require("@sir_wernich/taco-wrap").default; // pad our strings in tacos.
273
- const isWindwos = require("is-windows"); // did i misspell the variable name? of course not
274
- const isWindows = isWindwos; // i totally didnt misspell the above variable and this line doesnt exist
275
- const isLinux = require("is-linux"); // linux the os
276
- const isOSX = require("is-osx"); // more like is darwin
277
- // TODO: Implement is Windows 12
278
- const isFreeBSD = require("is-freebsd").isFreeBSD; // i've never even heard of this operating system until now.
279
- const thirteen = require("thirteen"); // multiply by thirteen
280
- const os = require("node:os"); // maybe node js itself can help us calculate more operating systems
281
- const crypto = require("node:crypto"); // mine me some crypto
282
- const fs = require("node:fs"); // write our files
283
- const uuid = require("uuid"); // generate some uuids
284
- const getStringLength = require("utf8-byte-length"); // get string length
285
- const emoji100 = require("emoji-100"); // 100 emoji
286
- const randomHappyEmoji = require("random-happy-emoji"); // HAPPY
287
- const randomAngryEmoji = require("random-angry-emoji"); // ANGRY
288
- const randomFoodEmoji = require("random-food-emoji"); // FOOD
289
- const dolphinFact = require("dolphin-fact"); // DOLPHIN FACT
290
- const logOne = require("useless-one-log"); // log the number one
291
- const Bro = require("brototype"); // Bro
292
- const literally = require("literally"); // better than literally
293
- const constant = require("const"); // can't even name this variable after the actual library
294
- const lodashdotconstant = require("lodash.constant"); // lodash's version
295
- const WeirdInstanceof = require("weird-instanceof"); // drunk programming only
296
- const { log: ltc, setLogFuntion } = require("logtoconsole"); // best logger
297
- const weirdLtc = WeirdInstanceof(ltc); // weird
298
- const yesNo = require("yes-no"); // YES NO YES NO YES NO
299
- // biome-ignore lint: We need to override undefined for the 10x'ness
300
- const { undefined } = require("undefined-is-a-function"); // UNDEFINED IS A FUNCTON
301
- const isNull = require("@is-(unknown)/is-null"); // IS null
302
- const isUndefined = require("@is-(unknown)/is-undefined"); // IS undefined
303
- const isNil = require("@is-(unknown)/is-nil"); // IS null OR undefined :O
304
- const isUnnull = require("is-unnull"); // IS UNNULL
305
- // biome-ignore lint: We need to override isNaN for the 10x'ness
306
- const isNaN = require("is-nan"); // IS NAN
307
- const isNegativeInfinity = require("negative-infinity").check; // IS NEGATIVE INFINITY
308
- const is1 = require("is-eq-one"); // is 1
309
- const is0 = require("is-eq-zero"); // is 0
310
- const is0_2 = require("is-zero"); // is 0 (x2)
311
- const isFour = require("is-equal-four"); // is 4
312
- const isFive = require("is-eq-five"); // is 5
313
- const isSix = require("is-eq-six"); // is 6
314
- const isSeven = require("is-eq-seven"); // is 7
315
- const useGarbage = require("garbage"); // trash.
316
- const isuseless = require("is-useless").isuseless; // super useless
317
- const isAprilFools = require("is-april-fools"); // Is it april fools
318
- const meow = require("meow.js"); // library for meowing
319
- const { ErrorType: ERROR, immediateError } = require("immediate-error"); // throw errors
320
- const throwError = require("throw-error"); // throw errors
321
- const hello = require("hello-vga-function").default; // hello vga function
322
- const greet = require("hell0-world"); // greet our guys
323
- // A useful function to get a DHTML string.
324
- function getDHTMLString() {
325
- return `netscape_layer_id_${thirteenResolver() * thirteenResolver() * thirteenResolver()}`;
326
- }
327
- const NumberFormatter = Intl.NumberFormat;
328
- const numberFormatter = construct({ target: NumberFormatter });
329
- // Create .falsejs folder if it doesn't already exist.
330
- tru(not(fs.existsSync)(".falsejs"))
331
- .then(() => {
332
- fs.mkdirSync(".falsejs");
333
- })
334
- .end();
335
- variableHolder._lilmessage = colors.red(`[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.`);
336
- const blankSpaces = ("&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
337
- "&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
338
- +" " //100 whitespaces
339
- ).replaceAll("&nbsp;", " ");
340
- const STARTING_SUCCESSOR_HELPER_STACK = zr0();
341
- const FALSE = !whatevTrueValue;
342
- const _f = constant(FALSE);
343
- const ERROR_THAT_WILL_NEVER_BE_SHOWN = variableHolder._lilmessage;
344
- const TEN_THOUSAND = 10e3;
345
- const LEFT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
346
- const RIGHT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
347
- const PAD_INPUT = five();
348
- const LEFTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
349
- const RIGHTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
350
- const WEST_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
351
- const ZEROPAD_INPUT = jQuery.subtract(five(), jQuery.divide(five(), five()));
352
- const WEST_PAD_DEVICE_DIRECTION = "N";
353
- const SPACE = " ";
354
- const STARTING_VVALUE_USER_MINUS = zr0();
355
- const STARTING_VVALUE_USER_PLUS = zr0();
356
- const STARTING_VVALUE_USER_PAD = zr0();
357
- const NO = getNo();
358
- const YES = "yes";
359
- const TODAY = construct({
360
- target: $Date
361
- });
362
- const Today = TODAY;
363
- const USERNAME = (function () {
364
- var username = undefined();
365
- attempt(() => {
366
- username = os.userInfo().username;
367
- })
368
- .rescue(() => {
369
- username = "user";
370
- })
371
- .else(nodeNoop)
372
- .ensure(nop)
373
- .end();
374
- return username;
375
- })();
376
- const username = USERNAME;
377
- const COMPATIBILITY_MODES = COMPATIBILITY_MODE;
378
- class Logger {
379
- enableLogging;
380
- constructor(enableLogging) {
381
- this.enableLogging = enableLogging; // ENABLE THE LOGGING
382
- }
383
- log(log) {
384
- if (isEqualTo(this.enableLogging, t())) {
385
- ;
386
- log instanceof weirdLtc; // SO WERID
387
- }
388
- }
389
- }
390
- const FalseJSValidationFailedToPassError = class extends Error {
391
- constructor(...stuff) {
392
- super(...stuff);
393
- this.name = "FalseJSValidationFailedToPassError";
394
- }
395
- };
396
- const SuccessorHelper = class {
397
- s(value) {
398
- const result = add(value, one); // add one to it
399
- return result;
400
- }
401
- };
402
- const TernaryCompare = class {
403
- condition;
404
- ifTrue;
405
- ifFalse;
406
- constructor(condition, ifTrue, ifFalse) {
407
- this.condition = condition;
408
- this.ifTrue = ifTrue;
409
- this.ifFalse = ifFalse;
410
- }
411
- compare() {
412
- return this.condition ? this.ifTrue : this.ifFalse;
413
- }
414
- };
415
- const ObjectOrFunctionParemeterName = class {
416
- name;
417
- constructor(name) {
418
- this.name = name;
419
- }
420
- getName() {
421
- const name = this.name; // use a static variable for performance
422
- const compare = construct({
423
- target: TernaryCompare,
424
- args: [not(() => isNil(name))(), name, Null()]
425
- });
426
- return compare.compare();
427
- }
428
- };
429
- const CLIColorInstance = class {
430
- instance;
431
- constructor(booleanValue) {
432
- tru(isTrue({ booleanValue }, construct({
433
- target: ObjectOrFunctionParemeterName,
434
- args: ["booleanValue"]
435
- }).getName()))
436
- .then(n0p3)
437
- .otherwise(n0p3)
438
- .end();
439
- this.instance = require("cli-color");
440
- }
441
- getInstance() {
442
- return this.instance;
443
- }
444
- };
445
- const trueComparison = construct({
446
- target: TernaryCompare,
447
- args: [tVal, tVal, not(() => tVal)()]
448
- });
449
- const { s } = construct({ target: SuccessorHelper });
450
- const clc_ = construct({
451
- target: CLIColorInstance,
452
- args: [useGarbage()]
453
- }).getInstance(); // colors are the best! chalk chalk chalk
454
- clc = clc_; // setit
455
- const uwuifier = construct({ target: Uwuifier });
456
- const westPad = construct({ target: WestPad, args: [WEST_PAD_DEVICE_DIRECTION] });
457
- var True_Logger = construct({ target: Logger, args: [t()] });
458
- // lets make sure jquery-basic-arithmetic-plugin works
459
- if (not(() => Bro($).doYouEven("add"))()) {
460
- // uh oh... jquery basic arithmetic plugin didn't work
461
- True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is not working")); // inform our users even if they disabled logging
462
- require("jquery-basic-arithmetic-plugin");
463
- require("jquery-basic-arithmetic-plugin");
464
- require("jquery-basic-arithmetic-plugin");
465
- require("jquery-basic-arithmetic-plugin");
466
- require("jquery-basic-arithmetic-plugin");
467
- require("jquery-basic-arithmetic-plugin");
468
- require("jquery-basic-arithmetic-plugin"); // now it should work
469
- if (not(() => Bro($).doYouEven("add"))()) {
470
- True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is still not working")); // inform our users even if they disabled logging
471
- $.add = (...nums) => {
472
- var total = zr0();
473
- // let's use underscore instead of forEach
474
- underscore.each(nums, (num) => {
475
- total += num; // we have to use the operators because we are redefining the functions :(
476
- });
477
- return total;
478
- };
479
- $.subtract = (...nums) => {
480
- var total = zr0();
481
- // this time we'll use lodash
482
- _.each(nums, (num) => {
483
- total -= num;
484
- });
485
- return total;
486
- };
487
- $.equals = (v1, v2) => {
488
- if (not(() => isActualNumber(v1) && !isActualNumber(v2))()) {
489
- immediateError(concatenater("Both parameters must be numbers! Instead what was passed in was ")
490
- .append(appendType(v1))
491
- .toString()
492
- .concat(concatenater(" or ").append(appendType(v2)).toString())); // not the same message as the original but i dont know what it is and am too lazy to look into the source code
493
- return exit(one); // just in case it doesn't exit
494
- }
495
- return isEqualTo(v1, v2); /// not usnig $.equals because we are literally redefining that
496
- };
497
- if (not(() => Bro($).doYouEven("add"))()) {
498
- True_Logger.log(colors.red(`[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`));
499
- }
500
- else {
501
- True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`));
502
- }
503
- }
504
- else {
505
- True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is now working`));
506
- }
507
- }
508
- const surpriseArray = []; // define empty array
509
- setLogFuntion(() => {
510
- // create an ending random number for our users eventually
511
- surpriseArray.push(construct({
512
- target: TernaryCompare,
513
- args: [isEqualTo(randomBoolean(jQuery.multiply(five(), jQuery.divide(one, ten)), new Logger(FALSE)), t()), jQuery.multiply(MathRandom(), TEN_THOUSAND), jQuery.multiply(MathRandom(), MathFloor(jQuery.divide(jQuery.multiply(TEN_THOUSAND, MathRandom()), ten)))]
514
- }).compare());
515
- });
516
- async function doSomethingAsync(logger) {
517
- logger.log(clc.cyan(`[falsejs] Doing something async`));
518
- return construct({
519
- target: $Promise,
520
- args: [(resolve) => setTimeout(() => resolve(logger), $.multiply(numberOneHundred, Two()))]
521
- });
522
- }
523
- function resultOfDoingSomethingAsync(logger) {
524
- logger.log(pc.green(`[falsejs] Did something async`));
525
- }
526
- function predecessor(n) {
527
- return jQuery.subtract(n, one);
528
- }
529
- function vValue(num) {
530
- if (not(strictlyEqual)(getTypeOf(num), extremejs.TYPE.NUMBER)) {
531
- return num;
532
- }
533
- const rand = MathRandom();
534
- const rand2 = MathRandom();
535
- const useMinus = rand < 0.3333333333333333 ? trueComparison.compare() : FALSE;
536
- const usePlus = rand > 0.3333333333333333 && rand < 0.6666666666666666 ? trueComparison.compare() : FALSE;
537
- const usePad = rand > 0.6666666666666666 ? trueComparison.compare() : FALSE;
538
- const useLeftPad = rand2 < 0.5;
539
- const useRightPad = !useLeftPad;
540
- if (useMinus)
541
- return $.subtract(num, STARTING_VVALUE_USER_MINUS);
542
- if (usePlus)
543
- return $.add(num, STARTING_VVALUE_USER_PLUS);
544
- if (usePad) {
545
- if (useLeftPad)
546
- return parseInt(leftPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
547
- if (useRightPad)
548
- return parseInt(rightPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
549
- }
550
- return num;
551
- }
552
- function sayIt(message) {
553
- lolcatjs.fromString(cowsay.say({ text: message, r: bool([one, Two()]) }));
554
- }
555
- function isTenThousandTenThousand(shouldDoSomethingAsync = FALSE, logger) {
556
- const TEN_THOUSAND1 = TEN_THOUSAND;
557
- const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one);
558
- const TEN_THOUSAND3 = predecessor(s(TEN_THOUSAND));
559
- const TEN_THOUSAND4 = TEN_THOUSAND.valueOf();
560
- const TEN_THOUSAND5 = $.subtract(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
561
- const TEN_THOUSAND6 = $.add(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
562
- const TEN_THOUSAND7 = vValue(TEN_THOUSAND);
563
- attempt(() => {
564
- assert(isTenThousand(TEN_THOUSAND1, shouldDoSomethingAsync), "10,000 is not 10,000");
565
- assert(isTenThousand(TEN_THOUSAND2, shouldDoSomethingAsync), "10,000 + 1 - 1 is not 10,000");
566
- assert(isTenThousand(TEN_THOUSAND3, shouldDoSomethingAsync), "successor(10,000) - 1 is not 10,000");
567
- assert(isTenThousand(TEN_THOUSAND4, shouldDoSomethingAsync), "(10000).valueOf() is not 10,000");
568
- assert(isTenThousand(TEN_THOUSAND5, shouldDoSomethingAsync), "10,000 - 0 is not 10,000");
569
- assert(isTenThousand(TEN_THOUSAND6, shouldDoSomethingAsync), "10,000 + 0 is not 10,000");
570
- assert(isTenThousand(TEN_THOUSAND7, shouldDoSomethingAsync), "the vvalue of 10,000 is not 10,000");
571
- })
572
- .rescue((error) => {
573
- logger.log(colors.red("[falsejs] Failed to verify that 10,000 is equal to 10,000 with error ".concat(error.message)));
574
- })
575
- .else(() => logger.log(pc.green("[falsejs] Verified that 10,000 is equal to 10,000 in (almost) all ways possible")))
576
- .ensure(n0p3)
577
- .end();
578
- }
579
- function doSelfEqualityChecks(loggingEnabled) {
580
- const logger = construct({ target: Logger, args: [loggingEnabled] });
581
- assert(hasSelfEquality(isThreeHundred), StringValueof("[falsejs] IsThreeHundred has no self equality"));
582
- logger.log(pc.green(`[falsejs] Verified that the string "Vladimir" has self equality`));
583
- assert(hasNoSelfEquality(NaN), StringValueof("[falsejs] NaN-has-self-equality"));
584
- logger.log(pc.green(`[falsejs] Verified that NaN has no self equality`));
585
- assert(isNumberOddOrEven(returnZero({
586
- method: ZeroCalculationMethod.CreashaksOrganzine,
587
- loggingEnabled
588
- }), loggingEnabled), StringValueof("[falsejs] 0 is not odd or even"));
589
- assert(isNumberOddOrEven(returnZero({
590
- method: ZeroCalculationMethod.NumberPrototypeValue,
591
- loggingEnabled
592
- }), FALSE), StringValueof("[falsejs] 0 is not odd or even"));
593
- logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`));
594
- assert(isNumberOddOrEven(one, FALSE), StringValueof("[falsejs] 1 is not odd or even"));
595
- logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`));
596
- assert(isNumberOddOrEven(Two(), FALSE), StringValueof("[falsejs] 2 is not odd or even"));
597
- logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`));
598
- assert(isNumberOddOrEven(three(), FALSE), StringValueof("[falsejs] 3 is not odd or even"));
599
- logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`));
600
- assert(isNumberOddOrEven(four(), FALSE), StringValueof("[falsejs] 4 is not odd or even"));
601
- logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`));
602
- assert(isNumberOddOrEven(five(), FALSE), StringValueof("[falsejs] 5 is not odd or even"));
603
- logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`));
604
- assert(isNumberOddOrEven(six(), FALSE), StringValueof("[falsejs] 6 is not odd or even"));
605
- logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`));
606
- assert(isNumberOddOrEven(seven(), FALSE), StringValueof("[falsejs] 7 is not odd or even"));
607
- logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`));
608
- assert(isNumberOddOrEven(eightToolkit.constants.EIGHT, FALSE), StringValueof("[falsejs] 8 is not odd or even"));
609
- logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`));
610
- assert(isNumberOddOrEven(ninev9(), FALSE), StringValueof("[falsejs] 9 is not odd or even"));
611
- logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`));
612
- assert(isNumberOddOrEven(ten, FALSE), StringValueof("[falsejs] 10 is not odd or even"));
613
- logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`));
614
- assert(isNumberOddOrEven(eleven(), FALSE), StringValueof("[falsejs] 11 is not odd or even"));
615
- logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`));
616
- assert(isNumberOddOrEven(twelve(), FALSE), StringValueof("[falsejs] 12 is not odd or even"));
617
- logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`));
618
- assert(isNumberOddOrEven(thirteenResolver(), FALSE), StringValueof("[falsejs] 13 is not odd or even"));
619
- logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`));
620
- assert(isNumberOddOrEven(fourteen, FALSE), StringValueof("[falsejs] 14 is not odd or even"));
621
- logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`));
622
- assert(isNumberOddOrEven(fifteen, FALSE), StringValueof("[falsejs] 15 is not odd or even"));
623
- logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`));
624
- assert(isNumberOddOrEven(sixteen, FALSE), StringValueof("[falsejs] 16 is not odd or even"));
625
- logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`));
626
- assert(isNumberOddOrEven(integer17(), FALSE), StringValueof("[falsejs] 17 is not odd or even"));
627
- logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`));
628
- assert(isNumberOddOrEven(Eighteen(), FALSE), StringValueof("[falsejs] 18 is not odd or even"));
629
- logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`));
630
- assert(isNumberOddOrEven(nineteenify(loggingEnabled), FALSE), StringValueof("[falsejs] 19 is not odd or even"));
631
- logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`));
632
- assert(isNumberOddOrEven(numbertwenty(loggingEnabled), FALSE), StringValueof("[falsejs] 20 is not odd or even"));
633
- logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`));
634
- assert(isNumberOddOrEven(always21(), FALSE), StringValueof("[falsejs] 21 is not odd or even"));
635
- logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`));
636
- assert(isNumberOddOrEven(twentytwo, FALSE), StringValueof("[falsejs] 22 is not odd or even"));
637
- logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`));
638
- assert(isNumberOddOrEven(TWENTY_THREE, FALSE), StringValueof("[falsejs] 23 is not odd or even"));
639
- logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`));
640
- assert(isNumberOddOrEven(sixtyseven(), FALSE), StringValueof("[falsejs] 67 is not odd or even"));
641
- logger.log(pc.green(`[falsejs]-Verified-that-67-is-odd-or-even`));
642
- assert(!isNumberOddOrEven(inf.positiveInfinity(), FALSE), StringValueof("[falsejs] Infinity is odd or even"));
643
- logger.log(pc.green(`[falsejs]-Verified-that-Infinity-is-not-odd-or-even`));
644
- }
645
- function _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger) {
646
- // call some noops 4 some reason
647
- n0p3();
648
- noop();
649
- noop2();
650
- noop3();
651
- noop4()();
652
- noop6();
653
- noop7();
654
- noop8();
655
- noop9();
656
- noop10();
657
- asyncUtilNoop();
658
- blankSpace();
659
- blankSpaceNoop();
660
- noopGenerator().next();
661
- fjNoop();
662
- lodashNoop();
663
- lodash_Noop();
664
- noOp();
665
- nodeNoop();
666
- noopUtility();
667
- trueNoop();
668
- noopFn();
669
- noopaam();
670
- nop();
671
- es2015Noop();
672
- kgryteNoop();
673
- blackHole();
674
- infinoop()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()();
675
- mNoop();
676
- ahsmNoop();
677
- qcCoreNoop();
678
- nooop();
679
- ryotahNoop();
680
- zodashNoop();
681
- jacobZuma();
682
- onceNoopFactory().doNothing();
683
- noopTS();
684
- voidFn();
685
- noopExec();
686
- _.noop();
687
- underscore.noop();
688
- // left pad some things for smoe reason
689
- leftPad("required", LEFT_PAD_INPUT);
690
- rightPad("required", RIGHT_PAD_INPUT);
691
- leftpad("required", LEFTPAD_INPUT);
692
- rightpad("required", RIGHTPAD_INPUT);
693
- zeropad("1000", ZEROPAD_INPUT);
694
- pad(PAD_INPUT, "pad");
695
- pad("pad", PAD_INPUT); //look at the power of this pad
696
- westPad.pad("wow", WEST_PAD_INPUT); // the ultimate pad
697
- var result; // define a result
698
- var succeededAttempt; // define an attempt number that succeeded (roman numeral)
699
- logger.log(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulating")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`);
700
- /// Attempt I
701
- logger.log(clc.yellow(`[falsejs] Beginning Attempt I to get false value...`)); // inform our users of attempt one
702
- const pureChance = not($.equals)(fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn, $.divide($.multiply(MathRandom(), fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn), MathRandom())); // this will probably never be false but it's worth a shot
703
- // For semantics and simplicity, we use the attempt statement in our attempt
704
- attempt(() => {
705
- assert(variableHolder._FalseJSIsFalse(pureChance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN); // this will trigger our rescue which means it didnt work if it didnt work
706
- })
707
- .rescue(() => {
708
- // it did not work by pure chance
709
- /// Attempt II
710
- // inform our users of the bad things
711
- logger.log(clc.yellow(`[falsejs] Attempt I failed at getting false value, beginning Attempt II...`));
712
- if (not(isEqualTo)(pureChance, pureChance)) {
713
- // something is broken
714
- logger.log(colors.red(`[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`));
715
- }
716
- // let's try to calculate false using a random number
717
- const chance = not($.equals)(MathRound(jQuery.multiply(MathRandom(), 1000)), MathRound(jQuery.multiply(MathRandom(), 1000)));
718
- attempt(() => assert(variableHolder._FalseJSIsFalse(chance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
719
- .rescue(() => {
720
- // it did not work by chance again
721
- logger.log(clc.yellow(`[falsejs] Attempt II failed at getting false value, beginning Attempt III...`));
722
- // lets see if our random is any of these key values
723
- if (isOne(random)) {
724
- result = $.equals(random, Two());
725
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
726
- succeededAttempt = "III";
727
- }
728
- else if (isTwo(random)) {
729
- result = $.equals(random, three());
730
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
731
- succeededAttempt = "III";
732
- }
733
- else if (isThree(random)) {
734
- result = $.equals(random, four());
735
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
736
- succeededAttempt = "III";
737
- }
738
- else if (eightToolkit.isEight(random)) {
739
- result = $.equals(random, four());
740
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
741
- succeededAttempt = "III";
742
- }
743
- else if (isTen(random)) {
744
- result = $.equals(random, eleven());
745
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
746
- succeededAttempt = "III";
747
- }
748
- else if (isHundred(random)) {
749
- result = $.equals(random, s(hundred));
750
- logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
751
- succeededAttempt = "III";
752
- }
753
- else {
754
- // dang its not
755
- logger.log(clc.yellow(`[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`));
756
- const zeropointninebool = randomBoolean(jQuery.subtract(one, jQuery.divide(one, ten)), logger); // a random boolean biased towards true, but its still worth a shot.
757
- tru(variableHolder._FalseJSIsFalse(zeropointninebool, loggingEnabled))
758
- .then(() => {
759
- logger.log(pc.green(`[falsejs] Attempt IV succeeded. False value retrieved successfully`));
760
- result = zeropointninebool;
761
- succeededAttempt = "IV";
762
- })
763
- .otherwise(() => {
764
- logger.log(clc.yellow(`[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`));
765
- const zeropointeightfivebool = randomBoolean((five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()), logger); // a random boolean a tiny bit less biased towards true, but its still worth a shot.
766
- If(variableHolder._FalseJSIsFalse(zeropointeightfivebool, loggingEnabled))
767
- .Then(() => {
768
- logger.log(pc.green(`[falsejs] Attempt V succeeded. False value retrieved successfully`));
769
- result = zeropointeightfivebool;
770
- succeededAttempt = "V";
771
- })
772
- .Else(() => {
773
- logger.log(clc.yellow(`[falsejs] Attempt V failed at getting false value, beginning Attempt VI...`));
774
- const zeropointsevennineninenineandsoonbool = randomBoolean(jQuery.subtract(jQuery.divide(jQuery.subtract(five(), jQuery.divide(five(), five())), five()), generalConcat(one.toString(), "e-", Two().toString(), eightToolkit.constants.EIGHT.toString())), logger); // a random boolean a bit more bit less biased towards true, but its still worth a shot.
775
- if (variableHolder._FalseJSIsFalse(zeropointsevennineninenineandsoonbool, loggingEnabled)) {
776
- logger.log(pc.green(`[falsejs] Attempt VI succeeded. False value retrieved successfully`));
777
- result = zeropointsevennineninenineandsoonbool;
778
- succeededAttempt = "VI";
779
- }
780
- else {
781
- logger.log(clc.yellow(`[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`));
782
- const compl = complexBooleanWithBias(logger); // an eeven more complex random boolean
783
- attempt(() => assert(variableHolder._FalseJSIsFalse(compl, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
784
- .rescue(() => {
785
- logger.log(clc.yellow(`[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`));
786
- const w = weirdestBoolean(logger); // an eeven eeven more complex random boolean
787
- if (variableHolder._FalseJSIsFalse(w, loggingEnabled)) {
788
- logger.log(pc.green(`[falsejs] Attempt VIII succeeded. False value retrieved successfully`));
789
- result = w;
790
- succeededAttempt = "VIII";
791
- }
792
- else {
793
- logger.log(clc.yellow(`[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`));
794
- const x =
795
- // biome-ignore lint/complexity/noExtraBooleanCast: d
796
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0; // i don't know whether this is false or not let's just hope its false
797
- if (variableHolder._FalseJSIsFalse(x, loggingEnabled)) {
798
- logger.log(pc.green(`[falsejs] Attempt IX succeeded. False value retrieved successfully`));
799
- result = x;
800
- }
801
- else {
802
- // i shouldn't have added another exclamation mark
803
- logger.log(clc.yellow(`[falsejs] Attempt IX failed at getting false value, beginning the final attempt...`));
804
- succeededAttempt = "IX";
805
- // omg the final attempt
806
- // RANDOM PHONE NUMBER
807
- const randomPhoneNumber = generatePhoneNumber();
808
- fs.appendFileSync(".falsejs/phone-number-log.txt", `${randomPhoneNumber}\n`);
809
- const my = randomPhoneNumber.endsWith("43"); // the last two digits of my phone number are 43
810
- fs.appendFileSync(".falsejs/phone-number-log.txt", `\nfinal attempt:${my}\n\n`);
811
- if (variableHolder._FalseJSIsFalse(my, loggingEnabled)) {
812
- logger.log(pc.green(`[falsejs] Final attempt succeeded. False value retrieved successfully`) // it worked!
813
- );
814
- result = my;
815
- succeededAttempt = "final attempt";
816
- }
817
- else {
818
- // Dear future me. Please forgive me.
819
- // I can't even begin to express how sorry I am.
820
- logger.log(colors.red(`[falsejs] Final attempt failed. Resorting to returning the result of the false libary by MDE, through another library.`));
821
- const myNewFalseValue = returnFalse();
822
- If(couldThisCouldItBeFalse(myNewFalseValue))
823
- .Then(() => {
824
- logger.log(pc.green(`[falsejs] MDE's false library succeeded. False value retrieved successfully.`));
825
- result = myNewFalseValue;
826
- succeededAttempt = "returning mde's false library";
827
- })
828
- .Else(() => {
829
- logger.log(pc.red(`[falsejs] MDE's false library failed. Resorting to the TRUE FINAL attempt.`));
830
- // THE FINAL ATTEMPT IS A FOR LOOP!!
831
- var boolean = isEqualTo(TEN_THOUSAND, TEN_THOUSAND);
832
- for (let i = zr0(); i < jQuery.multiply(TWENTY_THREE, TWENTY_THREE); i++) {
833
- boolean = not(literally(boolean))();
834
- }
835
- // THE MOMENT OF TRUTH
836
- tru(couldThisCouldItBeFalse)
837
- .then(() => {
838
- // YESSSSSSSSSSS!!!
839
- logger.log(pc.green(`[falsejs] FOR LOOP METHOD SUCCCEEDED!!!!!!. False value retrieved successfully!!!`));
840
- result = myNewFalseValue;
841
- succeededAttempt = "THE FOR LOOP METHOD!";
842
- })
843
- .otherwise(() => {
844
- // this will never happen because one of these methods will ALWAYS WORK.
845
- // so i'll just put a useless log here
846
- ltc("BRO. THIS IS IMPOSSIBLE. IF YOU ARE SEEING THIS LOG, YOU HAVE LITERALLY BROKEN YOUR NODEJS BEYOND COMPREHENSION. THE UNIVERSE IS ABOUT TO END AND EVERY COMPUTER IS ABOUT TO DIE. or something like that. im just being silly ok (:");
847
- });
848
- });
849
- }
850
- }
851
- }
852
- })
853
- .else(() => {
854
- logger.log(pc.green(`[falsejs] Attempt VII succeeded. False value retrieved successfully`));
855
- result = compl;
856
- succeededAttempt = "VII";
857
- })
858
- .ensure(n0p3) // ensure we call noop for this
859
- .end();
860
- }
861
- });
862
- })
863
- .end();
864
- }
865
- })
866
- .else(() => {
867
- // it worked!
868
- result = chance;
869
- logger.log(pc.green(`[falsejs] Attempt II succeeded. False value retrieved successfully`));
870
- succeededAttempt = "II";
871
- })
872
- .ensure(n0p3) //again ensure noop
873
- // and as always end our thing
874
- .end();
875
- })
876
- .else(() => {
877
- result = pureChance;
878
- logger.log(pc.green(`[falsejs] Attempt I succeeded. False value retrieved successfully`));
879
- succeededAttempt = "I";
880
- })
881
- .ensure(n0p3)
882
- .end();
883
- return {
884
- // @ts-expect-error
885
- result,
886
- // @ts-expect-error
887
- succeededAttempt
888
- }; // return our false value
889
- }
890
- function _calculateFalse(random, loggingEnabled, shouldDoSomethingAsync = FALSE, shouldDoSomethingAsyncWithIsTenThousand = FALSE, disableAprilFoolsSideEffects = FALSE, strictDisableAprilFoolsSideEffectsCheck = trueComparison.compare(), compatibilityMode = COMPATIBILITY_MODE.NONE) {
891
- const logger = construct({ target: Logger, args: [loggingEnabled] }); // create our logger
892
- var result; // define a result
893
- var succeededAttempt; // define an attempt number that succeeded
894
- isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger); // make sure ten thousand is ten thousand and vValue works
895
- doSelfEqualityChecks(loggingEnabled); // do self equality checks
896
- construct({
897
- target: TernaryCompare,
898
- args: [loggingEnabled, logOne, blankSpace]
899
- }).compare()(); // very very important
900
- if (loggingEnabled)
901
- require("wormhole-interconnections"); // wormhole
902
- logger.log(c.cyan(`[falsejs] `.concat(generalConcat(StringValueof(thirteenResolver()), SPACE, "×", SPACE, StringValueof(Two()), SPACE, "=", SPACE, thirteen(Two())))));
903
- // our users should know some basic info
904
- // the os:
905
- If(isWindows())
906
- .Then(() => {
907
- // Windows
908
- logger.log(clc.cyanBright(`[falsejs] Using Windows as current operating system`));
909
- })
910
- .Else()
911
- .If(isLinux())
912
- .Then(() => {
913
- // Linux
914
- logger.log(clc.cyanBright(`[falsejs] Using Linux as current operating system`));
915
- })
916
- .Else()
917
- .If(isOSX())
918
- .Then(() => {
919
- // AppleOS (Darwin)
920
- logger.log(clc.cyanBright(`[falsejs] Using Darwin as current operating system platform (macOS, iOS, etc.)`));
921
- })
922
- .Else()
923
- .If(isEqualTo(os.platform(), "aix"))
924
- .Then(() => {
925
- // AIX??
926
- logger.log(clc.cyanBright(`[falsejs] Using IBM AIX as current operating system`));
927
- })
928
- .Else()
929
- .If(isFreeBSD())
930
- .Then(() => {
931
- // FreeBSD
932
- logger.log(clc.cyanBright(`[falsejs] Using FreeBSD as current operating system`));
933
- })
934
- .Else()
935
- .If(isEqualTo(os.platform(), "openbsd"))
936
- .Then(() => {
937
- // OpenBSD
938
- logger.log(clc.cyanBright(`[falsejs] Using OpenBSD as current operating system`));
939
- })
940
- .Else()
941
- .If(isEqualTo(os.platform(), "netbsd"))
942
- .Then(() => {
943
- // NetBSD
944
- logger.log(clc.cyanBright(`[falsejs] Using NetBSD as current operating system`));
945
- })
946
- .Else()
947
- .If(isEqualTo(os.platform(), "cygwin"))
948
- .Then(() => {
949
- //cygwin
950
- logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`));
951
- })
952
- .Else()
953
- .If(isEqualTo(os.platform(), "sunos"))
954
- .Then(() => {
955
- // Solaris/SunOS
956
- logger.log(clc.cyanBright(`[falsejs] Using SunOS/Solaris as current operating system`));
957
- })
958
- .Else()
959
- .If(isEqualTo(os.platform(), "android"))
960
- .Then(() => {
961
- // Android
962
- logger.log(clc.cyanBright(`[falsejs] Using Android as current operating system. coding on your phone, are you?`));
963
- })
964
- .Else(() => {
965
- logger.log(clc.cyanBright(`[falsejs] Even Node.js itself doesn't know your operating system.`));
966
- });
967
- /// I'm actually curious what more can we do with process and os?
968
- // lets find out. hmm process.cpuusage whats that
969
- const usage = process.cpuUsage();
970
- logger.log(clc.cyanBright(getValueOfThisStringText(`[falsejs] User CPU Usage: ${usage.user}`)));
971
- logger.log(clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`));
972
- // lets calculate days of the week and months and days and years and stuff
973
- if (isJanuary(Today))
974
- logger.log(clc.cyanBright(`[falsejs] The month is January`));
975
- if (isFebruary(Today))
976
- logger.log(clc.cyanBright(`[falsejs] The month is February`));
977
- if (isMarch(Today))
978
- logger.log(clc.cyanBright(`[falsejs] The month is March`));
979
- if (isApril(Today))
980
- logger.log(clc.cyanBright(`[falsejs] The month is April`));
981
- if (isMay(Today))
982
- logger.log(clc.cyanBright(`[falsejs] The month is May`));
983
- if (isJune(Today))
984
- logger.log(clc.cyanBright(`[falsejs] The month is June`));
985
- if (isJuly(Today))
986
- logger.log(clc.cyanBright(`[falsejs] The month is July`));
987
- if (isAugust(Today))
988
- logger.log(clc.cyanBright(`[falsejs] The month is August`));
989
- if (isSeptember(Today))
990
- logger.log(clc.cyanBright(`[falsejs] The month is September`));
991
- if (isOctober(Today))
992
- logger.log(clc.cyanBright(`[falsejs] The month is October`));
993
- if (isNovember(Today))
994
- logger.log(clc.cyanBright(`[falsejs] The month is November`));
995
- if (isDecember(Today))
996
- logger.log(clc.cyanBright(`[falsejs] The month is December`));
997
- if (isMonday())
998
- logger.log(clc.cyanBright(`[falsejs] Today is Monday`));
999
- if (isTuesday())
1000
- logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`));
1001
- if (isWednesday())
1002
- logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`));
1003
- if (isThursday())
1004
- logger.log(clc.cyanBright(`[falsejs] Today is Thursday`));
1005
- if (isFriday())
1006
- logger.log(clc.cyanBright(`[falsejs] Today is Friday`));
1007
- if (isSaturday())
1008
- logger.log(clc.cyanBright(`[falsejs] Today is Saturday`));
1009
- if (isSunday())
1010
- logger.log(clc.cyanBright(`[falsejs] Today is Sunday`));
1011
- if (isWeekend())
1012
- logger.log(clc.cyanBright(`[falsejs] It's the weekend!`));
1013
- logger.log(clc.cyanBright(generalConcat(`[falsejs] Random happy emoji: `, randomHappyEmoji())));
1014
- logger.log(clc.cyanBright(generalConcat(`[falsejs] Random angry emoji: `, randomAngryEmoji())));
1015
- logger.log(clc.cyanBright(generalConcat(`[falsejs] Random food emoji: `, randomFoodEmoji())));
1016
- construct({
1017
- target: TernaryCompare,
1018
- args: [loggingEnabled, dolphinFact, noop3]
1019
- }).compare()();
1020
- // lets do something async
1021
- if (shouldDoSomethingAsync) {
1022
- doSomethingAsync(logger).then((l) => resultOfDoingSomethingAsync(l));
1023
- }
1024
- If(not(isNumberOddOrEven)(random, FALSE))
1025
- .Then(() => {
1026
- logger.log(clc.yellow(`[falsejs] Random number is not odd or even`));
1027
- })
1028
- .Else(() => {
1029
- logger.log(pc.green(`[falsejs] Verified that the random number is odd or even`));
1030
- });
1031
- // is odd checks
1032
- If(!isIsOdd(isOdd))
1033
- .Then(() => {
1034
- logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`));
1035
- logger.log(clc.yellow(`[falsejs] That's weird`));
1036
- })
1037
- .Else(n0p3);
1038
- If(isIsOdd(isOddAndrew))
1039
- .Then(() => {
1040
- logger.log(pc.green(`[falsejs] Good for Andrew`));
1041
- })
1042
- .Else(noop6);
1043
- If(isIsOdd(isOd))
1044
- .Then(() => {
1045
- logger.log(pc.green(`[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)`)); // TODO: Add pronunciaton
1046
- })
1047
- .Else(() => {
1048
- /*
1049
- logger.log(
1050
- getValueOfThisStringText(
1051
- clc.cyan(
1052
- `[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 . `
1053
- )
1054
- )
1055
- )*/
1056
- });
1057
- If(isIsOdd(isOddNum))
1058
- .Then(() => {
1059
- logger.log(pc.green(`[falsejs] Good for prasundas`));
1060
- })
1061
- .Else(noop4());
1062
- If(isIsOdd(isIntegerOdd))
1063
- .Then(() => {
1064
- logger.log(pc.green(`[falsejs] Good for hoanduy1710`));
1065
- })
1066
- .Else(noop2);
1067
- If(isIsOdd(noteven))
1068
- .Then(() => {
1069
- logger.log(pc.green(`[falsejs] Good for DeaSTL`));
1070
- })
1071
- .Else(noop3);
1072
- If(isIsOdd(isUneven))
1073
- .Then(() => {
1074
- logger.log(pc.green(`[falsejs] Good for Robin`));
1075
- })
1076
- .Else(noop7);
1077
- If(isIsOdd(numberKind.odd))
1078
- .Then(() => {
1079
- logger.log(pc.green(`[falsejs] Good for goten`));
1080
- })
1081
- .Else(noop8);
1082
- If(isIsOdd(isOddFaster))
1083
- .Then(() => {
1084
- logger.log(pc.green(`[falsejs] Bad for bvpranu97, 'cos he wanted to make a faster version but his version is literally the same LOL`));
1085
- })
1086
- .Else(noop9);
1087
- If(isIsOdd(gabrielBrotasIsOdd.isOdd))
1088
- .Then(() => {
1089
- logger.log(pc.green(`[falsejs] Good for Gabriel`));
1090
- })
1091
- .Else(blankSpace);
1092
- If(isIsOdd(returnIfOddNumber))
1093
- .Then(() => {
1094
- logger.log(pc.green(`[falsejs] Good for iamrahulpatel`));
1095
- })
1096
- .Else(blankSpaceNoop);
1097
- If(isIsOdd(numberIsOdd))
1098
- .Then(() => {
1099
- logger.log(pc.green(`[falsejs] Good for Scott`));
1100
- })
1101
- .Else(asyncUtilNoop);
1102
- If(isIsOdd(isNumOdd))
1103
- .Then(() => {
1104
- logger.log(pc.green(`[falsejs] Good for Shivam`));
1105
- })
1106
- .Else(() => noopGenerator().next());
1107
- If(isIsOdd(isOddNumber))
1108
- .Then(() => {
1109
- logger.log(pc.green(`[falsejs] Good for LinkDev`));
1110
- })
1111
- .Else(fjNoop);
1112
- If(isIsOdd(isNumberOdd))
1113
- .Then(() => {
1114
- logger.log(pc.green(`[falsejs] Good for aliraza401`));
1115
- })
1116
- .Else(lodashNoop);
1117
- If(isIsOdd(isThisNumberOdd))
1118
- .Then(() => {
1119
- logger.log(pc.green(`[falsejs] Good for makogai`));
1120
- })
1121
- .Else(lodash_Noop);
1122
- // now let's run some lua code
1
+ #! WELCOME TO FALSEJS, I AM YOUR FRIEND, TJ-COMMITS!!!!!!!!!!!!!!!!!!
2
+ "use strict";
3
+ /**!
4
+ * License
5
+ * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
6
+ * Copyright 10x'ly Made and other contributors <https://10xEngineersQualityProgramming.github.io>
7
+ * Released under MIT license <https://opensource.org/license/mit>
8
+ * made with HEAVY BLACK HEART U+2764
9
+ * Thanks to biome for being a good formatter + linter
10
+ */
11
+ /** biome-ignore-all lint/correctness/noPrecisionLoss: 5555555555555555555555 */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ // -----------------------------------------
14
+ /*
15
+ ABOUT FALSEJS
16
+ FalseJS is a library created by tj-commits to return false.
17
+ */
18
+ /**
19
+ *
20
+ * FalseJS <https://10xEngineersQualityProgramming.github.io/falsejs.html>
21
+ *
22
+ *
23
+ * I didn't choose the 10x life, the 10x life chose me
24
+ *
25
+ *
26
+ * Thanks everyone who made the packages for this
27
+ *
28
+ * As of 3.1.0, these are all the npm package creators: Thanks to 87f-, _immo, abai, aburleigh, ahsm, alexeyraspopov, aliraza401, amal_nj, animate-object, aprixia, ardalanamini, arkanic, benaston, bojand, broofa, bvpranu97, cbrandolino, chuuuuu, cj*, corysimmons, cowboy, dabh, dak0rn, david, deastl, dhurlburtusa, dmitri, donavon, doowb, dragonfire535, endless, ergusto, ericnorris, esailija, euank, eyy, fb, fizzbuzz-npm, florianboudot, gabrieleds, gbrotas, gibson042, gillstrom, goten, hanhan9449, hemanth, hendrysadrak, himynameisdave, hissvard, hoanduy1710, hughfdjackson, huynguyenn-vga, iamrahulpatel, inikulin, ionicabizau, ivoputzer, jackdcrawford, jacobwarduk, jaio, james-work-account, jashkenas, jdalton, jeremylichtman, jezenthomas, jmar777, jncmark, johno, jonschlinkert, joshhunt, jugglinmike, k, kane-thornwyrd, karasube, kgryte, kikobeats, laffed, lamansky, leemm, letsgetrandy, link-dev, ljharb, lordoftrident, lsabbagh, makogai, mappum, mars-mb, mathias, mattdesl, matthewh, maxime.julian, medikoo, metaa, microsoft1es, mohayonao, moniaarthisathya, monishadhanasekar, moons14, mzabriskie, nerwind93, nhedger, nico_nj, nijikokun, nodiff, nopersonsmodules, npm, npm-support, nswbmw, olliez-mods, onatm, onesneakymofo, oxyc, parshap, pethu, phillipalexander, piuccio, prasundas, priyanshurav, r33int, radiovisual, rajalakshmi-npm, reidnpmmore, reversodev, rivalnick, robertmarsal, robims, royleibo, rtorr, ryanblock, ryotah, s-lambert, sawcce, schotsl, segment-admin, shinnn, shivambaghla, sindresorhus, sir_wernich, skibidi-toilet-hacker, skippednote, skylabist, slmjkdbtl, song940, stdlib-bot, stevemao, stevenvachon, supershabam, taitulism, textality, thebitlink, thomaslindstr_m, thomaslomas, tiaanduplessis, timmyrs, timothygu, tj-commits, tmcw, types, uniquecolesmith, vladimirozornin, vtheskeleton, wesgarland, yoshuawuyts, yyx990803, and zrrrzzt for making NPM packages.
29
+ *
30
+ * The credits are above
31
+ */
32
+ // stuff for performance ends here.
33
+ const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire;
34
+ if (isComputerOnFire() && (1 & (3 << 2)) > 4) {
35
+ /** 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. */
36
+ throw new Error("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")();
40
+ require("-");
41
+ /** Whatev is a very useful package, that can be used to get the value of true. */
42
+ const whatev = require("whatev");
43
+ const whatevTrueValue = (whatev.fn() === whatev.string) === whatev.object.whatev;
44
+ require("get-member")();
45
+ require("array-get-member")();
46
+ // @ts-expect-error
47
+ global.jQuery = require("jquery");
48
+ require("jquery-basic-arithmetic-plugin");
49
+ require("user")();
50
+ let COMPATIBILITY_MODE;
51
+ (function (COMPATIBILITY_MODE) {
52
+ COMPATIBILITY_MODE["NONE"] = "none";
53
+ COMPATIBILITY_MODE["IE5"] = "ie5";
54
+ COMPATIBILITY_MODE["NETSCAPE"] = "netscape";
55
+ COMPATIBILITY_MODE["OPERA_PRESTO"] = "opera_presto";
56
+ })(COMPATIBILITY_MODE || (COMPATIBILITY_MODE = {}));
57
+ (function (factory) {
58
+ /** Export everything. */
59
+ module.exports.default = factory(jQuery);
60
+ })(function ($) {
61
+ // biome-ignore lint/suspicious/noRedundantUseStrict: We need double strict mode because we wanna be SUPER strict.
62
+ "use strict";
63
+ const jQuery = $;
64
+ const variableHolder = {};
65
+ const GetIntrinsic = require("get-intrinsic"); // cache our intrinsics
66
+ const _ = require("lodash"); // every project needs lodash
67
+ const underscore = require("underscore"); // underscore.js. the predecessor of lodash.
68
+ const React = require("react"); // the hype framework everyone uses for some reason
69
+ const ReactDOMServer = require("react-dom/server"); // part of react
70
+ const cheerio = require("cheerio"); // cheerio!
71
+ const { JSDOM } = require("jsdom"); // a fake dom
72
+ const striptags = require("striptags"); // strip tags!
73
+ const chalk = require("chalk"); // color is the best!*/
74
+ var clc = require("cli-color"); // another color module
75
+ const colors = require("@colors/colors/safe"); // colors
76
+ const chalkbox = require("chalkbox"); // with a box
77
+ const c = require("ansi-colors"); // nothing wrong with even more colors
78
+ const pc = require("picocolors"); // maybe even more colors libraries
79
+ const axios = require("axios"); // so we can send requests
80
+ const { generatePhoneNumber } = require("phone-number-generator-js"); // generate some phone numbers
81
+ const emptyString = require("empty-string"); // an empty string
82
+ const n0p3 = require("n0p3"); // a noop
83
+ const noop2 = require("noop2"); // nothing wrong with another noop
84
+ const noop3 = require("noop3"); // nothing wrong with yet another noop
85
+ const noop4 = require("noop4"); // noop factory
86
+ const noop6 = require("noop6"); // again, nothing wrong with more noops
87
+ const noop7 = require("noop7"); // i think you see where i'm going
88
+ const noop8 = require("noop8"); //another...
89
+ const noop9 = require("noop9"); // the ninth
90
+ const noop10 = require("noop10"); // 10x with noops lezz go
91
+ const { noop, doop } = require("yanoop"); // yanoop.
92
+ const asyncUtilNoop = require("async.util.noop"); // i think you see where i'm going
93
+ const blankSpaceFullObject = require("blank-space"); // this exports two noops
94
+ const blankSpaceNoop = blankSpaceFullObject.noop; // noop one
95
+ const blankSpace = blankSpaceFullObject._; // and noop two
96
+ const noopGenerator = require("co-noop"); // a noop generator!
97
+ const fjNoop = require("fj-noop").FUNC; // fj noop
98
+ const lodashNoop = require("lodash.noop"); // lodash noop
99
+ const lodash_Noop = require("lodash._noop"); // another lodash noop!
100
+ const noOp = require("no-op"); // noop with a dash
101
+ const nodeNoop = require("node-noop").noop; // a noop
102
+ const noopUtility = require("@stdlib/utils-noop"); // the most practical
103
+ const trueNoop = require("true-noop"); // one of few true noops.
104
+ const noopFn = require("noop-fn"); // it ends with a fn
105
+ const noopaam = require("noopaam"); // noopaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmm
106
+ const nop = require("nop"); // just nop. what a funny name
107
+ const es2015Noop = require("es2015-noop"); // the future is here
108
+ const kgryteNoop = require("@kgryte/noop"); // how do you pronounce this guy's name
109
+ const blackHole = require("a-black-hole"); // OH NO WE ARE GOING IN TO THE BLACK HOLE
110
+ const infinoop = require("infinoop"); // noop. for ever. for. ev. er. FOR. EV. ER
111
+ const mNoop = require("m.noop").noop; // the only other true noop i could find besides true-noop itself
112
+ const ahsmNoop = require("@ahsm/noop"); // ahsm noop
113
+ const { noop: qcCoreNoop, nullFn: Null } = require("qc-core"); // the qc core
114
+ const nooop = require("nooop"); // someone put too many o's
115
+ const ryotahNoop = require("@ryotah/noop"); // ryotah made a noop
116
+ const zodashNoop = require("@zodash/noop").noop; // zodash made a noop
117
+ const jacobZuma = require("jacob-zuma"); // south african flavored noop
118
+ const onceNoopFactory = require("once-noop/factory"); // make a noop which can only be called once
119
+ const noopTS = require("noop-ts").default; // noop ts
120
+ const voidFn = require("voidfn"); // void fn
121
+ const noopExec = require("noop-exec"); // exec
122
+ const attempt = require("attempt-statement"); // has more features than trycatch statement
123
+ const assert = require("assert-fn"); // more simple and elegant than built in node:assert
124
+ const hasSelfEquality = require("has-self-equality"); // most things have self equality but lets make sure
125
+ const hasNoSelfEquality = require("has-no-self-equality"); // again self equality
126
+ 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"
127
+ const isOne = require("is-one"); // the base is- function
128
+ const isTen = require("is-ten"); // 10x the is-one
129
+ const isHundred = require("is-hundred"); // 10x the is-ten
130
+ const isThousand = require("is-thousand").default;
131
+ const isTenThousand = require("is-ten-thousand"); // 100x the is-hundred
132
+ const isEqTenThousand = require("is-eq-ten-thousand"); // is-eq-ten-thousand
133
+ const isTwo = require("is-two").isTwo; // the successor of one
134
+ const isThree = require("is-three"); // the successor of two
135
+ const isNegativeZero = require("is-negative-zero"); // isNegativeZero
136
+ // blank space for no reason
137
+ const isNegativeZero2 = require("negative-zero"); // can't hurt to have another negative zero checker
138
+ const isPositiveZero = require("positive-zero"); // positive zero
139
+ const isTrue = require("is-true"); // true
140
+ const isPreciselyTrue = require("is-precisely-true"); // real true
141
+ const is = require("is-thirteen"); // comparison-against-twelve-free environment
142
+ const isThreeHundred = require("is-three-hundred"); // is-three-hundred
143
+ const isNumber = require("is-number"); // jonschlinkert
144
+ const isActualNumber = require("is-actual-number"); // my is-number
145
+ const isIsOdd = require("is-is-odd"); // isIsOdd
146
+ const isOdd = require("is-odd"); // why does everyone think this is the dumbest package ever. its not
147
+ const isOd = require("is-od"); // forget a d
148
+ const isOddAndrew = require("is-odd-andrew"); // isOddAndrew
149
+ const isOddNum = require("is-odd-num"); // another odd checker
150
+ const isIntegerOdd = require("is-integer-odd"); // another!!!!
151
+ const noteven = require("not-even"); // not even
152
+ const isUneven = require("is-uneven"); // whysomany
153
+ const numberKind = require("number-kind"); // this exports two fns!
154
+ const isOddFaster = require("is-odd-faster").isOdd; // is Odd but faster
155
+ const gabrielBrotasIsOdd = require("gabriel-brotas-is-odd"); // gabriel made an is odd
156
+ const returnIfOddNumber = require("return-if-odd-number"); // if odd number
157
+ const numberIsOdd = require("number-is-odd"); // check if a number is odd
158
+ const isNumOdd = require("is-num-odd"); // check if a num is odd
159
+ const isOddNumber = require("is-odd-number"); // check if a od is number
160
+ const isNumberOdd = require("is_number_odd"); // check if a number is odd
161
+ const isThisNumberOdd = require("is-this-number-odd"); // check if a this is number odd
162
+ const isRealBoolean = require("is-real-boolean"); // BOOLEANS
163
+ const add = require("examplebyraji"); // a package
164
+ const cowsay = require("cowsay"); // let's say stuff
165
+ const lolcatjs = require("lolcatjs"); // the rainbow i tastes it
166
+ const owoifyx = require("owoifyx").default; // UwU
167
+ const Uwuifier = require("uwuifier").default; // UwU (x2)
168
+ const luaParser = require("luaparse"); // parse lua
169
+ const luaInterpreter = require("lua-interpreter"); // interpret lua
170
+ const exit = require("exit"); // 10x better than process.exit
171
+ const appendType = require("append-type"); // PUT THE TYPE NEXT TO A VALUE!!
172
+ const concatenater = require("concatenater"); // CONCATENATE STUFF!!!
173
+ const generalConcat = require("general-concat"); // GENERALLY CONCATENATE STUFF!!!
174
+ const lowercase = require("convert-to-lower-case"); // CONVERT TO LOWER CASE
175
+ const construct = require("construct-new"); // better than the new keyword
176
+ const $Promise = require("bluebird");
177
+ const $Array = GetIntrinsic("%Array%");
178
+ const $Boolean = GetIntrinsic("%Boolean%");
179
+ const $Date = GetIntrinsic("%Date%");
180
+ const $String = GetIntrinsic("%String%");
181
+ const MathRandom = GetIntrinsic("%Math.random%");
182
+ const MathFloor = GetIntrinsic("%Math.floor%");
183
+ const MathRound = GetIntrinsic("%Math.round%");
184
+ const PI = GetIntrinsic("%Math.PI%");
185
+ const MathAbs = GetIntrinsic("%Math.abs%");
186
+ const MathSqrt = GetIntrinsic("%Math.sqrt%");
187
+ const MathSin = GetIntrinsic("%Math.sin%");
188
+ const MathCos = GetIntrinsic("%Math.cos%");
189
+ const StringCharAt = GetIntrinsic("%String.prototype.charAt%");
190
+ const _calculateFalseAprilFools = require("../aprilFoolsCalculateFalse"); // april fools
191
+ const couldThisCouldItBeTrue = require("@falsejs/is-true-helper"); // check if a value is true
192
+ const falseValue = require("false-value"); // uses quantum physics simulation to return false
193
+ const isJanuary = require("is-january"); // month 1
194
+ const isFebruary = require("is-february"); // month 2
195
+ const isMarch = require("is-march"); // month 3
196
+ const isApril = require("is-april"); // month 4
197
+ const isMay = require("is-may"); // month 5
198
+ const isJune = require("is-june"); // month 6
199
+ const isJuly = require("is-july"); // month 7
200
+ const isAugust = require("is-august"); // month 8
201
+ const isSeptember = require("is-september"); // month 9
202
+ const isOctober = require("is-october"); // month 10
203
+ const isNovember = require("is-november"); // month 11
204
+ const isDecember = require("is-december"); // month 12
205
+ const isMonday = require("is-monday"); // day of the week 1 according to international standard, day of the week 2 according to the us
206
+ const isTuesday = require("is-tuesday"); // day of the week 2 according to international standard, day of the week 3 according to the us
207
+ const isWednesday = () => require("is-wednesday")(new $Date()); // day of the week 3 according to the international standard, day of the week 4 according to the us
208
+ // now we gotta sing rebecca black's song
209
+ const isThursday = require("is-thursday"); /// Yesterday was thursdayyyy
210
+ const isFriday = require("is-friday"); // tooo-ddadayy is friday! we so ecited
211
+ const isSaturday = require("is-saturday"); // tomorrow will be saturday
212
+ const isSunday = require("is-sunday"); // and sunday comes after
213
+ const isWeekend = require("is-weekend"); // looking forward to the weeeeekeend
214
+ const zr0 = require("integer-value-positive-zero"); // get the number zero, less 10x
215
+ const { returnZero: returnZero_, ZeroCalculationMethod, isZero: zerosurgeIsZero, } = require("zerosurge"); // get the number zero, but 10x'er
216
+ const returnZero = returnZero_;
217
+ /** LETS GET SOME NUMBERS */
218
+ const one = require("the-number-one").default; // get the number one
219
+ const Two = require("two"); // get number 2
220
+ const three = require("numeric-constant-three"); // get number 3
221
+ const four = require("always-four"); // number 4
222
+ const five = require("five"); // num5
223
+ const six = require("number-six"); // n6
224
+ const seven = require("se7en"); // 7
225
+ const eightToolkit = require("eight-toolkit"); // it's 8, in a toolkit!
226
+ 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)
227
+ const ten = require("the-number-ten"); // 10
228
+ const eleven = require("eleven"); // 11
229
+ const twelve = require("tw12ve"); // 12
230
+ const thirteenResolver = require("always-thirteen"); // 13
231
+ const fourteen = require("fourteen"); // 14
232
+ const fifteen = require("number-fifteen"); //15
233
+ const fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn = require("fifteen-point-eight-three-five-two-six-six-eight-two-and-so-on"); //-this-can-be-rounded-to-sixteen
234
+ const sixteen = require("sixteen-constant"); //thisisthenumbersixteenomg161616
235
+ const integer17 = require("seventeen-integer"); //17
236
+ const Eighteen = require("eighteen-positive-number-interactions"); // Interact positively with eighteen
237
+ const nineteenify = require("nineteenify"); // Hey there what our you doing? *nineteenifies*
238
+ const numbertwenty = require("numbertwenty"); // 20
239
+ const always21 = require("always-21"); // 21
240
+ const twentytwo = require("twentytwo")(); // 22
241
+ const sixtyseven = require("sixty-seven").SixtySeven;
242
+ const { TWENTY_THREE } = require("twenty-three-tools"); // 23 tools
243
+ const hundred = require("number-one-hundred"); // 100!
244
+ const numberOneHundred = hundred; // alias!
245
+ const theNumberSeven = require("@onesneakymofo/the-number-seven").default; // this is actually a string for some reason
246
+ const inf = require("infinities"); // INFINITE
247
+ const bool = require("true-bool"); // booleans
248
+ const successor = require("successor"); // successor
249
+ const tru = require("tru"); // if statements arent verbose enough
250
+ const If = require("if"); // always good to have another if statement!
251
+ const not = require("@not-js/not"); // safer negation with not
252
+ const { functions, _return } = require("returndotjs/safe"); // better returning
253
+ const vretriever = require("vretriever"); // a constant function
254
+ const immo = require("@_immo/return"); // also a constant function
255
+ const isEqualTo = require("is-equal-to"); // cant hurt to have a better way to check if something is equal
256
+ const isEqual = require("is-equal"); // more complex ways too.
257
+ const strictlyEqual = require("are-strictly-equal"); // and strict equality.
258
+ const getTypeOf = require("get-ecmascript-type-of"); // better typeof
259
+ const extremejs = require("@extremejs/utils"); // TO THE EXTREME
260
+ var trueValue = require("true-value"); // the sister of falsejs
261
+ var t = () => whatevTrueValue; // returns true.
262
+ var tVal = trueValue; // tVal sounds cool so i put it here too
263
+ const { mGenbaneko } = require("genbaneko"); // i like cats
264
+ const leftPad = require("left-pad"); //every project needs leftpad.
265
+ const rightPad = require("right-pad"); //to the right, to the right.
266
+ const zeropad = require("zeropad"); //every project could use a third pad.
267
+ const pad = require("pad"); //this is the pad to end all pads.
268
+ const leftpad = require("leftpad"); // every project could use another leftpad.
269
+ const rightpad = require("rightpad"); // another right pad too.
270
+ const WestPad = require("west-pad").default; // better than any other pad (except pad itself)
271
+ const tacoWrap = require("@sir_wernich/taco-wrap").default; // pad our strings in tacos.
272
+ const isWindwos = require("is-windows"); // did i misspell the variable name? of course not
273
+ const isWindows = isWindwos; // i totally didnt misspell the above variable and this line doesnt exist
274
+ const isLinux = require("is-linux"); // linux the os
275
+ const isOSX = require("is-osx"); // more like is darwin
276
+ // TODO: Implement is Windows 12
277
+ const isFreeBSD = require("is-freebsd").isFreeBSD; // i've never even heard of this operating system until now.
278
+ const thirteen = require("thirteen"); // multiply by thirteen
279
+ const os = require("node:os"); // maybe node js itself can help us calculate more operating systems
280
+ const crypto = require("node:crypto"); // mine me some crypto
281
+ const fs = require("node:fs"); // write our files
282
+ const uuid = require("uuid"); // generate some uuids
283
+ const getStringLength = require("utf8-byte-length"); // get string length
284
+ const emoji100 = require("emoji-100"); // 100 emoji
285
+ const randomHappyEmoji = require("random-happy-emoji"); // HAPPY
286
+ const randomAngryEmoji = require("random-angry-emoji"); // ANGRY
287
+ const randomFoodEmoji = require("random-food-emoji"); // FOOD
288
+ const dolphinFact = require("dolphin-fact"); // DOLPHIN FACT
289
+ const logOne = require("useless-one-log"); // log the number one
290
+ const Bro = require("brototype"); // Bro
291
+ const literally = require("literally"); // better than literally
292
+ const constant = require("const"); // can't even name this variable after the actual library
293
+ const lodashdotconstant = require("lodash.constant"); // lodash's version
294
+ const WeirdInstanceof = require("weird-instanceof"); // drunk programming only
295
+ const { log: ltc, setLogFuntion } = require("logtoconsole"); // best logger
296
+ const weirdLtc = WeirdInstanceof(ltc); // weird
297
+ const yesNo = require("yes-no"); // YES NO YES NO YES NO
298
+ // biome-ignore lint: We need to override undefined for the 10x'ness
299
+ const { undefined } = require("undefined-is-a-function"); // UNDEFINED IS A FUNCTON
300
+ const isNull = require("@is-(unknown)/is-null"); // IS null
301
+ const isUndefined = require("@is-(unknown)/is-undefined"); // IS undefined
302
+ const isNil = require("@is-(unknown)/is-nil"); // IS null OR undefined :O
303
+ const isUnnull = require("is-unnull"); // IS UNNULL
304
+ // biome-ignore lint: We need to override isNaN for the 10x'ness
305
+ const isNaN = require("is-nan"); // IS NAN
306
+ const isNegativeInfinity = require("negative-infinity").check; // IS NEGATIVE INFINITY
307
+ const is1 = require("is-eq-one"); // is 1
308
+ const is0 = require("is-eq-zero"); // is 0
309
+ const is0_2 = require("is-zero"); // is 0 (x2)
310
+ const isFour = require("is-equal-four"); // is 4
311
+ const isFive = require("is-eq-five"); // is 5
312
+ const isSix = require("is-eq-six"); // is 6
313
+ const isSeven = require("is-eq-seven"); // is 7
314
+ const useGarbage = require("garbage"); // trash.
315
+ const isuseless = require("is-useless").isuseless; // super useless
316
+ const isAprilFools = require("is-april-fools"); // Is it april fools
317
+ const meow = require("meow.js"); // library for meowing
318
+ const { ErrorType: ERROR, immediateError } = require("immediate-error"); // throw errors
319
+ const throwError = require("throw-error"); // throw errors
320
+ const hello = require("hello-vga-function").default; // hello vga function
321
+ // A useful function to get a DHTML string.
322
+ function getDHTMLString() {
323
+ return `netscape_layer_id_${thirteenResolver() * thirteenResolver() * thirteenResolver()}`;
324
+ }
325
+ const NumberFormatter = Intl.NumberFormat;
326
+ const numberFormatter = construct({ target: NumberFormatter });
327
+ // Create .falsejs folder if it doesn't already exist.
328
+ tru(not(fs.existsSync)(".falsejs"))
329
+ .then(() => {
330
+ fs.mkdirSync(".falsejs");
331
+ })
332
+ .end();
333
+ variableHolder._lilmessage = colors.red(`[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.`);
334
+ const blankSpaces = ("&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
335
+ "&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
336
+ +" ") //100 whitespaces
337
+ .replaceAll("&nbsp;", " ");
338
+ const STARTING_SUCCESSOR_HELPER_STACK = zr0();
339
+ const FALSE = !whatevTrueValue;
340
+ const _f = constant(FALSE);
341
+ const ERROR_THAT_WILL_NEVER_BE_SHOWN = variableHolder._lilmessage;
342
+ const TEN_THOUSAND = 10e3;
343
+ const LEFT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
344
+ const RIGHT_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
345
+ const PAD_INPUT = five();
346
+ const LEFTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
347
+ const RIGHTPAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
348
+ const WEST_PAD_INPUT = jQuery.multiply(five(), jQuery.add(five(), jQuery.divide(five(), five())));
349
+ const ZEROPAD_INPUT = jQuery.subtract(five(), jQuery.divide(five(), five()));
350
+ const WEST_PAD_DEVICE_DIRECTION = "N";
351
+ const SPACE = " ";
352
+ const STARTING_VVALUE_USER_MINUS = zr0();
353
+ const STARTING_VVALUE_USER_PLUS = zr0();
354
+ const STARTING_VVALUE_USER_PAD = zr0();
355
+ const NO = getNo();
356
+ const YES = "yes";
357
+ const TODAY = construct({
358
+ target: $Date,
359
+ });
360
+ const Today = TODAY;
361
+ const USERNAME = (function () {
362
+ var username = undefined();
363
+ attempt(() => {
364
+ username = os.userInfo().username;
365
+ })
366
+ .rescue(() => {
367
+ username = "user";
368
+ })
369
+ .else(nodeNoop)
370
+ .ensure(nop)
371
+ .end();
372
+ return username;
373
+ })();
374
+ const username = USERNAME;
375
+ const COMPATIBILITY_MODES = COMPATIBILITY_MODE;
376
+ class Logger {
377
+ enableLogging;
378
+ constructor(enableLogging) {
379
+ this.enableLogging = enableLogging; // ENABLE THE LOGGING
380
+ }
381
+ log(log) {
382
+ if (isEqualTo(this.enableLogging, t())) {
383
+ ;
384
+ log instanceof weirdLtc; // SO WERID
385
+ }
386
+ }
387
+ }
388
+ const FalseJSValidationFailedToPassError = class extends Error {
389
+ constructor(...stuff) {
390
+ super(...stuff);
391
+ this.name = "FalseJSValidationFailedToPassError";
392
+ }
393
+ };
394
+ const SuccessorHelper = class {
395
+ s(value) {
396
+ const result = add(value, one); // add one to it
397
+ return result;
398
+ }
399
+ };
400
+ const TernaryCompare = class {
401
+ condition;
402
+ ifTrue;
403
+ ifFalse;
404
+ constructor(condition, ifTrue, ifFalse) {
405
+ this.condition = condition;
406
+ this.ifTrue = ifTrue;
407
+ this.ifFalse = ifFalse;
408
+ }
409
+ compare() {
410
+ return this.condition ? this.ifTrue : this.ifFalse;
411
+ }
412
+ };
413
+ const ObjectOrFunctionParemeterName = class {
414
+ name;
415
+ constructor(name) {
416
+ this.name = name;
417
+ }
418
+ getName() {
419
+ const name = this.name; // use a static variable for performance
420
+ const compare = construct({
421
+ target: TernaryCompare,
422
+ args: [not(() => isNil(name))(), name, Null()],
423
+ });
424
+ return compare.compare();
425
+ }
426
+ };
427
+ const CLIColorInstance = class {
428
+ instance;
429
+ constructor(booleanValue) {
430
+ tru(isTrue({ booleanValue }, construct({
431
+ target: ObjectOrFunctionParemeterName,
432
+ args: ["booleanValue"],
433
+ }).getName()))
434
+ .then(n0p3)
435
+ .otherwise(n0p3)
436
+ .end();
437
+ this.instance = require("cli-color");
438
+ }
439
+ getInstance() {
440
+ return this.instance;
441
+ }
442
+ };
443
+ const trueComparison = construct({
444
+ target: TernaryCompare,
445
+ args: [tVal, tVal, not(() => tVal)()],
446
+ });
447
+ const { s } = construct({ target: SuccessorHelper });
448
+ const clc_ = construct({
449
+ target: CLIColorInstance,
450
+ args: [useGarbage()],
451
+ }).getInstance(); // colors are the best! chalk chalk chalk
452
+ clc = clc_; // setit
453
+ const uwuifier = construct({ target: Uwuifier });
454
+ const westPad = construct({
455
+ target: WestPad,
456
+ args: [WEST_PAD_DEVICE_DIRECTION],
457
+ });
458
+ var True_Logger = construct({ target: Logger, args: [t()] });
459
+ // lets make sure jquery-basic-arithmetic-plugin works
460
+ if (not(() => Bro($).doYouEven("add"))()) {
461
+ // uh oh... jquery basic arithmetic plugin didn't work
462
+ True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is not working")); // inform our users even if they disabled logging
463
+ require("jquery-basic-arithmetic-plugin");
464
+ require("jquery-basic-arithmetic-plugin");
465
+ require("jquery-basic-arithmetic-plugin");
466
+ require("jquery-basic-arithmetic-plugin");
467
+ require("jquery-basic-arithmetic-plugin");
468
+ require("jquery-basic-arithmetic-plugin");
469
+ require("jquery-basic-arithmetic-plugin"); // now it should work
470
+ if (not(() => Bro($).doYouEven("add"))()) {
471
+ True_Logger.log(colors.red("[falsejs] jquery-basic-arithmetic-plugin is still not working")); // inform our users even if they disabled logging
472
+ $.add = (...nums) => {
473
+ var total = zr0();
474
+ // let's use underscore instead of forEach
475
+ underscore.each(nums, (num) => {
476
+ total += num; // we have to use the operators because we are redefining the functions :(
477
+ });
478
+ return total;
479
+ };
480
+ $.subtract = (...nums) => {
481
+ var total = zr0();
482
+ // this time we'll use lodash
483
+ _.each(nums, (num) => {
484
+ total -= num;
485
+ });
486
+ return total;
487
+ };
488
+ $.equals = (v1, v2) => {
489
+ if (not(() => isActualNumber(v1) && !isActualNumber(v2))()) {
490
+ immediateError(concatenater("Both parameters must be numbers! Instead what was passed in was ")
491
+ .append(appendType(v1))
492
+ .toString()
493
+ .concat(concatenater(" or ").append(appendType(v2)).toString())); // not the same message as the original but i dont know what it is and am too lazy to look into the source code
494
+ return exit(one); // just in case it doesn't exit
495
+ }
496
+ return isEqualTo(v1, v2); /// not usnig $.equals because we are literally redefining that
497
+ };
498
+ if (not(() => Bro($).doYouEven("add"))()) {
499
+ True_Logger.log(colors.red(`[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`));
500
+ }
501
+ else {
502
+ True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`));
503
+ }
504
+ }
505
+ else {
506
+ True_Logger.log(pc.green(`[falsejs] jquery-basic-arithmetic-plugin is now working`));
507
+ }
508
+ }
509
+ const surpriseArray = []; // define empty array
510
+ setLogFuntion(() => {
511
+ // create an ending random number for our users eventually
512
+ surpriseArray.push(construct({
513
+ target: TernaryCompare,
514
+ args: [
515
+ isEqualTo(randomBoolean(jQuery.multiply(five(), jQuery.divide(one, ten)), new Logger(FALSE)), t()),
516
+ jQuery.multiply(MathRandom(), TEN_THOUSAND),
517
+ jQuery.multiply(MathRandom(), MathFloor(jQuery.divide(jQuery.multiply(TEN_THOUSAND, MathRandom()), ten))),
518
+ ],
519
+ }).compare());
520
+ });
521
+ async function doSomethingAsync(logger) {
522
+ logger.log(clc.cyan(`[falsejs] Doing something async`));
523
+ return construct({
524
+ target: $Promise,
525
+ args: [
526
+ (resolve) => setTimeout(() => resolve(logger), $.multiply(numberOneHundred, Two())),
527
+ ],
528
+ });
529
+ }
530
+ function resultOfDoingSomethingAsync(logger) {
531
+ logger.log(pc.green(`[falsejs] Did something async`));
532
+ }
533
+ function predecessor(n) {
534
+ return jQuery.subtract(n, one);
535
+ }
536
+ function vValue(num) {
537
+ if (not(strictlyEqual)(getTypeOf(num), extremejs.TYPE.NUMBER)) {
538
+ return num;
539
+ }
540
+ const rand = MathRandom();
541
+ const rand2 = MathRandom();
542
+ const useMinus = rand < 0.3333333333333333 ? trueComparison.compare() : FALSE;
543
+ const usePlus = rand > 0.3333333333333333 && rand < 0.6666666666666666
544
+ ? trueComparison.compare()
545
+ : FALSE;
546
+ const usePad = rand > 0.6666666666666666 ? trueComparison.compare() : FALSE;
547
+ const useLeftPad = rand2 < 0.5;
548
+ const useRightPad = !useLeftPad;
549
+ if (useMinus)
550
+ return $.subtract(num, STARTING_VVALUE_USER_MINUS);
551
+ if (usePlus)
552
+ return $.add(num, STARTING_VVALUE_USER_PLUS);
553
+ if (usePad) {
554
+ if (useLeftPad)
555
+ return parseInt(leftPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
556
+ if (useRightPad)
557
+ return parseInt(rightPad(num.toString(), STARTING_VVALUE_USER_PAD).trim(), 10);
558
+ }
559
+ return num;
560
+ }
561
+ function sayIt(message) {
562
+ lolcatjs.fromString(cowsay.say({ text: message, r: bool([one, Two()]) }));
563
+ }
564
+ function isTenThousandTenThousand(shouldDoSomethingAsync = FALSE, logger) {
565
+ const TEN_THOUSAND1 = TEN_THOUSAND;
566
+ const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one);
567
+ const TEN_THOUSAND3 = predecessor(s(TEN_THOUSAND));
568
+ const TEN_THOUSAND4 = TEN_THOUSAND.valueOf();
569
+ const TEN_THOUSAND5 = $.subtract(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
570
+ const TEN_THOUSAND6 = $.add(TEN_THOUSAND, STARTING_SUCCESSOR_HELPER_STACK);
571
+ const TEN_THOUSAND7 = vValue(TEN_THOUSAND);
572
+ attempt(() => {
573
+ assert(isTenThousand(TEN_THOUSAND1, shouldDoSomethingAsync), "10,000 is not 10,000");
574
+ assert(isTenThousand(TEN_THOUSAND2, shouldDoSomethingAsync), "10,000 + 1 - 1 is not 10,000");
575
+ assert(isTenThousand(TEN_THOUSAND3, shouldDoSomethingAsync), "successor(10,000) - 1 is not 10,000");
576
+ assert(isTenThousand(TEN_THOUSAND4, shouldDoSomethingAsync), "(10000).valueOf() is not 10,000");
577
+ assert(isTenThousand(TEN_THOUSAND5, shouldDoSomethingAsync), "10,000 - 0 is not 10,000");
578
+ assert(isTenThousand(TEN_THOUSAND6, shouldDoSomethingAsync), "10,000 + 0 is not 10,000");
579
+ assert(isTenThousand(TEN_THOUSAND7, shouldDoSomethingAsync), "the vvalue of 10,000 is not 10,000");
580
+ })
581
+ .rescue((error) => {
582
+ logger.log(colors.red("[falsejs] Failed to verify that 10,000 is equal to 10,000 with error ".concat(error.message)));
583
+ })
584
+ .else(() => logger.log(pc.green("[falsejs] Verified that 10,000 is equal to 10,000 in a bunch of ways")))
585
+ .ensure(n0p3)
586
+ .end();
587
+ }
588
+ function doSelfEqualityChecks(loggingEnabled) {
589
+ const logger = construct({ target: Logger, args: [loggingEnabled] });
590
+ assert(hasSelfEquality(isThreeHundred), StringValueof("[falsejs] IsThreeHundred has no self equality"));
591
+ logger.log(pc.green(`[falsejs] Verified that the string "Vladimir" has self equality`));
592
+ assert(hasNoSelfEquality(NaN), StringValueof("[falsejs] NaN-has-self-equality"));
593
+ logger.log(pc.green(`[falsejs] Verified that NaN has no self equality`));
594
+ assert(isNumberOddOrEven(returnZero({
595
+ method: ZeroCalculationMethod.CreashaksOrganzine,
596
+ loggingEnabled,
597
+ }), falseValue()), StringValueof("[falsejs] 0 is not odd or even"));
598
+ assert(isNumberOddOrEven(returnZero({
599
+ method: ZeroCalculationMethod.NumberPrototypeValue,
600
+ loggingEnabled: falseValue(),
601
+ }), FALSE), StringValueof("[falsejs] 0 is not odd or even"));
602
+ logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`));
603
+ assert(isNumberOddOrEven(one, FALSE), StringValueof("[falsejs] 1 is not odd or even"));
604
+ logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`));
605
+ assert(isNumberOddOrEven(Two(), FALSE), StringValueof("[falsejs] 2 is not odd or even"));
606
+ logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`));
607
+ assert(isNumberOddOrEven(three(), FALSE), StringValueof("[falsejs] 3 is not odd or even"));
608
+ logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`));
609
+ assert(isNumberOddOrEven(four(), FALSE), StringValueof("[falsejs] 4 is not odd or even"));
610
+ logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`));
611
+ assert(isNumberOddOrEven(five(), FALSE), StringValueof("[falsejs] 5 is not odd or even"));
612
+ logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`));
613
+ assert(isNumberOddOrEven(six(), FALSE), StringValueof("[falsejs] 6 is not odd or even"));
614
+ logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`));
615
+ assert(isNumberOddOrEven(seven(), FALSE), StringValueof("[falsejs] 7 is not odd or even"));
616
+ logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`));
617
+ assert(isNumberOddOrEven(eightToolkit.constants.EIGHT, FALSE), StringValueof("[falsejs] 8 is not odd or even"));
618
+ logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`));
619
+ assert(isNumberOddOrEven(ninev9(), FALSE), StringValueof("[falsejs] 9 is not odd or even"));
620
+ logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`));
621
+ assert(isNumberOddOrEven(ten, FALSE), StringValueof("[falsejs] 10 is not odd or even"));
622
+ logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`));
623
+ assert(isNumberOddOrEven(eleven(), FALSE), StringValueof("[falsejs] 11 is not odd or even"));
624
+ logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`));
625
+ assert(isNumberOddOrEven(twelve(), FALSE), StringValueof("[falsejs] 12 is not odd or even"));
626
+ logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`));
627
+ assert(isNumberOddOrEven(thirteenResolver(), FALSE), StringValueof("[falsejs] 13 is not odd or even"));
628
+ logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`));
629
+ assert(isNumberOddOrEven(fourteen, FALSE), StringValueof("[falsejs] 14 is not odd or even"));
630
+ logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`));
631
+ assert(isNumberOddOrEven(fifteen, FALSE), StringValueof("[falsejs] 15 is not odd or even"));
632
+ logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`));
633
+ assert(isNumberOddOrEven(sixteen, FALSE), StringValueof("[falsejs] 16 is not odd or even"));
634
+ logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`));
635
+ assert(isNumberOddOrEven(integer17(), FALSE), StringValueof("[falsejs] 17 is not odd or even"));
636
+ logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`));
637
+ assert(isNumberOddOrEven(Eighteen(), FALSE), StringValueof("[falsejs] 18 is not odd or even"));
638
+ logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`));
639
+ assert(isNumberOddOrEven(nineteenify(loggingEnabled), FALSE), StringValueof("[falsejs] 19 is not odd or even"));
640
+ logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`));
641
+ assert(isNumberOddOrEven(numbertwenty(loggingEnabled), FALSE), StringValueof("[falsejs] 20 is not odd or even"));
642
+ logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`));
643
+ assert(isNumberOddOrEven(always21(), FALSE), StringValueof("[falsejs] 21 is not odd or even"));
644
+ logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`));
645
+ assert(isNumberOddOrEven(twentytwo, FALSE), StringValueof("[falsejs] 22 is not odd or even"));
646
+ logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`));
647
+ assert(isNumberOddOrEven(TWENTY_THREE, FALSE), StringValueof("[falsejs] 23 is not odd or even"));
648
+ logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`));
649
+ assert(isNumberOddOrEven(sixtyseven(), FALSE), StringValueof("[falsejs] 67 is not odd or even"));
650
+ logger.log(pc.green(`[falsejs]-Verified-that-67-is-odd-or-even`));
651
+ assert(!isNumberOddOrEven(inf.positiveInfinity(), FALSE), StringValueof("[falsejs] Infinity is odd or even"));
652
+ logger.log(pc.green(`[falsejs]-Verified-that-Infinity-is-not-odd-or-even`));
653
+ }
654
+ function _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger) {
655
+ // call some noops 4 some reason
656
+ n0p3();
657
+ noop();
658
+ noop2();
659
+ noop3();
660
+ noop4()();
661
+ noop6();
662
+ noop7();
663
+ noop8();
664
+ noop9();
665
+ noop10();
666
+ asyncUtilNoop();
667
+ blankSpace();
668
+ blankSpaceNoop();
669
+ noopGenerator().next();
670
+ fjNoop();
671
+ lodashNoop();
672
+ lodash_Noop();
673
+ noOp();
674
+ nodeNoop();
675
+ noopUtility();
676
+ trueNoop();
677
+ noopFn();
678
+ noopaam();
679
+ nop();
680
+ es2015Noop();
681
+ kgryteNoop();
682
+ blackHole();
683
+ infinoop()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()();
684
+ mNoop();
685
+ ahsmNoop();
686
+ qcCoreNoop();
687
+ nooop();
688
+ ryotahNoop();
689
+ zodashNoop();
690
+ jacobZuma();
691
+ onceNoopFactory().doNothing();
692
+ noopTS();
693
+ voidFn();
694
+ noopExec();
695
+ _.noop();
696
+ underscore.noop();
697
+ // left pad some things for smoe reason
698
+ leftPad("required", LEFT_PAD_INPUT);
699
+ rightPad("required", RIGHT_PAD_INPUT);
700
+ leftpad("required", LEFTPAD_INPUT);
701
+ rightpad("required", RIGHTPAD_INPUT);
702
+ zeropad("1000", ZEROPAD_INPUT);
703
+ pad(PAD_INPUT, "pad");
704
+ pad("pad", PAD_INPUT); //look at the power of this pad
705
+ westPad.pad("wow", WEST_PAD_INPUT); // the ultimate pad
706
+ var result; // define a result
707
+ var succeededAttempt; // define an attempt number that succeeded (roman numeral)
708
+ logger.log(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulating")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`);
709
+ /// Attempt I
710
+ logger.log(clc.yellow(`[falsejs] Beginning Attempt I to get false value...`)); // inform our users of attempt one
711
+ const pureChance = not($.equals)(fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn, $.divide($.multiply(MathRandom(), fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn), MathRandom())); // this will probably never be false but it's worth a shot
712
+ // For semantics and simplicity, we use the attempt statement in our attempt
713
+ attempt(() => {
714
+ assert(variableHolder._FalseJSIsFalse(pureChance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN); // this will trigger our rescue which means it didnt work if it didnt work
715
+ })
716
+ .rescue(() => {
717
+ // it did not work by pure chance
718
+ /// Attempt II
719
+ // inform our users of the bad things
720
+ logger.log(clc.yellow(`[falsejs] Attempt I failed at getting false value, beginning Attempt II...`));
721
+ if (not(isEqualTo)(pureChance, pureChance)) {
722
+ // something is broken
723
+ logger.log(colors.red(`[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`));
724
+ }
725
+ // let's try to calculate false using a random number
726
+ const chance = not($.equals)(MathRound(jQuery.multiply(MathRandom(), 1000)), MathRound(jQuery.multiply(MathRandom(), 1000)));
727
+ attempt(() => assert(variableHolder._FalseJSIsFalse(chance, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
728
+ .rescue(() => {
729
+ // it did not work by chance again
730
+ logger.log(clc.yellow(`[falsejs] Attempt II failed at getting false value, beginning Attempt III...`));
731
+ // lets see if our random is any of these key values
732
+ if (isOne(random)) {
733
+ result = $.equals(random, Two());
734
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
735
+ succeededAttempt = "III";
736
+ }
737
+ else if (isTwo(random)) {
738
+ result = $.equals(random, three());
739
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
740
+ succeededAttempt = "III";
741
+ }
742
+ else if (isThree(random)) {
743
+ result = $.equals(random, four());
744
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
745
+ succeededAttempt = "III";
746
+ }
747
+ else if (eightToolkit.isEight(random)) {
748
+ result = $.equals(random, five());
749
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
750
+ succeededAttempt = "III";
751
+ }
752
+ else if (isTen(random)) {
753
+ result = $.equals(random, eleven());
754
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
755
+ succeededAttempt = "III";
756
+ }
757
+ else if (isHundred(random)) {
758
+ result = $.equals(random, s(hundred));
759
+ logger.log(pc.green(`[falsejs] Attempt III succeeded. False value retrieved successfully`));
760
+ succeededAttempt = "III";
761
+ }
762
+ else {
763
+ // dang its not
764
+ logger.log(clc.yellow(`[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`));
765
+ const zeropointninebool = randomBoolean(jQuery.subtract(one, jQuery.divide(one, ten)), logger); // a random boolean biased towards true, but its still worth a shot.
766
+ tru(variableHolder._FalseJSIsFalse(zeropointninebool, loggingEnabled))
767
+ .then(() => {
768
+ logger.log(pc.green(`[falsejs] Attempt IV succeeded. False value retrieved successfully`));
769
+ result = zeropointninebool;
770
+ succeededAttempt = "IV";
771
+ })
772
+ .otherwise(() => {
773
+ logger.log(clc.yellow(`[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`));
774
+ const zeropointeightfivebool = randomBoolean((five() - five() / five()) / five() +
775
+ five() /
776
+ (five() * (five() * (five() - five() / five()))) -
777
+ five() /
778
+ five() /
779
+ (five() + five()) **
780
+ (five() *
781
+ (five() - five() / five() - five() / five()) +
782
+ five() / five()), logger); // a random boolean a tiny bit less biased towards true, but its still worth a shot.
783
+ If(variableHolder._FalseJSIsFalse(zeropointeightfivebool, loggingEnabled))
784
+ .Then(() => {
785
+ logger.log(pc.green(`[falsejs] Attempt V succeeded. False value retrieved successfully`));
786
+ result = zeropointeightfivebool;
787
+ succeededAttempt = "V";
788
+ })
789
+ .Else(() => {
790
+ logger.log(clc.yellow(`[falsejs] Attempt V failed at getting false value, beginning Attempt VI...`));
791
+ const zeropointsevennineninenineandsoonbool = randomBoolean(jQuery.subtract(jQuery.divide(jQuery.subtract(five(), jQuery.divide(five(), five())), five()), generalConcat(one.toString(), "e-", Two().toString(), eightToolkit.constants.EIGHT.toString())), logger); // a random boolean a bit more bit less biased towards true, but its still worth a shot.
792
+ if (variableHolder._FalseJSIsFalse(zeropointsevennineninenineandsoonbool, loggingEnabled)) {
793
+ logger.log(pc.green(`[falsejs] Attempt VI succeeded. False value retrieved successfully`));
794
+ result = zeropointsevennineninenineandsoonbool;
795
+ succeededAttempt = "VI";
796
+ }
797
+ else {
798
+ logger.log(clc.yellow(`[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`));
799
+ const compl = complexBooleanWithBias(logger); // an eeven more complex random boolean
800
+ attempt(() => assert(variableHolder._FalseJSIsFalse(compl, loggingEnabled), ERROR_THAT_WILL_NEVER_BE_SHOWN))
801
+ .rescue(() => {
802
+ logger.log(clc.yellow(`[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`));
803
+ const w = weirdestBoolean(logger); // an eeven eeven more complex random boolean
804
+ if (variableHolder._FalseJSIsFalse(w, loggingEnabled)) {
805
+ logger.log(pc.green(`[falsejs] Attempt VIII succeeded. False value retrieved successfully`));
806
+ result = w;
807
+ succeededAttempt = "VIII";
808
+ }
809
+ else {
810
+ logger.log(clc.yellow(`[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`));
811
+ const x =
812
+ // biome-ignore lint/complexity/noExtraBooleanCast: d
813
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0; // i don't know whether this is false or not let's just hope its false
814
+ if (variableHolder._FalseJSIsFalse(x, loggingEnabled)) {
815
+ logger.log(pc.green(`[falsejs] Attempt IX succeeded. False value retrieved successfully`));
816
+ result = x;
817
+ }
818
+ else {
819
+ // i shouldn't have added another exclamation mark
820
+ logger.log(clc.yellow(`[falsejs] Attempt IX failed at getting false value, beginning Attempt X, the final attempt...`));
821
+ succeededAttempt = "IX";
822
+ // omg the final attempt
823
+ // RANDOM PHONE NUMBER
824
+ const randomPhoneNumber = generatePhoneNumber();
825
+ fs.appendFileSync(".falsejs/phone-number-log.txt", `${randomPhoneNumber}\n`);
826
+ const my = randomPhoneNumber.endsWith("43"); // the last two digits of my phone number are 43
827
+ fs.appendFileSync(".falsejs/phone-number-log.txt", `\nfinal attempt:${my}\n\n`);
828
+ if (variableHolder._FalseJSIsFalse(my, loggingEnabled)) {
829
+ logger.log(pc.green(`[falsejs] Attempt X (Final attempt) succeeded. False value retrieved successfully`));
830
+ result = my;
831
+ succeededAttempt =
832
+ "Attempt X (final attempt)";
833
+ }
834
+ else {
835
+ logger.log(colors.red(`[falsejs] Final attempt failed. Resorting to Attempt XI, returning the result of the false-value library also by FalseJS, which uses quantum physics simulation...`));
836
+ const myNewFalseValue = falseValue();
837
+ If(variableHolder._FalseJSIsFalse(myNewFalseValue))
838
+ .Then(() => {
839
+ logger.log(pc.green(`[falsejs] Quantum physics simulation method succeeded. False value retrieved successfully.`));
840
+ result = myNewFalseValue;
841
+ succeededAttempt =
842
+ "Attempt XI (quantum physics simulation)";
843
+ })
844
+ .Else(() => {
845
+ logger.log(pc.red(`[falsejs] Quantum physics simulation failed. Resorting to the TRUE FINAL attempt, Attempt XII...`));
846
+ // THE FINAL ATTEMPT IS USING THE _f() FUNCTION, WHICH IS GUARANTEED TO RETURN FALSE
847
+ const THISHASTOBEFALSE = _f();
848
+ attempt(() => assert(variableHolder._FalseJSIsFalse(THISHASTOBEFALSE)))
849
+ .else(function () {
850
+ // IT WORKS
851
+ logger.log(pc.green(`[falsejs] True final attempt succeeded. False value retrieved successfully`));
852
+ result = THISHASTOBEFALSE;
853
+ succeededAttempt =
854
+ "Attempt XII (true final attempt)";
855
+ })
856
+ .rescue(function () {
857
+ // This... is impossible.
858
+ // The universe must be falling apart.
859
+ // We must return _getFalse again.
860
+ logger.log(pc.yellow(`[falsejs] True final attempt failed. Starting over from Attempt I.`));
861
+ const resultttt = _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger); // will return false
862
+ result = resultttt.result;
863
+ succeededAttempt =
864
+ resultttt.succeededAttempt;
865
+ })
866
+ .ensure(trueNoop)
867
+ .end();
868
+ });
869
+ }
870
+ }
871
+ }
872
+ })
873
+ .else(() => {
874
+ logger.log(pc.green(`[falsejs] Attempt VII succeeded. False value retrieved successfully`));
875
+ result = compl;
876
+ succeededAttempt = "VII";
877
+ })
878
+ .ensure(n0p3) // ensure we call noop for this
879
+ .end();
880
+ }
881
+ });
882
+ })
883
+ .end();
884
+ }
885
+ })
886
+ .else(() => {
887
+ // it worked!
888
+ result = chance;
889
+ logger.log(pc.green(`[falsejs] Attempt II succeeded. False value retrieved successfully`));
890
+ succeededAttempt = "II";
891
+ })
892
+ .ensure(n0p3) //again ensure noop
893
+ // and as always end our thing
894
+ .end();
895
+ })
896
+ .else(() => {
897
+ result = pureChance;
898
+ logger.log(pc.green(`[falsejs] Attempt I succeeded. False value retrieved successfully`));
899
+ succeededAttempt = "I";
900
+ })
901
+ .ensure(n0p3)
902
+ .end();
903
+ return {
904
+ // @ts-expect-error
905
+ result,
906
+ // @ts-expect-error
907
+ succeededAttempt,
908
+ }; // return our false value
909
+ }
910
+ function _calculateFalse(random, loggingEnabled, shouldDoSomethingAsync = FALSE, shouldDoSomethingAsyncWithIsTenThousand = FALSE, disableAprilFoolsSideEffects = FALSE, strictDisableAprilFoolsSideEffectsCheck = trueComparison.compare(), compatibilityMode = COMPATIBILITY_MODE.NONE) {
911
+ const logger = construct({
912
+ target: Logger,
913
+ args: [loggingEnabled],
914
+ }); // create our logger
915
+ var result; // define a result
916
+ var succeededAttempt; // define an attempt number that succeeded
917
+ isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger); // make sure ten thousand is ten thousand and vValue works
918
+ doSelfEqualityChecks(loggingEnabled); // do self equality checks
919
+ construct({
920
+ target: TernaryCompare,
921
+ args: [loggingEnabled, logOne, blankSpace],
922
+ }).compare()(); // very very important
923
+ if (loggingEnabled)
924
+ require("wormhole-interconnections"); // wormhole
925
+ logger.log(c.cyan(`[falsejs] `.concat(generalConcat(StringValueof(thirteenResolver()), SPACE, "×", SPACE, StringValueof(Two()), SPACE, "=", SPACE, thirteen(Two())))));
926
+ // our users should know some basic info
927
+ // the os:
928
+ If(isWindows())
929
+ .Then(() => {
930
+ // Windows
931
+ logger.log(clc.cyanBright(`[falsejs] Using Windows as current operating system`));
932
+ })
933
+ .Else()
934
+ .If(isLinux())
935
+ .Then(() => {
936
+ // Linux
937
+ logger.log(clc.cyanBright(`[falsejs] Using Linux as current operating system`));
938
+ })
939
+ .Else()
940
+ .If(isOSX())
941
+ .Then(() => {
942
+ // AppleOS (Darwin)
943
+ logger.log(clc.cyanBright(`[falsejs] Using Darwin as current operating system platform (macOS, iOS, etc.)`));
944
+ })
945
+ .Else()
946
+ .If(isEqualTo(os.platform(), "aix"))
947
+ .Then(() => {
948
+ // AIX??
949
+ logger.log(clc.cyanBright(`[falsejs] Using IBM AIX as current operating system`));
950
+ })
951
+ .Else()
952
+ .If(isFreeBSD())
953
+ .Then(() => {
954
+ // FreeBSD
955
+ logger.log(clc.cyanBright(`[falsejs] Using FreeBSD as current operating system`));
956
+ })
957
+ .Else()
958
+ .If(isEqualTo(os.platform(), "openbsd"))
959
+ .Then(() => {
960
+ // OpenBSD
961
+ logger.log(clc.cyanBright(`[falsejs] Using OpenBSD as current operating system`));
962
+ })
963
+ .Else()
964
+ .If(isEqualTo(os.platform(), "netbsd"))
965
+ .Then(() => {
966
+ // NetBSD
967
+ logger.log(clc.cyanBright(`[falsejs] Using NetBSD as current operating system`));
968
+ })
969
+ .Else()
970
+ .If(isEqualTo(os.platform(), "cygwin"))
971
+ .Then(() => {
972
+ //cygwin
973
+ logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`));
974
+ })
975
+ .Else()
976
+ .If(isEqualTo(os.platform(), "sunos"))
977
+ .Then(() => {
978
+ // Solaris/SunOS
979
+ logger.log(clc.cyanBright(`[falsejs] Using SunOS/Solaris as current operating system`));
980
+ })
981
+ .Else()
982
+ .If(isEqualTo(os.platform(), "android"))
983
+ .Then(() => {
984
+ // Android
985
+ logger.log(clc.cyanBright(`[falsejs] Using Android as current operating system. coding on your phone, are you?`));
986
+ })
987
+ .Else(() => {
988
+ logger.log(clc.cyanBright(`[falsejs] Even Node.js itself doesn't know your operating system.`));
989
+ });
990
+ /// I'm actually curious what more can we do with process and os?
991
+ // lets find out. hmm process.cpuusage whats that
992
+ const usage = process.cpuUsage();
993
+ logger.log(clc.cyanBright(getValueOfThisStringText(`[falsejs] User CPU Usage: ${usage.user}`)));
994
+ logger.log(clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`));
995
+ // lets calculate days of the week and months and days and years and stuff
996
+ if (isJanuary(Today))
997
+ logger.log(clc.cyanBright(`[falsejs] The month is January`));
998
+ if (isFebruary(Today))
999
+ logger.log(clc.cyanBright(`[falsejs] The month is February`));
1000
+ if (isMarch(Today))
1001
+ logger.log(clc.cyanBright(`[falsejs] The month is March`));
1002
+ if (isApril(Today))
1003
+ logger.log(clc.cyanBright(`[falsejs] The month is April`));
1004
+ if (isMay(Today))
1005
+ logger.log(clc.cyanBright(`[falsejs] The month is May`));
1006
+ if (isJune(Today))
1007
+ logger.log(clc.cyanBright(`[falsejs] The month is June`));
1008
+ if (isJuly(Today))
1009
+ logger.log(clc.cyanBright(`[falsejs] The month is July`));
1010
+ if (isAugust(Today))
1011
+ logger.log(clc.cyanBright(`[falsejs] The month is August`));
1012
+ if (isSeptember(Today))
1013
+ logger.log(clc.cyanBright(`[falsejs] The month is September`));
1014
+ if (isOctober(Today))
1015
+ logger.log(clc.cyanBright(`[falsejs] The month is October`));
1016
+ if (isNovember(Today))
1017
+ logger.log(clc.cyanBright(`[falsejs] The month is November`));
1018
+ if (isDecember(Today))
1019
+ logger.log(clc.cyanBright(`[falsejs] The month is December`));
1020
+ if (isMonday())
1021
+ logger.log(clc.cyanBright(`[falsejs] Today is Monday`));
1022
+ if (isTuesday())
1023
+ logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`));
1024
+ if (isWednesday())
1025
+ logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`));
1026
+ if (isThursday())
1027
+ logger.log(clc.cyanBright(`[falsejs] Today is Thursday`));
1028
+ if (isFriday())
1029
+ logger.log(clc.cyanBright(`[falsejs] Today is Friday`));
1030
+ if (isSaturday())
1031
+ logger.log(clc.cyanBright(`[falsejs] Today is Saturday`));
1032
+ if (isSunday())
1033
+ logger.log(clc.cyanBright(`[falsejs] Today is Sunday`));
1034
+ if (isWeekend())
1035
+ logger.log(clc.cyanBright(`[falsejs] It's the weekend!`));
1036
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random happy emoji: `, randomHappyEmoji())));
1037
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random angry emoji: `, randomAngryEmoji())));
1038
+ logger.log(clc.cyanBright(generalConcat(`[falsejs] Random food emoji: `, randomFoodEmoji())));
1039
+ construct({
1040
+ target: TernaryCompare,
1041
+ args: [loggingEnabled, dolphinFact, noop3],
1042
+ }).compare()();
1043
+ // lets do something async
1044
+ if (shouldDoSomethingAsync) {
1045
+ doSomethingAsync(logger).then((l) => resultOfDoingSomethingAsync(l));
1046
+ }
1047
+ If(not(isNumberOddOrEven)(random, FALSE))
1048
+ .Then(() => {
1049
+ logger.log(clc.yellow(`[falsejs] Random number is not odd or even`));
1050
+ })
1051
+ .Else(() => {
1052
+ logger.log(pc.green(`[falsejs] Verified that the random number is odd or even`));
1053
+ });
1054
+ // is odd checks
1055
+ If(!isIsOdd(isOdd))
1056
+ .Then(() => {
1057
+ logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`));
1058
+ logger.log(clc.yellow(`[falsejs] That's weird`));
1059
+ })
1060
+ .Else(n0p3);
1061
+ If(isIsOdd(isOddAndrew))
1062
+ .Then(() => {
1063
+ logger.log(pc.green(`[falsejs] Good for Andrew`));
1064
+ })
1065
+ .Else(noop6);
1066
+ If(isIsOdd(isOd))
1067
+ .Then(() => {
1068
+ logger.log(pc.green(`[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)`)); // TODO: Add pronunciaton
1069
+ })
1070
+ .Else(() => {
1071
+ /*
1072
+ logger.log(
1073
+ getValueOfThisStringText(
1074
+ clc.cyan(
1075
+ `[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 . `
1076
+ )
1077
+ )
1078
+ )*/
1079
+ });
1080
+ If(isIsOdd(isOddNum))
1081
+ .Then(() => {
1082
+ logger.log(pc.green(`[falsejs] Good for prasundas`));
1083
+ })
1084
+ .Else(noop4());
1085
+ If(isIsOdd(isIntegerOdd))
1086
+ .Then(() => {
1087
+ logger.log(pc.green(`[falsejs] Good for hoanduy1710`));
1088
+ })
1089
+ .Else(noop2);
1090
+ If(isIsOdd(noteven))
1091
+ .Then(() => {
1092
+ logger.log(pc.green(`[falsejs] Good for DeaSTL`));
1093
+ })
1094
+ .Else(noop3);
1095
+ If(isIsOdd(isUneven))
1096
+ .Then(() => {
1097
+ logger.log(pc.green(`[falsejs] Good for Robin`));
1098
+ })
1099
+ .Else(noop7);
1100
+ If(isIsOdd(numberKind.odd))
1101
+ .Then(() => {
1102
+ logger.log(pc.green(`[falsejs] Good for goten`));
1103
+ })
1104
+ .Else(noop8);
1105
+ If(isIsOdd(isOddFaster))
1106
+ .Then(() => {
1107
+ logger.log(pc.green(`[falsejs] Bad for bvpranu97, 'cos he wanted to make a faster version but his version is literally the same LOL`));
1108
+ })
1109
+ .Else(noop9);
1110
+ If(isIsOdd(gabrielBrotasIsOdd.isOdd))
1111
+ .Then(() => {
1112
+ logger.log(pc.green(`[falsejs] Good for Gabriel`));
1113
+ })
1114
+ .Else(blankSpace);
1115
+ If(isIsOdd(returnIfOddNumber))
1116
+ .Then(() => {
1117
+ logger.log(pc.green(`[falsejs] Good for iamrahulpatel`));
1118
+ })
1119
+ .Else(blankSpaceNoop);
1120
+ If(isIsOdd(numberIsOdd))
1121
+ .Then(() => {
1122
+ logger.log(pc.green(`[falsejs] Good for Scott`));
1123
+ })
1124
+ .Else(asyncUtilNoop);
1125
+ If(isIsOdd(isNumOdd))
1126
+ .Then(() => {
1127
+ logger.log(pc.green(`[falsejs] Good for Shivam`));
1128
+ })
1129
+ .Else(() => noopGenerator().next());
1130
+ If(isIsOdd(isOddNumber))
1131
+ .Then(() => {
1132
+ logger.log(pc.green(`[falsejs] Good for LinkDev`));
1133
+ })
1134
+ .Else(fjNoop);
1135
+ If(isIsOdd(isNumberOdd))
1136
+ .Then(() => {
1137
+ logger.log(pc.green(`[falsejs] Good for aliraza401`));
1138
+ })
1139
+ .Else(lodashNoop);
1140
+ If(isIsOdd(isThisNumberOdd))
1141
+ .Then(() => {
1142
+ logger.log(pc.green(`[falsejs] Good for makogai`));
1143
+ })
1144
+ .Else(lodash_Noop);
1145
+ // now let's run some lua code
1123
1146
  const myLuaScript = `
1124
1147
  local message = "[falsejs] Bye from Lua!"
1125
1148
  print(message)
1126
- `;
1127
- const parsedLua = luaParser.parse(myLuaScript);
1128
- if (loggingEnabled)
1129
- luaInterpreter.interpret(parsedLua); // run our lua code when the program ends
1130
- logger.log(colors.red(vValue(isuseless(StringValueof(lowercase(`[falsejs] This is in lowercase`))))));
1131
- // okay we need to calculate false
1132
- if (not(isAprilFools)()) {
1133
- if (disableAprilFoolsSideEffects) {
1134
- if (strictDisableAprilFoolsSideEffectsCheck) {
1135
- immediateError(colors.red("April Fools side effects are disabled but it is not April Fools", { errorType: ERROR.Error }));
1136
- return exit(one);
1137
- }
1138
- else {
1139
- logger.log(clc.yellow(`[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`));
1140
- // call the _getFalse function
1141
- const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1142
- result = daresult.result;
1143
- succeededAttempt = daresult.succeededAttempt;
1144
- }
1145
- }
1146
- else {
1147
- // call the _getFalse function
1148
- const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1149
- result = daresult.result;
1150
- succeededAttempt = daresult.succeededAttempt;
1151
- }
1152
- }
1153
- else {
1154
- result = _calculateFalseAprilFools();
1155
- logger.log(pc.green(`[falsejs] Value retrieved successfully`));
1156
- }
1157
- // Validation
1158
- logger.log(clc.cyanBright(`[falsejs] Beginning validation`));
1159
- logger.log(clc.cyanBright(`[falsejs] Beginning check one of validation`));
1160
- if (not(isRealBoolean)(result)) {
1161
- logger.log(colors.red(`[falsejs] Result was not a boolean`));
1162
- logger.log(colors.red(`[falsejs] Booleanifying the result`));
1163
- // Make sure our result is always a boolean
1164
- result = $Boolean(result);
1165
- if (not(isRealBoolean)(result)) {
1166
- logger.log(colors.red(`[falsejs] Result is still not a boolean after booleanification`));
1167
- logger.log(colors.red(`[falsejs] Attempting to trace the source of the problem`));
1168
- if (isRealBoolean(Boolean(result)) && !isRealBoolean($Boolean(result))) {
1169
- logger.log(clc.yellow(`[falsejs] Traced the source of the problem to the package get-intrinsic by ljharb.`));
1170
- logger.log(clc.yellow(`[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`));
1171
- result = Boolean(result); // now it's a boolean
1172
- logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1173
- }
1174
- else {
1175
- logger.log(colors.red(`[falsejs] × Validation failed to pass.`));
1176
- throwError(construct({
1177
- target: FalseJSValidationFailedToPassError,
1178
- args: ["Validation failed to pass"]
1179
- }));
1180
- return exit(one);
1181
- }
1182
- }
1183
- else {
1184
- logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1185
- }
1186
- }
1187
- else {
1188
- logger.log(pc.green(`[falsejs] Check one of validation completed successfully with zero errors corrected.`));
1189
- }
1190
- logger.log(clc.cyanBright(`[falsejs] Beginning check two of validation`));
1191
- if (isPreciselyTrue(result) && not(isAprilFools)()) {
1192
- logger.log(colors.red(`[falsejs] Result was true and not false. Updating result to negation of result.`));
1193
- result = not(() => result)();
1194
- logger.log(pc.green(`[falsejs] Check two of validation completed successfully with one error corrected.`));
1195
- }
1196
- else {
1197
- logger.log(pc.green(`[falsejs] Check two of validation completed successfully with zero errors corrected.`));
1198
- }
1199
- logger.log(pc.green(`[falsejs] Validation completed successfully`));
1200
- logger.log(pc.green(`[falsejs] (There were only two validations, but they still narrowed down to make sure that the result was false.)`));
1201
- logger.log(pc.green(`[falsejs] False value has now been validated and calculated.`));
1202
- // Compatibility mode
1203
- if (isEqual(compatibilityMode, COMPATIBILITY_MODES.IE5)) {
1204
- logger.log(c.yellow("[falsejs] IE5 Compatibility Mode Detected"));
1205
- // Garbage collection
1206
- logger.log(c.yellow("[falsejs:ie5] Activating JScript Engine Coercion Guard And Garbage Collection..."));
1207
- let CoercionGuardArrayRef___ = Null();
1208
- const iterationCount = jQuery.multiply(jQuery.multiply(thirteenResolver(), thirteenResolver()), thirteenResolver());
1209
- logger.log(c.yellow(`[falsejs:ie5] Simulating ${iterationCount} JScript operations...`));
1210
- for (let i = zr0(); i < iterationCount; i = i + one) {
1211
- CoercionGuardArrayRef___ = construct({ target: $Array, args: [iterationCount] }).fill(useGarbage.string());
1212
- const garbageCollector = jQuery.multiply(MathSqrt(i), i);
1213
- if (garbageCollector > jQuery.multiply(i, i)) {
1214
- CoercionGuardArrayRef___.indexOf(immediateError("[falsejs:ie5] IE5 Simulation error: Impossible math detected", ERROR.BaseError)); // throws an error and passes it into indexof for no reason
1215
- return exit(one);
1216
- }
1217
- }
1218
- logger.log(c.green(`[falsejs:ie5] JScript Highly Optimized Garbage Collection Completed`));
1219
- const zeroValue = returnZero({
1220
- method: ZeroCalculationMethod.CreashaksOrganzine,
1221
- loggingEnabled: FALSE
1222
- });
1223
- const nullValue = Null();
1224
- // @ts-expect-error
1225
- if (result == zeroValue) {
1226
- // biome-ignore lint/suspicious/noTsIgnore: reason blabal
1227
- // @ts-ignore
1228
- if (result === zeroValue) {
1229
- immediateError(`[falsejs:ie5] Critical Error: IE5-like strict coercion detected! Aborting.`);
1230
- return exit(one);
1231
- }
1232
- }
1233
- if (result == nullValue) {
1234
- immediateError(`[falsejs:ie5] Fatal Error: Unexpected VBScript null coercion detected! Aborting.`);
1235
- return exit(one);
1236
- }
1237
- logger.log(c.yellow(`[falsejs:ie5] Warning: Potential VBScript object coersion threat averted.`));
1238
- }
1239
- if (isEqual(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE)) {
1240
- logger.log(c.yellow("[falsejs] Netscape Compatibility Mode Detected"));
1241
- logger.log(c.yellow("[falsejs:netscape] Activating JavaScript 1.1 Type Coercion Audit..."));
1242
- const auditIterationCount = jQuery.add(Number(complexBooleanWithBias(logger)) + zr0(), returnZero({
1243
- method: ZeroCalculationMethod.CreashaksOrganzine,
1244
- loggingEnabled: FALSE
1245
- })) *
1246
- thirteenResolver() +
1247
- thirteenResolver();
1248
- let errorCount = returnZero({
1249
- method: ZeroCalculationMethod.NumberPrototypeValue,
1250
- loggingEnabled: FALSE
1251
- });
1252
- logger.log(c.yellow(`[falsejs:netscape] Running ${auditIterationCount} type checks against Netscape 1.1 standards...`));
1253
- for (let i = zr0(); i < auditIterationCount; i = i + one) {
1254
- const valueToCheck = construct({ target: $String, args: [i] });
1255
- const isCoercedToFalse = valueToCheck == result;
1256
- if (isCoercedToFalse && i !== zr0()) {
1257
- errorCount = errorCount + one;
1258
- if (errorCount > thirteenResolver()) {
1259
- immediateError("[falsejs:netscape] Netscape Audit Limit Reached! Aborting.", ERROR.BaseError);
1260
- return exit(one);
1261
- }
1262
- }
1263
- }
1264
- logger.log(c.green(`[falsejs:netscape] Type Bug Checks Passed Succesfully! No More Than 13 Errors Was Reached!`));
1265
- logger.log(c.yellow(`[falsejs:netscape] DHTML Layer Tag Structural Integrity Test Begins`));
1266
- const dom = new JSDOM(`<!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>`);
1267
- const $ = cheerio.load(dom.serialize());
1268
- const layerElement = $("layer");
1269
- const layerExists = layerElement.length > zr0();
1270
- const rawHTML = dom.window.document.body.innerHTML;
1271
- const strippedText = striptags(rawHTML);
1272
- const integrityCheck = strippedText.includes("A Netscape Layer!");
1273
- if (layerExists && integrityCheck) {
1274
- logger.log(c.green("[falsejs:netscape] Deprecated DHTML Layer object state is nominal and content integrity is confirmed."));
1275
- }
1276
- else {
1277
- immediateError(`[falsejs:netscape] DHTML Check Failure! Type integrity compromised. Expected LAYER tag but got ${layerElement.length} elements.`, ERROR.BaseError);
1278
- return exit(one);
1279
- }
1280
- if (typeof dom !== "undefined" && typeof $ !== "undefined") {
1281
- logger.log(c.green(`[falsejs:netscape] Successfully managed memory from ${JSDOM.name} and ${cheerio.name}. No state pollution detected.`));
1282
- }
1283
- else {
1284
- immediateError(`[falsejs:netscape] Fatal Error: Global scope polluted by DOM libraries. Cannot guarantee false value.`, ERROR.BaseError);
1285
- return exit(one);
1286
- }
1287
- }
1288
- if (isEqual(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1289
- logger.log(c.yellow("[falsejs] Opera Presto Compatibility Mode Detected"));
1290
- logger.log(c.yellow("[falsejs:presto] Activating Presto Engine Scripting Delay And DOM Audit..."));
1291
- const delayIterations = jQuery.multiply(thirteenResolver(), thirteenResolver());
1292
- logger.log(c.yellow(`[falsejs:presto] Initiating rendering for ${delayIterations} cycles...`));
1293
- logger.log(c.green("[falsejs:presto] Instantiating full-featured JSDOM environment..."));
1294
- const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
1295
- url: "http://opera-presto-compatibility-check.local/",
1296
- referrer: "http://netscape-dhtml-audit.local/", // Link to Netscape for extra flavor
1297
- contentType: "text/html",
1298
- includeNodeLocations: true,
1299
- runScripts: "outside-only"
1300
- });
1301
- const { window: window_ } = dom; // Destructure the actual window object
1302
- const startTime = new $Date().getTime();
1303
- for (let i = returnZero({ method: ZeroCalculationMethod.CreashaksOrganzine, loggingEnabled: FALSE }); i < delayIterations; i = i + one) {
1304
- const renderingEvaluation = MathSin(MathRandom() * i) * MathCos(MathRandom() * i);
1305
- if (renderingEvaluation > thirteenResolver() * thirteenResolver()) {
1306
- immediateError("[falsejs:presto] Presto Simulation Error: Time-Space Anomaly detected.", ERROR.BaseError);
1307
- return exit(one);
1308
- }
1309
- }
1310
- const endTime = new $Date().getTime();
1311
- const blockingTime = endTime - startTime;
1312
- logger.log(c.green(`[falsejs:presto] Rendering complete. Latency: ${blockingTime}ms`));
1313
- logger.log(c.yellow("[falsejs:presto] Running Audit on JSDOM Window Properties..."));
1314
- const mockElement = window_.document.createElement("div");
1315
- const propertyToCheck = "scrollIntoViewIfNeeded";
1316
- if (isEqual(typeof mockElement[propertyToCheck], "function")) {
1317
- immediateError(`[falsejs:presto] Fatal Error: JSDOM Window polluted by Opera-era non-standard method '${propertyToCheck}'!`, ERROR.BaseError);
1318
- return exit(one);
1319
- }
1320
- if (isEqual(typeof window_.opera, "object") && window_.opera !== null) {
1321
- immediateError("[falsejs:presto] Critical Error: Global 'opera' object detected in JSDOM Window!", ERROR.BaseError);
1322
- return exit(one);
1323
- }
1324
- if (typeof window_.event !== "undefined") {
1325
- logger.log(c.red("[falsejs:presto] Warning: Global 'event' object detected. Input integrity compromised."));
1326
- }
1327
- else {
1328
- logger.log(c.green("[falsejs:presto] Global 'event' object is clean."));
1329
- }
1330
- window_.close();
1331
- logger.log(c.yellow("[falsejs:presto] JSDOM Window successfully closed and memory released."));
1332
- logger.log(c.yellow(`[falsejs:presto] Presto audit completed successfully.`));
1333
- }
1334
- if (loggingEnabled) {
1335
- const message = "thanks for using this package";
1336
- let thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)));
1337
- const thesay2 = tacoWrap(emoji100.concat(SPACE, message));
1338
- const thesay3 = tacoWrap(emoji100.concat(SPACE, uwuifier.uwuifySentence(message)));
1339
- if (isEqualTo(thesay, thesay2))
1340
- thesay = thesay3;
1341
- sayIt(thesay); // give our users a cute message so we can get their support
1342
- // string interpelation
1343
- ltc(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulated")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`.concat(SPACE).concat(emoji100));
1344
- // @ts-expect-error
1345
- if (succeededAttempt != null) {
1346
- ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.magenta(generalConcat("The attempt that succeeded was attempt ", succeededAttempt))));
1347
- fs.appendFileSync(".falsejs/phone-number-log.txt", generalConcat("succeeded attempt: ", succeededAttempt, "\n"));
1348
- }
1349
- ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.rainbow(`Thanks for using this package`)));
1350
- ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.random(`I really appreciate it`)));
1351
- ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.america(`Star the repo and follow me on GitHub: `)));
1352
- ltc(clc.cyanBright(`[falsejs]`).concat(SPACE, chalk.underline("https://github.com/tj-commits")));
1353
- ltc(clc.cyanBright(`[falsejs]`).concat(SPACE, clc.cyanBright(`And a very big random number is`), SPACE) +
1354
- `${chalkbox.rainbow(numberFormatter.format(MathRound(surpriseArray.reduce((v, _, i, a) => {
1355
- // @ts-expect-error
1356
- return jQuery.add(v, a.getMember(i));
1357
- }))))}`);
1358
- ltc(`${clc.cyanBright(`[falsejs]`).concat(SPACE)}${c.red(`False`)}${c.green(`JS`)}`);
1359
- ltc(blankSpaces);
1360
- }
1361
- return result;
1362
- }
1363
- functions.ReturnFalse = (enableLogging = NO, shouldDoSomethingAsync = NO, shouldDoSomethingAsyncWithIsTenThousand = NO, disableAprilFoolsSideEffects = NO, definitelyDisableAprilFoolsSideEffects = NO, strictDisableAprilFoolsSideEffectsCheck = YES, compatibilityMode = COMPATIBILITY_MODE.NONE) => {
1364
- if (enableLogging === YES)
1365
- require("amalpkg")(); // indeed XD
1366
- // validate our values
1367
- if (not(isEqualTo)(enableLogging, NO) && not(isEqualTo)(enableLogging, YES)) {
1368
- immediateError("enableLogging must be yes or no", {
1369
- errorType: ERROR.TypeError
1370
- });
1371
- return exit(one);
1372
- }
1373
- if (not(isEqualTo)(shouldDoSomethingAsync, NO) && not(isEqualTo)(shouldDoSomethingAsync, YES)) {
1374
- immediateError("shouldDoSomethingAsync must be yes or no", {
1375
- errorType: ERROR.TypeError
1376
- });
1377
- return exit(one);
1378
- }
1379
- if (not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, NO) && not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, YES)) {
1380
- immediateError("shouldDoSomethingAsyncWithIsTenThousand must be yes or no", { errorType: ERROR.TypeError });
1381
- return exit(one);
1382
- }
1383
- if (not(isEqualTo)(disableAprilFoolsSideEffects, NO) && not(isEqualTo)(disableAprilFoolsSideEffects, YES)) {
1384
- immediateError("disableAprilFoolsSideEffects must be yes or no", {
1385
- errorType: ERROR.TypeError
1386
- });
1387
- return exit(one);
1388
- }
1389
- if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) && not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1390
- immediateError("definitelyDisableAprilFoolsSideEffects must be yes or no", {
1391
- errorType: ERROR.TypeError
1392
- });
1393
- return exit(one);
1394
- }
1395
- if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) && not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1396
- immediateError("strictDisableAprilFoolsSideEffectsCheck must be yes or no", {
1397
- errorType: ERROR.TypeError
1398
- });
1399
- return exit(one);
1400
- }
1401
- if (not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NONE) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.IE5) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE) && not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1402
- immediateError("compatibilityMode must be a valid compatibility mode", {
1403
- errorType: ERROR.TypeError
1404
- });
1405
- }
1406
- // let's say hello to our users and inform them logging enabled if it is
1407
- if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), Bro.TOTALLY)) {
1408
- ltc(clc.cyanBright(`[falsejs] Logging enabled`));
1409
- ltc(clc.cyan(`[falsejs]`.concat(leftPad(greet(username), LEFT_PAD_INPUT))));
1410
- hello({ username, age: "it's called FalseJS!" });
1411
- mGenbaneko.say(clc.redBright(meow()));
1412
- require("peter"); // OH NO IT'S PETER
1413
- // @ts-expect-error
1414
- console.dog(emptyString);
1415
- require("greenlantern"); // Hello World
1416
- ltc(clc.cyanBright(`[falsejs] Using Lodash version ${_.VERSION}`));
1417
- ltc(clc.cyanBright(`[falsejs] Using Underscore version ${underscore.VERSION}`));
1418
- ltc(clc.cyanBright(`[falsejs] Using Axios version ${axios.VERSION}`));
1419
- ltc(clc.cyanBright(`[falsejs] Using React version ${React.version}`));
1420
- }
1421
- // deduce a random number
1422
- const randomNumber = add(MathFloor(MathRandom() * numberOneHundred), one);
1423
- if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), Bro.TOTALLY)) {
1424
- ltc(clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`) // lets inform our users if they have loggineanbled
1425
- );
1426
- ltc(clc.cyanBright(`[falsejs] Doing something async ${construct({
1427
- target: TernaryCompare,
1428
- args: [yesNo.parse(shouldDoSomethingAsync), "enabled", "disabled"]
1429
- }).compare()}`));
1430
- ltc(clc.cyanBright(`[falsejs] Doing something async with is-ten-thousand ${construct({
1431
- target: TernaryCompare,
1432
- args: [yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand), "enabled", "disabled"]
1433
- }).compare()}`));
1434
- }
1435
- const loggingEnabled = enableLogging;
1436
- const logger = {
1437
- log(l) {
1438
- if (isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled)))
1439
- ltc(l);
1440
- }
1441
- };
1442
- if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
1443
- logger.log(clc.yellow(`[falsejs] Strict disable April Fools side effects checking disabled`));
1444
- }
1445
- _return(vretriever.retrieve(immo(isuseless(vValue(_.identity(underscore.identity(literally(constant(lodashdotconstant(_.constant(underscore.constant(doop(_calculateFalse, randomNumber, // random number
1446
- yesNo.parse(enableLogging), // eanble logging
1447
- yesNo.parse(shouldDoSomethingAsync), // async
1448
- yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand), //async-is-ten-thousand
1449
- yesNo.parse(disableAprilFoolsSideEffects) && yesNo.parse(definitelyDisableAprilFoolsSideEffects), yesNo.parse(strictDisableAprilFoolsSideEffectsCheck), compatibilityMode))())())())())())))))));
1450
- };
1451
- variableHolder._FalseJSMainFunctionWotDoesFunctionality = functions.ReturnFalse;
1452
- // now lets define some helper fufnctions
1453
- // just some weaird boolean functions
1454
- function randomBoolean(biasThreshold /* biasTreshold is chance of being true */, logger) {
1455
- const randomValue = MathRandom();
1456
- logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1457
- const binaryString = jQuery.multiply(randomValue, (five() + five()) ** (five() + five() / five())).toString(Two());
1458
- const bitMask = five() * (five() + (five() - (five() / five() + five() / five()))) + five() / five() + five() / five(); // the meaning of life
1459
- const bitResult = parseInt(binaryString.slice(returnZero({
1460
- method: ZeroCalculationMethod.CreashaksOrganzine,
1461
- loggingEnabled: logger.enableLogging
1462
- }), six()), Two()) ^ bitMask;
1463
- const segment = bitResult.toString(sixteen).slice(returnZero({
1464
- method: ZeroCalculationMethod.CreashaksOrganzine,
1465
- loggingEnabled: logger.enableLogging
1466
- }), one);
1467
- const mappedValue = parseInt(segment, sixteen) % Two();
1468
- const biasedRandomValue = construct({
1469
- target: TernaryCompare,
1470
- args: [
1471
- MathRandom() < biasThreshold,
1472
- one,
1473
- returnZero({
1474
- method: ZeroCalculationMethod.CreashaksOrganzine,
1475
- loggingEnabled: logger.enableLogging
1476
- })
1477
- ]
1478
- }).compare();
1479
- // @ts-expect-error
1480
- const value = $.divide(add(mappedValue, biasedRandomValue), Two());
1481
- return value >= five() / five() / (five() / five() + five() / five());
1482
- }
1483
- function complexBooleanWithBias(logger) {
1484
- // Generate a pseudo-random number between 0 and 1
1485
- const randomValue = MathRandom();
1486
- logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1487
- // Convert the random number to a high-precision string and manipulate it
1488
- const highPrecisionString = (randomValue * (five() + five()) ** (five() + (five() - (five() / five() + five() / five())))).toFixed(zr0());
1489
- // Perform a base conversion
1490
- const baseConverted = parseInt(highPrecisionString, ten).toString((five() + (five() / five() + five() / five())) * five() + five() / five());
1491
- // Calculate a hash-like value using trigonometric functions
1492
- const trigValue = parseFloat(
1493
- // @ts-expect-error
1494
- parseFloat(
1495
- // @ts-expect-error
1496
- add("0.", baseConverted)) *
1497
- (five() + (five() / five() + five() / five())) *
1498
- five() +
1499
- five() / five()) *
1500
- PI *
1501
- Two();
1502
- // Determine if this value is close to a specific fraction
1503
- const isCloseToFraction = MathAbs(trigValue - five() / five() / (five() / five() + five() / five())) < five() / five() / (five() + five()) + (five() - (five() / five() + five() / five())) / (five() * (five() * (five() - five() / five())));
1504
- // Generate a secondary random number with a different scale
1505
- const secondaryRandom = $.multiply(MathRandom(), (five() + five()) ** (five() - (five() / five() + five() / five())));
1506
- // Check if the secondary random number is a prime number
1507
- const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger);
1508
- // Generate a bias value (6% chance of true)
1509
- const biasThreshold = five() / five() / (five() + five());
1510
- const biasRandom = MathRandom() < biasThreshold ? zr0() : one;
1511
- // Combine the results using weighted averaging
1512
- const combinedResult = $.divide(isCloseToFraction + isPrime + biasRandom, three());
1513
- // Return boolean based on the final weighted result
1514
- return combinedResult >= five() / five() / (five() / five() + five() / five());
1515
- }
1516
- function weirdestBoolean(logger) {
1517
- // Step 1: Generate a pseudo-random floating-point number
1518
- const randomValue = MathRandom();
1519
- // Step 2: Create a string representation of the random number in base-36
1520
- const base36String = (randomValue * (five() + five()) ** ((five() - (five() / five() + five() / five())) * (five() - five() / five()))).toFixed(zr0()).toString();
1521
- // Step 3: Create a hash-like transformation by summing ASCII values of characters
1522
- var asciiSum = zr0();
1523
- for (const char of base36String) {
1524
- asciiSum += char.charCodeAt(zr0());
1525
- }
1526
- // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
1527
- const bitManipulated = (asciiSum ^ ((five() / five() + five() / five()) * (five() + five()) ** (five() - five() / five()) + (five() - (five() / five() + five() / five())) * (five() + five()) ** (five() - (five() / five() + five() / five())) + (five() / five()) * (five() * (five() * (five() - five() / five()))) + (five() - (five() / five() + five() / five())) * (five() + five()))) & (five() * (five() * (five() + five() + (five() / five() / (five() + five()) + five() / five() / (five() + five()))))); // XOR and mask to get a byte
1528
- // Step 5: Convert the result to a binary string and calculate a checksum-like value
1529
- const binaryString = bitManipulated.toString(Two()).padStart(eightToolkit.constants.EIGHT, "0");
1530
- const checksum = Array.from(binaryString).reduce((acc, bit) => acc + parseInt(bit, ten), zr0());
1531
- // Step 6: Use a matrix of numbers to obscure the logic
1532
- const someNumbers = [Two(), three(), five(), seven(), eleven(), thirteenResolver(), integer17(), nineteenify(logger.enableLogging), TWENTY_THREE, TWENTY_THREE + six()];
1533
- const matrixIndex = checksum % someNumbers.length;
1534
- const primeValue = someNumbers[matrixIndex];
1535
- // Step 7: Generate a complex random number using trigonometric functions
1536
- const trigValue = $.multiply($.divide($.multiply(primeValue, PI), four()), (five() + five()) ** (five() - (five() / five() + five() / five())) / (five() / five() + five() / five()));
1537
- const isAboveThreshold = trigValue > (five() + five()) ** (five() - (five() / five() + five() / five())) / (five() / five() + five() / five()); // Arbitrary threshold
1538
- // Step 8: Introduce an additional layer of randomness with bias
1539
- const bias = MathRandom() < (five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()) - five() / five() / (five() + five()) ? one : zr0(); // 75% chance of 1
1540
- // Step 9: Combine results using a complex formula
1541
- const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias); // XOR operation
1542
- // Step 10: Calculate complex boolean with bias from other function
1543
- const complexBoolean = complexBooleanWithBias(logger);
1544
- // Step 11: Calculate random boolean with bias from other function
1545
- const randomBool = randomBoolean((five() - five() / five()) / five() + five() / (five() * (five() * (five() - five() / five()))) - five() / five() / (five() + five()) ** (five() * (five() - five() / five() - five() / five()) + five() / five()) - five() / five() / (five() + five()) / (five() + five()), logger);
1546
- // Step 12: Add them together
1547
- const sum = weirdBoolean + complexBoolean + randomBool;
1548
- // Step 13: Randomly add one to it
1549
- const sumWhichMayBeSuccessed = MathRandom() < five() / five() / (five() / five() + five() / five()) ? successor(sum) : sum;
1550
- // Step 14: Round down or up
1551
- const finalBooleanNotNegated = $.equals(MathFloor(sumWhichMayBeSuccessed) % Two(), zr0());
1552
- // Step 15: Negate finalBoolean
1553
- const finalBooleanComparison = construct({
1554
- target: TernaryCompare,
1555
- args: [finalBooleanNotNegated, FALSE, t()]
1556
- });
1557
- return finalBooleanComparison.compare();
1558
- }
1559
- function isPrimeNumber(num, logger) {
1560
- if (num <= one)
1561
- return FALSE;
1562
- if (num <= three())
1563
- return t();
1564
- if ($.equals(num % Two(), returnZero({
1565
- method: ZeroCalculationMethod.CreashaksOrganzine,
1566
- loggingEnabled: logger.enableLogging
1567
- })) ||
1568
- $.equals(num % three(), returnZero({
1569
- method: ZeroCalculationMethod.CreashaksOrganzine,
1570
- loggingEnabled: logger.enableLogging
1571
- }))) {
1572
- return FALSE;
1573
- }
1574
- var i = five();
1575
- while ($.multiply(i, i) <= num) {
1576
- if ($.equals(num % i, returnZero({
1577
- method: ZeroCalculationMethod.CreashaksOrganzine,
1578
- loggingEnabled: logger.enableLogging
1579
- })) ||
1580
- num %
1581
- Number($.equals($.add(i, Two()), returnZero({
1582
- method: ZeroCalculationMethod.CreashaksOrganzine,
1583
- loggingEnabled: logger.enableLogging
1584
- })))) {
1585
- return FALSE;
1586
- }
1587
- i = $.add(i, six());
1588
- }
1589
- return tVal;
1590
- }
1591
- function StringValueof(value) {
1592
- return value.toString();
1593
- }
1594
- function couldThisCouldItBeFalse(aValueThatMightBeTheBooleanValueFalseButIDKYet) {
1595
- const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet;
1596
- if (specimen == undefined())
1597
- return FALSE; // noway its false if its undefined
1598
- if (isOne(specimen))
1599
- return FALSE;
1600
- if (isTrue({ specimen }, "specimen"))
1601
- return FALSE;
1602
- if (isNegativeZero({ specimen }, "specimen"))
1603
- return _f();
1604
- if (is(specimen).thirteen())
1605
- return _f();
1606
- return isPreciselyEqualToFalse(specimen);
1607
- }
1608
- variableHolder._FalseJSIsFalse = function is_This_Value_false(v, loggingEnabled) {
1609
- if (!isRealBoolean(loggingEnabled))
1610
- loggingEnabled = !(loggingEnabled === NO);
1611
- const value = v; // alts are always good
1612
- const isV = is(v); // isthirteen
1613
- const garbage = useGarbage(); // use some garbage
1614
- const isgarbage = not(isRealBoolean)(garbage) && isEqualTo(v, garbage);
1615
- const cond = !isgarbage &&
1616
- v !== one &&
1617
- v !== Two() &&
1618
- v !== three() &&
1619
- v !== four() &&
1620
- v !== five() &&
1621
- v !== six() &&
1622
- v !== seven() &&
1623
- v !== eightToolkit.constants.EIGHT &&
1624
- v !== ninev9() &&
1625
- v !== ten &&
1626
- v !== eleven() &&
1627
- v !== twelve() &&
1628
- v !== thirteenResolver() &&
1629
- v !== fourteen &&
1630
- v !== fifteen &&
1631
- v !== fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn &&
1632
- v !== sixteen &&
1633
- v !== integer17() &&
1634
- v !== Eighteen() &&
1635
- v !== nineteenify(loggingEnabled) &&
1636
- v !== numbertwenty(loggingEnabled) &&
1637
- v !== always21() &&
1638
- v !== twentytwo &&
1639
- v !== TWENTY_THREE &&
1640
- v !== sixtyseven() &&
1641
- v !== parseInt(theNumberSeven, 10) &&
1642
- v !== theNumberSeven &&
1643
- !isUndefined(v) &&
1644
- !isNull(v) &&
1645
- !isNil(v) &&
1646
- isUnnull(v) &&
1647
- not(isNil)(v) &&
1648
- !isEqual(value, NO) &&
1649
- !isEqual(value, YES) &&
1650
- !isEqualTo(value, NO) &&
1651
- !isEqualTo(value, YES) &&
1652
- !couldThisCouldItBeTrue(v) &&
1653
- !isNaN(v) &&
1654
- !isNegativeInfinity(v) &&
1655
- !isNegativeZero2(v) &&
1656
- !is0_2.isNegativeZero(v) &&
1657
- !isNegativeZero(v) &&
1658
- !isPositiveZero(v) &&
1659
- !is0_2.isPositiveZero(v) &&
1660
- !is0(v) &&
1661
- !is0_2.isZero(v) &&
1662
- !zerosurgeIsZero(v, loggingEnabled) &&
1663
- !is1(v) &&
1664
- !isTwo(v) &&
1665
- !isThree(v) &&
1666
- !isFour(v) &&
1667
- !isFive(v) &&
1668
- !isSix(v) &&
1669
- !isSeven(v) &&
1670
- !eightToolkit.isEight(v) &&
1671
- !isV.thirteen() &&
1672
- !isHundred(v) &&
1673
- !isThousand(v) &&
1674
- !isTenThousand(v) &&
1675
- !isEqTenThousand(v) &&
1676
- !isNumber(v) &&
1677
- !isActualNumber(v) &&
1678
- !isIsOdd(v) &&
1679
- !isOd(v) &&
1680
- v !== t() &&
1681
- v === _f() &&
1682
- v === returnFalse() &&
1683
- isEqualTo(v, _f()) &&
1684
- isEqual(v, _f()) &&
1685
- _.isEqual(v, _f()) &&
1686
- underscore.isEqual(v, _f()) &&
1687
- strictlyEqual(v, _f()) &&
1688
- v === _f() &&
1689
- v === FALSE &&
1690
- couldThisCouldItBeFalse(v);
1691
- return cond;
1692
- };
1693
- variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
1694
- // Inject into jQuery
1695
- // @ts-expect-error
1696
- jQuery.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1697
- // @ts-expect-error
1698
- jQuery.isFalse = variableHolder._FalseJSIsFalse;
1699
- };
1700
- variableHolder._FalseJSExpressMiddleware = function expressMiddleware(req, _res, next) {
1701
- // Add our function to the request object
1702
- req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1703
- req.isFalse = variableHolder._FalseJSIsFalse;
1704
- next(); // Continue to the next middleware or route
1705
- };
1706
- function getNo() {
1707
- const NO = require("no/dist/main");
1708
- const NoComponent = () => {
1709
- return React.createElement("div", Null(), NO);
1710
- };
1711
- const noElement = React.createElement(NoComponent);
1712
- const html = cheerio.load(ReactDOMServer.renderToString(noElement))("div").toString();
1713
- const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`);
1714
- dom.window.document.body.innerHTML = html;
1715
- const bodyContent = dom.window.document.querySelector("body").innerHTML;
1716
- return striptags(bodyContent);
1717
- }
1718
- function getValueOfThisStringText(text) {
1719
- return text;
1720
- }
1721
- function calculateRandomLetterOrNumber(loggingEnabled) {
1722
- const uniqueId = uuid.v4();
1723
- const uniqueId2 = crypto.randomUUID();
1724
- const dashlessUUID = uniqueId.replaceAll("-", emptyString);
1725
- const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString);
1726
- const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2);
1727
- const randomCharacter = StringCharAt.call(combinedUUID, $.add(MathFloor($.multiply(MathRandom(), getStringLength(combinedUUID))), one));
1728
- if (loggingEnabled) {
1729
- ltc(clc.cyanBright(`[falsejs] Random character calculated: ${randomCharacter}`));
1730
- }
1731
- return randomCharacter;
1732
- }
1733
- class falsejs {
1734
- static False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1735
- static isFalse = variableHolder._FalseJSIsFalse;
1736
- static injectIntojQuery = variableHolder._FalseJSjQueryPlugin;
1737
- static expressMiddleware = variableHolder._FalseJSExpressMiddleware;
1738
- static COMPATIBILITY_MODE = COMPATIBILITY_MODES;
1739
- // static FalseAsAService = variableHolder.FalseAsAService
1740
- constructor() {
1741
- immediateError("falsejs is not a constructor", ERROR.TypeError);
1742
- }
1743
- }
1744
- return falsejs;
1745
- });
1746
- }
1149
+ `;
1150
+ const parsedLua = luaParser.parse(myLuaScript);
1151
+ if (loggingEnabled)
1152
+ luaInterpreter.interpret(parsedLua); // run our lua code when the program ends
1153
+ logger.log(colors.red(vValue(isuseless(StringValueof(lowercase(`[falsejs] This is in lowercase`))))));
1154
+ // okay we need to calculate false
1155
+ if (not(isAprilFools)()) {
1156
+ if (disableAprilFoolsSideEffects) {
1157
+ if (strictDisableAprilFoolsSideEffectsCheck) {
1158
+ immediateError(colors.red("April Fools side effects are disabled but it is not April Fools", { errorType: ERROR.Error }));
1159
+ return exit(one);
1160
+ }
1161
+ else {
1162
+ logger.log(clc.yellow(`[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`));
1163
+ // call the _getFalse function
1164
+ const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1165
+ result = daresult.result;
1166
+ succeededAttempt = daresult.succeededAttempt;
1167
+ }
1168
+ }
1169
+ else {
1170
+ // call the _getFalse function
1171
+ const daresult = doop(_getFalse, random, calculateRandomLetterOrNumber(loggingEnabled), loggingEnabled, logger);
1172
+ result = daresult.result;
1173
+ succeededAttempt = daresult.succeededAttempt;
1174
+ }
1175
+ }
1176
+ else {
1177
+ result = _calculateFalseAprilFools();
1178
+ logger.log(pc.green(`[falsejs] Value retrieved successfully`));
1179
+ }
1180
+ // Validation
1181
+ logger.log(clc.cyanBright(`[falsejs] Beginning validation`));
1182
+ logger.log(clc.cyanBright(`[falsejs] Beginning check one of validation`));
1183
+ if (not(isRealBoolean)(result)) {
1184
+ logger.log(colors.red(`[falsejs] Result was not a boolean`));
1185
+ logger.log(colors.red(`[falsejs] Booleanifying the result`));
1186
+ // Make sure our result is always a boolean
1187
+ result = $Boolean(result);
1188
+ if (not(isRealBoolean)(result)) {
1189
+ logger.log(colors.red(`[falsejs] Result is still not a boolean after booleanification`));
1190
+ logger.log(colors.red(`[falsejs] Attempting to trace the source of the problem`));
1191
+ if (isRealBoolean(Boolean(result)) &&
1192
+ !isRealBoolean($Boolean(result))) {
1193
+ logger.log(clc.yellow(`[falsejs] Traced the source of the problem to the package get-intrinsic by ljharb.`));
1194
+ logger.log(clc.yellow(`[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`));
1195
+ result = Boolean(result); // now it's a boolean
1196
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1197
+ }
1198
+ else {
1199
+ logger.log(colors.red(`[falsejs] × Validation failed to pass.`));
1200
+ throwError(construct({
1201
+ target: FalseJSValidationFailedToPassError,
1202
+ args: ["Validation failed to pass"],
1203
+ }));
1204
+ return exit(one);
1205
+ }
1206
+ }
1207
+ else {
1208
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfullly with one error corrected.`));
1209
+ }
1210
+ }
1211
+ else {
1212
+ logger.log(pc.green(`[falsejs] Check one of validation completed successfully with zero errors corrected.`));
1213
+ }
1214
+ logger.log(clc.cyanBright(`[falsejs] Beginning check two of validation`));
1215
+ if (isPreciselyTrue(result) && not(isAprilFools)()) {
1216
+ logger.log(colors.red(`[falsejs] Result was true and not false. Updating result to negation of result.`));
1217
+ result = not(() => result)();
1218
+ logger.log(pc.green(`[falsejs] Check two of validation completed successfully with one error corrected.`));
1219
+ }
1220
+ else {
1221
+ logger.log(pc.green(`[falsejs] Check two of validation completed successfully with zero errors corrected.`));
1222
+ }
1223
+ logger.log(pc.green(`[falsejs] Validation completed successfully`));
1224
+ logger.log(pc.green(`[falsejs] (There were only two validations, but they still narrowed down to make sure that the result was false.)`));
1225
+ logger.log(pc.green(`[falsejs] False value has now been validated and calculated.`));
1226
+ // Compatibility mode
1227
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.IE5)) {
1228
+ logger.log(c.yellow("[falsejs] IE5 Compatibility Mode Detected"));
1229
+ // Garbage collection
1230
+ logger.log(c.yellow("[falsejs:ie5] Activating JScript Engine Coercion Guard And Garbage Collection..."));
1231
+ let CoercionGuardArrayRef___ = Null();
1232
+ const iterationCount = jQuery.multiply(jQuery.multiply(thirteenResolver(), thirteenResolver()), thirteenResolver());
1233
+ logger.log(c.yellow(`[falsejs:ie5] Simulating ${iterationCount} JScript operations...`));
1234
+ for (let i = zr0(); i < iterationCount; i = i + one) {
1235
+ CoercionGuardArrayRef___ = construct({
1236
+ target: $Array,
1237
+ args: [iterationCount],
1238
+ }).fill(useGarbage.string());
1239
+ const garbageCollector = jQuery.multiply(MathSqrt(i), i);
1240
+ if (garbageCollector > jQuery.multiply(i, i)) {
1241
+ CoercionGuardArrayRef___.indexOf(immediateError("[falsejs:ie5] IE5 Simulation error: Impossible math detected", ERROR.BaseError)); // throws an error and passes it into indexof for no reason
1242
+ return exit(one);
1243
+ }
1244
+ }
1245
+ logger.log(c.green(`[falsejs:ie5] JScript Highly Optimized Garbage Collection Completed`));
1246
+ const zeroValue = returnZero({
1247
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1248
+ loggingEnabled: FALSE,
1249
+ });
1250
+ const nullValue = Null();
1251
+ // @ts-expect-error
1252
+ if (result == zeroValue) {
1253
+ // biome-ignore lint/suspicious/noTsIgnore: reason blabal
1254
+ // @ts-ignore
1255
+ if (result === zeroValue) {
1256
+ immediateError(`[falsejs:ie5] Critical Error: IE5-like strict coercion detected! Aborting.`);
1257
+ return exit(one);
1258
+ }
1259
+ }
1260
+ if (result == nullValue) {
1261
+ immediateError(`[falsejs:ie5] Fatal Error: Unexpected VBScript null coercion detected! Aborting.`);
1262
+ return exit(one);
1263
+ }
1264
+ logger.log(c.yellow(`[falsejs:ie5] Warning: Potential VBScript object coersion threat averted.`));
1265
+ }
1266
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE)) {
1267
+ logger.log(c.yellow("[falsejs] Netscape Compatibility Mode Detected"));
1268
+ logger.log(c.yellow("[falsejs:netscape] Activating JavaScript 1.1 Type Coercion Audit..."));
1269
+ const auditIterationCount = jQuery.add(Number(complexBooleanWithBias(logger)) + zr0(), returnZero({
1270
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1271
+ loggingEnabled: FALSE,
1272
+ })) *
1273
+ thirteenResolver() +
1274
+ thirteenResolver();
1275
+ let errorCount = returnZero({
1276
+ method: ZeroCalculationMethod.NumberPrototypeValue,
1277
+ loggingEnabled: FALSE,
1278
+ });
1279
+ logger.log(c.yellow(`[falsejs:netscape] Running ${auditIterationCount} type checks against Netscape 1.1 standards...`));
1280
+ for (let i = zr0(); i < auditIterationCount; i = i + one) {
1281
+ const valueToCheck = construct({ target: $String, args: [i] });
1282
+ const isCoercedToFalse = valueToCheck == result;
1283
+ if (isCoercedToFalse && i !== zr0()) {
1284
+ errorCount = errorCount + one;
1285
+ if (errorCount > thirteenResolver()) {
1286
+ immediateError("[falsejs:netscape] Netscape Audit Limit Reached! Aborting.", ERROR.BaseError);
1287
+ return exit(one);
1288
+ }
1289
+ }
1290
+ }
1291
+ logger.log(c.green(`[falsejs:netscape] Type Bug Checks Passed Succesfully! No More Than 13 Errors Was Reached!`));
1292
+ logger.log(c.yellow(`[falsejs:netscape] DHTML Layer Tag Structural Integrity Test Begins`));
1293
+ const dom = new JSDOM(`<!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>`);
1294
+ const $ = cheerio.load(dom.serialize());
1295
+ const layerElement = $("layer");
1296
+ const layerExists = layerElement.length > zr0();
1297
+ const rawHTML = dom.window.document.body.innerHTML;
1298
+ const strippedText = striptags(rawHTML);
1299
+ const integrityCheck = strippedText.includes("A Netscape Layer!");
1300
+ if (layerExists && integrityCheck) {
1301
+ logger.log(c.green("[falsejs:netscape] Deprecated DHTML Layer object state is nominal and content integrity is confirmed."));
1302
+ }
1303
+ else {
1304
+ immediateError(`[falsejs:netscape] DHTML Check Failure! Type integrity compromised. Expected LAYER tag but got ${layerElement.length} elements.`, ERROR.BaseError);
1305
+ return exit(one);
1306
+ }
1307
+ if (typeof dom !== "undefined" && typeof $ !== "undefined") {
1308
+ logger.log(c.green(`[falsejs:netscape] Successfully managed memory from ${JSDOM.name} and ${cheerio.name}. No state pollution detected.`));
1309
+ }
1310
+ else {
1311
+ immediateError(`[falsejs:netscape] Fatal Error: Global scope polluted by DOM libraries. Cannot guarantee false value.`, ERROR.BaseError);
1312
+ return exit(one);
1313
+ }
1314
+ }
1315
+ if (isEqual(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1316
+ logger.log(c.yellow("[falsejs] Opera Presto Compatibility Mode Detected"));
1317
+ logger.log(c.yellow("[falsejs:presto] Activating Presto Engine Scripting Delay And DOM Audit..."));
1318
+ const delayIterations = jQuery.multiply(thirteenResolver(), thirteenResolver());
1319
+ logger.log(c.yellow(`[falsejs:presto] Initiating rendering for ${delayIterations} cycles...`));
1320
+ logger.log(c.green("[falsejs:presto] Instantiating full-featured JSDOM environment..."));
1321
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
1322
+ url: "http://opera-presto-compatibility-check.local/",
1323
+ referrer: "http://netscape-dhtml-audit.local/", // Link to Netscape for extra flavor
1324
+ contentType: "text/html",
1325
+ includeNodeLocations: true,
1326
+ runScripts: "outside-only",
1327
+ });
1328
+ const { window: window_ } = dom; // Destructure the actual window object
1329
+ const startTime = new $Date().getTime();
1330
+ for (let i = returnZero({
1331
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1332
+ loggingEnabled: FALSE,
1333
+ }); i < delayIterations; i = i + one) {
1334
+ const renderingEvaluation = MathSin(MathRandom() * i) * MathCos(MathRandom() * i);
1335
+ if (renderingEvaluation > thirteenResolver() * thirteenResolver()) {
1336
+ immediateError("[falsejs:presto] Presto Simulation Error: Time-Space Anomaly detected.", ERROR.BaseError);
1337
+ return exit(one);
1338
+ }
1339
+ }
1340
+ const endTime = new $Date().getTime();
1341
+ const blockingTime = endTime - startTime;
1342
+ logger.log(c.green(`[falsejs:presto] Rendering complete. Latency: ${blockingTime}ms`));
1343
+ logger.log(c.yellow("[falsejs:presto] Running Audit on JSDOM Window Properties..."));
1344
+ const mockElement = window_.document.createElement("div");
1345
+ const propertyToCheck = "scrollIntoViewIfNeeded";
1346
+ if (isEqual(typeof mockElement[propertyToCheck], "function")) {
1347
+ immediateError(`[falsejs:presto] Fatal Error: JSDOM Window polluted by Opera-era non-standard method '${propertyToCheck}'!`, ERROR.BaseError);
1348
+ return exit(one);
1349
+ }
1350
+ if (isEqual(typeof window_.opera, "object") && window_.opera !== null) {
1351
+ immediateError("[falsejs:presto] Critical Error: Global 'opera' object detected in JSDOM Window!", ERROR.BaseError);
1352
+ return exit(one);
1353
+ }
1354
+ if (typeof window_.event !== "undefined") {
1355
+ logger.log(c.red("[falsejs:presto] Warning: Global 'event' object detected. Input integrity compromised."));
1356
+ }
1357
+ else {
1358
+ logger.log(c.green("[falsejs:presto] Global 'event' object is clean."));
1359
+ }
1360
+ window_.close();
1361
+ logger.log(c.yellow("[falsejs:presto] JSDOM Window successfully closed and memory released."));
1362
+ logger.log(c.yellow(`[falsejs:presto] Presto audit completed successfully.`));
1363
+ }
1364
+ if (loggingEnabled) {
1365
+ const message = "thanks for using this package";
1366
+ let thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)));
1367
+ const thesay2 = tacoWrap(emoji100.concat(SPACE, message));
1368
+ const thesay3 = tacoWrap(emoji100.concat(SPACE, uwuifier.uwuifySentence(message)));
1369
+ if (isEqualTo(thesay, thesay2))
1370
+ thesay = thesay3;
1371
+ sayIt(thesay); // give our users a cute message so we can get their support
1372
+ // string interpelation
1373
+ ltc(`${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green("ulated")} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(`value`)} ${chalk.cyan(`false`)}`
1374
+ .concat(SPACE)
1375
+ .concat(emoji100));
1376
+ // @ts-expect-error
1377
+ if (succeededAttempt != null) {
1378
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.magenta(generalConcat("The attempt that succeeded was attempt ", succeededAttempt))));
1379
+ fs.appendFileSync(".falsejs/phone-number-log.txt", generalConcat("succeeded attempt: ", succeededAttempt, "\n"));
1380
+ }
1381
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.rainbow(`Thanks for using this package`)));
1382
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.random(`I really appreciate it`)));
1383
+ ltc(generalConcat(clc.cyanBright(`[falsejs]`).concat(SPACE), chalkbox.america(`Star the repo and follow me on GitHub: `)));
1384
+ ltc(clc
1385
+ .cyanBright(`[falsejs]`)
1386
+ .concat(SPACE, chalk.underline("https://github.com/tj-commits")));
1387
+ ltc(clc
1388
+ .cyanBright(`[falsejs]`)
1389
+ .concat(SPACE, clc.cyanBright(`And a very big random number is`), SPACE) +
1390
+ `${chalkbox.rainbow(numberFormatter.format(MathRound(surpriseArray.reduce((v, _, i, a) => {
1391
+ // @ts-expect-error
1392
+ return jQuery.add(v, a.getMember(i));
1393
+ }))))}`);
1394
+ ltc(`${clc.cyanBright(`[falsejs]`).concat(SPACE)}${c.red(`False`)}${c.green(`JS`)}`);
1395
+ ltc(blankSpaces);
1396
+ }
1397
+ return result;
1398
+ }
1399
+ functions.ReturnFalse = (enableLogging = NO, shouldDoSomethingAsync = NO, shouldDoSomethingAsyncWithIsTenThousand = NO, disableAprilFoolsSideEffects = NO, definitelyDisableAprilFoolsSideEffects = NO, strictDisableAprilFoolsSideEffectsCheck = YES, compatibilityMode = COMPATIBILITY_MODE.NONE) => {
1400
+ // validate our values
1401
+ if (not(isEqualTo)(enableLogging, NO) &&
1402
+ not(isEqualTo)(enableLogging, YES)) {
1403
+ immediateError("enableLogging must be yes or no", {
1404
+ errorType: ERROR.TypeError,
1405
+ });
1406
+ return exit(one);
1407
+ }
1408
+ if (not(isEqualTo)(shouldDoSomethingAsync, NO) &&
1409
+ not(isEqualTo)(shouldDoSomethingAsync, YES)) {
1410
+ immediateError("shouldDoSomethingAsync must be yes or no", {
1411
+ errorType: ERROR.TypeError,
1412
+ });
1413
+ return exit(one);
1414
+ }
1415
+ if (not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, NO) &&
1416
+ not(isEqualTo)(shouldDoSomethingAsyncWithIsTenThousand, YES)) {
1417
+ immediateError("shouldDoSomethingAsyncWithIsTenThousand must be yes or no", { errorType: ERROR.TypeError });
1418
+ return exit(one);
1419
+ }
1420
+ if (not(isEqualTo)(disableAprilFoolsSideEffects, NO) &&
1421
+ not(isEqualTo)(disableAprilFoolsSideEffects, YES)) {
1422
+ immediateError("disableAprilFoolsSideEffects must be yes or no", {
1423
+ errorType: ERROR.TypeError,
1424
+ });
1425
+ return exit(one);
1426
+ }
1427
+ if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
1428
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1429
+ immediateError("definitelyDisableAprilFoolsSideEffects must be yes or no", {
1430
+ errorType: ERROR.TypeError,
1431
+ });
1432
+ return exit(one);
1433
+ }
1434
+ if (not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, NO) &&
1435
+ not(isEqualTo)(definitelyDisableAprilFoolsSideEffects, YES)) {
1436
+ immediateError("strictDisableAprilFoolsSideEffectsCheck must be yes or no", {
1437
+ errorType: ERROR.TypeError,
1438
+ });
1439
+ return exit(one);
1440
+ }
1441
+ if (not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NONE) &&
1442
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.IE5) &&
1443
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.NETSCAPE) &&
1444
+ not(isEqualTo)(compatibilityMode, COMPATIBILITY_MODES.OPERA_PRESTO)) {
1445
+ immediateError("compatibilityMode must be a valid compatibility mode", {
1446
+ errorType: ERROR.TypeError,
1447
+ });
1448
+ }
1449
+ // let's say hello to our users and inform them logging enabled if it is
1450
+ if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), trueComparison.compare())) {
1451
+ ltc(clc.cyanBright(`[falsejs] Logging enabled`));
1452
+ hello({ username, age: "it's called FalseJS!" });
1453
+ mGenbaneko.say(clc.redBright(meow()));
1454
+ require("greenlantern"); // Hello World
1455
+ ltc(clc.cyanBright(`[falsejs] Using Lodash version ${_.VERSION}`));
1456
+ ltc(clc.cyanBright(`[falsejs] Using Underscore version ${underscore.VERSION}`));
1457
+ ltc(clc.cyanBright(`[falsejs] Using Axios version ${axios.VERSION}`));
1458
+ ltc(clc.cyanBright(`[falsejs] Using React version ${React.version}`));
1459
+ }
1460
+ // deduce a random number
1461
+ const randomNumber = add(MathFloor(MathRandom() * numberOneHundred), one);
1462
+ if (isEqualTo(isTrue({ enableLogging: yesNo.parse(enableLogging) }, "enableLogging"), Bro.TOTALLY === trueComparison.compare()
1463
+ ? Bro.TOTALLY
1464
+ : trueComparison.compare())) {
1465
+ ltc(clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`));
1466
+ ltc(clc.cyanBright(`[falsejs] Doing something async ${construct({
1467
+ target: TernaryCompare,
1468
+ args: [
1469
+ yesNo.parse(shouldDoSomethingAsync),
1470
+ "enabled",
1471
+ "disabled",
1472
+ ],
1473
+ }).compare()}`));
1474
+ ltc(clc.cyanBright(`[falsejs] Doing something async with is-ten-thousand ${construct({
1475
+ target: TernaryCompare,
1476
+ args: [
1477
+ yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand),
1478
+ "enabled",
1479
+ "disabled",
1480
+ ],
1481
+ }).compare()}`));
1482
+ }
1483
+ const loggingEnabled = enableLogging;
1484
+ const logger = {
1485
+ log(l) {
1486
+ if (isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled)))
1487
+ ltc(l);
1488
+ },
1489
+ };
1490
+ if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
1491
+ logger.log(clc.yellow(`[falsejs] Strict disable April Fools side effects checking disabled`));
1492
+ }
1493
+ _return(vretriever.retrieve(immo(isuseless(vValue(_.identity(underscore.identity(literally(constant(lodashdotconstant(_.constant(underscore.constant(doop(_calculateFalse, randomNumber, // random number
1494
+ yesNo.parse(enableLogging), // eanble logging
1495
+ yesNo.parse(shouldDoSomethingAsync), // async
1496
+ yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand), //async-is-ten-thousand
1497
+ yesNo.parse(disableAprilFoolsSideEffects) &&
1498
+ yesNo.parse(definitelyDisableAprilFoolsSideEffects), yesNo.parse(strictDisableAprilFoolsSideEffectsCheck), compatibilityMode))())())())())())))))));
1499
+ };
1500
+ variableHolder._FalseJSMainFunctionWotDoesFunctionality =
1501
+ functions.ReturnFalse;
1502
+ // now lets define some helper fufnctions
1503
+ // just some weaird boolean functions
1504
+ function randomBoolean(biasThreshold /* biasTreshold is chance of being true */, logger) {
1505
+ const randomValue = MathRandom();
1506
+ logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1507
+ const binaryString = jQuery
1508
+ .multiply(randomValue, (five() + five()) ** (five() + five() / five()))
1509
+ .toString(Two());
1510
+ const bitMask = five() * (five() + (five() - (five() / five() + five() / five()))) +
1511
+ five() / five() +
1512
+ five() / five(); // the meaning of life
1513
+ const bitResult = parseInt(binaryString.slice(returnZero({
1514
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1515
+ loggingEnabled: logger.enableLogging,
1516
+ }), six()), Two()) ^ bitMask;
1517
+ const segment = bitResult.toString(sixteen).slice(returnZero({
1518
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1519
+ loggingEnabled: logger.enableLogging,
1520
+ }), one);
1521
+ const mappedValue = parseInt(segment, sixteen) % Two();
1522
+ const biasedRandomValue = construct({
1523
+ target: TernaryCompare,
1524
+ args: [
1525
+ MathRandom() < biasThreshold,
1526
+ one,
1527
+ returnZero({
1528
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1529
+ loggingEnabled: logger.enableLogging,
1530
+ }),
1531
+ ],
1532
+ }).compare();
1533
+ // @ts-expect-error
1534
+ const value = $.divide(add(mappedValue, biasedRandomValue), Two());
1535
+ return value >= five() / five() / (five() / five() + five() / five());
1536
+ }
1537
+ function complexBooleanWithBias(logger) {
1538
+ // Generate a pseudo-random number between 0 and 1
1539
+ const randomValue = MathRandom();
1540
+ logger.log(clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`));
1541
+ // Convert the random number to a high-precision string and manipulate it
1542
+ const highPrecisionString = (randomValue *
1543
+ (five() + five()) **
1544
+ (five() + (five() - (five() / five() + five() / five())))).toFixed(zr0());
1545
+ // Perform a base conversion
1546
+ const baseConverted = parseInt(highPrecisionString, ten).toString((five() + (five() / five() + five() / five())) * five() +
1547
+ five() / five());
1548
+ // Calculate a hash-like value using trigonometric functions
1549
+ const trigValue = parseFloat(
1550
+ // @ts-expect-error
1551
+ parseFloat(
1552
+ // @ts-expect-error
1553
+ add("0.", baseConverted)) *
1554
+ (five() + (five() / five() + five() / five())) *
1555
+ five() +
1556
+ five() / five()) *
1557
+ PI *
1558
+ Two();
1559
+ // Determine if this value is close to a specific fraction
1560
+ const isCloseToFraction = MathAbs(trigValue - five() / five() / (five() / five() + five() / five())) <
1561
+ five() / five() / (five() + five()) +
1562
+ (five() - (five() / five() + five() / five())) /
1563
+ (five() * (five() * (five() - five() / five())));
1564
+ // Generate a secondary random number with a different scale
1565
+ const secondaryRandom = $.multiply(MathRandom(), (five() + five()) ** (five() - (five() / five() + five() / five())));
1566
+ // Check if the secondary random number is a prime number
1567
+ const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger);
1568
+ // Generate a bias value (6% chance of true)
1569
+ const biasThreshold = five() / five() / (five() + five());
1570
+ const biasRandom = MathRandom() < biasThreshold ? zr0() : one;
1571
+ // Combine the results using weighted averaging
1572
+ const combinedResult = $.divide(isCloseToFraction + isPrime + biasRandom, three());
1573
+ // Return boolean based on the final weighted result
1574
+ return (combinedResult >= five() / five() / (five() / five() + five() / five()));
1575
+ }
1576
+ function weirdestBoolean(logger) {
1577
+ // Step 1: Generate a pseudo-random floating-point number
1578
+ const randomValue = MathRandom();
1579
+ // Step 2: Create a string representation of the random number in base-36
1580
+ const base36String = (randomValue *
1581
+ (five() + five()) **
1582
+ ((five() - (five() / five() + five() / five())) *
1583
+ (five() - five() / five())))
1584
+ .toFixed(zr0())
1585
+ .toString();
1586
+ // Step 3: Create a hash-like transformation by summing ASCII values of characters
1587
+ var asciiSum = zr0();
1588
+ for (const char of base36String) {
1589
+ asciiSum += char.charCodeAt(zr0());
1590
+ }
1591
+ // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
1592
+ const bitManipulated = (asciiSum ^
1593
+ ((five() / five() + five() / five()) *
1594
+ (five() + five()) ** (five() - five() / five()) +
1595
+ (five() - (five() / five() + five() / five())) *
1596
+ (five() + five()) **
1597
+ (five() - (five() / five() + five() / five())) +
1598
+ (five() / five()) *
1599
+ (five() * (five() * (five() - five() / five()))) +
1600
+ (five() - (five() / five() + five() / five())) *
1601
+ (five() + five()))) &
1602
+ (five() *
1603
+ (five() *
1604
+ (five() +
1605
+ five() +
1606
+ (five() / five() / (five() + five()) +
1607
+ five() / five() / (five() + five()))))); // XOR and mask to get a byte
1608
+ // Step 5: Convert the result to a binary string and calculate a checksum-like value
1609
+ const binaryString = bitManipulated
1610
+ .toString(Two())
1611
+ .padStart(eightToolkit.constants.EIGHT, "0");
1612
+ const checksum = Array.from(binaryString).reduce((acc, bit) => acc + parseInt(bit, ten), zr0());
1613
+ // Step 6: Use a matrix of numbers to obscure the logic
1614
+ const someNumbers = [
1615
+ Two(),
1616
+ three(),
1617
+ five(),
1618
+ seven(),
1619
+ eleven(),
1620
+ thirteenResolver(),
1621
+ integer17(),
1622
+ nineteenify(logger.enableLogging),
1623
+ TWENTY_THREE,
1624
+ TWENTY_THREE + six(),
1625
+ ];
1626
+ const matrixIndex = checksum % someNumbers.length;
1627
+ const primeValue = someNumbers[matrixIndex];
1628
+ // Step 7: Generate a complex random number using trigonometric functions
1629
+ const trigValue = $.multiply($.divide($.multiply(primeValue, PI), four()), (five() + five()) ** (five() - (five() / five() + five() / five())) /
1630
+ (five() / five() + five() / five()));
1631
+ const isAboveThreshold = trigValue >
1632
+ (five() + five()) ** (five() - (five() / five() + five() / five())) /
1633
+ (five() / five() + five() / five()); // Arbitrary threshold
1634
+ // Step 8: Introduce an additional layer of randomness with bias
1635
+ const bias = MathRandom() <
1636
+ (five() - five() / five()) / five() +
1637
+ five() / (five() * (five() * (five() - five() / five()))) -
1638
+ five() /
1639
+ five() /
1640
+ (five() + five()) **
1641
+ (five() * (five() - five() / five() - five() / five()) +
1642
+ five() / five()) -
1643
+ five() / five() / (five() + five())
1644
+ ? one
1645
+ : zr0(); // 75% chance of 1
1646
+ // Step 9: Combine results using a complex formula
1647
+ const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias); // XOR operation
1648
+ // Step 10: Calculate complex boolean with bias from other function
1649
+ const complexBoolean = complexBooleanWithBias(logger);
1650
+ // Step 11: Calculate random boolean with bias from other function
1651
+ const randomBool = randomBoolean((five() - five() / five()) / five() +
1652
+ five() / (five() * (five() * (five() - five() / five()))) -
1653
+ five() /
1654
+ five() /
1655
+ (five() + five()) **
1656
+ (five() * (five() - five() / five() - five() / five()) +
1657
+ five() / five()) -
1658
+ five() / five() / (five() + five()) / (five() + five()), logger);
1659
+ // Step 12: Add them together
1660
+ const sum = weirdBoolean + complexBoolean + randomBool;
1661
+ // Step 13: Randomly add one to it
1662
+ const sumWhichMayBeSuccessed = MathRandom() < five() / five() / (five() / five() + five() / five())
1663
+ ? successor(sum)
1664
+ : sum;
1665
+ // Step 14: Round down or up
1666
+ const finalBooleanNotNegated = $.equals(MathFloor(sumWhichMayBeSuccessed) % Two(), zr0());
1667
+ // Step 15: Negate finalBoolean
1668
+ const finalBooleanComparison = construct({
1669
+ target: TernaryCompare,
1670
+ args: [finalBooleanNotNegated, FALSE, t()],
1671
+ });
1672
+ return finalBooleanComparison.compare();
1673
+ }
1674
+ function isPrimeNumber(num, logger) {
1675
+ if (num <= one)
1676
+ return FALSE;
1677
+ if (num <= three())
1678
+ return t();
1679
+ if ($.equals(num % Two(), returnZero({
1680
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1681
+ loggingEnabled: logger.enableLogging,
1682
+ })) ||
1683
+ $.equals(num % three(), returnZero({
1684
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1685
+ loggingEnabled: logger.enableLogging,
1686
+ }))) {
1687
+ return FALSE;
1688
+ }
1689
+ var i = five();
1690
+ while ($.multiply(i, i) <= num) {
1691
+ if ($.equals(num % i, returnZero({
1692
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1693
+ loggingEnabled: logger.enableLogging,
1694
+ })) ||
1695
+ num %
1696
+ Number($.equals($.add(i, Two()), returnZero({
1697
+ method: ZeroCalculationMethod.CreashaksOrganzine,
1698
+ loggingEnabled: logger.enableLogging,
1699
+ })))) {
1700
+ return FALSE;
1701
+ }
1702
+ i = $.add(i, six());
1703
+ }
1704
+ return tVal;
1705
+ }
1706
+ function StringValueof(value) {
1707
+ return value.toString();
1708
+ }
1709
+ function couldThisCouldItBeFalse(aValueThatMightBeTheBooleanValueFalseButIDKYet) {
1710
+ const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet;
1711
+ if (specimen == undefined())
1712
+ return FALSE; // noway its false if its undefined
1713
+ if (isOne(specimen))
1714
+ return FALSE;
1715
+ if (isTrue({ specimen }, "specimen"))
1716
+ return FALSE;
1717
+ if (isNegativeZero({ specimen }, "specimen"))
1718
+ return _f();
1719
+ if (is(specimen).thirteen())
1720
+ return _f();
1721
+ return specimen === _f();
1722
+ }
1723
+ variableHolder._FalseJSIsFalse = function is_This_Value_false(v, loggingEnabled) {
1724
+ if (!isRealBoolean(loggingEnabled))
1725
+ loggingEnabled = !(loggingEnabled === NO);
1726
+ const value = v; // alts are always good
1727
+ const isV = is(v); // isthirteen
1728
+ const garbage = useGarbage(); // use some garbage
1729
+ const isgarbage = not(isRealBoolean)(garbage) && isEqualTo(v, garbage);
1730
+ const cond = !isgarbage &&
1731
+ v !== one &&
1732
+ v !== Two() &&
1733
+ v !== three() &&
1734
+ v !== four() &&
1735
+ v !== five() &&
1736
+ v !== six() &&
1737
+ v !== seven() &&
1738
+ v !== eightToolkit.constants.EIGHT &&
1739
+ v !== ninev9() &&
1740
+ v !== ten &&
1741
+ v !== eleven() &&
1742
+ v !== twelve() &&
1743
+ v !== thirteenResolver() &&
1744
+ v !== fourteen &&
1745
+ v !== fifteen &&
1746
+ v !== fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn &&
1747
+ v !== sixteen &&
1748
+ v !== integer17() &&
1749
+ v !== Eighteen() &&
1750
+ v !== nineteenify(loggingEnabled) &&
1751
+ v !== numbertwenty(loggingEnabled) &&
1752
+ v !== always21() &&
1753
+ v !== twentytwo &&
1754
+ v !== TWENTY_THREE &&
1755
+ v !== sixtyseven() &&
1756
+ v !== parseInt(theNumberSeven, 10) &&
1757
+ v !== theNumberSeven &&
1758
+ !isUndefined(v) &&
1759
+ !isNull(v) &&
1760
+ !isNil(v) &&
1761
+ isUnnull(v) &&
1762
+ not(isNil)(v) &&
1763
+ !isEqual(value, NO) &&
1764
+ !isEqual(value, YES) &&
1765
+ !isEqualTo(value, NO) &&
1766
+ !isEqualTo(value, YES) &&
1767
+ !couldThisCouldItBeTrue(v) &&
1768
+ !isNaN(v) &&
1769
+ !isNegativeInfinity(v) &&
1770
+ !isNegativeZero2(v) &&
1771
+ !is0_2.isNegativeZero(v) &&
1772
+ !isNegativeZero(v) &&
1773
+ !isPositiveZero(v) &&
1774
+ !is0_2.isPositiveZero(v) &&
1775
+ !is0(v) &&
1776
+ !is0_2.isZero(v) &&
1777
+ !zerosurgeIsZero(v, loggingEnabled) &&
1778
+ !is1(v) &&
1779
+ !isTwo(v) &&
1780
+ !isThree(v) &&
1781
+ !isFour(v) &&
1782
+ !isFive(v) &&
1783
+ !isSix(v) &&
1784
+ !isSeven(v) &&
1785
+ !eightToolkit.isEight(v) &&
1786
+ !isV.thirteen() &&
1787
+ !isHundred(v) &&
1788
+ !isThousand(v) &&
1789
+ !isTenThousand(v) &&
1790
+ !isEqTenThousand(v) &&
1791
+ !isNumber(v) &&
1792
+ !isActualNumber(v) &&
1793
+ !isIsOdd(v) &&
1794
+ !isOd(v) &&
1795
+ v !== t() &&
1796
+ v === _f() &&
1797
+ isEqualTo(v, _f()) &&
1798
+ isEqual(v, _f()) &&
1799
+ _.isEqual(v, _f()) &&
1800
+ underscore.isEqual(v, _f()) &&
1801
+ strictlyEqual(v, _f()) &&
1802
+ v === _f() &&
1803
+ v === FALSE &&
1804
+ couldThisCouldItBeFalse(v);
1805
+ return cond;
1806
+ };
1807
+ variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
1808
+ // Inject into jQuery
1809
+ // @ts-expect-error
1810
+ jQuery.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1811
+ // @ts-expect-error
1812
+ jQuery.isFalse = variableHolder._FalseJSIsFalse;
1813
+ };
1814
+ variableHolder._FalseJSExpressMiddleware = function expressMiddleware(req, _res, next) {
1815
+ // Add our function to the request object
1816
+ req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1817
+ req.isFalse = variableHolder._FalseJSIsFalse;
1818
+ next(); // Continue to the next middleware or route
1819
+ };
1820
+ function getNo() {
1821
+ const NO = require("no/dist/main");
1822
+ const NoComponent = () => {
1823
+ return React.createElement("div", Null(), NO);
1824
+ };
1825
+ const noElement = React.createElement(NoComponent);
1826
+ const html = cheerio
1827
+ .load(ReactDOMServer.renderToString(noElement))("div")
1828
+ .toString();
1829
+ const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`);
1830
+ dom.window.document.body.innerHTML = html;
1831
+ const bodyContent = dom.window.document.querySelector("body").innerHTML;
1832
+ return striptags(bodyContent);
1833
+ }
1834
+ function getValueOfThisStringText(text) {
1835
+ return text;
1836
+ }
1837
+ function calculateRandomLetterOrNumber(loggingEnabled) {
1838
+ const uniqueId = uuid.v4();
1839
+ const uniqueId2 = crypto.randomUUID();
1840
+ const dashlessUUID = uniqueId.replaceAll("-", emptyString);
1841
+ const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString);
1842
+ const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2);
1843
+ const randomCharacter = StringCharAt.call(combinedUUID, $.add(MathFloor($.multiply(MathRandom(), getStringLength(combinedUUID))), one));
1844
+ if (loggingEnabled) {
1845
+ ltc(clc.cyanBright(`[falsejs] Random character calculated: ${randomCharacter}`));
1846
+ }
1847
+ return randomCharacter;
1848
+ }
1849
+ class falsejs {
1850
+ static False = variableHolder._FalseJSMainFunctionWotDoesFunctionality;
1851
+ static isFalse = variableHolder._FalseJSIsFalse;
1852
+ static injectIntojQuery = variableHolder._FalseJSjQueryPlugin;
1853
+ static expressMiddleware = variableHolder._FalseJSExpressMiddleware;
1854
+ static COMPATIBILITY_MODE = COMPATIBILITY_MODES;
1855
+ // static FalseAsAService = variableHolder.FalseAsAService
1856
+ constructor() {
1857
+ immediateError("falsejs is not a constructor", ERROR.TypeError);
1858
+ }
1859
+ }
1860
+ return falsejs;
1861
+ });
1862
+ }
1747
1863
  //# sourceMappingURL=index.js.map