p-55057483.system.js 1.3 KB

123456
  1. /*!
  2. * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
  4. * v1.0.0-beta.82
  5. */
  6. System.register([],(function(r){"use strict";return{execute:function(){r({a:o,b:i,c:e,i:t,p:u,s:f});function e(r){return r==="Enter"||r===" "}var n=r("n",["0","1","2","3","4","5","6","7","8","9"]);function t(r){return!(!r||isNaN(Number(r)))}function u(r){if(!r||!s(r)){return""}return o(r,(function(r){var e=false;var u=r.split("").filter((function(r,t){if(r.match(/\./g)&&!e){e=true;return true}if(r.match(/\-/g)&&t===0){return true}return n.includes(r)})).reduce((function(r,e){return r+e}));return t(u)?Number(u).toString():""}))}function i(r){var e=/(?!^\.)\.$/;return r.replace(e,"")}function c(r){var e=/(?!^-)-/g;return r.replace(e,"")}function a(r){var e=/^([-0])0+(?=\d)/;return r.replace(e,"$1")}function f(r){return o(r,(function(r){var e=c(i(a(r)));var n=/^-\b0\b\.?0*$/;return t(e)?n.test(e)?e:Number(e).toString():r}))}function o(r,e){if(!r){return r}var n=r.toLowerCase().indexOf("e")+1;return r.replace(/[eE]*$/g,"").substring(0,n).concat(r.slice(n).replace(/[eE]/g,"")).split(/[eE]/).map((function(r,n){return n===1?e(r.replace(/\./g,"")):e(r)})).join("e").replace(/^e/,"1e")}function s(r){return n.some((function(e){return r.includes(e)}))}}}}));