replace-comments-x
Version:
Replace the comments in a string.
15 lines • 7.69 kB
JavaScript
/*!
{
"author": "Graham Fairweather",
"copywrite": "Copyright (c) 2017",
"date": "2019-08-28T16:58:28.439Z",
"describe": "",
"description": "Replace the comments in a string.",
"file": "replace-comments-x.min.js",
"hash": "a8c315ed0982bdf5d692",
"license": "MIT",
"version": "3.1.2"
}
*/
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.replaceCommentsX=n():t.replaceCommentsX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=5)}([function(t,n,r){"use strict";var e=Object.prototype.toString;if(r(2)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==e.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";(function(n){var e=n.Symbol,o=r(4);t.exports=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(3))},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),r=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var e=Object.getOwnPropertySymbols(t);if(1!==e.length||e[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n,r){"use strict";r.r(n);var e=r(0),o=r.n(e),u="Cannot convert a Symbol value to a string",i=u.constructor,c=function(t){if(o()(t))throw new TypeError(u);return i(t)},f=function(t){return null==t},l=function(t){if(f(t))throw new TypeError("Cannot call method on ".concat(t));return t},p=function(t){return c(l(t))};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(t){return"object"===y(t)?null===t:"function"!=typeof t},s=r(1),b=r.n(s),h={}.constructor("a"),m="a"===h[0]&&0 in h,d=function(){}.bind,g="function"==typeof d&&function(){var t=null,n=null,r=null,e=[];try{var o=d.apply(function(e,o){return r=this,t=e,n=o,arguments},[e,1]),u=o(2);return 1===o.length&&2===u.length&&1===t&&2===n&&r===e}catch(t){return!1}}()&&function(){var t=null,n=null,r=null,e=[1,2,3],o=function(o,u){return t=o,n=u,r=this,e};try{var u=d.apply(o,[null]),i=new u(1,2);return u.length===o.length&&i===e&&1===t&&2===n&&r!==e}catch(t){return!1}}(),v="".split,S=Math.max,j=a.bind,w=a.call,O=g?j.call(w,v):function(t,n){return v.call(t,n)},$=function(t){return b()(t)?O(t,""):t},x=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&a(t))return r;for(var e=m?t:$(t),o=e.length,u=S(0,n)||0;u<o;u+=1)r[r.length]=t[u];return r};function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var i,c=t[Symbol.iterator]();!(e=(i=c.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw u}}return r}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=x.bind,_=x.call,E={},M=E.constructor,C=E.toString,F=function(t,n){return t>=n?t:n},k=function(t){if("function"!=typeof t&&"[object Function]"!==C.apply(t))throw new TypeError("bind called on incompatible "+t)},A=[function(t){return function(){return t.apply(this,x(arguments))}},function(t,n){return function(r){return t.apply(this,x(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,x(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,x(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,x(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,x(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,c){return t.apply(this,x(arguments,n,[r,e,o,u,i,c]))}},function(t,n){return function(r,e,o,u,i,c,f){return t.apply(this,x(arguments,n,[r,e,o,u,i,c,f]))}},function(t,n){return function(r,e,o,u,i,c,f,l){return t.apply(this,x(arguments,n,[r,e,o,u,i,c,f,l]))}}],D=function(t){var n=T(t,3),r=n[0],e=n[1],o=n[2],u=F(0,e.length-F(0,o.length-2)),i=A[u],c=i?i(r,u):A[0](r);if(e.prototype){var f=function(){};f.prototype=e.prototype,c.prototype=new f,f.prototype=null}return c},I=function(t,n){var r=t.apply(this,n);return M(r)===r?r:this},N=g?_.bind(P):function(t,n){k(t);var r,e=arguments,o=function(){var o=x(arguments,0,x(e,2));return this instanceof r?I.apply(this,[t,o]):t.apply(n,o)};return r=D([o,t,e])},X=TypeError,z=N.apply,G=N(N.call,z),q=N(z,{}.toString),B=function(t){if("function"!=typeof t&&"[object Function]"!==q(t))throw new X(t+" is not a function");return t},H=function(t,n){return G(B(t),n,x(arguments[2]))},J={}.toString,K=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,L=function(t){return function(t){if("function"!=typeof t&&"[object Function]"!==H(J,t))throw new TypeError("methodize called on incompatible "+t)}(t),function(){return H(t,arguments[0],x(arguments,1))}}("".replace);n.default=function(t,n){return L(p(t),K,arguments.length>1?c(n):"")}}])});
//# sourceMappingURL=replace-comments-x.min.js.map