text: var wijmo;(function(e){(function(e){var t=function(){function e(){this.DBCS_UpperAlphabet=2147483650,this.SBCS_UpperAlphabet=1073741825,this.DBCS_LowerAlphabet=2147483656,this.SBCS_LowerAlphabet=1073741828,this.DBCS_Number=2147483680,this.SBCS_Number=1073741840,this.DBCS_Binary=2147483776,this.SBCS_Binary=1073741888,this.DBCS_Hexadecimal=2147484160,this.SBCS_Hexadecimal=1073742080,this.DBCS_Symbol=2147485696,this.SBCS_Symbol=1073742848,this.DBCS_NumberSymbol=2147491840,this.SBCS_NumberSymbol=1073745920,this.DBCS_Katakana=2147516416,this.SBCS_Katakana=1073758208,this.DBCS_Space=2147614720,this.SBCS_Space=1073807360,this.TwoBytes=2148007936,this.FourBytes=2147745792,this.DBCS_ShiftJIS=2148532224,this.DBCS_JISX0208=2149580800,this.Emoji=4194304,this.IVS=8388608,this.DBCS_Hiragana=2164260864,this.Upper_SBCS_Katakana=1207959552,this.Upper_DBCS_Katakana=2415919104,this.Upper_DBCS_Hiragana=2684354560,this.All=3321888768,this.DBCS_All=2214592512,this.SBCS_All=1107296256,this.DBCS=2147483648,this.SBCS=1073741824}return e}(),n=function(){function n(n,r){this.charType=new t,this.format=r,this.includeFormat="",this.excludeFormat="",this.includeNormalChar="",this.excludeNormalChar="",this.allowTypes=this.charType.All,this.excludeTypes=this.charType.All,this.include=!0,this.autoConvert=n,this.charExInstance=e.CharProcess.CharEx,this.isInputValid=!0,this.ParseFormat(this.format)}return n.prototype.allowDBCS=function(){return!((this.allowTypes&this.charType.DBCS_All)!=0^this.include)},n.prototype.allowSBCS=function(){return!((this.allowTypes&this.charType.SBCS_All)!=0^this.include)},n.prototype.GetIncludeFormat=function(e){if(e==null||e.GetLength()==0)return"";var t="";for(var n=0;n<e.GetLength();n++){var r=e.Substring(n,n+1);if(r=="\\"){if(n==e.GetLength()-1)throw"Exception.TextFilter.Format.Invalid";t+=r,t+=e.Substring(n+1,n+2),n++}else{if(r=="^")return t;t+=r}}return t},n.prototype.GetExcludeFormat=function(e){if(e==null||e.GetLength()==0)return"";var t=0,n="";for(var r=0;r<e.GetLength();r++){var i=e.Substring(r,r+1);if(i=="\\"){if(r==e.GetLength()-1)throw"Exception.TextFilter.Format.Invalid";t!=0&&(n+=i,n+=e.Substring(r+1,r+2)),r++}else if(i=="^"){t++;if(t>1)throw"Exception.TextFilter.Format.DuplicatedChar"}else t!=0&&(n+=i)}return t==1&&(n="^"+n),n},n.prototype.ParseIncludeFormat=function(e){if(e==null||e.GetLength()==0){this.allowTypes=this.charType.All,this.includeNormalChar="",this.includeFormat="";return}this.allowTypes=0,this.includeNormalChar="";for(var t=0;t<e.GetLength();t++)switch(e.charCodeAt(t)){case 94:break;case 92:if(t==e.GetLength()-1)throw"Exception.TextFilter.Format.Invalid";this.includeNormalChar=this.includeNormalChar+e.Substring(t+1,t+2),t++;break;case 65313:(this.allowTypes&this.charType.DBCS_UpperAlphabet)!=(this.charType.DBCS_UpperAlphabet|0)&&(this.allowTypes|=this.charType.DBCS_UpperAlphabet);break;case 65:(this.allowTypes&this.charType.SBCS_UpperAlphabet)!=this.charType.SBCS_UpperAlphabet&&(this.allowTypes|=this.charType.SBCS_UpperAlphabet);break;case 65345:(this.allowTypes&this.charType.DBCS_LowerAlphabet)!=(this.charType.DBCS_LowerAlphabet|0)&&(this.allowTypes|=this.charType.DBCS_LowerAlphabet);break;case 97:(this.allowTypes&this.charType.SBCS_LowerAlphabet)!=this.charType.SBCS_LowerAlphabet&&(this.allowTypes|=this.charType.SBCS_LowerAlphabet);break;case 65323:(this.allowTypes&this.charType.DBCS_Katakana)!=(this.charType.DBCS_Katakana|0)&&(this.allowTypes|=this.charType.DBCS_Katakana);break;case 75:(this.allowTypes&this.charType.SBCS_Katakana)!=this.charType.SBCS_Katakana&&(this.allowTypes|=this.charType.SBCS_Katakana);break;case 65305:(this.allowTypes&this.charType.DBCS_Number)!=(this.charType.DBCS_Number|0)&&(this.allowTypes|=this.charType.DBCS_Number);break;case 57:(this.allowTypes&this.charType.SBCS_Number)!=this.charType.SBCS_Number&&(this.allowTypes|=this.charType.SBCS_Number);break;case 65283:(this.allowTypes&this.charType.DBCS_NumberSymbol)!=(this.charType.DBCS_NumberSymbol|0)&&(this.allowTypes|=this.charType.DBCS_NumberSymbol);break;case 35:(this.allowTypes&this.charType.SBCS_NumberSymbol)!=this.charType.SBCS_NumberSymbol&&(this.allowTypes|=this.charType.SBCS_NumberSymbol);break;case 65312:(this.allowTypes&this.charType.DBCS_Symbol)!=(this.charType.DBCS_Symbol|0)&&(this.allowTypes|=this.charType.DBCS_Symbol);break;case 64:(this.allowTypes&this.charType.SBCS_Symbol)!=this.charType.SBCS_Symbol&&(this.allowTypes|=this.charType.SBCS_Symbol);break;case 65314:(this.allowTypes&this.charType.DBCS_Binary)!=(this.charType.DBCS_Binary|0)&&(this.allowTypes|=this.charType.DBCS_Binary);break;case 66:(this.allowTypes&this.charType.SBCS_Binary)!=this.charType.SBCS_Binary&&(this.allowTypes|=this.charType.SBCS_Binary);break;case 65336:(this.allowTypes&this.charType.DBCS_Hexadecimal)!=(this.charType.DBCS_Hexadecimal|0)&&(this.allowTypes|=this.charType.DBCS_Hexadecimal);break;case 88:(this.allowTypes&this.charType.SBCS_Hexadecimal)!=this.charType.SBCS_Hexadecimal&&(this.allowTypes|=this.charType.SBCS_Hexadecimal);break;case 65322:(this.allowTypes&this.charType.DBCS_Hiragana)!=(this.charType.DBCS_Hiragana|0)&&(this.allowTypes|=this.charType.DBCS_Hiragana);break;case 65338:(this.allowTypes&this.charType.DBCS_All)!=(this.charType.DBCS_All|0)&&(this.allowTypes|=this.charType.DBCS_All);break;case 65325:(this.allowTypes&this.charType.DBCS_ShiftJIS)!=(this.charType.DBCS_ShiftJIS|0)&&(this.allowTypes|=this.charType.DBCS_ShiftJIS);break;case 65321:(this.allowTypes&this.charType.DBCS_JISX0208)!=(this.charType.DBCS_JISX0208|0)&&(this.allowTypes|=this.charType.DBCS_JISX0208);break;case 72:(this.allowTypes&this.charType.SBCS_All)!=this.charType.SBCS_All&&(this.allowTypes|=this.charType.SBCS_All);break;case 78:(this.allowTypes&this.charType.Upper_SBCS_Katakana)!=this.charType.Upper_SBCS_Katakana&&(this.allowTypes|=this.charType.Upper_SBCS_Katakana);break;case 65326:(this.allowTypes&this.charType.Upper_DBCS_Katakana)!=this.charType.Upper_DBCS_Katakana&&(this.allowTypes|=this.charType.Upper_DBCS_Katakana);break;case 65319:(this.allowTypes&this.charType.Upper_DBCS_Hiragana)!=this.charType.Upper_DBCS_Hiragana&&(this.allowTypes|=this.charType.Upper_DBCS_Hiragana);break;case 65331:(this.allowTypes&this.charType.DBCS_Space)!=this.charType.DBCS_Space&&(this.allowTypes|=this.charType.DBCS_Space);break;case 83:(this.allowTypes&this.charType.SBCS_Space)!=this.charType.SBCS_Space&&(this.allowTypes|=this.charType.SBCS_Space);break;case 65332:(this.allowTypes&this.charType.FourBytes)!=this.charType.FourBytes&&(this.allowTypes|=this.charType.FourBytes);break;case 65316:(this.allowTypes&this.charType.TwoBytes)!=this.charType.TwoBytes&&(this.allowTypes|=this.charType.TwoBytes);break;case 65317:this.allowTypes|=this.charType.Emoji;break;case 65334:this.allowTypes|=this.charType.IVS;break;default:this.includeNormalChar=this.includeNormalChar+e.Substring(t,t+1)}},n.prototype.ParseExcludeFormat=function(e){if(e==null||e.GetLength()==0){this.excludeTypes=this.excludeTypes.All,this.excludeNormalChar="",this.excludeFormat="";return}if(e=="^"){this.excludeTypes=this.charType.All,this.excludeNormalChar="",this.excludeFormat="^";return}this.excludeTypes=0,this.excludeNormalChar="";for(var t=0;t<e.GetLength();t++)switch(e.charCodeAt(t)){case 94:break;case 92:if(t==e.GetLength()-1)throw"Exception.TextFilter.Format.Invalid";this.excludeNormalChar=this.excludeNormalChar+e.Substring(t+1,t+2),t++;break;case 65313:(this.excludeTypes&this.charType.DBCS_UpperAlphabet)!=(this.charType.DBCS_UpperAlphabet|0)&&(this.excludeTypes|=this.charType.DBCS_UpperAlphabet);break;case 65:(this.excludeTypes&this.charType.SBCS_UpperAlphabet)!=this.charType.SBCS_UpperAlphabet&&(this.excludeTypes|=this.charType.SBCS_UpperAlphabet);break;case 65345:(this.excludeTypes&this.charType.DBCS_LowerAlphabet)!=(this.charType.DBCS_LowerAlphabet|0)&&(this.excludeTypes|=this.charType.DBCS_LowerAlphabet);break;case 97:(this.excludeTypes&this.charType.SBCS_LowerAlphabet)!=this.charType.SBCS_LowerAlphabet&&(this.excludeTypes|=this.charType.SBCS_LowerAlphabet);break;case 65323:(this.excludeTypes&this.charType.DBCS_Katakana)!=(this.charType.DBCS_Katakana|0)&&(this.excludeTypes|=this.charType.DBCS_Katakana);break;case 75:(this.excludeTypes&this.charType.SBCS_Katakana)!=this.charType.SBCS_Katakana&&(this.excludeTypes|=this.charType.SBCS_Katakana);break;case 65305:if((this.excludeTypes&this.charType.DBCS_Number)==(this.charType.DBCS_Number|0))return;this.excludeTypes|=this.charType.DBCS_Number;break;case 57:(this.excludeTypes&this.charType.SBCS_Number)!=this.charType.SBCS_Number&&(this.excludeTypes|=this.charType.SBCS_Number);break;case 65283:(this.excludeTypes&this.charType.DBCS_NumberSymbol)!=(this.charType.DBCS_NumberSymbol|0)&&(this.excludeTypes|=this.charType.DBCS_NumberSymbol);break;case 35:(this.excludeTypes&this.charType.SBCS_NumberSymbol)!=this.charType.SBCS_NumberSymbol&&(this.excludeTypes|=this.charType.SBCS_NumberSymbol);break;case 65312:(this.excludeTypes&this.charType.DBCS_Symbol)!=(this.charType.DBCS_Symbol|0)&&(this.excludeTypes|=this.charType.DBCS_Symbol);break;case 64:(this.excludeTypes&this.charType.SBCS_Symbol)!=this.charType.SBCS_Symbol&&(this.excludeTypes|=this.charType.SBCS_Symbol);break;case 65314:(this.excludeTypes&this.charType.DBCS_Binary)!=(this.charType.DBCS_Binary|0)&&(this.excludeTypes|=this.charType.DBCS_Binary);break;case 66:(this.excludeTypes&this.charType.SBCS_Binary)!=this.charType.SBCS_Binary&&(this.excludeTypes|=this.charType.SBCS_Binary);break;case 65336:(this.excludeTypes&this.charType.DBCS_Hexadecimal)!=(this.charType.DBCS_Hexadecimal|0)&&(this.excludeTypes|=this.charType.DBCS_Hexadecimal);break;case 88:(this.excludeTypes&this.charType.SBCS_Hexadecimal)!=this.charType.SBCS_Hexadecimal&&(this.excludeTypes|=this.charType.SBCS_Hexadecimal);break;case 65322:(this.excludeTypes&this.charType.DBCS_Hiragana)!=(this.charType.DBCS_Hiragana|0)&&(this.excludeTypes|=this.charType.DBCS_Hiragana);break;case 65338:(this.excludeTypes&this.charType.DBCS_All)!=(this.charType.DBCS_All|0)&&(this.excludeTypes|=this.charType.DBCS_All);break;case 65325:(this.excludeTypes&this.charType.DBCS_ShiftJIS)!=(this.charType.DBCS_ShiftJIS|0)&&(this.excludeTypes|=this.charType.DBCS_ShiftJIS);break;case 65321:(this.excludeTypes&this.charType.DBCS_JISX0208)!=(this.charType.DBCS_JISX0208|0)&&(this.excludeTypes|=this.charType.DBCS_JISX0208);break;case 72:(this.excludeTypes&this.charType.SBCS_All)!=this.charType.SBCS_All&&(this.excludeTypes|=this.charType.SBCS_All);break;case 78:(this.excludeTypes&this.charType.Upper_SBCS_Katakana)!=this.charType.Upper_SBCS_Katakana&&(this.excludeTypes|=this.charType.Upper_SBCS_Katakana);break;case 65326:(this.excludeTypes&this.charType.Upper_DBCS_Katakana)!=this.charType.Upper_DBCS_Katakana&&(this.excludeTypes|=this.charType.Upper_DBCS_Katakana);break;case 65319:(this.excludeTypes&this.charType.Upper_DBCS_Hiragana)!=this.charType.Upper_DBCS_Hiragana&&(this.excludeTypes|=this.charType.Upper_DBCS_Hiragana);break;case 65331:(this.excludeTypes&this.charType.DBCS_Space)!=this.charType.DBCS_Space&&(this.excludeTypes|=this.charType.DBCS_Space);break;case 83:(this.excludeTypes&this.charType.SBCS_Space)!=this.charType.SBCS_Space&&(this.excludeTypes|=this.charType.SBCS_Space);break;case 65332:(this.excludeTypes&this.charType.FourBytes)!=this.charType.FourBytes&&(this.excludeTypes|=this.charType.FourBytes);break;case 65316:(this.excludeTypes&this.charType.TwoBytes)!=this.charType.TwoBytes&&(this.excludeTypes|=this.charType.TwoBytes);break;case 65317:this.excludeTypes|=this.charType.Emoji;break;case 65334:this.excludeTypes|=this.charType.IVS;break;default:this.excludeNormalChar=this.excludeNormalChar+e.Substring(t,t+1)}},n.prototype.ParseFormat=function(e){this.includeFormat=this.GetIncludeFormat(e),this.excludeFormat=this.GetExcludeFormat(e),this.ParseIncludeFormat(this.includeFormat),this.ParseExcludeFormat(this.excludeFormat)},n.prototype.IsValidProcess=function(e,t,n){if(n.IndexOf(e)!=-1)return!0;if(e=="	"||e=="\r"||e=="\n")return!0;if(t==0)return!1;var r=!1;if(t==this.charType.All)return!0;if((t&this.charType.Emoji)==(this.charType.Emoji|0)&&this.IsEmoji(e))return!0;if((t&this.charType.IVS)==(this.charType.IVS|0)&&this.IsIVS(e))return!0;if((t&this.charType.FourBytes)==(this.charType.FourBytes|0)&&this.IsFourBytes(e))return!0;if(e.GetLength()==1&&e.length>1)return!1;if((t&this.charType.DBCS_ShiftJIS)==(this.charType.DBCS_ShiftJIS|0)&&this.IsShiftJIS(e))return!0;if(this.charExInstance.IsFullWidth(e)){if((t&this.charType.DBCS)!=(this.charType.DBCS|0))return!1;if((t&this.charType.DBCS_All)==(this.charType.DBCS_All|0)&&e!="\u3000")r=!0;else if((t&this.charType.DBCS_LowerAlphabet)==(this.charType.DBCS_LowerAlphabet|0)&&this.IsLower(e))r=!0;else if((t&this.charType.DBCS_UpperAlphabet)==(this.charType.DBCS_UpperAlphabet|0)&&this.IsUpper(e))r=!0;else if((t&this.charType.DBCS_Number)==(this.charType.DBCS_Number|0)&&this.IsNumber(e))r=!0;else if((t&this.charType.DBCS_Binary)==(this.charType.DBCS_Binary|0)&&this.IsBinary(e))r=!0;else if((t&this.charType.DBCS_Hexadecimal)==(this.charType.DBCS_Hexadecimal|0)&&this.IsHex(e))r=!0;else if((t&this.charType.DBCS_Symbol)==(this.charType.DBCS_Symbol|0)&&this.IsSymbol(e))r=!0;else if((t&this.charType.DBCS_NumberSymbol)==(this.charType.DBCS_NumberSymbol|0)&&this.IsNumberSymbol(e))r=!0;else if((t&this.charType.DBCS_Katakana)==(this.charType.DBCS_Katakana|0)&&this.IsKatakana(e)){var i=this.IsHiragana(e);i?this.include?r=!0:r=(t&this.charType.DBCS_Hiragana)==(this.charType.DBCS_Hiragana|0):r=!0}else if((t&this.charType.DBCS_Hiragana)==(this.charType.DBCS_Hiragana|0)&&this.IsHiragana(e)){var i=this.IsKatakana(e);i?this.include?r=!0:r=(t&this.charType.DBCS_Katakana)==(this.charType.DBCS_Katakana|0):r=!0}else(t&this.charType.DBCS_JISX0208)==(this.charType.DBCS_JISX0208|0)&&this.IsJISX0208(e)?r=!0:(t&this.charType.Upper_DBCS_Katakana)==(this.charType.Upper_DBCS_Katakana|0)&&this.IsKatakana(e)&&this.IsUpperKana(e)?r=!0:(t&this.charType.Upper_DBCS_Hiragana)==(this.charType.Upper_DBCS_Hiragana|0)&&this.IsHiragana(e)&&this.IsUpperKana(e)?r=!0:(t&this.charType.DBCS_Space)==(this.charType.DBCS_Space|0)&&this.IsFormatSpace(e)?r=!0:(t&this.charType.FourBytes)==(this.charType.FourBytes|0)&&this.IsFourBytes(e)?r=!0:(t&this.charType.TwoBytes)==(this.charType.TwoBytes|0)&&!this.IsFourBytes(e)&&e!="\u3000"&&(r=!0)}else{if((t&this.charType.SBCS)!=this.charType.SBCS)return!1;(t&this.charType.SBCS_All)==this.charType.SBCS_All&&e!=" "?r=!0:(t&this.charType.SBCS_LowerAlphabet)==this.charType.SBCS_LowerAlphabet&&this.IsLower(e)?r=!0:(t&this.charType.SBCS_UpperAlphabet)==this.charType.SBCS_UpperAlphabet&&this.IsUpper(e)?r=!0:(t&this.charType.SBCS_Number)==this.charType.SBCS_Number&&this.IsNumber(e)?r=!0:(t&this.charType.SBCS_Binary)==this.charType.SBCS_Binary&&this.IsBinary(e)?r=!0:(t&this.charType.SBCS_Hexadecimal)==this.charType.SBCS_Hexadecimal&&this.IsHex(e)?r=!0:(t&this.charType.SBCS_Symbol)==this.charType.SBCS_Symbol&&this.IsSymbol(e)?r=!0:(t&this.charType.SBCS_NumberSymbol)==this.charType.SBCS_NumberSymbol&&this.IsNumberSymbol(e)?r=!0:(t&this.charType.SBCS_Katakana)==this.charType.SBCS_Katakana&&this.IsKatakana(e)?r=!0:(t&this.charType.Upper_SBCS_Katakana)==this.charType.Upper_SBCS_Katakana&&this.IsKatakana(e)&&this.IsUpperKana(e)?r=!0:(t&this.charType.SBCS_Space)==this.charType.SBCS_Space&&this.IsFormatSpace(e)&&(r=!0)}return r},n.prototype.IsIncludeValid=function(e){return this.IsValidProcess(e,this.allowTypes,this.includeNormalChar)},n.prototype.IsExcludeValid=function(e){return this.IsValidProcess(e,this.excludeTypes,this.excludeNormalChar)},n.prototype.IsValid=function(e){if(this.excludeFormat!=""){if(!!this.IsExcludeValid(e))return!1;if(this.includeFormat!="")return this.IsIncludeValid(e)}else if(this.includeFormat!="")return this.IsIncludeValid(e);return!0},n.prototype.IsFormatSpace=function(e){return e==" "||e=="\u3000"?!0:!1},n.prototype.IsFourBytes=function(t){var n=e.CharProcess.CharEx,r=t.Substring(0,1);if(r.length>1)for(var i=0;i<r.length;i++)if(n.IsSurrogate(r[i]))return!0;return!1},n.prototype.IsUpper=function(e){return this.charExInstance.IsUpper(e)},n.prototype.IsLower=function(e){return this.charExInstance.IsLower(e)},n.prototype.IsNumber=function(e){return this.charExInstance.IsDigit(e)},n.prototype.IsBinary=function(e){return e=this.IsFullWidth(e)?this.ToHalfWidth(e):e,e=="0"||e=="1"},n.prototype.IsHex=function(e){return e=this.IsFullWidth(e)?this.ToHalfWidth(e):e,e=="A"||e=="B"||e=="C"||e=="D"||e=="E"||e=="F"||e=="a"||e=="b"||e=="c"||e=="d"||e=="e"||e=="f"||this.IsDigit(e)},n.prototype.IsSymbol=function(e){return this.charExInstance.IsHalfWidthSymbol(e)||this.charExInstance.IsFullWidthSymbol(e)},n.prototype.IsNumberSymbol=function(e){return e=this.IsFullWidth(e)?this.ToHalfWidth(e):e,this.IsDigit(e)||e=="+"||e=="-"||e=="$"||e=="%"||e=="\\"||e==","||e=="."},n.prototype.IsKatakana=function(e){return this.charExInstance.IsKatakana(e)},n.prototype.IsHiragana=function(e){return this.charExInstance.IsHiragana(e)},n.prototype.IsShiftJIS=function(e){return this.charExInstance.IsShiftJIS(e)},n.prototype.IsJISX0208=function(e){return this.charExInstance.IsJISX0208(e)},n.prototype.IsEmoji=function(e){var t={};return!1},n.prototype.IsIVS=function(e){var t={};return!1},n.prototype.IsDBCS=function(e){return this.IsFullWidth(e)},n.prototype.IsSBCS=function(e){return!this.IsFullWidth(e)},n.prototype.IsFullWidth=function(e){return this.charExInstance.IsFullWidth(e)},n.prototype.IsSurrogatePair=function(e){return this.charExInstance.IsSurrogatePair(e)},n.prototype.ToHalfWidth=function(e){return this.charExInstance.ToHalfWidth(e)},n.prototype.IsDigit=function(e){return this.charExInstance.IsDigit(e)},n.prototype.IsUpperKana=function(e){return this.charExInstance.IsUpperKana(e)},n.prototype.CheckValidSpace=function(e){return e==" "&&(this.allowTypes&this.charType.SBCS_Space)==(this.charType.SBCS_Space|0)?!0:e=="\u3000"&&(this.allowTypes&this.charType.DBCS_Space)==(this.charType.DBCS_Space|0)?!0:!1},n.prototype.Check=function(e,t){var n;t!=null?n=e.Substring(t,t+1):n=e;var r=this.IsValid(n);return r?n:this.autoConvert?t!=null?this.Convert(e,t):this.Convert(n):""},n.prototype.CheckText=function(e){var t=e.GetLength(),n={IsInputValid:!0,CheckedText:""};for(var r=0;r<t;){var i=e.Substring(r,r+1);if(i!="	"&&i!="\r"&&i!="\n"){var s=this.Check(e,r);s.index!=null?(r=s.index,i=s.strValue):(i=s,r++),i==""&&(n.IsInputValid=!1)}else r++;n.CheckedText+=i}return n},n.prototype.Convert=function(e,t){var n;t==null?n=e:n=e.Substring(t,t+1);var r=!1;if(this.charExInstance.IsAlphabet(n)){var i=this.charExInstance.IsLower(n)?n.toUpperCase():n.toLowerCase();return r=this.IsValid(i),r?i:(n=this.charExInstance.IsFullWidth(n)?this.charExInstance.ToHalfWidth(n):this.charExInstance.ToFullWidth(n).text,r=this.IsValid(n),r?n:(i=this.charExInstance.IsFullWidth(i)?this.charExInstance.ToHalfWidth(i):this.charExInstance.ToFullWidth(i).text,r=this.IsValid(i),r?i:""))}if(this.charExInstance.IsHiragana(n)){if(this.charExInstance.IsLowerKana(n)){var s=this.charExInstance.ToUpperKana(n);r=this.IsValid(s);if(r)return s}else if(this.charExInstance.HasLowerKana(n)){var o=this.charExInstance.ToLowerKana(n);r=this.IsValid(o);if(r)return o}var i=this.charExInstance.ToKatakana(n);r=this.IsValid(i);if(r)return i;if(this.charExInstance.IsLowerKana(i)){var s=this.charExInstance.ToUpperKana(i);r=this.IsValid(s);if(r)return s}else if(this.charExInstance.HasLowerKana(i)){var o=this.charExInstance.ToLowerKana(i);r=this.IsValid(o);if(r)return o}var u=this.charExInstance.ToHalfWidthEx(i);r=this.IsValid(u);if(r)return u;if(this.charExInstance.IsLowerKana(u)){u=this.charExInstance.ToUpperKana(u),r=this.IsValid(u);if(r)return u}else if(this.charExInstance.HasLowerKana(u)){u=this.charExInstance.ToLowerKana(u),r=this.IsValid(u);if(r)return u}return""}if(this.charExInstance.IsKatakana(n)){if(this.charExInstance.IsLowerKana(n)){var s=this.charExInstance.ToUpperKana(n);r=this.IsValid(s);if(r)return s}else if(this.charExInstance.HasLowerKana(n)){var o=this.charExInstance.ToLowerKana(n);r=this.IsValid(o);if(r)return o}var a=!1,i=n;if(this.charExInstance.IsFullWidth(n)){var f=this.charExInstance.ToHalfWidthEx(n);if(f.GetLength()>0){r=this.IsValid(f);if(r)return f}if(this.charExInstance.IsLowerKana(f)){f=this.charExInstance.ToUpperKana(f),r=this.IsValid(f);if(r)return f}else if(this.charExInstance.HasLowerKana(f)){f=this.charExInstance.ToLowerKana(f),r=this.IsValid(f);if(r)return f}}else{if(t==null){i=this.charExInstance.ToFullWidth(n).text;if(!this.charExInstance.IsKatakana(i))return"";r=this.IsValid(i);if(r)return i}else{if(t+1<e.GetLength()){var l=this.charExInstance.ToFullWidth(e.Substring(t,t+2));i=l.text,a=l.processedAll}else i=this.charExInstance.ToFullWidth(n).text;if(!this.charExInstance.IsKatakana(i))return"";r=this.IsValid(i);if(r)return t++,a&&t++,{index:t,strValue:i}}if(this.charExInstance.IsLowerKana(i)){var s=this.charExInstance.ToUpperKana(i);r=this.IsValid(s);if(r)return s}else if(this.charExInstance.HasLowerKana(i)){var o=this.charExInstance.ToLowerKana(i);r=this.IsValid(o);if(r)return o}}i=this.charExInstance.ToHiragana(i),r=this.IsValid(i);if(r){if(t!=null){t++,a&&t++;var c={index:t,strValue:i};return i=="\u3094"&&(a?c.strValue="\u3046\u309b":c.strValue=""),c}return i=="\u3094"?"":i}if(this.charExInstance.IsLowerKana(i)){var s=this.charExInstance.ToUpperKana(i);r=this.IsValid(s);if(r)return s}else if(this.charExInstance.HasLowerKana(i)){var o=this.charExInstance.ToLowerKana(i);r=this.IsValid(o);if(r)return o}}return n=this.charExInstance.IsFullWidth(n)?this.charExInstance.ToHalfWidth(n):this.charExInstance.ToFullWidth(n).text,r=this.IsValid(n),r?n:""},n}();e.TextFilter=n})(e.input||(e.input={}));var t=e.input})(wijmo||(wijmo={})),$.wijinputcore=$.wijinputcore||{},$.wijinputcore.validateText=$.wijinputcore.validateText||function(e,t,n){if(n===undefined){var r=new wijmo.input.TextFilter(!1,t),i=r.CheckText(e),s=i.CheckedText;return s===e?!0:!1}var o=e.length;return o<t||o>n?!1:!0};