MIT License

Copyright (c) 2018 Bkm016

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Source attribution and modifications
====================================

TabooLib Kether Java core
-------------------------

The bundled parser primitives in klib-script contain code copied or
adapted from TabooLib's Java Kether core:

All 30 Java source types present in the fixed upstream Kether core directory
are represented by Java API boundaries and shared Java/Kotlin implementations
in klib's kether/core package, targeting Java 8 bytecode.

- Project: TabooLib — <https://github.com/TabooLib/taboolib>
- Fixed revision: c27e822fb34eebd7433a94efbfac0a26943cccd6
- Upstream paths:
  - module/minecraft/minecraft-kether/src/main/java/taboolib/library/kether/*.java
  - module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/action/ActionGet.kt
  - module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/action/ActionLiteral.kt
- klib paths:
  - runtime/script/src/main/java/me/kzheart/klib/script/kether/core/
  - runtime/script/src/main/kotlin/me/kzheart/klib/script/kether/core/
  - runtime/script/src/main/resources/META-INF/LICENSE-TabooLib-Kether.txt
- Changes: package relocation; removal of JetBrains annotations, Guava,
  Multimap, and Kotlin upper-layer references; JDK-only coercion and parser
  combinators replacing Coerce/DataFixerUpper; local replacements for the two
  Kotlin actions referenced by SimpleReader; localized lexing exception
  replacement; defensive collection/content copies; Kotlin implementation migration
  with retained Java contracts; and Java 8 compilation.
  SimpleQuestService and SimpleQuestContext are klib additions. Original
  author/Javadoc and implementation comments are retained in the adapted files.

The two directly copied files were verified byte-for-byte against the fixed
revision before relocation (AbstractStringReader.java SHA-256
1499195c34308a8f58ad19e7d60ab8afa17020a162a642e4c0bd82034d7b7d9f;
TokenBlock.java SHA-256
5e77e38727e9f07c8ef9c1db63882c8efa48442706c493532bd3769de31e1754).

Structured Kether actions
-------------------------

StructuredScriptActions implements nested text actions, case branches and JEXL
expressions using the behavior of the following MIT-licensed TabooLib sources:

- Fixed revision: 0e3a911fc55624075b5c9abd4368cb5b063b022b
- Base path: module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/
- Files: action/game/Actions.kt, action/transform/ActionWhen.kt,
  action/transform/CheckType.kt, action/transform/ActionJexl3.kt, KetherHelper.kt.
- Copyright (c) 2018 Bkm016; MIT terms are reproduced in this file and in the JAR's
  META-INF/LICENSE-TabooLib-Kether.txt.
- Changes: independent Kotlin implementation targeting Java 8, explicit
  ScriptContext services,
  strict statement parsing, propagated failures, executor-bound asynchronous
  continuations, and no dependency on the TabooLib runtime.

Native value actions and immediate templates
--------------------------------------------

NativeValueActions and ScriptTemplates adapt semantics from the same fixed
TabooLib revision 0e3a911fc55624075b5c9abd4368cb5b063b022b:

- module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/:
  action/ActionSet.kt, action/transform/ActionRandom.kt,
  action/transform/ActionMath.kt, action/transform/Actions.kt,
  action/game/Actions.kt, KetherMath.kt, KetherFunction.kt.
- common-util/src/main/kotlin/taboolib/common/util/VariableReader.kt and Random.kt.
- common-platform-api/src/main/kotlin/taboolib/common/util/CommandSender.kt.
- Copyright (c) 2018 Bkm016; the MIT terms are reproduced in this file and in
  META-INF/LICENSE-TabooLib-Kether.txt.
- Changes: Kotlin implementation targeting Java 8; explicit host services;
  original Klib bare-set
  syntax retained; executor-bound asynchronous continuations; independent
  frame/context bridge; no TabooLib runtime dependency. Kotlin is part of the
  Klib runtime.

The numeric sanitising/coercion algorithm also derives from
common-legacy-api/src/main/java/taboolib/common5/Coerce.java at the same
revision. Copyright (c) SpongePowered <https://www.spongepowered.org> and
contributors, MIT; the full notice is included in
META-INF/LICENSE-Sponge-Coerce.txt.

TabooLib built-in Kether statements
-----------------------------------

FlowScriptActions, CollectionScriptActions, TextScriptActions,
GameScriptActions, ScriptProperties, KetherSupport and the player operator
table in NativeCheckActions / BukkitScriptServices translate the behavior of
TabooLib's built-in Kether statements:

- Fixed revision: 34732f0a17aa3d739c8c7c1a3b3ff44c948f84f5 (TabooLib 6.3.0)
- Base path: module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/
- Files: action/Actions.kt, action/ActionGet.kt, action/ActionProperty.kt,
  action/ActionSet.kt, action/loop/*.kt, action/supplier/*.kt,
  action/transform/Actions.kt, action/transform/ActionArray.kt,
  action/transform/ActionMatcher.kt, action/transform/ActionJavaScript.kt,
  action/game/Actions.kt, action/game/ActionCommand.kt,
  action/game/ActionPlayer.kt, action/game/PlayerOperators.kt,
  action/game/PlayerOperatorsExtension.kt, action/game/bukkit/ActionItemStack.kt,
  action/game/bukkit/ActionScoreboard.kt, KetherScriptLoader.kt, ParserHolder.kt.
- common-legacy-api/src/main/java/taboolib/common5/Coerce.java and
  common-util/src/main/kotlin/taboolib/common5/util/String.kt (printed).
- Copyright (c) 2018 Bkm016; the MIT terms are reproduced in this file and in
  META-INF/LICENSE-TabooLib-Kether.txt.
- Changes: Kotlin implementation targeting Java 8; host capabilities through
  explicit ScriptContext
  services (ScriptPlatform, PlayerQuery, CommandSink, ScriptLogger,
  JavaScriptEvaluator); iterative loops that do not grow the call stack;
  longest-match player operator names; = stays reserved for the Klib check
  alias; java.text date formatting instead of Commons Lang; no TabooLib runtime
  dependency. Kotlin is part of the Klib runtime.

Native checks and host queries
------------------------------

NativeCheckActions adapts TabooLib revision
0e3a911fc55624075b5c9abd4368cb5b063b022b under the MIT terms in this file:

- module/minecraft/minecraft-kether/src/main/kotlin/taboolib/module/kether/:
  action/transform/Actions.kt, action/transform/CheckType.kt,
  action/supplier/Actions.kt, action/game/ActionPlayer.kt,
  action/game/compat/ActionPlaceholder.kt, KetherConcurrent.kt.
- Changes: Kotlin implementation targeting Java 8, explicit host services,
  read-only player properties,
  existing Klib equality alias retained, strict missing-argument validation and
  executor-bound continuations. No TabooLib runtime dependency; Kotlin is part
  of the Klib runtime.
- Numeric coercion uses the Sponge Coerce algorithm and license identified above.
