diff --git a/asset-manifest.json b/asset-manifest.json index 019a03b..b047a5b 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/static/css/main.79f51f6e.css", - "main.js": "/static/js/main.81763bee.js", + "main.js": "/static/js/main.aa73cb3f.js", "index.html": "/index.html", "main.79f51f6e.css.map": "/static/css/main.79f51f6e.css.map", - "main.81763bee.js.map": "/static/js/main.81763bee.js.map" + "main.aa73cb3f.js.map": "/static/js/main.aa73cb3f.js.map" }, "entrypoints": [ "static/css/main.79f51f6e.css", - "static/js/main.81763bee.js" + "static/js/main.aa73cb3f.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index f23d3a5..73ecbbe 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -BitwiseCmd
\ No newline at end of file +BitwiseCmd
\ No newline at end of file diff --git a/static/js/main.81763bee.js b/static/js/main.81763bee.js deleted file mode 100644 index 3c31b3a..0000000 --- a/static/js/main.81763bee.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.81763bee.js.LICENSE.txt */ -(function(){var __webpack_modules__={300:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _const__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(737);__webpack_exports__.Z={numberOfBitsDisplayed:function(e){return e<0?Math.abs(e)<=_const__WEBPACK_IMPORTED_MODULE_0__.F?32:64:Math.floor(Math.log(e)/Math.log(2))+1},maxNumberOfBitsDisplayed:function(e){for(var t,n=[],r=0;r=0?"0x"+n:"-0x"+n;case"bin":if(e<0){var a=Math.abs(e),i=a>r.F?64:32;return function(e){var t,n=e.length;for(t=n-1;t>=0&&"1"!=e.charAt(t);t--);if(-1==t)return"1"+e;for(var r=t-1;r>=0;r--)e="1"==e.charAt(r)?e.substring(0,r)+"0"+e.substring(r+1,e.length):e.substring(0,r)+"1"+e.substring(r+1,e.length);return e.toString()}(a.toString(2).padStart(i,"0"))}return e.toString(function(e){switch(e){case"bin":return 2;case"hex":return 16;case"dec":return 10}throw new Error("Unsupported kind: "+e)}(t||"bin"));case"dec":return e.toString(10);default:throw new Error("Unexpected kind: "+t)}},padLeft:function(e,t,n){var r=Array.prototype.slice.call(e);n=n||"0";if(null==t)return e;for(;t>r.length;)r.unshift(n);return r.join("")},bin:function(e){return this.numberToString(e,"bin")},emBin:function(e){return this.padLeft(this.bin(e),8,"0")},splitByMasks:function(e,t,n){var r=[],a=[],i=0,o=t;return e.split("").forEach((function(e){a.push(e),"."!==e&&++i==o&&(o=n,r.push(a.join("")),a=[])})),a.length>0&&r.push(a.join("")),{vpc:r[0],subnet:r[1],hosts:r[2]}},getAlternativeBase:function(e){switch(e){case"dec":case"bin":return"hex";case"hex":return"dec";default:throw new Error(e+" kind doesn't have opposite kind")}}};var i=a.emBin.bind(a);a.padLeft.bind(a);t.ZP=a},844:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OperatorExpression}});var _Users_boryslevytskyi_git_BitwiseCmd_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(671),_Users_boryslevytskyi_git_BitwiseCmd_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(466),_core_const__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(737),_core_formatter__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(699),_ScalarExpression__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(347),OperatorExpression=function(){function OperatorExpression(e,t){if((0,_Users_boryslevytskyi_git_BitwiseCmd_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__.Z)(this,OperatorExpression),this.operand=void 0,this.operator=void 0,this.isOperator=void 0,this.isShiftExpression=void 0,this.isNotExpression=void 0,e instanceof _ScalarExpression__WEBPACK_IMPORTED_MODULE_1__.Z){var n=e.getUnderlyingScalarOperand();if(Math.abs(n.value)>_core_const__WEBPACK_IMPORTED_MODULE_3__.F){var r=_core_formatter__WEBPACK_IMPORTED_MODULE_0__.ZP.numberToString(n.value,n.base);throw new Error("".concat(r," has more than 32 bits. JavaScript converts all numbers to 32-bit integers when applying bitwise operators. BitwiseCmd currently uses the JavaScript engine of your browser for results calculation and supports numbers in the range from ").concat(-_core_const__WEBPACK_IMPORTED_MODULE_3__.F," to ").concat(_core_const__WEBPACK_IMPORTED_MODULE_3__.F,"."))}}this.operand=e,this.operator=t,this.isOperator=!0,this.isShiftExpression=this.operator.indexOf("<")>=0||this.operator.indexOf(">")>=0,this.isNotExpression="~"===this.operator}return(0,_Users_boryslevytskyi_git_BitwiseCmd_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__.Z)(OperatorExpression,[{key:"evaluate",value:function evaluate(operand){if(operand instanceof OperatorExpression)throw new Error("value shouldnt be expression");var evaluatedOperand=this.operand.evaluate(),str="";if("~"==this.operator)str="~"+evaluatedOperand.value;else{if(null==operand)throw new Error("Other is required for this expression");str=operand.value+this.operator+evaluatedOperand.value}return _ScalarExpression__WEBPACK_IMPORTED_MODULE_1__.Z.create(eval(str),evaluatedOperand.base)}},{key:"getUnderlyingScalarOperand",value:function(){return this.operand.getUnderlyingScalarOperand()}},{key:"toString",value:function(){return this.operator+this.operand.toString()}}]),OperatorExpression}()},347:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(671),a=n(466),i=[{regex:/^-?\d+$/,radix:10,base:"dec",prefix:"^$"},{regex:/^-?0x[0-9,a-f]+$/i,radix:16,base:"hex",prefix:/0x/i},{regex:/^-?0b[0-1]+$/i,radix:2,base:"bin",prefix:/0b/i}],o=new(function(){function e(t){(0,r.Z)(this,e),this.parsers=void 0,this.parsers=t}return(0,a.Z)(e,[{key:"parse",value:function(e){var t=this;return this.parsers.map((function(n){return t.applyParser(n,e)})).reduce((function(e,t){return e||t}))}},{key:"parseOperator",value:function(e){var t=e.match(e);return null==t||0==t.length?null:t[0]}},{key:"applyParser",value:function(e,t){return e.regex.test(t)?{value:parseInt(t.replace(e.prefix,""),e.radix),base:e.base,input:t}:null}}]),e}())(i),l=1,s=function(){function e(t,n){(0,r.Z)(this,e),this.id=void 0,this.value=void 0,this.base=void 0,this.isOperator=void 0,this.id=l++,this.value=t,this.base=n||"dec",this.isOperator=!1}return(0,a.Z)(e,[{key:"setValue",value:function(e){this.value=e}},{key:"evaluate",value:function(){return this}},{key:"getUnderlyingScalarOperand",value:function(){return this}}],[{key:"create",value:function(t,n){return new e(t,n||"dec")}},{key:"parse",value:function(t){var n=e.tryParse(t);if(null==n)throw new Error(t+" is not a valid number");return n}},{key:"tryParse",value:function(t){var n=o.parse(t);return n?new e(n.value,n.base):null}}]),e}()},895:function(e,t,n){var r,a;!function(i,o){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function a(e,t){var n=e[t];if("function"===typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(r){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?a(console,r):void 0!==console.log?a(console,"log"):e)}function l(t,n){for(var a=0;a=0&&n<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==r&&c(n),l.call(o,n,e),typeof console===t&&n