"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var env_1=require("./env"),ENV=env_1.getENV();exports.ios=ENV.platform===env_1.ENV_ENUM.ios,exports.android=ENV.platform===env_1.ENV_ENUM.android,exports.pc=ENV.platform===env_1.ENV_ENUM.pc,exports.other=ENV.platform===env_1.ENV_ENUM.notInDingTalk,exports.compareVersion=function(e,r,t){function n(e){return parseInt(e,10)||0}if("string"!=typeof e||"string"!=typeof r)return!1;for(var o,p,s=e.split("-")[0].split(".").map(n),i=r.split("-")[0].split(".").map(n);o===p&&i.length>0;)o=s.shift(),p=i.shift();return t?(p||0)>=(o||0):(p||0)>(o||0)},exports.language=ENV.language,exports.version=ENV.version;