Liferay.Loader.define("data-engine-taglib$resolve-pathname@3.0.0/umd/resolve-pathname",["module","exports","require"],(function(e,t,n){var i=void 0;window;!function(n,o){"object"==typeof t&&void 0!==e?e.exports=o():"function"==typeof i&&i.amd?i(o):n.resolvePathname=o()}(this,(function(){"use strict";function isAbsolute(e){return"/"===e.charAt(0)}function spliceOne(e,t){for(var n=t,i=n+1,o=e.length;i<o;n+=1,i+=1)e[n]=e[i];e.pop()}return function resolvePathname(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],o=t&&t.split("/")||[],r=e&&isAbsolute(e),s=t&&isAbsolute(t),l=r||s;if(e&&isAbsolute(e)?o=i:i.length&&(o.pop(),o=o.concat(i)),!o.length)return"/";if(o.length){var a=o[o.length-1];n="."===a||".."===a||""===a}else n=!1;for(var u=0,f=o.length;f>=0;f--){var c=o[f];"."===c?spliceOne(o,f):".."===c?(spliceOne(o,f),u++):u&&(spliceOne(o,f),u--)}if(!l)for(;u--;u)o.unshift("..");!l||""===o[0]||o[0]&&isAbsolute(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}}))}));
//# sourceMappingURL=resolve-pathname.js.map