✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
/**
|
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
|
|
* in FIPS 180-2
|
|
* Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
|
|
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
*
|
|
*/
|
|
|
|
var inherits = require('inherits');
|
|
var Sha256 = require('./sha256');
|
|
var Hash = require('./hash');
|
|
var Buffer = require('safe-buffer').Buffer;
|
|
|
|
var W = new Array(64);
|
|
|
|
function Sha224() {
|
|
this.init();
|
|
|
|
this._w = W; // new Array(64)
|
|
|
|
Hash.call(this, 64, 56);
|
|
}
|
|
|
|
inherits(Sha224, Sha256);
|
|
|
|
Sha224.prototype.init = function () {
|
|
this._a = 0xc1059ed8;
|
|
this._b = 0x367cd507;
|
|
this._c = 0x3070dd17;
|
|
this._d = 0xf70e5939;
|
|
this._e = 0xffc00b31;
|
|
this._f = 0x68581511;
|
|
this._g = 0x64f98fa7;
|
|
this._h = 0xbefa4fa4;
|
|
|
|
return this;
|
|
};
|
|
|
|
Sha224.prototype._hash = function () {
|
|
var H = Buffer.allocUnsafe(28);
|
|
|
|
H.writeInt32BE(this._a, 0);
|
|
H.writeInt32BE(this._b, 4);
|
|
H.writeInt32BE(this._c, 8);
|
|
H.writeInt32BE(this._d, 12);
|
|
H.writeInt32BE(this._e, 16);
|
|
H.writeInt32BE(this._f, 20);
|
|
H.writeInt32BE(this._g, 24);
|
|
|
|
return H;
|
|
};
|
|
|
|
module.exports = Sha224;
|