pinyin-web.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = function (d, b) {
  3. extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  6. return extendStatics(d, b);
  7. };
  8. return function (d, b) {
  9. if (typeof b !== "function" && b !== null)
  10. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  11. extendStatics(d, b);
  12. function __() { this.constructor = d; }
  13. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  14. };
  15. })();
  16. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  17. if (k2 === undefined) k2 = k;
  18. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  19. }) : (function(o, m, k, k2) {
  20. if (k2 === undefined) k2 = k;
  21. o[k2] = m[k];
  22. }));
  23. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  24. Object.defineProperty(o, "default", { enumerable: true, value: v });
  25. }) : function(o, v) {
  26. o["default"] = v;
  27. });
  28. var __importStar = (this && this.__importStar) || function (mod) {
  29. if (mod && mod.__esModule) return mod;
  30. var result = {};
  31. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  32. __setModuleDefault(result, mod);
  33. return result;
  34. };
  35. define(["require", "exports", "./PinyinBase", "./util"], function (require, exports, PinyinBase_1, util_1) {
  36. "use strict";
  37. Object.defineProperty(exports, "__esModule", { value: true });
  38. exports.compact = exports.compare = exports.pinyin = exports.Pinyin = void 0;
  39. PinyinBase_1 = __importStar(PinyinBase_1);
  40. var Pinyin = (function (_super) {
  41. __extends(Pinyin, _super);
  42. function Pinyin() {
  43. return _super !== null && _super.apply(this, arguments) || this;
  44. }
  45. return Pinyin;
  46. }(PinyinBase_1.default));
  47. exports.Pinyin = Pinyin;
  48. exports.pinyin = (0, PinyinBase_1.getPinyinInstance)(new Pinyin());
  49. exports.default = exports.pinyin;
  50. exports.compare = exports.pinyin.compare;
  51. Object.defineProperty(exports, "compact", { enumerable: true, get: function () { return util_1.compact; } });
  52. });
  53. //# sourceMappingURL=pinyin-web.js.map