(function () { 'use strict'; function computeAssetBase() { if (typeof window === 'undefined' || !window.location) { return 'assets/images/'; } var p = window.location.pathname || '/'; if (p.indexOf('/pages/') !== -1 || /\.web\.html$/i.test(p) || /\/pages\/[^/]+\.html$/i.test(p)) { return '../assets/images/'; } if (p.endsWith('/pages/') || p.endsWith('/pages')) { return '../assets/images/'; } return 'assets/images/'; } function computeJsBase() { if (typeof window === 'undefined' || !window.location) { return 'js/'; } var p = window.location.pathname || '/'; if (p.indexOf('/pages/') !== -1 || /\.web\.html$/i.test(p) || /\/pages\/[^/]+\.html$/i.test(p)) { return '../js/'; } return 'js/'; } window.SOON_ASSET_BASE = computeAssetBase(); window.SOON_JS_BASE = computeJsBase(); window.soonAsset = function (name) { var n = String(name || '').replace(/^\/+/, ''); return window.SOON_ASSET_BASE + n; }; window.soonJs = function (rel) { var n = String(rel || '').replace(/^\/+/, ''); return window.SOON_JS_BASE + n; }; })();