-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathinko.min.js.map
1 lines (1 loc) Β· 19.7 KB
/
inko.min.js.map
1
{"version":3,"sources":["inko.min.js"],"names":["μμ΄","νκΈ","μ΄μ±","μ€μ±","μ’
μ±","κ°","μμ΄index","en","x","i","length","νκΈindex","kr","connectableConsonant","γ±γ
","γ΄γ
","γ΄γ
","γΉγ±","γΉγ
","γΉγ
","γΉγ
","γΉγ
","γΉγ
","γΉγ
","γ
γ
","connectableVowel","γ
γ
","γ
γ
","γ
γ
£","γ
γ
","γ
γ
","γ
γ
£","γ
‘γ
£","isVowel","e","Inko","_option","option","this","_allowDoubleConsonant","allowDoubleConsonant","prototype","config","VERSION","en2ko","input","self","stateLength","transitions","last","list","combine","arr","group","forEach","cur","h","push","map","w","join","charSet","code","indexOf","νκΈμμ±","apply","c","lastIsVowel","result","state","tmp","flush","chr","transition","nxtState","diff","splice","ko2en","undefined","_λΆλ¦¬","_νκΈ","_μ½λ","charCodeAt","νκΈλΆλ¦¬","j","μ΄","μ€","μ’
","String","fromCharCode","μ½λ","Math","floor","μ€1","μ€2","μ’
1","μ’
2","isνκΈ","char","Error","test","exports","module","define","amd","importScripts","inko","window","document"],"mappings":"CAGA,WAEI,IAAIA,EAAK,uDACLC,EAAK,uDACLC,EAAK,sBACLC,EAAK,wBACLC,EAAK,8BAELC,EAAI,MAKJC,EAAW,SAAUC,GAErB,IADA,IAAIC,EAAI,GACCC,EAAI,EAAGA,EAAIF,EAAGG,SAAUD,EAAGD,EAAED,EAAGE,IAAMA,EAC/C,OAAOD,EAHG,CAIZR,GAEEW,EAAW,SAAUC,GAErB,IADA,IAAIJ,EAAI,GACCC,EAAI,EAAGA,EAAIG,EAAGF,SAAUD,EAAGD,EAAEI,EAAGH,IAAMA,EAC/C,OAAOD,EAHG,CAIZP,GAEEY,EAAuB,CACvBC,KAAM,IACNC,KAAM,IACNC,KAAM,IACNC,KAAM,IACNC,KAAM,IACNC,KAAM,IACNC,KAAM,I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,GAAKnF,EAAG4D,QAAQ,MAAM8B,EAAK5F,EAAG8D,QAAQ,KAAM+B,EAAK7F,EAAG8D,QAAQ,MAC5DuB,GAAKnF,EAAG4D,QAAQ,MAAM8B,EAAK5F,EAAG8D,QAAQ,KAAM+B,EAAK7F,EAAG8D,QAAQ,MAC5DuB,GAAKnF,EAAG4D,QAAQ,OAAM8B,EAAK5F,EAAG8D,QAAQ,KAAM+B,EAAK7F,EAAG8D,QAAQ,OAGzD,IAAR+B,IAAWD,EAAK5F,EAAG8D,QAAQ5D,EAAGmF,KAE3B,EAAE,EAAGO,EAAIC,GAAK,GAAI,IAGjC,MAAO,EAAE,GAAI,GAAI,GAAI,GAAI,IAG7B3D,EAAKM,UAAUwD,KAAO,SAAUC,GAC5B,GAAIA,EAAKxF,OAAS,EAAG,MAAM,IAAIyF,MAAM,eACrC,MAAO,gBAAgBC,KAAKF,IAIT,oBAAZG,UACe,oBAAXC,QAA0BA,OAAOD,UACxCA,QAAUC,OAAOD,QAAUlE,GAE/BkE,QAAQlE,KAAOA,GAIG,mBAAXoE,QAAyBA,OAAOC,KACvCD,OAAO,GAAI,WACP,OAAOpE,IAMc,oBAAlBsE,gBACPC,KAAO,IAAIvE,EACXW,KAAKX,KAAOA,GAKM,iBAAXwE,QAAkD,iBAApBA,OAAOC,WAC5CD,OAAOxE,KAAOA,EACdwE,OAAOD,KAAO,IAAIvE,GAtS1B","file":"inko.min.js","sourcesContent":["// (c) 2018 Jon Jee\n// Inko may be freely distributed or modified under the MIT license.\n\n(function () {\n // constants\n var μμ΄ = \"rRseEfaqQtTdwWczxvgASDFGZXCVkoiOjpuPhynbmlYUIHJKLBNM\"; // 33 + 19κ°\n var νκΈ = \"γ±γ²γ΄γ·γΈγΉγ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ΄γ
γΉγ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
‘γ
£γ
γ
γ
γ
γ
γ
γ
£γ
γ
γ
‘\"; // 33 + 19κ°\n var μ΄μ± = \"γ±γ²γ΄γ·γΈγΉγ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
\"; // 19κ°\n var μ€μ± = \"γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
‘γ
’γ
£\"; // 21κ°\n var μ’
μ± = \"γ±γ²γ³γ΄γ΅γΆγ·γΉγΊγ»γΌγ½γΎγΏγ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
γ
\"; // 27κ°\n var 첫λͺ¨μ = 28;\n var κ° = 44032;\n var ν£ = 55203;\n var γ± = 12593;\n var γ
£ = 12643;\n\n var μμ΄index = (function (en) {\n var x = {};\n for (var i = 0; i < en.length; ++i) x[en[i]] = i;\n return x;\n }(μμ΄));\n\n var νκΈindex = (function (kr) {\n var x = {};\n for (var i = 0; i < kr.length; ++i) x[kr[i]] = i;\n return x;\n }(νκΈ));\n\n var connectableConsonant = {\n 'γ±γ
': 'γ³',\n 'γ΄γ
': 'γ΅',\n 'γ΄γ
': 'γΆ',\n 'γΉγ±': 'γΊ',\n 'γΉγ
': 'γ»',\n 'γΉγ
': 'γΌ',\n 'γΉγ
': 'γ½',\n 'γΉγ
': 'γΎ',\n 'γΉγ
': 'γΏ',\n 'γΉγ
': 'γ
',\n 'γ
γ
': 'γ
'\n };\n\n var connectableVowel = {\n 'γ
γ
': 'γ
',\n 'γ
γ
': 'γ
',\n 'γ
γ
£': 'γ
',\n 'γ
γ
': 'γ
',\n 'γ
γ
': 'γ
',\n 'γ
γ
£': 'γ
',\n 'γ
‘γ
£': 'γ
’'\n };\n\n var isVowel = function (e) {\n return νκΈindex[e] >= 첫λͺ¨μ;\n };\n\n // constructor\n function Inko(_option) {\n var option = _option || {};\n this._allowDoubleConsonant = typeof option.allowDoubleConsonant !== 'undefined' ?\n option.allowDoubleConsonant : false;\n return this;\n }\n\n Inko.prototype.config = function(_option) {\n var option = _option || {};\n this._allowDoubleConsonant = typeof option.allowDoubleConsonant !== 'undefined' ?\n option.allowDoubleConsonant : false;\n }\n\n Inko.prototype.VERSION = '1.1.1';\n\n Inko.prototype.en2ko = function (input, _option) {\n var option = _option || {};\n\n var allowDoubleConsonant =\n typeof option.allowDoubleConsonant !== 'undefined' ?\n option.allowDoubleConsonant : this._allowDoubleConsonant;\n var self = this;\n var stateLength = [0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5];\n var transitions = [\n [1, 1, 2, 2], // 0, EMPTY\n [3, 1, 4, 4], // 1, μ\n [1, 1, 5, 2], // 2, λͺ¨\n [3, 1, 4, -1], // 3, μμ\n [6, 1, 7, 2], // 4, μλͺ¨\n [1, 1, 2, 2], // 5, λͺ¨λͺ¨\n [9, 1, 4, 4], // 6, μλͺ¨μ\n [9, 1, 2, 2], // 7, μλͺ¨λͺ¨\n [1, 1, 4, 4], // 8, μλͺ¨μμ\n [10, 1, 4, 4],// 9, μλͺ¨λͺ¨μ\n [1, 1, 4, 4], // 10, μλͺ¨λͺ¨μμ\n ];\n\n var last = function (list) {\n return list[list.length - 1];\n };\n\n var combine = function (arr) {\n var group = [];\n arr.forEach(function (cur, i) {\n var h = νκΈ[cur];\n if (i === 0 || isVowel(last(group)[0]) !== isVowel(h)) {\n group.push([]);\n }\n last(group).push(h);\n });\n\n group = group.map(function connect(e) {\n var w = e.join('');\n return connectableConsonant[w] || connectableVowel[w] || w;\n });\n\n if (group.length === 1) return group[0];\n\n var charSet = [μ΄μ±, μ€μ±, μ’
μ±];\n var code = group.map(function (w, i) {\n return charSet[i].indexOf(w);\n });\n\n if (code.length < 3) code.push(-1);\n\n return self.νκΈμμ±.apply(self, code);\n };\n\n return (function () {\n var length = input.length;\n var last = -1;\n var result = [];\n var state = 0;\n var tmp = [];\n\n var flush = function () {\n if (tmp.length > 0) result.push(combine(tmp));\n tmp = [];\n };\n\n for (var i = 0; i < length; ++i) {\n var chr = input[i];\n var cur = μμ΄index[chr];\n if (typeof cur === 'undefined') {\n state = 0;\n flush();\n result.push(chr);\n } else {\n var transition = (function () {\n var c = (νκΈ[last] || '') + νκΈ[cur];\n var lastIsVowel = isVowel(νκΈ[last]);\n var curIsVowel = isVowel(νκΈ[cur]);\n if (!curIsVowel) {\n if (lastIsVowel) {\n return 'γΈγ
γ
'.indexOf(νκΈ[cur]) === -1 ? 0 : 1;\n }\n if (state === 1 && !allowDoubleConsonant) return 1;\n return connectableConsonant[c] ? 0 : 1;\n } else if (lastIsVowel) {\n return connectableVowel[c] ? 2 : 3;\n }\n return 2;\n }());\n var nxtState = transitions[state][transition];\n tmp.push(cur);\n var diff = tmp.length - stateLength[nxtState];\n if (diff) result.push(combine(tmp.splice(0, diff)));\n state = nxtState;\n last = cur;\n }\n }\n flush();\n return result.join('');\n }());\n };\n\n Inko.prototype.ko2en = function (input) {\n var result = '';\n if (input === '' || input === undefined) return result;\n var _λΆλ¦¬ = [-1, -1, -1, -1, -1];\n\n for (var i = 0; i < input.length; i++) {\n var _νκΈ = input[i];\n var _μ½λ = _νκΈ.charCodeAt();\n // κ° ~ ν£ μ¬μ΄μ μλ νκΈμ΄λΌλ©΄\n if ((_μ½λ >= κ° && _μ½λ <= ν£) || (_μ½λ >= γ± && _μ½λ <= γ
£)) {\n _λΆλ¦¬ = this.νκΈλΆλ¦¬(_νκΈ);\n }\n // νκΈμ΄ μλλΌλ©΄\n else {\n result += _νκΈ;\n // λΆλ¦¬ λ°°μ΄ μ΄κΈ°ν\n _λΆλ¦¬ = [-1, -1, -1, -1, -1];\n }\n\n for (var j = 0; j < _λΆλ¦¬.length; j++) {\n if (_λΆλ¦¬[j] !== -1)\n result += μμ΄[_λΆλ¦¬[j]];\n }\n }\n return result;\n }\n\n // μ΄μ±, μ€μ±, μ’
μ±μ charCodeλ₯Ό λ°μμ ν©μΉ νκΈμ charCodeλ₯Ό λ°νν¨\n Inko.prototype.νκΈμμ± = function (μ΄, μ€, μ’
) {\n return String.fromCharCode(44032 + μ΄ * 588 + μ€ * 28 + μ’
+ 1);\n }\n\n // νκΈ μ
λ ₯κ°μΌλ‘ λ°μμ μ΄μ±, μ€μ±, μ’
μ± λΆλ¦¬ν΄μ€\n Inko.prototype.νκΈλΆλ¦¬ = function (_νκΈ) {\n var μ½λ = _νκΈ.charCodeAt();\n\n if (μ½λ >= κ° && μ½λ <= ν£) {\n var μ΄ = Math.floor((μ½λ - κ°) / 588);\n var μ€ = Math.floor((μ½λ - κ° - μ΄ * 588) / 28);\n var μ’
= μ½λ - κ° - μ΄ * 588 - μ€ * 28 - 1;\n var μ€1 = μ€, μ€2 = -1, μ’
1 = μ’
, μ’
2 = -1;\n\n if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n else if (μ€ == μ€μ±.indexOf(\"γ
’\")) μ€1 = νκΈ.indexOf(\"γ
‘\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n\n if (μ’
== μ’
μ±.indexOf(\"γ³\")) μ’
1 = νκΈ.indexOf(\"γ±\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γ΅\")) μ’
1 = νκΈ.indexOf(\"γ΄\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γΆ\")) μ’
1 = νκΈ.indexOf(\"γ΄\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γΊ\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ±\");\n else if (μ’
== μ’
μ±.indexOf(\"γ»\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γΌ\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γ½\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γΎ\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γΏ\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γ
\")) μ’
1 = νκΈ.indexOf(\"γΉ\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n else if (μ’
== μ’
μ±.indexOf(\"γ
\")) μ’
1 = νκΈ.indexOf(\"γ
\"), μ’
2 = νκΈ.indexOf(\"γ
\");\n\n // 볡λͺ¨μμ΄ μλλΌλ©΄\n if (μ€2 === -1) μ€1 = νκΈ.indexOf(μ€μ±[μ€]);\n\n // 볡μμμ΄ μλλΌλ©΄\n if (μ’
2 === -1) μ’
1 = νκΈ.indexOf(μ’
μ±[μ’
]);\n\n return [μ΄, μ€1, μ€2, μ’
1, μ’
2];\n } else if (μ½λ >= γ± && μ½λ <= γ
£) {\n if (μ΄μ±.indexOf(_νκΈ) > -1) {\n var μ΄ = νκΈ.indexOf(_νκΈ);\n return [μ΄, -1, -1, -1, -1];\n } else if (μ€μ±.indexOf(_νκΈ) > -1) {\n var μ€ = μ€μ±.indexOf(_νκΈ);\n var μ€1 = μ€, μ€2 = -1;\n if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
\");\n else if (μ€ == μ€μ±.indexOf(\"γ
\")) μ€1 = νκΈ.indexOf(\"γ
\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n else if (μ€ == μ€μ±.indexOf(\"γ
’\")) μ€1 = νκΈ.indexOf(\"γ
‘\"), μ€2 = νκΈ.indexOf(\"γ
£\");\n\n // 볡λͺ¨μμ΄ μλλΌλ©΄\n if (μ€2 === -1) μ€1 = νκΈ.indexOf(μ€μ±[μ€]);\n\n return [-1, μ€1, μ€2, -1, -1];\n }\n }\n return [-1, -1, -1, -1, -1];\n }\n\n Inko.prototype.isνκΈ = function (char) {\n if (char.length > 1) throw new Error(\"ν κΈμκ° μλλλ€.\");\n return /[γ±-γ
|γ
-γ
£|κ°-ν£]/.test(char);\n }\n\n // CommonJS module\n if (typeof exports !== 'undefined') {\n if (typeof module !== 'undefined' && module.exports) {\n exports = module.exports = Inko;\n }\n exports.Inko = Inko;\n }\n\n // Register as an anonymous AMD module\n if (typeof define === 'function' && define.amd) {\n define([], function () {\n return Inko;\n });\n }\n\n // if there is a importsScrips object define chance for worker\n // allows worker to use full Chance functionality with seed\n if (typeof importScripts !== 'undefined') {\n inko = new Inko();\n self.Inko = Inko;\n }\n\n // If there is a window object, that at least has a document property,\n // instantiate and define chance on the window\n if (typeof window === \"object\" && typeof window.document === \"object\") {\n window.Inko = Inko;\n window.inko = new Inko();\n }\n})();\n"]}