Implement the KanaToRomaji function in the /app/ directory, which converts Japanese Kana characters (Hiragana and Katakana) into their corresponding Romaji representations based on the specified test cases. The following functionalities must be incorporated into your implementation:
Basic Kana to Romaji conversion:
Convert simple Kana like "あいうえお" and "アイウエオ" into "aiueo".
Convert Dakuten (voiced characters) such as "がぎぐげご" and "ガギグゲゴ" into "gagigugego".
Youon (combined sounds):
Handle Kana combinations that form more complex sounds, such as "きゃきゅきょ" translating to "kyakyukyok".
Ensure special youon cases are managed correctly, including invalid configurations that should return appropriate error messages.
Chouon (long vowel marks):
Support long vowel characters by converting combinations like "アー" into "aa" and adjust other vowel sounds accordingly ("ウー" to "uu").
Invalid input management:
Properly manage inputs that do not conform to Kana standards or those that contain invalid sequences (e.g., sokuon errors like "っあ" which should return an error message).
Non-Kana characters:
Any input that contains characters outside of Kana should return an empty string and a relevant error indicating invalid input.
The implementation must ensure that all tests provided in the respective test cases pass, with the proper handling of errors, expected outputs, and edge cases as described.
Important: declare your solution in package kanaconv (the test file uses package kanaconv, so the implementation must use the matching package name).