Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ButtonPanel.svelte +119 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Copy.svelte.d.ts +20 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/CopyAll.svelte +44 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Flag.svelte +10 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/LikeDislike.svelte +94 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Pending.svelte +126 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ThumbDownActive.svelte.d.ts +23 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ThumbDownDefault.svelte.d.ts +23 -0
- mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/utils.d.ts +24 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py +1031 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py +447 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/t64.exe +3 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/util.py +1984 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64-arm.exe +3 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64.exe +3 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py +1100 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py +45 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/codec.py +122 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/compat.py +15 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/core.py +437 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py +57 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py +1 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/py.typed +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py +15 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-310.pyc +0 -0
- moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-310.pyc +0 -0
.gitattributes
CHANGED
|
@@ -541,3 +541,6 @@ parrot/lib/python3.10/site-packages/kiwisolver/_cext.cpython-310-x86_64-linux-gn
|
|
| 541 |
mantis_evalkit/lib/python3.10/site-packages/sklearn/preprocessing/__pycache__/_data.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 542 |
moondream/lib/python3.10/site-packages/torch/utils/hipify/__pycache__/cuda_to_hip_mappings.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 543 |
mantis_evalkit/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__pycache__/more.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 541 |
mantis_evalkit/lib/python3.10/site-packages/sklearn/preprocessing/__pycache__/_data.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 542 |
moondream/lib/python3.10/site-packages/torch/utils/hipify/__pycache__/cuda_to_hip_mappings.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 543 |
mantis_evalkit/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__pycache__/more.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 544 |
+
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/t64.exe filter=lfs diff=lfs merge=lfs -text
|
| 545 |
+
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64-arm.exe filter=lfs diff=lfs merge=lfs -text
|
| 546 |
+
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64.exe filter=lfs diff=lfs merge=lfs -text
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ButtonPanel.svelte
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>import LikeDislike from "./LikeDislike.svelte";
|
| 2 |
+
import Copy from "./Copy.svelte";
|
| 3 |
+
import { Retry, Undo, Edit, Check, Clear } from "@gradio/icons";
|
| 4 |
+
import { IconButtonWrapper, IconButton } from "@gradio/atoms";
|
| 5 |
+
import { all_text, is_all_text } from "./utils";
|
| 6 |
+
export let likeable;
|
| 7 |
+
export let feedback_options;
|
| 8 |
+
export let show_retry;
|
| 9 |
+
export let show_undo;
|
| 10 |
+
export let show_edit;
|
| 11 |
+
export let in_edit_mode;
|
| 12 |
+
export let show_copy_button;
|
| 13 |
+
export let message;
|
| 14 |
+
export let position;
|
| 15 |
+
export let avatar;
|
| 16 |
+
export let generating;
|
| 17 |
+
export let current_feedback;
|
| 18 |
+
export let handle_action;
|
| 19 |
+
export let layout;
|
| 20 |
+
export let dispatch;
|
| 21 |
+
$:
|
| 22 |
+
message_text = is_all_text(message) ? all_text(message) : "";
|
| 23 |
+
$:
|
| 24 |
+
show_copy = show_copy_button && message && is_all_text(message);
|
| 25 |
+
</script>
|
| 26 |
+
|
| 27 |
+
{#if show_copy || show_retry || show_undo || show_edit || likeable}
|
| 28 |
+
<div
|
| 29 |
+
class="message-buttons-{position} {layout} message-buttons {avatar !==
|
| 30 |
+
null && 'with-avatar'}"
|
| 31 |
+
>
|
| 32 |
+
<IconButtonWrapper top_panel={false}>
|
| 33 |
+
{#if in_edit_mode}
|
| 34 |
+
<IconButton
|
| 35 |
+
label="Submit"
|
| 36 |
+
Icon={Check}
|
| 37 |
+
on:click={() => handle_action("edit_submit")}
|
| 38 |
+
disabled={generating}
|
| 39 |
+
/>
|
| 40 |
+
<IconButton
|
| 41 |
+
label="Cancel"
|
| 42 |
+
Icon={Clear}
|
| 43 |
+
on:click={() => handle_action("edit_cancel")}
|
| 44 |
+
disabled={generating}
|
| 45 |
+
/>
|
| 46 |
+
{:else}
|
| 47 |
+
{#if show_copy}
|
| 48 |
+
<Copy
|
| 49 |
+
value={message_text}
|
| 50 |
+
on:copy={(e) => dispatch("copy", e.detail)}
|
| 51 |
+
/>
|
| 52 |
+
{/if}
|
| 53 |
+
{#if show_retry}
|
| 54 |
+
<IconButton
|
| 55 |
+
Icon={Retry}
|
| 56 |
+
label="Retry"
|
| 57 |
+
on:click={() => handle_action("retry")}
|
| 58 |
+
disabled={generating}
|
| 59 |
+
/>
|
| 60 |
+
{/if}
|
| 61 |
+
{#if show_undo}
|
| 62 |
+
<IconButton
|
| 63 |
+
label="Undo"
|
| 64 |
+
Icon={Undo}
|
| 65 |
+
on:click={() => handle_action("undo")}
|
| 66 |
+
disabled={generating}
|
| 67 |
+
/>
|
| 68 |
+
{/if}
|
| 69 |
+
{#if show_edit}
|
| 70 |
+
<IconButton
|
| 71 |
+
label="Edit"
|
| 72 |
+
Icon={Edit}
|
| 73 |
+
on:click={() => handle_action("edit")}
|
| 74 |
+
disabled={generating}
|
| 75 |
+
/>
|
| 76 |
+
{/if}
|
| 77 |
+
{#if likeable}
|
| 78 |
+
<LikeDislike
|
| 79 |
+
{handle_action}
|
| 80 |
+
{feedback_options}
|
| 81 |
+
selected={current_feedback}
|
| 82 |
+
/>
|
| 83 |
+
{/if}
|
| 84 |
+
{/if}
|
| 85 |
+
</IconButtonWrapper>
|
| 86 |
+
</div>
|
| 87 |
+
{/if}
|
| 88 |
+
|
| 89 |
+
<style>
|
| 90 |
+
.bubble :global(.icon-button-wrapper) {
|
| 91 |
+
margin: 0px calc(var(--spacing-xl) * 2);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.message-buttons {
|
| 95 |
+
z-index: var(--layer-1);
|
| 96 |
+
}
|
| 97 |
+
.message-buttons-left {
|
| 98 |
+
align-self: flex-start;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
.bubble.message-buttons-right {
|
| 102 |
+
align-self: flex-end;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
.message-buttons-right :global(.icon-button-wrapper) {
|
| 106 |
+
margin-left: auto;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
.bubble.with-avatar {
|
| 110 |
+
margin-left: calc(var(--spacing-xl) * 5);
|
| 111 |
+
margin-right: calc(var(--spacing-xl) * 5);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.panel {
|
| 115 |
+
display: flex;
|
| 116 |
+
align-self: flex-start;
|
| 117 |
+
z-index: var(--layer-1);
|
| 118 |
+
}
|
| 119 |
+
</style>
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Copy.svelte.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent } from "svelte";
|
| 2 |
+
import type { CopyData } from "@gradio/utils";
|
| 3 |
+
declare const __propDef: {
|
| 4 |
+
props: {
|
| 5 |
+
value: string;
|
| 6 |
+
};
|
| 7 |
+
events: {
|
| 8 |
+
change: CustomEvent<undefined>;
|
| 9 |
+
copy: CustomEvent<CopyData>;
|
| 10 |
+
} & {
|
| 11 |
+
[evt: string]: CustomEvent<any>;
|
| 12 |
+
};
|
| 13 |
+
slots: {};
|
| 14 |
+
};
|
| 15 |
+
export type CopyProps = typeof __propDef.props;
|
| 16 |
+
export type CopyEvents = typeof __propDef.events;
|
| 17 |
+
export type CopySlots = typeof __propDef.slots;
|
| 18 |
+
export default class Copy extends SvelteComponent<CopyProps, CopyEvents, CopySlots> {
|
| 19 |
+
}
|
| 20 |
+
export {};
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/CopyAll.svelte
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>import { onDestroy } from "svelte";
|
| 2 |
+
import { Copy, Check } from "@gradio/icons";
|
| 3 |
+
import { IconButton } from "@gradio/atoms";
|
| 4 |
+
let copied = false;
|
| 5 |
+
export let value;
|
| 6 |
+
let timer;
|
| 7 |
+
function copy_feedback() {
|
| 8 |
+
copied = true;
|
| 9 |
+
if (timer)
|
| 10 |
+
clearTimeout(timer);
|
| 11 |
+
timer = setTimeout(() => {
|
| 12 |
+
copied = false;
|
| 13 |
+
}, 1e3);
|
| 14 |
+
}
|
| 15 |
+
const copy_conversation = () => {
|
| 16 |
+
if (value) {
|
| 17 |
+
const conversation_value = value.map((message) => {
|
| 18 |
+
if (message.type === "text") {
|
| 19 |
+
return `${message.role}: ${message.content}`;
|
| 20 |
+
}
|
| 21 |
+
return `${message.role}: ${message.content.value.url}`;
|
| 22 |
+
}).join("\n\n");
|
| 23 |
+
navigator.clipboard.writeText(conversation_value).catch((err) => {
|
| 24 |
+
console.error("Failed to copy conversation: ", err);
|
| 25 |
+
});
|
| 26 |
+
}
|
| 27 |
+
};
|
| 28 |
+
async function handle_copy() {
|
| 29 |
+
if ("clipboard" in navigator) {
|
| 30 |
+
copy_conversation();
|
| 31 |
+
copy_feedback();
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
onDestroy(() => {
|
| 35 |
+
if (timer)
|
| 36 |
+
clearTimeout(timer);
|
| 37 |
+
});
|
| 38 |
+
</script>
|
| 39 |
+
|
| 40 |
+
<IconButton
|
| 41 |
+
Icon={copied ? Check : Copy}
|
| 42 |
+
on:click={handle_copy}
|
| 43 |
+
label={copied ? "Copied conversation" : "Copy conversation"}
|
| 44 |
+
></IconButton>
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Flag.svelte
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<svg
|
| 2 |
+
id="icon"
|
| 3 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 4 |
+
viewBox="0 0 32 32"
|
| 5 |
+
fill="none"
|
| 6 |
+
><path
|
| 7 |
+
fill="currentColor"
|
| 8 |
+
d="M6,30H4V2H28l-5.8,9L28,20H6ZM6,18H24.33L19.8,11l4.53-7H6Z"
|
| 9 |
+
/></svg
|
| 10 |
+
>
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/LikeDislike.svelte
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>import { IconButton } from "@gradio/atoms";
|
| 2 |
+
import ThumbDownActive from "./ThumbDownActive.svelte";
|
| 3 |
+
import ThumbDownDefault from "./ThumbDownDefault.svelte";
|
| 4 |
+
import ThumbUpActive from "./ThumbUpActive.svelte";
|
| 5 |
+
import ThumbUpDefault from "./ThumbUpDefault.svelte";
|
| 6 |
+
import Flag from "./Flag.svelte";
|
| 7 |
+
import FlagActive from "./FlagActive.svelte";
|
| 8 |
+
export let handle_action;
|
| 9 |
+
export let feedback_options;
|
| 10 |
+
export let selected = null;
|
| 11 |
+
$:
|
| 12 |
+
extra_feedback = feedback_options.filter(
|
| 13 |
+
(option) => option !== "Like" && option !== "Dislike"
|
| 14 |
+
);
|
| 15 |
+
function toggleSelection(newSelection) {
|
| 16 |
+
selected = selected === newSelection ? null : newSelection;
|
| 17 |
+
handle_action(selected);
|
| 18 |
+
}
|
| 19 |
+
</script>
|
| 20 |
+
|
| 21 |
+
{#if feedback_options.includes("Like") || feedback_options.includes("Dislike")}
|
| 22 |
+
{#if feedback_options.includes("Dislike")}
|
| 23 |
+
<IconButton
|
| 24 |
+
Icon={selected === "Dislike" ? ThumbDownActive : ThumbDownDefault}
|
| 25 |
+
label={selected === "Dislike" ? "clicked dislike" : "dislike"}
|
| 26 |
+
color={selected === "Dislike"
|
| 27 |
+
? "var(--color-accent)"
|
| 28 |
+
: "var(--block-label-text-color)"}
|
| 29 |
+
on:click={() => toggleSelection("Dislike")}
|
| 30 |
+
/>
|
| 31 |
+
{/if}
|
| 32 |
+
{#if feedback_options.includes("Like")}
|
| 33 |
+
<IconButton
|
| 34 |
+
Icon={selected === "Like" ? ThumbUpActive : ThumbUpDefault}
|
| 35 |
+
label={selected === "Like" ? "clicked like" : "like"}
|
| 36 |
+
color={selected === "Like"
|
| 37 |
+
? "var(--color-accent)"
|
| 38 |
+
: "var(--block-label-text-color)"}
|
| 39 |
+
on:click={() => toggleSelection("Like")}
|
| 40 |
+
/>
|
| 41 |
+
{/if}
|
| 42 |
+
{/if}
|
| 43 |
+
|
| 44 |
+
{#if extra_feedback.length > 0}
|
| 45 |
+
<div class="extra-feedback no-border">
|
| 46 |
+
<IconButton
|
| 47 |
+
Icon={selected && extra_feedback.includes(selected) ? FlagActive : Flag}
|
| 48 |
+
label="Feedback"
|
| 49 |
+
color={selected && extra_feedback.includes(selected)
|
| 50 |
+
? "var(--color-accent)"
|
| 51 |
+
: "var(--block-label-text-color)"}
|
| 52 |
+
/>
|
| 53 |
+
<div class="extra-feedback-options">
|
| 54 |
+
{#each extra_feedback as option}
|
| 55 |
+
<button
|
| 56 |
+
class="extra-feedback-option"
|
| 57 |
+
style:font-weight={selected === option ? "bold" : "normal"}
|
| 58 |
+
on:click={() => {
|
| 59 |
+
toggleSelection(option);
|
| 60 |
+
handle_action(selected ? selected : null);
|
| 61 |
+
}}>{option}</button
|
| 62 |
+
>
|
| 63 |
+
{/each}
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
{/if}
|
| 67 |
+
|
| 68 |
+
<style>
|
| 69 |
+
.extra-feedback {
|
| 70 |
+
display: flex;
|
| 71 |
+
align-items: center;
|
| 72 |
+
position: relative;
|
| 73 |
+
}
|
| 74 |
+
.extra-feedback-options {
|
| 75 |
+
display: none;
|
| 76 |
+
position: absolute;
|
| 77 |
+
padding: var(--spacing-md) 0;
|
| 78 |
+
flex-direction: column;
|
| 79 |
+
gap: var(--spacing-sm);
|
| 80 |
+
top: 100%;
|
| 81 |
+
}
|
| 82 |
+
.extra-feedback:hover .extra-feedback-options {
|
| 83 |
+
display: flex;
|
| 84 |
+
}
|
| 85 |
+
.extra-feedback-option {
|
| 86 |
+
border: 1px solid var(--border-color-primary);
|
| 87 |
+
border-radius: var(--radius-sm);
|
| 88 |
+
color: var(--block-label-text-color);
|
| 89 |
+
background-color: var(--block-background-fill);
|
| 90 |
+
font-size: var(--text-xs);
|
| 91 |
+
padding: var(--spacing-xxs) var(--spacing-sm);
|
| 92 |
+
width: max-content;
|
| 93 |
+
}
|
| 94 |
+
</style>
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/Pending.svelte
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>import { Image } from "@gradio/image/shared";
|
| 2 |
+
export let layout = "bubble";
|
| 3 |
+
export let avatar_images = [null, null];
|
| 4 |
+
</script>
|
| 5 |
+
|
| 6 |
+
<div class="container">
|
| 7 |
+
{#if avatar_images[1] !== null}
|
| 8 |
+
<div class="avatar-container">
|
| 9 |
+
<Image class="avatar-image" src={avatar_images[1].url} alt="bot avatar" />
|
| 10 |
+
</div>
|
| 11 |
+
{/if}
|
| 12 |
+
|
| 13 |
+
<div
|
| 14 |
+
class="message bot pending {layout}"
|
| 15 |
+
class:with_avatar={avatar_images[1] !== null}
|
| 16 |
+
class:with_opposite_avatar={avatar_images[0] !== null}
|
| 17 |
+
role="status"
|
| 18 |
+
aria-label="Loading response"
|
| 19 |
+
aria-live="polite"
|
| 20 |
+
>
|
| 21 |
+
<div class="message-content">
|
| 22 |
+
<span class="sr-only">Loading content</span>
|
| 23 |
+
<div class="dots">
|
| 24 |
+
<div class="dot" />
|
| 25 |
+
<div class="dot" />
|
| 26 |
+
<div class="dot" />
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
<style>
|
| 33 |
+
.container {
|
| 34 |
+
display: flex;
|
| 35 |
+
margin: calc(var(--spacing-xl) * 2);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.bubble.pending {
|
| 39 |
+
border-width: 1px;
|
| 40 |
+
border-radius: var(--radius-lg);
|
| 41 |
+
border-bottom-left-radius: 0;
|
| 42 |
+
border-color: var(--border-color-primary);
|
| 43 |
+
background-color: var(--background-fill-secondary);
|
| 44 |
+
box-shadow: var(--shadow-drop);
|
| 45 |
+
align-self: flex-start;
|
| 46 |
+
width: fit-content;
|
| 47 |
+
margin-bottom: var(--spacing-xl);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.bubble.with_opposite_avatar {
|
| 51 |
+
margin-right: calc(var(--spacing-xxl) + 35px + var(--spacing-xxl));
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.panel.pending {
|
| 55 |
+
margin: 0;
|
| 56 |
+
padding: calc(var(--spacing-lg) * 2) calc(var(--spacing-lg) * 2);
|
| 57 |
+
width: 100%;
|
| 58 |
+
border: none;
|
| 59 |
+
background: none;
|
| 60 |
+
box-shadow: none;
|
| 61 |
+
border-radius: 0;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.panel.with_avatar {
|
| 65 |
+
padding-left: calc(var(--spacing-xl) * 2) !important;
|
| 66 |
+
padding-right: calc(var(--spacing-xl) * 2) !important;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.avatar-container {
|
| 70 |
+
align-self: flex-start;
|
| 71 |
+
position: relative;
|
| 72 |
+
display: flex;
|
| 73 |
+
justify-content: flex-start;
|
| 74 |
+
align-items: flex-start;
|
| 75 |
+
width: 35px;
|
| 76 |
+
height: 35px;
|
| 77 |
+
flex-shrink: 0;
|
| 78 |
+
bottom: 0;
|
| 79 |
+
border-radius: 50%;
|
| 80 |
+
border: 1px solid var(--border-color-primary);
|
| 81 |
+
margin-right: var(--spacing-xxl);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.message-content {
|
| 85 |
+
padding: var(--spacing-sm) var(--spacing-xl);
|
| 86 |
+
min-height: var(--size-8);
|
| 87 |
+
display: flex;
|
| 88 |
+
align-items: center;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.dots {
|
| 92 |
+
display: flex;
|
| 93 |
+
gap: var(--spacing-xs);
|
| 94 |
+
align-items: center;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.dot {
|
| 98 |
+
width: var(--size-1-5);
|
| 99 |
+
height: var(--size-1-5);
|
| 100 |
+
margin-right: var(--spacing-xs);
|
| 101 |
+
border-radius: 50%;
|
| 102 |
+
background-color: var(--body-text-color);
|
| 103 |
+
opacity: 0.5;
|
| 104 |
+
animation: pulse 1.5s infinite;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.dot:nth-child(2) {
|
| 108 |
+
animation-delay: 0.2s;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.dot:nth-child(3) {
|
| 112 |
+
animation-delay: 0.4s;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
@keyframes pulse {
|
| 116 |
+
0%,
|
| 117 |
+
100% {
|
| 118 |
+
opacity: 0.4;
|
| 119 |
+
transform: scale(1);
|
| 120 |
+
}
|
| 121 |
+
50% {
|
| 122 |
+
opacity: 1;
|
| 123 |
+
transform: scale(1.1);
|
| 124 |
+
}
|
| 125 |
+
}
|
| 126 |
+
</style>
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ThumbDownActive.svelte.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @typedef {typeof __propDef.props} ThumbDownActiveProps */
|
| 2 |
+
/** @typedef {typeof __propDef.events} ThumbDownActiveEvents */
|
| 3 |
+
/** @typedef {typeof __propDef.slots} ThumbDownActiveSlots */
|
| 4 |
+
export default class ThumbDownActive extends SvelteComponent<{
|
| 5 |
+
[x: string]: never;
|
| 6 |
+
}, {
|
| 7 |
+
[evt: string]: CustomEvent<any>;
|
| 8 |
+
}, {}> {
|
| 9 |
+
}
|
| 10 |
+
export type ThumbDownActiveProps = typeof __propDef.props;
|
| 11 |
+
export type ThumbDownActiveEvents = typeof __propDef.events;
|
| 12 |
+
export type ThumbDownActiveSlots = typeof __propDef.slots;
|
| 13 |
+
import { SvelteComponent } from "svelte";
|
| 14 |
+
declare const __propDef: {
|
| 15 |
+
props: {
|
| 16 |
+
[x: string]: never;
|
| 17 |
+
};
|
| 18 |
+
events: {
|
| 19 |
+
[evt: string]: CustomEvent<any>;
|
| 20 |
+
};
|
| 21 |
+
slots: {};
|
| 22 |
+
};
|
| 23 |
+
export {};
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/ThumbDownDefault.svelte.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @typedef {typeof __propDef.props} ThumbDownDefaultProps */
|
| 2 |
+
/** @typedef {typeof __propDef.events} ThumbDownDefaultEvents */
|
| 3 |
+
/** @typedef {typeof __propDef.slots} ThumbDownDefaultSlots */
|
| 4 |
+
export default class ThumbDownDefault extends SvelteComponent<{
|
| 5 |
+
[x: string]: never;
|
| 6 |
+
}, {
|
| 7 |
+
[evt: string]: CustomEvent<any>;
|
| 8 |
+
}, {}> {
|
| 9 |
+
}
|
| 10 |
+
export type ThumbDownDefaultProps = typeof __propDef.props;
|
| 11 |
+
export type ThumbDownDefaultEvents = typeof __propDef.events;
|
| 12 |
+
export type ThumbDownDefaultSlots = typeof __propDef.slots;
|
| 13 |
+
import { SvelteComponent } from "svelte";
|
| 14 |
+
declare const __propDef: {
|
| 15 |
+
props: {
|
| 16 |
+
[x: string]: never;
|
| 17 |
+
};
|
| 18 |
+
events: {
|
| 19 |
+
[evt: string]: CustomEvent<any>;
|
| 20 |
+
};
|
| 21 |
+
slots: {};
|
| 22 |
+
};
|
| 23 |
+
export {};
|
mantis_evalkit/lib/python3.10/site-packages/gradio/_frontend_code/chatbot/dist/shared/utils.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { FileData } from "@gradio/client";
|
| 2 |
+
import type { ComponentType, SvelteComponent } from "svelte";
|
| 3 |
+
import type { TupleFormat, ComponentMessage, ComponentData, TextMessage, NormalisedMessage, Message } from "../types";
|
| 4 |
+
import { Gradio } from "@gradio/utils";
|
| 5 |
+
export declare const format_chat_for_sharing: (chat: NormalisedMessage[]) => Promise<string>;
|
| 6 |
+
export interface UndoRetryData {
|
| 7 |
+
index: number | [number, number];
|
| 8 |
+
value: string | FileData | ComponentData;
|
| 9 |
+
}
|
| 10 |
+
export interface EditData {
|
| 11 |
+
index: number | [number, number];
|
| 12 |
+
value: string;
|
| 13 |
+
previous_value: string;
|
| 14 |
+
}
|
| 15 |
+
export declare function normalise_messages(messages: Message[] | null, root: string): NormalisedMessage[] | null;
|
| 16 |
+
export declare function normalise_tuples(messages: TupleFormat, root: string): NormalisedMessage[] | null;
|
| 17 |
+
export declare function is_component_message(message: NormalisedMessage): message is ComponentMessage;
|
| 18 |
+
export declare function is_last_bot_message(messages: NormalisedMessage[], all_messages: NormalisedMessage[]): boolean;
|
| 19 |
+
export declare function group_messages(messages: NormalisedMessage[], msg_format: "messages" | "tuples"): NormalisedMessage[][];
|
| 20 |
+
export declare function load_components(component_names: string[], _components: Record<string, ComponentType<SvelteComponent>>, load_component: Gradio["load_component"]): Promise<Record<string, ComponentType<SvelteComponent>>>;
|
| 21 |
+
export declare function get_components_from_messages(messages: NormalisedMessage[] | null): string[];
|
| 22 |
+
export declare function get_thought_content(msg: NormalisedMessage, depth?: number): string;
|
| 23 |
+
export declare function all_text(message: TextMessage[] | TextMessage): string;
|
| 24 |
+
export declare function is_all_text(message: NormalisedMessage[] | NormalisedMessage): message is TextMessage[] | TextMessage;
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (1.05 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-310.pyc
ADDED
|
Binary file (31.4 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-310.pyc
ADDED
|
Binary file (43.1 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-310.pyc
ADDED
|
Binary file (17.3 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-310.pyc
ADDED
|
Binary file (38.2 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-310.pyc
ADDED
|
Binary file (10.2 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-310.pyc
ADDED
|
Binary file (5.28 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-310.pyc
ADDED
|
Binary file (26.9 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-310.pyc
ADDED
|
Binary file (11 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-310.pyc
ADDED
|
Binary file (11.6 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-310.pyc
ADDED
|
Binary file (52.1 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-310.pyc
ADDED
|
Binary file (20.3 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-310.pyc
ADDED
|
Binary file (28.5 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py
ADDED
|
@@ -0,0 +1,1031 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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SE.txt and CONTRIBUTORS.txt.
|
| 5 |
+
#
|
| 6 |
+
"""Implementation of the Metadata for Python packages PEPs.
|
| 7 |
+
|
| 8 |
+
Supports all metadata formats (1.0, 1.1, 1.2, 1.3/2.1 and 2.2).
|
| 9 |
+
"""
|
| 10 |
+
from __future__ import unicode_literals
|
| 11 |
+
|
| 12 |
+
import codecs
|
| 13 |
+
from email import message_from_file
|
| 14 |
+
import json
|
| 15 |
+
import logging
|
| 16 |
+
import re
|
| 17 |
+
|
| 18 |
+
from . import DistlibException, __version__
|
| 19 |
+
from .compat import StringIO, string_types, text_type
|
| 20 |
+
from .markers import interpret
|
| 21 |
+
from .util import extract_by_key, get_extras
|
| 22 |
+
from .version import get_scheme, PEP440_VERSION_RE
|
| 23 |
+
|
| 24 |
+
logger = logging.getLogger(__name__)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class MetadataMissingError(DistlibException):
|
| 28 |
+
"""A required metadata is missing"""
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class MetadataConflictError(DistlibException):
|
| 32 |
+
"""Attempt to read or write metadata fields that are conflictual."""
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
class MetadataUnrecognizedVersionError(DistlibException):
|
| 36 |
+
"""Unknown metadata version number."""
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
class MetadataInvalidError(DistlibException):
|
| 40 |
+
"""A metadata value is invalid"""
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# public API of this module
|
| 44 |
+
__all__ = ['Metadata', 'PKG_INFO_ENCODING', 'PKG_INFO_PREFERRED_VERSION']
|
| 45 |
+
|
| 46 |
+
# Encoding used for the PKG-INFO files
|
| 47 |
+
PKG_INFO_ENCODING = 'utf-8'
|
| 48 |
+
|
| 49 |
+
# preferred version. Hopefully will be changed
|
| 50 |
+
# to 1.2 once PEP 345 is supported everywhere
|
| 51 |
+
PKG_INFO_PREFERRED_VERSION = '1.1'
|
| 52 |
+
|
| 53 |
+
_LINE_PREFIX_1_2 = re.compile('\n \\|')
|
| 54 |
+
_LINE_PREFIX_PRE_1_2 = re.compile('\n ')
|
| 55 |
+
_241_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform', 'Summary', 'Description', 'Keywords', 'Home-page',
|
| 56 |
+
'Author', 'Author-email', 'License')
|
| 57 |
+
|
| 58 |
+
_314_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform', 'Supported-Platform', 'Summary', 'Description',
|
| 59 |
+
'Keywords', 'Home-page', 'Author', 'Author-email', 'License', 'Classifier', 'Download-URL', 'Obsoletes',
|
| 60 |
+
'Provides', 'Requires')
|
| 61 |
+
|
| 62 |
+
_314_MARKERS = ('Obsoletes', 'Provides', 'Requires', 'Classifier', 'Download-URL')
|
| 63 |
+
|
| 64 |
+
_345_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform', 'Supported-Platform', 'Summary', 'Description',
|
| 65 |
+
'Keywords', 'Home-page', 'Author', 'Author-email', 'Maintainer', 'Maintainer-email', 'License',
|
| 66 |
+
'Classifier', 'Download-URL', 'Obsoletes-Dist', 'Project-URL', 'Provides-Dist', 'Requires-Dist',
|
| 67 |
+
'Requires-Python', 'Requires-External')
|
| 68 |
+
|
| 69 |
+
_345_MARKERS = ('Provides-Dist', 'Requires-Dist', 'Requires-Python', 'Obsoletes-Dist', 'Requires-External',
|
| 70 |
+
'Maintainer', 'Maintainer-email', 'Project-URL')
|
| 71 |
+
|
| 72 |
+
_426_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform', 'Supported-Platform', 'Summary', 'Description',
|
| 73 |
+
'Keywords', 'Home-page', 'Author', 'Author-email', 'Maintainer', 'Maintainer-email', 'License',
|
| 74 |
+
'Classifier', 'Download-URL', 'Obsoletes-Dist', 'Project-URL', 'Provides-Dist', 'Requires-Dist',
|
| 75 |
+
'Requires-Python', 'Requires-External', 'Private-Version', 'Obsoleted-By', 'Setup-Requires-Dist',
|
| 76 |
+
'Extension', 'Provides-Extra')
|
| 77 |
+
|
| 78 |
+
_426_MARKERS = ('Private-Version', 'Provides-Extra', 'Obsoleted-By', 'Setup-Requires-Dist', 'Extension')
|
| 79 |
+
|
| 80 |
+
# See issue #106: Sometimes 'Requires' and 'Provides' occur wrongly in
|
| 81 |
+
# the metadata. Include them in the tuple literal below to allow them
|
| 82 |
+
# (for now).
|
| 83 |
+
# Ditto for Obsoletes - see issue #140.
|
| 84 |
+
_566_FIELDS = _426_FIELDS + ('Description-Content-Type', 'Requires', 'Provides', 'Obsoletes')
|
| 85 |
+
|
| 86 |
+
_566_MARKERS = ('Description-Content-Type', )
|
| 87 |
+
|
| 88 |
+
_643_MARKERS = ('Dynamic', 'License-File')
|
| 89 |
+
|
| 90 |
+
_643_FIELDS = _566_FIELDS + _643_MARKERS
|
| 91 |
+
|
| 92 |
+
_ALL_FIELDS = set()
|
| 93 |
+
_ALL_FIELDS.update(_241_FIELDS)
|
| 94 |
+
_ALL_FIELDS.update(_314_FIELDS)
|
| 95 |
+
_ALL_FIELDS.update(_345_FIELDS)
|
| 96 |
+
_ALL_FIELDS.update(_426_FIELDS)
|
| 97 |
+
_ALL_FIELDS.update(_566_FIELDS)
|
| 98 |
+
_ALL_FIELDS.update(_643_FIELDS)
|
| 99 |
+
|
| 100 |
+
EXTRA_RE = re.compile(r'''extra\s*==\s*("([^"]+)"|'([^']+)')''')
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def _version2fieldlist(version):
|
| 104 |
+
if version == '1.0':
|
| 105 |
+
return _241_FIELDS
|
| 106 |
+
elif version == '1.1':
|
| 107 |
+
return _314_FIELDS
|
| 108 |
+
elif version == '1.2':
|
| 109 |
+
return _345_FIELDS
|
| 110 |
+
elif version in ('1.3', '2.1'):
|
| 111 |
+
# avoid adding field names if already there
|
| 112 |
+
return _345_FIELDS + tuple(f for f in _566_FIELDS if f not in _345_FIELDS)
|
| 113 |
+
elif version == '2.0':
|
| 114 |
+
raise ValueError('Metadata 2.0 is withdrawn and not supported')
|
| 115 |
+
# return _426_FIELDS
|
| 116 |
+
elif version == '2.2':
|
| 117 |
+
return _643_FIELDS
|
| 118 |
+
raise MetadataUnrecognizedVersionError(version)
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def _best_version(fields):
|
| 122 |
+
"""Detect the best version depending on the fields used."""
|
| 123 |
+
|
| 124 |
+
def _has_marker(keys, markers):
|
| 125 |
+
return any(marker in keys for marker in markers)
|
| 126 |
+
|
| 127 |
+
keys = [key for key, value in fields.items() if value not in ([], 'UNKNOWN', None)]
|
| 128 |
+
possible_versions = ['1.0', '1.1', '1.2', '1.3', '2.1', '2.2'] # 2.0 removed
|
| 129 |
+
|
| 130 |
+
# first let's try to see if a field is not part of one of the version
|
| 131 |
+
for key in keys:
|
| 132 |
+
if key not in _241_FIELDS and '1.0' in possible_versions:
|
| 133 |
+
possible_versions.remove('1.0')
|
| 134 |
+
logger.debug('Removed 1.0 due to %s', key)
|
| 135 |
+
if key not in _314_FIELDS and '1.1' in possible_versions:
|
| 136 |
+
possible_versions.remove('1.1')
|
| 137 |
+
logger.debug('Removed 1.1 due to %s', key)
|
| 138 |
+
if key not in _345_FIELDS and '1.2' in possible_versions:
|
| 139 |
+
possible_versions.remove('1.2')
|
| 140 |
+
logger.debug('Removed 1.2 due to %s', key)
|
| 141 |
+
if key not in _566_FIELDS and '1.3' in possible_versions:
|
| 142 |
+
possible_versions.remove('1.3')
|
| 143 |
+
logger.debug('Removed 1.3 due to %s', key)
|
| 144 |
+
if key not in _566_FIELDS and '2.1' in possible_versions:
|
| 145 |
+
if key != 'Description': # In 2.1, description allowed after headers
|
| 146 |
+
possible_versions.remove('2.1')
|
| 147 |
+
logger.debug('Removed 2.1 due to %s', key)
|
| 148 |
+
if key not in _643_FIELDS and '2.2' in possible_versions:
|
| 149 |
+
possible_versions.remove('2.2')
|
| 150 |
+
logger.debug('Removed 2.2 due to %s', key)
|
| 151 |
+
# if key not in _426_FIELDS and '2.0' in possible_versions:
|
| 152 |
+
# possible_versions.remove('2.0')
|
| 153 |
+
# logger.debug('Removed 2.0 due to %s', key)
|
| 154 |
+
|
| 155 |
+
# possible_version contains qualified versions
|
| 156 |
+
if len(possible_versions) == 1:
|
| 157 |
+
return possible_versions[0] # found !
|
| 158 |
+
elif len(possible_versions) == 0:
|
| 159 |
+
logger.debug('Out of options - unknown metadata set: %s', fields)
|
| 160 |
+
raise MetadataConflictError('Unknown metadata set')
|
| 161 |
+
|
| 162 |
+
# let's see if one unique marker is found
|
| 163 |
+
is_1_1 = '1.1' in possible_versions and _has_marker(keys, _314_MARKERS)
|
| 164 |
+
is_1_2 = '1.2' in possible_versions and _has_marker(keys, _345_MARKERS)
|
| 165 |
+
is_2_1 = '2.1' in possible_versions and _has_marker(keys, _566_MARKERS)
|
| 166 |
+
# is_2_0 = '2.0' in possible_versions and _has_marker(keys, _426_MARKERS)
|
| 167 |
+
is_2_2 = '2.2' in possible_versions and _has_marker(keys, _643_MARKERS)
|
| 168 |
+
if int(is_1_1) + int(is_1_2) + int(is_2_1) + int(is_2_2) > 1:
|
| 169 |
+
raise MetadataConflictError('You used incompatible 1.1/1.2/2.1/2.2 fields')
|
| 170 |
+
|
| 171 |
+
# we have the choice, 1.0, or 1.2, 2.1 or 2.2
|
| 172 |
+
# - 1.0 has a broken Summary field but works with all tools
|
| 173 |
+
# - 1.1 is to avoid
|
| 174 |
+
# - 1.2 fixes Summary but has little adoption
|
| 175 |
+
# - 2.1 adds more features
|
| 176 |
+
# - 2.2 is the latest
|
| 177 |
+
if not is_1_1 and not is_1_2 and not is_2_1 and not is_2_2:
|
| 178 |
+
# we couldn't find any specific marker
|
| 179 |
+
if PKG_INFO_PREFERRED_VERSION in possible_versions:
|
| 180 |
+
return PKG_INFO_PREFERRED_VERSION
|
| 181 |
+
if is_1_1:
|
| 182 |
+
return '1.1'
|
| 183 |
+
if is_1_2:
|
| 184 |
+
return '1.2'
|
| 185 |
+
if is_2_1:
|
| 186 |
+
return '2.1'
|
| 187 |
+
# if is_2_2:
|
| 188 |
+
# return '2.2'
|
| 189 |
+
|
| 190 |
+
return '2.2'
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
# This follows the rules about transforming keys as described in
|
| 194 |
+
# https://www.python.org/dev/peps/pep-0566/#id17
|
| 195 |
+
_ATTR2FIELD = {name.lower().replace("-", "_"): name for name in _ALL_FIELDS}
|
| 196 |
+
_FIELD2ATTR = {field: attr for attr, field in _ATTR2FIELD.items()}
|
| 197 |
+
|
| 198 |
+
_PREDICATE_FIELDS = ('Requires-Dist', 'Obsoletes-Dist', 'Provides-Dist')
|
| 199 |
+
_VERSIONS_FIELDS = ('Requires-Python', )
|
| 200 |
+
_VERSION_FIELDS = ('Version', )
|
| 201 |
+
_LISTFIELDS = ('Platform', 'Classifier', 'Obsoletes', 'Requires', 'Provides', 'Obsoletes-Dist', 'Provides-Dist',
|
| 202 |
+
'Requires-Dist', 'Requires-External', 'Project-URL', 'Supported-Platform', 'Setup-Requires-Dist',
|
| 203 |
+
'Provides-Extra', 'Extension', 'License-File')
|
| 204 |
+
_LISTTUPLEFIELDS = ('Project-URL', )
|
| 205 |
+
|
| 206 |
+
_ELEMENTSFIELD = ('Keywords', )
|
| 207 |
+
|
| 208 |
+
_UNICODEFIELDS = ('Author', 'Maintainer', 'Summary', 'Description')
|
| 209 |
+
|
| 210 |
+
_MISSING = object()
|
| 211 |
+
|
| 212 |
+
_FILESAFE = re.compile('[^A-Za-z0-9.]+')
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _get_name_and_version(name, version, for_filename=False):
|
| 216 |
+
"""Return the distribution name with version.
|
| 217 |
+
|
| 218 |
+
If for_filename is true, return a filename-escaped form."""
|
| 219 |
+
if for_filename:
|
| 220 |
+
# For both name and version any runs of non-alphanumeric or '.'
|
| 221 |
+
# characters are replaced with a single '-'. Additionally any
|
| 222 |
+
# spaces in the version string become '.'
|
| 223 |
+
name = _FILESAFE.sub('-', name)
|
| 224 |
+
version = _FILESAFE.sub('-', version.replace(' ', '.'))
|
| 225 |
+
return '%s-%s' % (name, version)
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
class LegacyMetadata(object):
|
| 229 |
+
"""The legacy metadata of a release.
|
| 230 |
+
|
| 231 |
+
Supports versions 1.0, 1.1, 1.2, 2.0 and 1.3/2.1 (auto-detected). You can
|
| 232 |
+
instantiate the class with one of these arguments (or none):
|
| 233 |
+
- *path*, the path to a metadata file
|
| 234 |
+
- *fileobj* give a file-like object with metadata as content
|
| 235 |
+
- *mapping* is a dict-like object
|
| 236 |
+
- *scheme* is a version scheme name
|
| 237 |
+
"""
|
| 238 |
+
|
| 239 |
+
# TODO document the mapping API and UNKNOWN default key
|
| 240 |
+
|
| 241 |
+
def __init__(self, path=None, fileobj=None, mapping=None, scheme='default'):
|
| 242 |
+
if [path, fileobj, mapping].count(None) < 2:
|
| 243 |
+
raise TypeError('path, fileobj and mapping are exclusive')
|
| 244 |
+
self._fields = {}
|
| 245 |
+
self.requires_files = []
|
| 246 |
+
self._dependencies = None
|
| 247 |
+
self.scheme = scheme
|
| 248 |
+
if path is not None:
|
| 249 |
+
self.read(path)
|
| 250 |
+
elif fileobj is not None:
|
| 251 |
+
self.read_file(fileobj)
|
| 252 |
+
elif mapping is not None:
|
| 253 |
+
self.update(mapping)
|
| 254 |
+
self.set_metadata_version()
|
| 255 |
+
|
| 256 |
+
def set_metadata_version(self):
|
| 257 |
+
self._fields['Metadata-Version'] = _best_version(self._fields)
|
| 258 |
+
|
| 259 |
+
def _write_field(self, fileobj, name, value):
|
| 260 |
+
fileobj.write('%s: %s\n' % (name, value))
|
| 261 |
+
|
| 262 |
+
def __getitem__(self, name):
|
| 263 |
+
return self.get(name)
|
| 264 |
+
|
| 265 |
+
def __setitem__(self, name, value):
|
| 266 |
+
return self.set(name, value)
|
| 267 |
+
|
| 268 |
+
def __delitem__(self, name):
|
| 269 |
+
field_name = self._convert_name(name)
|
| 270 |
+
try:
|
| 271 |
+
del self._fields[field_name]
|
| 272 |
+
except KeyError:
|
| 273 |
+
raise KeyError(name)
|
| 274 |
+
|
| 275 |
+
def __contains__(self, name):
|
| 276 |
+
return (name in self._fields or self._convert_name(name) in self._fields)
|
| 277 |
+
|
| 278 |
+
def _convert_name(self, name):
|
| 279 |
+
if name in _ALL_FIELDS:
|
| 280 |
+
return name
|
| 281 |
+
name = name.replace('-', '_').lower()
|
| 282 |
+
return _ATTR2FIELD.get(name, name)
|
| 283 |
+
|
| 284 |
+
def _default_value(self, name):
|
| 285 |
+
if name in _LISTFIELDS or name in _ELEMENTSFIELD:
|
| 286 |
+
return []
|
| 287 |
+
return 'UNKNOWN'
|
| 288 |
+
|
| 289 |
+
def _remove_line_prefix(self, value):
|
| 290 |
+
if self.metadata_version in ('1.0', '1.1'):
|
| 291 |
+
return _LINE_PREFIX_PRE_1_2.sub('\n', value)
|
| 292 |
+
else:
|
| 293 |
+
return _LINE_PREFIX_1_2.sub('\n', value)
|
| 294 |
+
|
| 295 |
+
def __getattr__(self, name):
|
| 296 |
+
if name in _ATTR2FIELD:
|
| 297 |
+
return self[name]
|
| 298 |
+
raise AttributeError(name)
|
| 299 |
+
|
| 300 |
+
#
|
| 301 |
+
# Public API
|
| 302 |
+
#
|
| 303 |
+
|
| 304 |
+
def get_fullname(self, filesafe=False):
|
| 305 |
+
"""
|
| 306 |
+
Return the distribution name with version.
|
| 307 |
+
|
| 308 |
+
If filesafe is true, return a filename-escaped form.
|
| 309 |
+
"""
|
| 310 |
+
return _get_name_and_version(self['Name'], self['Version'], filesafe)
|
| 311 |
+
|
| 312 |
+
def is_field(self, name):
|
| 313 |
+
"""return True if name is a valid metadata key"""
|
| 314 |
+
name = self._convert_name(name)
|
| 315 |
+
return name in _ALL_FIELDS
|
| 316 |
+
|
| 317 |
+
def is_multi_field(self, name):
|
| 318 |
+
name = self._convert_name(name)
|
| 319 |
+
return name in _LISTFIELDS
|
| 320 |
+
|
| 321 |
+
def read(self, filepath):
|
| 322 |
+
"""Read the metadata values from a file path."""
|
| 323 |
+
fp = codecs.open(filepath, 'r', encoding='utf-8')
|
| 324 |
+
try:
|
| 325 |
+
self.read_file(fp)
|
| 326 |
+
finally:
|
| 327 |
+
fp.close()
|
| 328 |
+
|
| 329 |
+
def read_file(self, fileob):
|
| 330 |
+
"""Read the metadata values from a file object."""
|
| 331 |
+
msg = message_from_file(fileob)
|
| 332 |
+
self._fields['Metadata-Version'] = msg['metadata-version']
|
| 333 |
+
|
| 334 |
+
# When reading, get all the fields we can
|
| 335 |
+
for field in _ALL_FIELDS:
|
| 336 |
+
if field not in msg:
|
| 337 |
+
continue
|
| 338 |
+
if field in _LISTFIELDS:
|
| 339 |
+
# we can have multiple lines
|
| 340 |
+
values = msg.get_all(field)
|
| 341 |
+
if field in _LISTTUPLEFIELDS and values is not None:
|
| 342 |
+
values = [tuple(value.split(',')) for value in values]
|
| 343 |
+
self.set(field, values)
|
| 344 |
+
else:
|
| 345 |
+
# single line
|
| 346 |
+
value = msg[field]
|
| 347 |
+
if value is not None and value != 'UNKNOWN':
|
| 348 |
+
self.set(field, value)
|
| 349 |
+
|
| 350 |
+
# PEP 566 specifies that the body be used for the description, if
|
| 351 |
+
# available
|
| 352 |
+
body = msg.get_payload()
|
| 353 |
+
self["Description"] = body if body else self["Description"]
|
| 354 |
+
# logger.debug('Attempting to set metadata for %s', self)
|
| 355 |
+
# self.set_metadata_version()
|
| 356 |
+
|
| 357 |
+
def write(self, filepath, skip_unknown=False):
|
| 358 |
+
"""Write the metadata fields to filepath."""
|
| 359 |
+
fp = codecs.open(filepath, 'w', encoding='utf-8')
|
| 360 |
+
try:
|
| 361 |
+
self.write_file(fp, skip_unknown)
|
| 362 |
+
finally:
|
| 363 |
+
fp.close()
|
| 364 |
+
|
| 365 |
+
def write_file(self, fileobject, skip_unknown=False):
|
| 366 |
+
"""Write the PKG-INFO format data to a file object."""
|
| 367 |
+
self.set_metadata_version()
|
| 368 |
+
|
| 369 |
+
for field in _version2fieldlist(self['Metadata-Version']):
|
| 370 |
+
values = self.get(field)
|
| 371 |
+
if skip_unknown and values in ('UNKNOWN', [], ['UNKNOWN']):
|
| 372 |
+
continue
|
| 373 |
+
if field in _ELEMENTSFIELD:
|
| 374 |
+
self._write_field(fileobject, field, ','.join(values))
|
| 375 |
+
continue
|
| 376 |
+
if field not in _LISTFIELDS:
|
| 377 |
+
if field == 'Description':
|
| 378 |
+
if self.metadata_version in ('1.0', '1.1'):
|
| 379 |
+
values = values.replace('\n', '\n ')
|
| 380 |
+
else:
|
| 381 |
+
values = values.replace('\n', '\n |')
|
| 382 |
+
values = [values]
|
| 383 |
+
|
| 384 |
+
if field in _LISTTUPLEFIELDS:
|
| 385 |
+
values = [','.join(value) for value in values]
|
| 386 |
+
|
| 387 |
+
for value in values:
|
| 388 |
+
self._write_field(fileobject, field, value)
|
| 389 |
+
|
| 390 |
+
def update(self, other=None, **kwargs):
|
| 391 |
+
"""Set metadata values from the given iterable `other` and kwargs.
|
| 392 |
+
|
| 393 |
+
Behavior is like `dict.update`: If `other` has a ``keys`` method,
|
| 394 |
+
they are looped over and ``self[key]`` is assigned ``other[key]``.
|
| 395 |
+
Else, ``other`` is an iterable of ``(key, value)`` iterables.
|
| 396 |
+
|
| 397 |
+
Keys that don't match a metadata field or that have an empty value are
|
| 398 |
+
dropped.
|
| 399 |
+
"""
|
| 400 |
+
|
| 401 |
+
def _set(key, value):
|
| 402 |
+
if key in _ATTR2FIELD and value:
|
| 403 |
+
self.set(self._convert_name(key), value)
|
| 404 |
+
|
| 405 |
+
if not other:
|
| 406 |
+
# other is None or empty container
|
| 407 |
+
pass
|
| 408 |
+
elif hasattr(other, 'keys'):
|
| 409 |
+
for k in other.keys():
|
| 410 |
+
_set(k, other[k])
|
| 411 |
+
else:
|
| 412 |
+
for k, v in other:
|
| 413 |
+
_set(k, v)
|
| 414 |
+
|
| 415 |
+
if kwargs:
|
| 416 |
+
for k, v in kwargs.items():
|
| 417 |
+
_set(k, v)
|
| 418 |
+
|
| 419 |
+
def set(self, name, value):
|
| 420 |
+
"""Control then set a metadata field."""
|
| 421 |
+
name = self._convert_name(name)
|
| 422 |
+
|
| 423 |
+
if ((name in _ELEMENTSFIELD or name == 'Platform') and not isinstance(value, (list, tuple))):
|
| 424 |
+
if isinstance(value, string_types):
|
| 425 |
+
value = [v.strip() for v in value.split(',')]
|
| 426 |
+
else:
|
| 427 |
+
value = []
|
| 428 |
+
elif (name in _LISTFIELDS and not isinstance(value, (list, tuple))):
|
| 429 |
+
if isinstance(value, string_types):
|
| 430 |
+
value = [value]
|
| 431 |
+
else:
|
| 432 |
+
value = []
|
| 433 |
+
|
| 434 |
+
if logger.isEnabledFor(logging.WARNING):
|
| 435 |
+
project_name = self['Name']
|
| 436 |
+
|
| 437 |
+
scheme = get_scheme(self.scheme)
|
| 438 |
+
if name in _PREDICATE_FIELDS and value is not None:
|
| 439 |
+
for v in value:
|
| 440 |
+
# check that the values are valid
|
| 441 |
+
if not scheme.is_valid_matcher(v.split(';')[0]):
|
| 442 |
+
logger.warning("'%s': '%s' is not valid (field '%s')", project_name, v, name)
|
| 443 |
+
# FIXME this rejects UNKNOWN, is that right?
|
| 444 |
+
elif name in _VERSIONS_FIELDS and value is not None:
|
| 445 |
+
if not scheme.is_valid_constraint_list(value):
|
| 446 |
+
logger.warning("'%s': '%s' is not a valid version (field '%s')", project_name, value, name)
|
| 447 |
+
elif name in _VERSION_FIELDS and value is not None:
|
| 448 |
+
if not scheme.is_valid_version(value):
|
| 449 |
+
logger.warning("'%s': '%s' is not a valid version (field '%s')", project_name, value, name)
|
| 450 |
+
|
| 451 |
+
if name in _UNICODEFIELDS:
|
| 452 |
+
if name == 'Description':
|
| 453 |
+
value = self._remove_line_prefix(value)
|
| 454 |
+
|
| 455 |
+
self._fields[name] = value
|
| 456 |
+
|
| 457 |
+
def get(self, name, default=_MISSING):
|
| 458 |
+
"""Get a metadata field."""
|
| 459 |
+
name = self._convert_name(name)
|
| 460 |
+
if name not in self._fields:
|
| 461 |
+
if default is _MISSING:
|
| 462 |
+
default = self._default_value(name)
|
| 463 |
+
return default
|
| 464 |
+
if name in _UNICODEFIELDS:
|
| 465 |
+
value = self._fields[name]
|
| 466 |
+
return value
|
| 467 |
+
elif name in _LISTFIELDS:
|
| 468 |
+
value = self._fields[name]
|
| 469 |
+
if value is None:
|
| 470 |
+
return []
|
| 471 |
+
res = []
|
| 472 |
+
for val in value:
|
| 473 |
+
if name not in _LISTTUPLEFIELDS:
|
| 474 |
+
res.append(val)
|
| 475 |
+
else:
|
| 476 |
+
# That's for Project-URL
|
| 477 |
+
res.append((val[0], val[1]))
|
| 478 |
+
return res
|
| 479 |
+
|
| 480 |
+
elif name in _ELEMENTSFIELD:
|
| 481 |
+
value = self._fields[name]
|
| 482 |
+
if isinstance(value, string_types):
|
| 483 |
+
return value.split(',')
|
| 484 |
+
return self._fields[name]
|
| 485 |
+
|
| 486 |
+
def check(self, strict=False):
|
| 487 |
+
"""Check if the metadata is compliant. If strict is True then raise if
|
| 488 |
+
no Name or Version are provided"""
|
| 489 |
+
self.set_metadata_version()
|
| 490 |
+
|
| 491 |
+
# XXX should check the versions (if the file was loaded)
|
| 492 |
+
missing, warnings = [], []
|
| 493 |
+
|
| 494 |
+
for attr in ('Name', 'Version'): # required by PEP 345
|
| 495 |
+
if attr not in self:
|
| 496 |
+
missing.append(attr)
|
| 497 |
+
|
| 498 |
+
if strict and missing != []:
|
| 499 |
+
msg = 'missing required metadata: %s' % ', '.join(missing)
|
| 500 |
+
raise MetadataMissingError(msg)
|
| 501 |
+
|
| 502 |
+
for attr in ('Home-page', 'Author'):
|
| 503 |
+
if attr not in self:
|
| 504 |
+
missing.append(attr)
|
| 505 |
+
|
| 506 |
+
# checking metadata 1.2 (XXX needs to check 1.1, 1.0)
|
| 507 |
+
if self['Metadata-Version'] != '1.2':
|
| 508 |
+
return missing, warnings
|
| 509 |
+
|
| 510 |
+
scheme = get_scheme(self.scheme)
|
| 511 |
+
|
| 512 |
+
def are_valid_constraints(value):
|
| 513 |
+
for v in value:
|
| 514 |
+
if not scheme.is_valid_matcher(v.split(';')[0]):
|
| 515 |
+
return False
|
| 516 |
+
return True
|
| 517 |
+
|
| 518 |
+
for fields, controller in ((_PREDICATE_FIELDS, are_valid_constraints),
|
| 519 |
+
(_VERSIONS_FIELDS, scheme.is_valid_constraint_list), (_VERSION_FIELDS,
|
| 520 |
+
scheme.is_valid_version)):
|
| 521 |
+
for field in fields:
|
| 522 |
+
value = self.get(field, None)
|
| 523 |
+
if value is not None and not controller(value):
|
| 524 |
+
warnings.append("Wrong value for '%s': %s" % (field, value))
|
| 525 |
+
|
| 526 |
+
return missing, warnings
|
| 527 |
+
|
| 528 |
+
def todict(self, skip_missing=False):
|
| 529 |
+
"""Return fields as a dict.
|
| 530 |
+
|
| 531 |
+
Field names will be converted to use the underscore-lowercase style
|
| 532 |
+
instead of hyphen-mixed case (i.e. home_page instead of Home-page).
|
| 533 |
+
This is as per https://www.python.org/dev/peps/pep-0566/#id17.
|
| 534 |
+
"""
|
| 535 |
+
self.set_metadata_version()
|
| 536 |
+
|
| 537 |
+
fields = _version2fieldlist(self['Metadata-Version'])
|
| 538 |
+
|
| 539 |
+
data = {}
|
| 540 |
+
|
| 541 |
+
for field_name in fields:
|
| 542 |
+
if not skip_missing or field_name in self._fields:
|
| 543 |
+
key = _FIELD2ATTR[field_name]
|
| 544 |
+
if key != 'project_url':
|
| 545 |
+
data[key] = self[field_name]
|
| 546 |
+
else:
|
| 547 |
+
data[key] = [','.join(u) for u in self[field_name]]
|
| 548 |
+
|
| 549 |
+
return data
|
| 550 |
+
|
| 551 |
+
def add_requirements(self, requirements):
|
| 552 |
+
if self['Metadata-Version'] == '1.1':
|
| 553 |
+
# we can't have 1.1 metadata *and* Setuptools requires
|
| 554 |
+
for field in ('Obsoletes', 'Requires', 'Provides'):
|
| 555 |
+
if field in self:
|
| 556 |
+
del self[field]
|
| 557 |
+
self['Requires-Dist'] += requirements
|
| 558 |
+
|
| 559 |
+
# Mapping API
|
| 560 |
+
# TODO could add iter* variants
|
| 561 |
+
|
| 562 |
+
def keys(self):
|
| 563 |
+
return list(_version2fieldlist(self['Metadata-Version']))
|
| 564 |
+
|
| 565 |
+
def __iter__(self):
|
| 566 |
+
for key in self.keys():
|
| 567 |
+
yield key
|
| 568 |
+
|
| 569 |
+
def values(self):
|
| 570 |
+
return [self[key] for key in self.keys()]
|
| 571 |
+
|
| 572 |
+
def items(self):
|
| 573 |
+
return [(key, self[key]) for key in self.keys()]
|
| 574 |
+
|
| 575 |
+
def __repr__(self):
|
| 576 |
+
return '<%s %s %s>' % (self.__class__.__name__, self.name, self.version)
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
METADATA_FILENAME = 'pydist.json'
|
| 580 |
+
WHEEL_METADATA_FILENAME = 'metadata.json'
|
| 581 |
+
LEGACY_METADATA_FILENAME = 'METADATA'
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
class Metadata(object):
|
| 585 |
+
"""
|
| 586 |
+
The metadata of a release. This implementation uses 2.1
|
| 587 |
+
metadata where possible. If not possible, it wraps a LegacyMetadata
|
| 588 |
+
instance which handles the key-value metadata format.
|
| 589 |
+
"""
|
| 590 |
+
|
| 591 |
+
METADATA_VERSION_MATCHER = re.compile(r'^\d+(\.\d+)*$')
|
| 592 |
+
|
| 593 |
+
NAME_MATCHER = re.compile('^[0-9A-Z]([0-9A-Z_.-]*[0-9A-Z])?$', re.I)
|
| 594 |
+
|
| 595 |
+
FIELDNAME_MATCHER = re.compile('^[A-Z]([0-9A-Z-]*[0-9A-Z])?$', re.I)
|
| 596 |
+
|
| 597 |
+
VERSION_MATCHER = PEP440_VERSION_RE
|
| 598 |
+
|
| 599 |
+
SUMMARY_MATCHER = re.compile('.{1,2047}')
|
| 600 |
+
|
| 601 |
+
METADATA_VERSION = '2.0'
|
| 602 |
+
|
| 603 |
+
GENERATOR = 'distlib (%s)' % __version__
|
| 604 |
+
|
| 605 |
+
MANDATORY_KEYS = {
|
| 606 |
+
'name': (),
|
| 607 |
+
'version': (),
|
| 608 |
+
'summary': ('legacy', ),
|
| 609 |
+
}
|
| 610 |
+
|
| 611 |
+
INDEX_KEYS = ('name version license summary description author '
|
| 612 |
+
'author_email keywords platform home_page classifiers '
|
| 613 |
+
'download_url')
|
| 614 |
+
|
| 615 |
+
DEPENDENCY_KEYS = ('extras run_requires test_requires build_requires '
|
| 616 |
+
'dev_requires provides meta_requires obsoleted_by '
|
| 617 |
+
'supports_environments')
|
| 618 |
+
|
| 619 |
+
SYNTAX_VALIDATORS = {
|
| 620 |
+
'metadata_version': (METADATA_VERSION_MATCHER, ()),
|
| 621 |
+
'name': (NAME_MATCHER, ('legacy', )),
|
| 622 |
+
'version': (VERSION_MATCHER, ('legacy', )),
|
| 623 |
+
'summary': (SUMMARY_MATCHER, ('legacy', )),
|
| 624 |
+
'dynamic': (FIELDNAME_MATCHER, ('legacy', )),
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
+
__slots__ = ('_legacy', '_data', 'scheme')
|
| 628 |
+
|
| 629 |
+
def __init__(self, path=None, fileobj=None, mapping=None, scheme='default'):
|
| 630 |
+
if [path, fileobj, mapping].count(None) < 2:
|
| 631 |
+
raise TypeError('path, fileobj and mapping are exclusive')
|
| 632 |
+
self._legacy = None
|
| 633 |
+
self._data = None
|
| 634 |
+
self.scheme = scheme
|
| 635 |
+
# import pdb; pdb.set_trace()
|
| 636 |
+
if mapping is not None:
|
| 637 |
+
try:
|
| 638 |
+
self._validate_mapping(mapping, scheme)
|
| 639 |
+
self._data = mapping
|
| 640 |
+
except MetadataUnrecognizedVersionError:
|
| 641 |
+
self._legacy = LegacyMetadata(mapping=mapping, scheme=scheme)
|
| 642 |
+
self.validate()
|
| 643 |
+
else:
|
| 644 |
+
data = None
|
| 645 |
+
if path:
|
| 646 |
+
with open(path, 'rb') as f:
|
| 647 |
+
data = f.read()
|
| 648 |
+
elif fileobj:
|
| 649 |
+
data = fileobj.read()
|
| 650 |
+
if data is None:
|
| 651 |
+
# Initialised with no args - to be added
|
| 652 |
+
self._data = {
|
| 653 |
+
'metadata_version': self.METADATA_VERSION,
|
| 654 |
+
'generator': self.GENERATOR,
|
| 655 |
+
}
|
| 656 |
+
else:
|
| 657 |
+
if not isinstance(data, text_type):
|
| 658 |
+
data = data.decode('utf-8')
|
| 659 |
+
try:
|
| 660 |
+
self._data = json.loads(data)
|
| 661 |
+
self._validate_mapping(self._data, scheme)
|
| 662 |
+
except ValueError:
|
| 663 |
+
# Note: MetadataUnrecognizedVersionError does not
|
| 664 |
+
# inherit from ValueError (it's a DistlibException,
|
| 665 |
+
# which should not inherit from ValueError).
|
| 666 |
+
# The ValueError comes from the json.load - if that
|
| 667 |
+
# succeeds and we get a validation error, we want
|
| 668 |
+
# that to propagate
|
| 669 |
+
self._legacy = LegacyMetadata(fileobj=StringIO(data), scheme=scheme)
|
| 670 |
+
self.validate()
|
| 671 |
+
|
| 672 |
+
common_keys = set(('name', 'version', 'license', 'keywords', 'summary'))
|
| 673 |
+
|
| 674 |
+
none_list = (None, list)
|
| 675 |
+
none_dict = (None, dict)
|
| 676 |
+
|
| 677 |
+
mapped_keys = {
|
| 678 |
+
'run_requires': ('Requires-Dist', list),
|
| 679 |
+
'build_requires': ('Setup-Requires-Dist', list),
|
| 680 |
+
'dev_requires': none_list,
|
| 681 |
+
'test_requires': none_list,
|
| 682 |
+
'meta_requires': none_list,
|
| 683 |
+
'extras': ('Provides-Extra', list),
|
| 684 |
+
'modules': none_list,
|
| 685 |
+
'namespaces': none_list,
|
| 686 |
+
'exports': none_dict,
|
| 687 |
+
'commands': none_dict,
|
| 688 |
+
'classifiers': ('Classifier', list),
|
| 689 |
+
'source_url': ('Download-URL', None),
|
| 690 |
+
'metadata_version': ('Metadata-Version', None),
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
del none_list, none_dict
|
| 694 |
+
|
| 695 |
+
def __getattribute__(self, key):
|
| 696 |
+
common = object.__getattribute__(self, 'common_keys')
|
| 697 |
+
mapped = object.__getattribute__(self, 'mapped_keys')
|
| 698 |
+
if key in mapped:
|
| 699 |
+
lk, maker = mapped[key]
|
| 700 |
+
if self._legacy:
|
| 701 |
+
if lk is None:
|
| 702 |
+
result = None if maker is None else maker()
|
| 703 |
+
else:
|
| 704 |
+
result = self._legacy.get(lk)
|
| 705 |
+
else:
|
| 706 |
+
value = None if maker is None else maker()
|
| 707 |
+
if key not in ('commands', 'exports', 'modules', 'namespaces', 'classifiers'):
|
| 708 |
+
result = self._data.get(key, value)
|
| 709 |
+
else:
|
| 710 |
+
# special cases for PEP 459
|
| 711 |
+
sentinel = object()
|
| 712 |
+
result = sentinel
|
| 713 |
+
d = self._data.get('extensions')
|
| 714 |
+
if d:
|
| 715 |
+
if key == 'commands':
|
| 716 |
+
result = d.get('python.commands', value)
|
| 717 |
+
elif key == 'classifiers':
|
| 718 |
+
d = d.get('python.details')
|
| 719 |
+
if d:
|
| 720 |
+
result = d.get(key, value)
|
| 721 |
+
else:
|
| 722 |
+
d = d.get('python.exports')
|
| 723 |
+
if not d:
|
| 724 |
+
d = self._data.get('python.exports')
|
| 725 |
+
if d:
|
| 726 |
+
result = d.get(key, value)
|
| 727 |
+
if result is sentinel:
|
| 728 |
+
result = value
|
| 729 |
+
elif key not in common:
|
| 730 |
+
result = object.__getattribute__(self, key)
|
| 731 |
+
elif self._legacy:
|
| 732 |
+
result = self._legacy.get(key)
|
| 733 |
+
else:
|
| 734 |
+
result = self._data.get(key)
|
| 735 |
+
return result
|
| 736 |
+
|
| 737 |
+
def _validate_value(self, key, value, scheme=None):
|
| 738 |
+
if key in self.SYNTAX_VALIDATORS:
|
| 739 |
+
pattern, exclusions = self.SYNTAX_VALIDATORS[key]
|
| 740 |
+
if (scheme or self.scheme) not in exclusions:
|
| 741 |
+
m = pattern.match(value)
|
| 742 |
+
if not m:
|
| 743 |
+
raise MetadataInvalidError("'%s' is an invalid value for "
|
| 744 |
+
"the '%s' property" % (value, key))
|
| 745 |
+
|
| 746 |
+
def __setattr__(self, key, value):
|
| 747 |
+
self._validate_value(key, value)
|
| 748 |
+
common = object.__getattribute__(self, 'common_keys')
|
| 749 |
+
mapped = object.__getattribute__(self, 'mapped_keys')
|
| 750 |
+
if key in mapped:
|
| 751 |
+
lk, _ = mapped[key]
|
| 752 |
+
if self._legacy:
|
| 753 |
+
if lk is None:
|
| 754 |
+
raise NotImplementedError
|
| 755 |
+
self._legacy[lk] = value
|
| 756 |
+
elif key not in ('commands', 'exports', 'modules', 'namespaces', 'classifiers'):
|
| 757 |
+
self._data[key] = value
|
| 758 |
+
else:
|
| 759 |
+
# special cases for PEP 459
|
| 760 |
+
d = self._data.setdefault('extensions', {})
|
| 761 |
+
if key == 'commands':
|
| 762 |
+
d['python.commands'] = value
|
| 763 |
+
elif key == 'classifiers':
|
| 764 |
+
d = d.setdefault('python.details', {})
|
| 765 |
+
d[key] = value
|
| 766 |
+
else:
|
| 767 |
+
d = d.setdefault('python.exports', {})
|
| 768 |
+
d[key] = value
|
| 769 |
+
elif key not in common:
|
| 770 |
+
object.__setattr__(self, key, value)
|
| 771 |
+
else:
|
| 772 |
+
if key == 'keywords':
|
| 773 |
+
if isinstance(value, string_types):
|
| 774 |
+
value = value.strip()
|
| 775 |
+
if value:
|
| 776 |
+
value = value.split()
|
| 777 |
+
else:
|
| 778 |
+
value = []
|
| 779 |
+
if self._legacy:
|
| 780 |
+
self._legacy[key] = value
|
| 781 |
+
else:
|
| 782 |
+
self._data[key] = value
|
| 783 |
+
|
| 784 |
+
@property
|
| 785 |
+
def name_and_version(self):
|
| 786 |
+
return _get_name_and_version(self.name, self.version, True)
|
| 787 |
+
|
| 788 |
+
@property
|
| 789 |
+
def provides(self):
|
| 790 |
+
if self._legacy:
|
| 791 |
+
result = self._legacy['Provides-Dist']
|
| 792 |
+
else:
|
| 793 |
+
result = self._data.setdefault('provides', [])
|
| 794 |
+
s = '%s (%s)' % (self.name, self.version)
|
| 795 |
+
if s not in result:
|
| 796 |
+
result.append(s)
|
| 797 |
+
return result
|
| 798 |
+
|
| 799 |
+
@provides.setter
|
| 800 |
+
def provides(self, value):
|
| 801 |
+
if self._legacy:
|
| 802 |
+
self._legacy['Provides-Dist'] = value
|
| 803 |
+
else:
|
| 804 |
+
self._data['provides'] = value
|
| 805 |
+
|
| 806 |
+
def get_requirements(self, reqts, extras=None, env=None):
|
| 807 |
+
"""
|
| 808 |
+
Base method to get dependencies, given a set of extras
|
| 809 |
+
to satisfy and an optional environment context.
|
| 810 |
+
:param reqts: A list of sometimes-wanted dependencies,
|
| 811 |
+
perhaps dependent on extras and environment.
|
| 812 |
+
:param extras: A list of optional components being requested.
|
| 813 |
+
:param env: An optional environment for marker evaluation.
|
| 814 |
+
"""
|
| 815 |
+
if self._legacy:
|
| 816 |
+
result = reqts
|
| 817 |
+
else:
|
| 818 |
+
result = []
|
| 819 |
+
extras = get_extras(extras or [], self.extras)
|
| 820 |
+
for d in reqts:
|
| 821 |
+
if 'extra' not in d and 'environment' not in d:
|
| 822 |
+
# unconditional
|
| 823 |
+
include = True
|
| 824 |
+
else:
|
| 825 |
+
if 'extra' not in d:
|
| 826 |
+
# Not extra-dependent - only environment-dependent
|
| 827 |
+
include = True
|
| 828 |
+
else:
|
| 829 |
+
include = d.get('extra') in extras
|
| 830 |
+
if include:
|
| 831 |
+
# Not excluded because of extras, check environment
|
| 832 |
+
marker = d.get('environment')
|
| 833 |
+
if marker:
|
| 834 |
+
include = interpret(marker, env)
|
| 835 |
+
if include:
|
| 836 |
+
result.extend(d['requires'])
|
| 837 |
+
for key in ('build', 'dev', 'test'):
|
| 838 |
+
e = ':%s:' % key
|
| 839 |
+
if e in extras:
|
| 840 |
+
extras.remove(e)
|
| 841 |
+
# A recursive call, but it should terminate since 'test'
|
| 842 |
+
# has been removed from the extras
|
| 843 |
+
reqts = self._data.get('%s_requires' % key, [])
|
| 844 |
+
result.extend(self.get_requirements(reqts, extras=extras, env=env))
|
| 845 |
+
return result
|
| 846 |
+
|
| 847 |
+
@property
|
| 848 |
+
def dictionary(self):
|
| 849 |
+
if self._legacy:
|
| 850 |
+
return self._from_legacy()
|
| 851 |
+
return self._data
|
| 852 |
+
|
| 853 |
+
@property
|
| 854 |
+
def dependencies(self):
|
| 855 |
+
if self._legacy:
|
| 856 |
+
raise NotImplementedError
|
| 857 |
+
else:
|
| 858 |
+
return extract_by_key(self._data, self.DEPENDENCY_KEYS)
|
| 859 |
+
|
| 860 |
+
@dependencies.setter
|
| 861 |
+
def dependencies(self, value):
|
| 862 |
+
if self._legacy:
|
| 863 |
+
raise NotImplementedError
|
| 864 |
+
else:
|
| 865 |
+
self._data.update(value)
|
| 866 |
+
|
| 867 |
+
def _validate_mapping(self, mapping, scheme):
|
| 868 |
+
if mapping.get('metadata_version') != self.METADATA_VERSION:
|
| 869 |
+
raise MetadataUnrecognizedVersionError()
|
| 870 |
+
missing = []
|
| 871 |
+
for key, exclusions in self.MANDATORY_KEYS.items():
|
| 872 |
+
if key not in mapping:
|
| 873 |
+
if scheme not in exclusions:
|
| 874 |
+
missing.append(key)
|
| 875 |
+
if missing:
|
| 876 |
+
msg = 'Missing metadata items: %s' % ', '.join(missing)
|
| 877 |
+
raise MetadataMissingError(msg)
|
| 878 |
+
for k, v in mapping.items():
|
| 879 |
+
self._validate_value(k, v, scheme)
|
| 880 |
+
|
| 881 |
+
def validate(self):
|
| 882 |
+
if self._legacy:
|
| 883 |
+
missing, warnings = self._legacy.check(True)
|
| 884 |
+
if missing or warnings:
|
| 885 |
+
logger.warning('Metadata: missing: %s, warnings: %s', missing, warnings)
|
| 886 |
+
else:
|
| 887 |
+
self._validate_mapping(self._data, self.scheme)
|
| 888 |
+
|
| 889 |
+
def todict(self):
|
| 890 |
+
if self._legacy:
|
| 891 |
+
return self._legacy.todict(True)
|
| 892 |
+
else:
|
| 893 |
+
result = extract_by_key(self._data, self.INDEX_KEYS)
|
| 894 |
+
return result
|
| 895 |
+
|
| 896 |
+
def _from_legacy(self):
|
| 897 |
+
assert self._legacy and not self._data
|
| 898 |
+
result = {
|
| 899 |
+
'metadata_version': self.METADATA_VERSION,
|
| 900 |
+
'generator': self.GENERATOR,
|
| 901 |
+
}
|
| 902 |
+
lmd = self._legacy.todict(True) # skip missing ones
|
| 903 |
+
for k in ('name', 'version', 'license', 'summary', 'description', 'classifier'):
|
| 904 |
+
if k in lmd:
|
| 905 |
+
if k == 'classifier':
|
| 906 |
+
nk = 'classifiers'
|
| 907 |
+
else:
|
| 908 |
+
nk = k
|
| 909 |
+
result[nk] = lmd[k]
|
| 910 |
+
kw = lmd.get('Keywords', [])
|
| 911 |
+
if kw == ['']:
|
| 912 |
+
kw = []
|
| 913 |
+
result['keywords'] = kw
|
| 914 |
+
keys = (('requires_dist', 'run_requires'), ('setup_requires_dist', 'build_requires'))
|
| 915 |
+
for ok, nk in keys:
|
| 916 |
+
if ok in lmd and lmd[ok]:
|
| 917 |
+
result[nk] = [{'requires': lmd[ok]}]
|
| 918 |
+
result['provides'] = self.provides
|
| 919 |
+
# author = {}
|
| 920 |
+
# maintainer = {}
|
| 921 |
+
return result
|
| 922 |
+
|
| 923 |
+
LEGACY_MAPPING = {
|
| 924 |
+
'name': 'Name',
|
| 925 |
+
'version': 'Version',
|
| 926 |
+
('extensions', 'python.details', 'license'): 'License',
|
| 927 |
+
'summary': 'Summary',
|
| 928 |
+
'description': 'Description',
|
| 929 |
+
('extensions', 'python.project', 'project_urls', 'Home'): 'Home-page',
|
| 930 |
+
('extensions', 'python.project', 'contacts', 0, 'name'): 'Author',
|
| 931 |
+
('extensions', 'python.project', 'contacts', 0, 'email'): 'Author-email',
|
| 932 |
+
'source_url': 'Download-URL',
|
| 933 |
+
('extensions', 'python.details', 'classifiers'): 'Classifier',
|
| 934 |
+
}
|
| 935 |
+
|
| 936 |
+
def _to_legacy(self):
|
| 937 |
+
|
| 938 |
+
def process_entries(entries):
|
| 939 |
+
reqts = set()
|
| 940 |
+
for e in entries:
|
| 941 |
+
extra = e.get('extra')
|
| 942 |
+
env = e.get('environment')
|
| 943 |
+
rlist = e['requires']
|
| 944 |
+
for r in rlist:
|
| 945 |
+
if not env and not extra:
|
| 946 |
+
reqts.add(r)
|
| 947 |
+
else:
|
| 948 |
+
marker = ''
|
| 949 |
+
if extra:
|
| 950 |
+
marker = 'extra == "%s"' % extra
|
| 951 |
+
if env:
|
| 952 |
+
if marker:
|
| 953 |
+
marker = '(%s) and %s' % (env, marker)
|
| 954 |
+
else:
|
| 955 |
+
marker = env
|
| 956 |
+
reqts.add(';'.join((r, marker)))
|
| 957 |
+
return reqts
|
| 958 |
+
|
| 959 |
+
assert self._data and not self._legacy
|
| 960 |
+
result = LegacyMetadata()
|
| 961 |
+
nmd = self._data
|
| 962 |
+
# import pdb; pdb.set_trace()
|
| 963 |
+
for nk, ok in self.LEGACY_MAPPING.items():
|
| 964 |
+
if not isinstance(nk, tuple):
|
| 965 |
+
if nk in nmd:
|
| 966 |
+
result[ok] = nmd[nk]
|
| 967 |
+
else:
|
| 968 |
+
d = nmd
|
| 969 |
+
found = True
|
| 970 |
+
for k in nk:
|
| 971 |
+
try:
|
| 972 |
+
d = d[k]
|
| 973 |
+
except (KeyError, IndexError):
|
| 974 |
+
found = False
|
| 975 |
+
break
|
| 976 |
+
if found:
|
| 977 |
+
result[ok] = d
|
| 978 |
+
r1 = process_entries(self.run_requires + self.meta_requires)
|
| 979 |
+
r2 = process_entries(self.build_requires + self.dev_requires)
|
| 980 |
+
if self.extras:
|
| 981 |
+
result['Provides-Extra'] = sorted(self.extras)
|
| 982 |
+
result['Requires-Dist'] = sorted(r1)
|
| 983 |
+
result['Setup-Requires-Dist'] = sorted(r2)
|
| 984 |
+
# TODO: any other fields wanted
|
| 985 |
+
return result
|
| 986 |
+
|
| 987 |
+
def write(self, path=None, fileobj=None, legacy=False, skip_unknown=True):
|
| 988 |
+
if [path, fileobj].count(None) != 1:
|
| 989 |
+
raise ValueError('Exactly one of path and fileobj is needed')
|
| 990 |
+
self.validate()
|
| 991 |
+
if legacy:
|
| 992 |
+
if self._legacy:
|
| 993 |
+
legacy_md = self._legacy
|
| 994 |
+
else:
|
| 995 |
+
legacy_md = self._to_legacy()
|
| 996 |
+
if path:
|
| 997 |
+
legacy_md.write(path, skip_unknown=skip_unknown)
|
| 998 |
+
else:
|
| 999 |
+
legacy_md.write_file(fileobj, skip_unknown=skip_unknown)
|
| 1000 |
+
else:
|
| 1001 |
+
if self._legacy:
|
| 1002 |
+
d = self._from_legacy()
|
| 1003 |
+
else:
|
| 1004 |
+
d = self._data
|
| 1005 |
+
if fileobj:
|
| 1006 |
+
json.dump(d, fileobj, ensure_ascii=True, indent=2, sort_keys=True)
|
| 1007 |
+
else:
|
| 1008 |
+
with codecs.open(path, 'w', 'utf-8') as f:
|
| 1009 |
+
json.dump(d, f, ensure_ascii=True, indent=2, sort_keys=True)
|
| 1010 |
+
|
| 1011 |
+
def add_requirements(self, requirements):
|
| 1012 |
+
if self._legacy:
|
| 1013 |
+
self._legacy.add_requirements(requirements)
|
| 1014 |
+
else:
|
| 1015 |
+
run_requires = self._data.setdefault('run_requires', [])
|
| 1016 |
+
always = None
|
| 1017 |
+
for entry in run_requires:
|
| 1018 |
+
if 'environment' not in entry and 'extra' not in entry:
|
| 1019 |
+
always = entry
|
| 1020 |
+
break
|
| 1021 |
+
if always is None:
|
| 1022 |
+
always = {'requires': requirements}
|
| 1023 |
+
run_requires.insert(0, always)
|
| 1024 |
+
else:
|
| 1025 |
+
rset = set(always['requires']) | set(requirements)
|
| 1026 |
+
always['requires'] = sorted(rset)
|
| 1027 |
+
|
| 1028 |
+
def __repr__(self):
|
| 1029 |
+
name = self.name or '(no name)'
|
| 1030 |
+
version = self.version or 'no version'
|
| 1031 |
+
return '<%s %s %s (%s)>' % (self.__class__.__name__, self.metadata_version, name, version)
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
#
|
| 3 |
+
# Copyright (C) 2013-2023 Vinay Sajip.
|
| 4 |
+
# Licensed to the Python Software Foundation under a contributor agreement.
|
| 5 |
+
# See LICENSE.txt and CONTRIBUTORS.txt.
|
| 6 |
+
#
|
| 7 |
+
from io import BytesIO
|
| 8 |
+
import logging
|
| 9 |
+
import os
|
| 10 |
+
import re
|
| 11 |
+
import struct
|
| 12 |
+
import sys
|
| 13 |
+
import time
|
| 14 |
+
from zipfile import ZipInfo
|
| 15 |
+
|
| 16 |
+
from .compat import sysconfig, detect_encoding, ZipFile
|
| 17 |
+
from .resources import finder
|
| 18 |
+
from .util import (FileOperator, get_export_entry, convert_path, get_executable, get_platform, in_venv)
|
| 19 |
+
|
| 20 |
+
logger = logging.getLogger(__name__)
|
| 21 |
+
|
| 22 |
+
_DEFAULT_MANIFEST = '''
|
| 23 |
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
| 24 |
+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
| 25 |
+
<assemblyIdentity version="1.0.0.0"
|
| 26 |
+
processorArchitecture="X86"
|
| 27 |
+
name="%s"
|
| 28 |
+
type="win32"/>
|
| 29 |
+
|
| 30 |
+
<!-- Identify the application security requirements. -->
|
| 31 |
+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
| 32 |
+
<security>
|
| 33 |
+
<requestedPrivileges>
|
| 34 |
+
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
| 35 |
+
</requestedPrivileges>
|
| 36 |
+
</security>
|
| 37 |
+
</trustInfo>
|
| 38 |
+
</assembly>'''.strip()
|
| 39 |
+
|
| 40 |
+
# check if Python is called on the first line with this expression
|
| 41 |
+
FIRST_LINE_RE = re.compile(b'^#!.*pythonw?[0-9.]*([ \t].*)?$')
|
| 42 |
+
SCRIPT_TEMPLATE = r'''# -*- coding: utf-8 -*-
|
| 43 |
+
import re
|
| 44 |
+
import sys
|
| 45 |
+
from %(module)s import %(import_name)s
|
| 46 |
+
if __name__ == '__main__':
|
| 47 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 48 |
+
sys.exit(%(func)s())
|
| 49 |
+
'''
|
| 50 |
+
|
| 51 |
+
# Pre-fetch the contents of all executable wrapper stubs.
|
| 52 |
+
# This is to address https://github.com/pypa/pip/issues/12666.
|
| 53 |
+
# When updating pip, we rename the old pip in place before installing the
|
| 54 |
+
# new version. If we try to fetch a wrapper *after* that rename, the finder
|
| 55 |
+
# machinery will be confused as the package is no longer available at the
|
| 56 |
+
# location where it was imported from. So we load everything into memory in
|
| 57 |
+
# advance.
|
| 58 |
+
|
| 59 |
+
if os.name == 'nt' or (os.name == 'java' and os._name == 'nt'):
|
| 60 |
+
# Issue 31: don't hardcode an absolute package name, but
|
| 61 |
+
# determine it relative to the current package
|
| 62 |
+
DISTLIB_PACKAGE = __name__.rsplit('.', 1)[0]
|
| 63 |
+
|
| 64 |
+
WRAPPERS = {
|
| 65 |
+
r.name: r.bytes
|
| 66 |
+
for r in finder(DISTLIB_PACKAGE).iterator("")
|
| 67 |
+
if r.name.endswith(".exe")
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def enquote_executable(executable):
|
| 72 |
+
if ' ' in executable:
|
| 73 |
+
# make sure we quote only the executable in case of env
|
| 74 |
+
# for example /usr/bin/env "/dir with spaces/bin/jython"
|
| 75 |
+
# instead of "/usr/bin/env /dir with spaces/bin/jython"
|
| 76 |
+
# otherwise whole
|
| 77 |
+
if executable.startswith('/usr/bin/env '):
|
| 78 |
+
env, _executable = executable.split(' ', 1)
|
| 79 |
+
if ' ' in _executable and not _executable.startswith('"'):
|
| 80 |
+
executable = '%s "%s"' % (env, _executable)
|
| 81 |
+
else:
|
| 82 |
+
if not executable.startswith('"'):
|
| 83 |
+
executable = '"%s"' % executable
|
| 84 |
+
return executable
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
# Keep the old name around (for now), as there is at least one project using it!
|
| 88 |
+
_enquote_executable = enquote_executable
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class ScriptMaker(object):
|
| 92 |
+
"""
|
| 93 |
+
A class to copy or create scripts from source scripts or callable
|
| 94 |
+
specifications.
|
| 95 |
+
"""
|
| 96 |
+
script_template = SCRIPT_TEMPLATE
|
| 97 |
+
|
| 98 |
+
executable = None # for shebangs
|
| 99 |
+
|
| 100 |
+
def __init__(self, source_dir, target_dir, add_launchers=True, dry_run=False, fileop=None):
|
| 101 |
+
self.source_dir = source_dir
|
| 102 |
+
self.target_dir = target_dir
|
| 103 |
+
self.add_launchers = add_launchers
|
| 104 |
+
self.force = False
|
| 105 |
+
self.clobber = False
|
| 106 |
+
# It only makes sense to set mode bits on POSIX.
|
| 107 |
+
self.set_mode = (os.name == 'posix') or (os.name == 'java' and os._name == 'posix')
|
| 108 |
+
self.variants = set(('', 'X.Y'))
|
| 109 |
+
self._fileop = fileop or FileOperator(dry_run)
|
| 110 |
+
|
| 111 |
+
self._is_nt = os.name == 'nt' or (os.name == 'java' and os._name == 'nt')
|
| 112 |
+
self.version_info = sys.version_info
|
| 113 |
+
|
| 114 |
+
def _get_alternate_executable(self, executable, options):
|
| 115 |
+
if options.get('gui', False) and self._is_nt: # pragma: no cover
|
| 116 |
+
dn, fn = os.path.split(executable)
|
| 117 |
+
fn = fn.replace('python', 'pythonw')
|
| 118 |
+
executable = os.path.join(dn, fn)
|
| 119 |
+
return executable
|
| 120 |
+
|
| 121 |
+
if sys.platform.startswith('java'): # pragma: no cover
|
| 122 |
+
|
| 123 |
+
def _is_shell(self, executable):
|
| 124 |
+
"""
|
| 125 |
+
Determine if the specified executable is a script
|
| 126 |
+
(contains a #! line)
|
| 127 |
+
"""
|
| 128 |
+
try:
|
| 129 |
+
with open(executable) as fp:
|
| 130 |
+
return fp.read(2) == '#!'
|
| 131 |
+
except (OSError, IOError):
|
| 132 |
+
logger.warning('Failed to open %s', executable)
|
| 133 |
+
return False
|
| 134 |
+
|
| 135 |
+
def _fix_jython_executable(self, executable):
|
| 136 |
+
if self._is_shell(executable):
|
| 137 |
+
# Workaround for Jython is not needed on Linux systems.
|
| 138 |
+
import java
|
| 139 |
+
|
| 140 |
+
if java.lang.System.getProperty('os.name') == 'Linux':
|
| 141 |
+
return executable
|
| 142 |
+
elif executable.lower().endswith('jython.exe'):
|
| 143 |
+
# Use wrapper exe for Jython on Windows
|
| 144 |
+
return executable
|
| 145 |
+
return '/usr/bin/env %s' % executable
|
| 146 |
+
|
| 147 |
+
def _build_shebang(self, executable, post_interp):
|
| 148 |
+
"""
|
| 149 |
+
Build a shebang line. In the simple case (on Windows, or a shebang line
|
| 150 |
+
which is not too long or contains spaces) use a simple formulation for
|
| 151 |
+
the shebang. Otherwise, use /bin/sh as the executable, with a contrived
|
| 152 |
+
shebang which allows the script to run either under Python or sh, using
|
| 153 |
+
suitable quoting. Thanks to Harald Nordgren for his input.
|
| 154 |
+
|
| 155 |
+
See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
|
| 156 |
+
https://hg.mozilla.org/mozilla-central/file/tip/mach
|
| 157 |
+
"""
|
| 158 |
+
if os.name != 'posix':
|
| 159 |
+
simple_shebang = True
|
| 160 |
+
elif getattr(sys, "cross_compiling", False):
|
| 161 |
+
# In a cross-compiling environment, the shebang will likely be a
|
| 162 |
+
# script; this *must* be invoked with the "safe" version of the
|
| 163 |
+
# shebang, or else using os.exec() to run the entry script will
|
| 164 |
+
# fail, raising "OSError 8 [Errno 8] Exec format error".
|
| 165 |
+
simple_shebang = False
|
| 166 |
+
else:
|
| 167 |
+
# Add 3 for '#!' prefix and newline suffix.
|
| 168 |
+
shebang_length = len(executable) + len(post_interp) + 3
|
| 169 |
+
if sys.platform == 'darwin':
|
| 170 |
+
max_shebang_length = 512
|
| 171 |
+
else:
|
| 172 |
+
max_shebang_length = 127
|
| 173 |
+
simple_shebang = ((b' ' not in executable) and (shebang_length <= max_shebang_length))
|
| 174 |
+
|
| 175 |
+
if simple_shebang:
|
| 176 |
+
result = b'#!' + executable + post_interp + b'\n'
|
| 177 |
+
else:
|
| 178 |
+
result = b'#!/bin/sh\n'
|
| 179 |
+
result += b"'''exec' " + executable + post_interp + b' "$0" "$@"\n'
|
| 180 |
+
result += b"' '''\n"
|
| 181 |
+
return result
|
| 182 |
+
|
| 183 |
+
def _get_shebang(self, encoding, post_interp=b'', options=None):
|
| 184 |
+
enquote = True
|
| 185 |
+
if self.executable:
|
| 186 |
+
executable = self.executable
|
| 187 |
+
enquote = False # assume this will be taken care of
|
| 188 |
+
elif not sysconfig.is_python_build():
|
| 189 |
+
executable = get_executable()
|
| 190 |
+
elif in_venv(): # pragma: no cover
|
| 191 |
+
executable = os.path.join(sysconfig.get_path('scripts'), 'python%s' % sysconfig.get_config_var('EXE'))
|
| 192 |
+
else: # pragma: no cover
|
| 193 |
+
if os.name == 'nt':
|
| 194 |
+
# for Python builds from source on Windows, no Python executables with
|
| 195 |
+
# a version suffix are created, so we use python.exe
|
| 196 |
+
executable = os.path.join(sysconfig.get_config_var('BINDIR'),
|
| 197 |
+
'python%s' % (sysconfig.get_config_var('EXE')))
|
| 198 |
+
else:
|
| 199 |
+
executable = os.path.join(
|
| 200 |
+
sysconfig.get_config_var('BINDIR'),
|
| 201 |
+
'python%s%s' % (sysconfig.get_config_var('VERSION'), sysconfig.get_config_var('EXE')))
|
| 202 |
+
if options:
|
| 203 |
+
executable = self._get_alternate_executable(executable, options)
|
| 204 |
+
|
| 205 |
+
if sys.platform.startswith('java'): # pragma: no cover
|
| 206 |
+
executable = self._fix_jython_executable(executable)
|
| 207 |
+
|
| 208 |
+
# Normalise case for Windows - COMMENTED OUT
|
| 209 |
+
# executable = os.path.normcase(executable)
|
| 210 |
+
# N.B. The normalising operation above has been commented out: See
|
| 211 |
+
# issue #124. Although paths in Windows are generally case-insensitive,
|
| 212 |
+
# they aren't always. For example, a path containing a ẞ (which is a
|
| 213 |
+
# LATIN CAPITAL LETTER SHARP S - U+1E9E) is normcased to ß (which is a
|
| 214 |
+
# LATIN SMALL LETTER SHARP S' - U+00DF). The two are not considered by
|
| 215 |
+
# Windows as equivalent in path names.
|
| 216 |
+
|
| 217 |
+
# If the user didn't specify an executable, it may be necessary to
|
| 218 |
+
# cater for executable paths with spaces (not uncommon on Windows)
|
| 219 |
+
if enquote:
|
| 220 |
+
executable = enquote_executable(executable)
|
| 221 |
+
# Issue #51: don't use fsencode, since we later try to
|
| 222 |
+
# check that the shebang is decodable using utf-8.
|
| 223 |
+
executable = executable.encode('utf-8')
|
| 224 |
+
# in case of IronPython, play safe and enable frames support
|
| 225 |
+
if (sys.platform == 'cli' and '-X:Frames' not in post_interp and
|
| 226 |
+
'-X:FullFrames' not in post_interp): # pragma: no cover
|
| 227 |
+
post_interp += b' -X:Frames'
|
| 228 |
+
shebang = self._build_shebang(executable, post_interp)
|
| 229 |
+
# Python parser starts to read a script using UTF-8 until
|
| 230 |
+
# it gets a #coding:xxx cookie. The shebang has to be the
|
| 231 |
+
# first line of a file, the #coding:xxx cookie cannot be
|
| 232 |
+
# written before. So the shebang has to be decodable from
|
| 233 |
+
# UTF-8.
|
| 234 |
+
try:
|
| 235 |
+
shebang.decode('utf-8')
|
| 236 |
+
except UnicodeDecodeError: # pragma: no cover
|
| 237 |
+
raise ValueError('The shebang (%r) is not decodable from utf-8' % shebang)
|
| 238 |
+
# If the script is encoded to a custom encoding (use a
|
| 239 |
+
# #coding:xxx cookie), the shebang has to be decodable from
|
| 240 |
+
# the script encoding too.
|
| 241 |
+
if encoding != 'utf-8':
|
| 242 |
+
try:
|
| 243 |
+
shebang.decode(encoding)
|
| 244 |
+
except UnicodeDecodeError: # pragma: no cover
|
| 245 |
+
raise ValueError('The shebang (%r) is not decodable '
|
| 246 |
+
'from the script encoding (%r)' % (shebang, encoding))
|
| 247 |
+
return shebang
|
| 248 |
+
|
| 249 |
+
def _get_script_text(self, entry):
|
| 250 |
+
return self.script_template % dict(
|
| 251 |
+
module=entry.prefix, import_name=entry.suffix.split('.')[0], func=entry.suffix)
|
| 252 |
+
|
| 253 |
+
manifest = _DEFAULT_MANIFEST
|
| 254 |
+
|
| 255 |
+
def get_manifest(self, exename):
|
| 256 |
+
base = os.path.basename(exename)
|
| 257 |
+
return self.manifest % base
|
| 258 |
+
|
| 259 |
+
def _write_script(self, names, shebang, script_bytes, filenames, ext):
|
| 260 |
+
use_launcher = self.add_launchers and self._is_nt
|
| 261 |
+
if not use_launcher:
|
| 262 |
+
script_bytes = shebang + script_bytes
|
| 263 |
+
else: # pragma: no cover
|
| 264 |
+
if ext == 'py':
|
| 265 |
+
launcher = self._get_launcher('t')
|
| 266 |
+
else:
|
| 267 |
+
launcher = self._get_launcher('w')
|
| 268 |
+
stream = BytesIO()
|
| 269 |
+
with ZipFile(stream, 'w') as zf:
|
| 270 |
+
source_date_epoch = os.environ.get('SOURCE_DATE_EPOCH')
|
| 271 |
+
if source_date_epoch:
|
| 272 |
+
date_time = time.gmtime(int(source_date_epoch))[:6]
|
| 273 |
+
zinfo = ZipInfo(filename='__main__.py', date_time=date_time)
|
| 274 |
+
zf.writestr(zinfo, script_bytes)
|
| 275 |
+
else:
|
| 276 |
+
zf.writestr('__main__.py', script_bytes)
|
| 277 |
+
zip_data = stream.getvalue()
|
| 278 |
+
script_bytes = launcher + shebang + zip_data
|
| 279 |
+
for name in names:
|
| 280 |
+
outname = os.path.join(self.target_dir, name)
|
| 281 |
+
if use_launcher: # pragma: no cover
|
| 282 |
+
n, e = os.path.splitext(outname)
|
| 283 |
+
if e.startswith('.py'):
|
| 284 |
+
outname = n
|
| 285 |
+
outname = '%s.exe' % outname
|
| 286 |
+
try:
|
| 287 |
+
self._fileop.write_binary_file(outname, script_bytes)
|
| 288 |
+
except Exception:
|
| 289 |
+
# Failed writing an executable - it might be in use.
|
| 290 |
+
logger.warning('Failed to write executable - trying to '
|
| 291 |
+
'use .deleteme logic')
|
| 292 |
+
dfname = '%s.deleteme' % outname
|
| 293 |
+
if os.path.exists(dfname):
|
| 294 |
+
os.remove(dfname) # Not allowed to fail here
|
| 295 |
+
os.rename(outname, dfname) # nor here
|
| 296 |
+
self._fileop.write_binary_file(outname, script_bytes)
|
| 297 |
+
logger.debug('Able to replace executable using '
|
| 298 |
+
'.deleteme logic')
|
| 299 |
+
try:
|
| 300 |
+
os.remove(dfname)
|
| 301 |
+
except Exception:
|
| 302 |
+
pass # still in use - ignore error
|
| 303 |
+
else:
|
| 304 |
+
if self._is_nt and not outname.endswith('.' + ext): # pragma: no cover
|
| 305 |
+
outname = '%s.%s' % (outname, ext)
|
| 306 |
+
if os.path.exists(outname) and not self.clobber:
|
| 307 |
+
logger.warning('Skipping existing file %s', outname)
|
| 308 |
+
continue
|
| 309 |
+
self._fileop.write_binary_file(outname, script_bytes)
|
| 310 |
+
if self.set_mode:
|
| 311 |
+
self._fileop.set_executable_mode([outname])
|
| 312 |
+
filenames.append(outname)
|
| 313 |
+
|
| 314 |
+
variant_separator = '-'
|
| 315 |
+
|
| 316 |
+
def get_script_filenames(self, name):
|
| 317 |
+
result = set()
|
| 318 |
+
if '' in self.variants:
|
| 319 |
+
result.add(name)
|
| 320 |
+
if 'X' in self.variants:
|
| 321 |
+
result.add('%s%s' % (name, self.version_info[0]))
|
| 322 |
+
if 'X.Y' in self.variants:
|
| 323 |
+
result.add('%s%s%s.%s' % (name, self.variant_separator, self.version_info[0], self.version_info[1]))
|
| 324 |
+
return result
|
| 325 |
+
|
| 326 |
+
def _make_script(self, entry, filenames, options=None):
|
| 327 |
+
post_interp = b''
|
| 328 |
+
if options:
|
| 329 |
+
args = options.get('interpreter_args', [])
|
| 330 |
+
if args:
|
| 331 |
+
args = ' %s' % ' '.join(args)
|
| 332 |
+
post_interp = args.encode('utf-8')
|
| 333 |
+
shebang = self._get_shebang('utf-8', post_interp, options=options)
|
| 334 |
+
script = self._get_script_text(entry).encode('utf-8')
|
| 335 |
+
scriptnames = self.get_script_filenames(entry.name)
|
| 336 |
+
if options and options.get('gui', False):
|
| 337 |
+
ext = 'pyw'
|
| 338 |
+
else:
|
| 339 |
+
ext = 'py'
|
| 340 |
+
self._write_script(scriptnames, shebang, script, filenames, ext)
|
| 341 |
+
|
| 342 |
+
def _copy_script(self, script, filenames):
|
| 343 |
+
adjust = False
|
| 344 |
+
script = os.path.join(self.source_dir, convert_path(script))
|
| 345 |
+
outname = os.path.join(self.target_dir, os.path.basename(script))
|
| 346 |
+
if not self.force and not self._fileop.newer(script, outname):
|
| 347 |
+
logger.debug('not copying %s (up-to-date)', script)
|
| 348 |
+
return
|
| 349 |
+
|
| 350 |
+
# Always open the file, but ignore failures in dry-run mode --
|
| 351 |
+
# that way, we'll get accurate feedback if we can read the
|
| 352 |
+
# script.
|
| 353 |
+
try:
|
| 354 |
+
f = open(script, 'rb')
|
| 355 |
+
except IOError: # pragma: no cover
|
| 356 |
+
if not self.dry_run:
|
| 357 |
+
raise
|
| 358 |
+
f = None
|
| 359 |
+
else:
|
| 360 |
+
first_line = f.readline()
|
| 361 |
+
if not first_line: # pragma: no cover
|
| 362 |
+
logger.warning('%s is an empty file (skipping)', script)
|
| 363 |
+
return
|
| 364 |
+
|
| 365 |
+
match = FIRST_LINE_RE.match(first_line.replace(b'\r\n', b'\n'))
|
| 366 |
+
if match:
|
| 367 |
+
adjust = True
|
| 368 |
+
post_interp = match.group(1) or b''
|
| 369 |
+
|
| 370 |
+
if not adjust:
|
| 371 |
+
if f:
|
| 372 |
+
f.close()
|
| 373 |
+
self._fileop.copy_file(script, outname)
|
| 374 |
+
if self.set_mode:
|
| 375 |
+
self._fileop.set_executable_mode([outname])
|
| 376 |
+
filenames.append(outname)
|
| 377 |
+
else:
|
| 378 |
+
logger.info('copying and adjusting %s -> %s', script, self.target_dir)
|
| 379 |
+
if not self._fileop.dry_run:
|
| 380 |
+
encoding, lines = detect_encoding(f.readline)
|
| 381 |
+
f.seek(0)
|
| 382 |
+
shebang = self._get_shebang(encoding, post_interp)
|
| 383 |
+
if b'pythonw' in first_line: # pragma: no cover
|
| 384 |
+
ext = 'pyw'
|
| 385 |
+
else:
|
| 386 |
+
ext = 'py'
|
| 387 |
+
n = os.path.basename(outname)
|
| 388 |
+
self._write_script([n], shebang, f.read(), filenames, ext)
|
| 389 |
+
if f:
|
| 390 |
+
f.close()
|
| 391 |
+
|
| 392 |
+
@property
|
| 393 |
+
def dry_run(self):
|
| 394 |
+
return self._fileop.dry_run
|
| 395 |
+
|
| 396 |
+
@dry_run.setter
|
| 397 |
+
def dry_run(self, value):
|
| 398 |
+
self._fileop.dry_run = value
|
| 399 |
+
|
| 400 |
+
if os.name == 'nt' or (os.name == 'java' and os._name == 'nt'): # pragma: no cover
|
| 401 |
+
# Executable launcher support.
|
| 402 |
+
# Launchers are from https://bitbucket.org/vinay.sajip/simple_launcher/
|
| 403 |
+
|
| 404 |
+
def _get_launcher(self, kind):
|
| 405 |
+
if struct.calcsize('P') == 8: # 64-bit
|
| 406 |
+
bits = '64'
|
| 407 |
+
else:
|
| 408 |
+
bits = '32'
|
| 409 |
+
platform_suffix = '-arm' if get_platform() == 'win-arm64' else ''
|
| 410 |
+
name = '%s%s%s.exe' % (kind, bits, platform_suffix)
|
| 411 |
+
if name not in WRAPPERS:
|
| 412 |
+
msg = ('Unable to find resource %s in package %s' %
|
| 413 |
+
(name, DISTLIB_PACKAGE))
|
| 414 |
+
raise ValueError(msg)
|
| 415 |
+
return WRAPPERS[name]
|
| 416 |
+
|
| 417 |
+
# Public API follows
|
| 418 |
+
|
| 419 |
+
def make(self, specification, options=None):
|
| 420 |
+
"""
|
| 421 |
+
Make a script.
|
| 422 |
+
|
| 423 |
+
:param specification: The specification, which is either a valid export
|
| 424 |
+
entry specification (to make a script from a
|
| 425 |
+
callable) or a filename (to make a script by
|
| 426 |
+
copying from a source location).
|
| 427 |
+
:param options: A dictionary of options controlling script generation.
|
| 428 |
+
:return: A list of all absolute pathnames written to.
|
| 429 |
+
"""
|
| 430 |
+
filenames = []
|
| 431 |
+
entry = get_export_entry(specification)
|
| 432 |
+
if entry is None:
|
| 433 |
+
self._copy_script(specification, filenames)
|
| 434 |
+
else:
|
| 435 |
+
self._make_script(entry, filenames, options=options)
|
| 436 |
+
return filenames
|
| 437 |
+
|
| 438 |
+
def make_multiple(self, specifications, options=None):
|
| 439 |
+
"""
|
| 440 |
+
Take a list of specifications and make scripts from them,
|
| 441 |
+
:param specifications: A list of specifications.
|
| 442 |
+
:return: A list of all absolute pathnames written to,
|
| 443 |
+
"""
|
| 444 |
+
filenames = []
|
| 445 |
+
for specification in specifications:
|
| 446 |
+
filenames.extend(self.make(specification, options))
|
| 447 |
+
return filenames
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/t64.exe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81a618f21cb87db9076134e70388b6e9cb7c2106739011b6a51772d22c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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright (C) 2012-2023 The Python Software Foundation.
|
| 3 |
+
# See LICENSE.txt and CONTRIBUTORS.txt.
|
| 4 |
+
#
|
| 5 |
+
import codecs
|
| 6 |
+
from collections import deque
|
| 7 |
+
import contextlib
|
| 8 |
+
import csv
|
| 9 |
+
from glob import iglob as std_iglob
|
| 10 |
+
import io
|
| 11 |
+
import json
|
| 12 |
+
import logging
|
| 13 |
+
import os
|
| 14 |
+
import py_compile
|
| 15 |
+
import re
|
| 16 |
+
import socket
|
| 17 |
+
try:
|
| 18 |
+
import ssl
|
| 19 |
+
except ImportError: # pragma: no cover
|
| 20 |
+
ssl = None
|
| 21 |
+
import subprocess
|
| 22 |
+
import sys
|
| 23 |
+
import tarfile
|
| 24 |
+
import tempfile
|
| 25 |
+
import textwrap
|
| 26 |
+
|
| 27 |
+
try:
|
| 28 |
+
import threading
|
| 29 |
+
except ImportError: # pragma: no cover
|
| 30 |
+
import dummy_threading as threading
|
| 31 |
+
import time
|
| 32 |
+
|
| 33 |
+
from . import DistlibException
|
| 34 |
+
from .compat import (string_types, text_type, shutil, raw_input, StringIO, cache_from_source, urlopen, urljoin, httplib,
|
| 35 |
+
xmlrpclib, HTTPHandler, BaseConfigurator, valid_ident, Container, configparser, URLError, ZipFile,
|
| 36 |
+
fsdecode, unquote, urlparse)
|
| 37 |
+
|
| 38 |
+
logger = logging.getLogger(__name__)
|
| 39 |
+
|
| 40 |
+
#
|
| 41 |
+
# Requirement parsing code as per PEP 508
|
| 42 |
+
#
|
| 43 |
+
|
| 44 |
+
IDENTIFIER = re.compile(r'^([\w\.-]+)\s*')
|
| 45 |
+
VERSION_IDENTIFIER = re.compile(r'^([\w\.*+-]+)\s*')
|
| 46 |
+
COMPARE_OP = re.compile(r'^(<=?|>=?|={2,3}|[~!]=)\s*')
|
| 47 |
+
MARKER_OP = re.compile(r'^((<=?)|(>=?)|={2,3}|[~!]=|in|not\s+in)\s*')
|
| 48 |
+
OR = re.compile(r'^or\b\s*')
|
| 49 |
+
AND = re.compile(r'^and\b\s*')
|
| 50 |
+
NON_SPACE = re.compile(r'(\S+)\s*')
|
| 51 |
+
STRING_CHUNK = re.compile(r'([\s\w\.{}()*+#:;,/?!~`@$%^&=|<>\[\]-]+)')
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def parse_marker(marker_string):
|
| 55 |
+
"""
|
| 56 |
+
Parse a marker string and return a dictionary containing a marker expression.
|
| 57 |
+
|
| 58 |
+
The dictionary will contain keys "op", "lhs" and "rhs" for non-terminals in
|
| 59 |
+
the expression grammar, or strings. A string contained in quotes is to be
|
| 60 |
+
interpreted as a literal string, and a string not contained in quotes is a
|
| 61 |
+
variable (such as os_name).
|
| 62 |
+
"""
|
| 63 |
+
|
| 64 |
+
def marker_var(remaining):
|
| 65 |
+
# either identifier, or literal string
|
| 66 |
+
m = IDENTIFIER.match(remaining)
|
| 67 |
+
if m:
|
| 68 |
+
result = m.groups()[0]
|
| 69 |
+
remaining = remaining[m.end():]
|
| 70 |
+
elif not remaining:
|
| 71 |
+
raise SyntaxError('unexpected end of input')
|
| 72 |
+
else:
|
| 73 |
+
q = remaining[0]
|
| 74 |
+
if q not in '\'"':
|
| 75 |
+
raise SyntaxError('invalid expression: %s' % remaining)
|
| 76 |
+
oq = '\'"'.replace(q, '')
|
| 77 |
+
remaining = remaining[1:]
|
| 78 |
+
parts = [q]
|
| 79 |
+
while remaining:
|
| 80 |
+
# either a string chunk, or oq, or q to terminate
|
| 81 |
+
if remaining[0] == q:
|
| 82 |
+
break
|
| 83 |
+
elif remaining[0] == oq:
|
| 84 |
+
parts.append(oq)
|
| 85 |
+
remaining = remaining[1:]
|
| 86 |
+
else:
|
| 87 |
+
m = STRING_CHUNK.match(remaining)
|
| 88 |
+
if not m:
|
| 89 |
+
raise SyntaxError('error in string literal: %s' % remaining)
|
| 90 |
+
parts.append(m.groups()[0])
|
| 91 |
+
remaining = remaining[m.end():]
|
| 92 |
+
else:
|
| 93 |
+
s = ''.join(parts)
|
| 94 |
+
raise SyntaxError('unterminated string: %s' % s)
|
| 95 |
+
parts.append(q)
|
| 96 |
+
result = ''.join(parts)
|
| 97 |
+
remaining = remaining[1:].lstrip() # skip past closing quote
|
| 98 |
+
return result, remaining
|
| 99 |
+
|
| 100 |
+
def marker_expr(remaining):
|
| 101 |
+
if remaining and remaining[0] == '(':
|
| 102 |
+
result, remaining = marker(remaining[1:].lstrip())
|
| 103 |
+
if remaining[0] != ')':
|
| 104 |
+
raise SyntaxError('unterminated parenthesis: %s' % remaining)
|
| 105 |
+
remaining = remaining[1:].lstrip()
|
| 106 |
+
else:
|
| 107 |
+
lhs, remaining = marker_var(remaining)
|
| 108 |
+
while remaining:
|
| 109 |
+
m = MARKER_OP.match(remaining)
|
| 110 |
+
if not m:
|
| 111 |
+
break
|
| 112 |
+
op = m.groups()[0]
|
| 113 |
+
remaining = remaining[m.end():]
|
| 114 |
+
rhs, remaining = marker_var(remaining)
|
| 115 |
+
lhs = {'op': op, 'lhs': lhs, 'rhs': rhs}
|
| 116 |
+
result = lhs
|
| 117 |
+
return result, remaining
|
| 118 |
+
|
| 119 |
+
def marker_and(remaining):
|
| 120 |
+
lhs, remaining = marker_expr(remaining)
|
| 121 |
+
while remaining:
|
| 122 |
+
m = AND.match(remaining)
|
| 123 |
+
if not m:
|
| 124 |
+
break
|
| 125 |
+
remaining = remaining[m.end():]
|
| 126 |
+
rhs, remaining = marker_expr(remaining)
|
| 127 |
+
lhs = {'op': 'and', 'lhs': lhs, 'rhs': rhs}
|
| 128 |
+
return lhs, remaining
|
| 129 |
+
|
| 130 |
+
def marker(remaining):
|
| 131 |
+
lhs, remaining = marker_and(remaining)
|
| 132 |
+
while remaining:
|
| 133 |
+
m = OR.match(remaining)
|
| 134 |
+
if not m:
|
| 135 |
+
break
|
| 136 |
+
remaining = remaining[m.end():]
|
| 137 |
+
rhs, remaining = marker_and(remaining)
|
| 138 |
+
lhs = {'op': 'or', 'lhs': lhs, 'rhs': rhs}
|
| 139 |
+
return lhs, remaining
|
| 140 |
+
|
| 141 |
+
return marker(marker_string)
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def parse_requirement(req):
|
| 145 |
+
"""
|
| 146 |
+
Parse a requirement passed in as a string. Return a Container
|
| 147 |
+
whose attributes contain the various parts of the requirement.
|
| 148 |
+
"""
|
| 149 |
+
remaining = req.strip()
|
| 150 |
+
if not remaining or remaining.startswith('#'):
|
| 151 |
+
return None
|
| 152 |
+
m = IDENTIFIER.match(remaining)
|
| 153 |
+
if not m:
|
| 154 |
+
raise SyntaxError('name expected: %s' % remaining)
|
| 155 |
+
distname = m.groups()[0]
|
| 156 |
+
remaining = remaining[m.end():]
|
| 157 |
+
extras = mark_expr = versions = uri = None
|
| 158 |
+
if remaining and remaining[0] == '[':
|
| 159 |
+
i = remaining.find(']', 1)
|
| 160 |
+
if i < 0:
|
| 161 |
+
raise SyntaxError('unterminated extra: %s' % remaining)
|
| 162 |
+
s = remaining[1:i]
|
| 163 |
+
remaining = remaining[i + 1:].lstrip()
|
| 164 |
+
extras = []
|
| 165 |
+
while s:
|
| 166 |
+
m = IDENTIFIER.match(s)
|
| 167 |
+
if not m:
|
| 168 |
+
raise SyntaxError('malformed extra: %s' % s)
|
| 169 |
+
extras.append(m.groups()[0])
|
| 170 |
+
s = s[m.end():]
|
| 171 |
+
if not s:
|
| 172 |
+
break
|
| 173 |
+
if s[0] != ',':
|
| 174 |
+
raise SyntaxError('comma expected in extras: %s' % s)
|
| 175 |
+
s = s[1:].lstrip()
|
| 176 |
+
if not extras:
|
| 177 |
+
extras = None
|
| 178 |
+
if remaining:
|
| 179 |
+
if remaining[0] == '@':
|
| 180 |
+
# it's a URI
|
| 181 |
+
remaining = remaining[1:].lstrip()
|
| 182 |
+
m = NON_SPACE.match(remaining)
|
| 183 |
+
if not m:
|
| 184 |
+
raise SyntaxError('invalid URI: %s' % remaining)
|
| 185 |
+
uri = m.groups()[0]
|
| 186 |
+
t = urlparse(uri)
|
| 187 |
+
# there are issues with Python and URL parsing, so this test
|
| 188 |
+
# is a bit crude. See bpo-20271, bpo-23505. Python doesn't
|
| 189 |
+
# always parse invalid URLs correctly - it should raise
|
| 190 |
+
# exceptions for malformed URLs
|
| 191 |
+
if not (t.scheme and t.netloc):
|
| 192 |
+
raise SyntaxError('Invalid URL: %s' % uri)
|
| 193 |
+
remaining = remaining[m.end():].lstrip()
|
| 194 |
+
else:
|
| 195 |
+
|
| 196 |
+
def get_versions(ver_remaining):
|
| 197 |
+
"""
|
| 198 |
+
Return a list of operator, version tuples if any are
|
| 199 |
+
specified, else None.
|
| 200 |
+
"""
|
| 201 |
+
m = COMPARE_OP.match(ver_remaining)
|
| 202 |
+
versions = None
|
| 203 |
+
if m:
|
| 204 |
+
versions = []
|
| 205 |
+
while True:
|
| 206 |
+
op = m.groups()[0]
|
| 207 |
+
ver_remaining = ver_remaining[m.end():]
|
| 208 |
+
m = VERSION_IDENTIFIER.match(ver_remaining)
|
| 209 |
+
if not m:
|
| 210 |
+
raise SyntaxError('invalid version: %s' % ver_remaining)
|
| 211 |
+
v = m.groups()[0]
|
| 212 |
+
versions.append((op, v))
|
| 213 |
+
ver_remaining = ver_remaining[m.end():]
|
| 214 |
+
if not ver_remaining or ver_remaining[0] != ',':
|
| 215 |
+
break
|
| 216 |
+
ver_remaining = ver_remaining[1:].lstrip()
|
| 217 |
+
# Some packages have a trailing comma which would break things
|
| 218 |
+
# See issue #148
|
| 219 |
+
if not ver_remaining:
|
| 220 |
+
break
|
| 221 |
+
m = COMPARE_OP.match(ver_remaining)
|
| 222 |
+
if not m:
|
| 223 |
+
raise SyntaxError('invalid constraint: %s' % ver_remaining)
|
| 224 |
+
if not versions:
|
| 225 |
+
versions = None
|
| 226 |
+
return versions, ver_remaining
|
| 227 |
+
|
| 228 |
+
if remaining[0] != '(':
|
| 229 |
+
versions, remaining = get_versions(remaining)
|
| 230 |
+
else:
|
| 231 |
+
i = remaining.find(')', 1)
|
| 232 |
+
if i < 0:
|
| 233 |
+
raise SyntaxError('unterminated parenthesis: %s' % remaining)
|
| 234 |
+
s = remaining[1:i]
|
| 235 |
+
remaining = remaining[i + 1:].lstrip()
|
| 236 |
+
# As a special diversion from PEP 508, allow a version number
|
| 237 |
+
# a.b.c in parentheses as a synonym for ~= a.b.c (because this
|
| 238 |
+
# is allowed in earlier PEPs)
|
| 239 |
+
if COMPARE_OP.match(s):
|
| 240 |
+
versions, _ = get_versions(s)
|
| 241 |
+
else:
|
| 242 |
+
m = VERSION_IDENTIFIER.match(s)
|
| 243 |
+
if not m:
|
| 244 |
+
raise SyntaxError('invalid constraint: %s' % s)
|
| 245 |
+
v = m.groups()[0]
|
| 246 |
+
s = s[m.end():].lstrip()
|
| 247 |
+
if s:
|
| 248 |
+
raise SyntaxError('invalid constraint: %s' % s)
|
| 249 |
+
versions = [('~=', v)]
|
| 250 |
+
|
| 251 |
+
if remaining:
|
| 252 |
+
if remaining[0] != ';':
|
| 253 |
+
raise SyntaxError('invalid requirement: %s' % remaining)
|
| 254 |
+
remaining = remaining[1:].lstrip()
|
| 255 |
+
|
| 256 |
+
mark_expr, remaining = parse_marker(remaining)
|
| 257 |
+
|
| 258 |
+
if remaining and remaining[0] != '#':
|
| 259 |
+
raise SyntaxError('unexpected trailing data: %s' % remaining)
|
| 260 |
+
|
| 261 |
+
if not versions:
|
| 262 |
+
rs = distname
|
| 263 |
+
else:
|
| 264 |
+
rs = '%s %s' % (distname, ', '.join(['%s %s' % con for con in versions]))
|
| 265 |
+
return Container(name=distname, extras=extras, constraints=versions, marker=mark_expr, url=uri, requirement=rs)
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
def get_resources_dests(resources_root, rules):
|
| 269 |
+
"""Find destinations for resources files"""
|
| 270 |
+
|
| 271 |
+
def get_rel_path(root, path):
|
| 272 |
+
# normalizes and returns a lstripped-/-separated path
|
| 273 |
+
root = root.replace(os.path.sep, '/')
|
| 274 |
+
path = path.replace(os.path.sep, '/')
|
| 275 |
+
assert path.startswith(root)
|
| 276 |
+
return path[len(root):].lstrip('/')
|
| 277 |
+
|
| 278 |
+
destinations = {}
|
| 279 |
+
for base, suffix, dest in rules:
|
| 280 |
+
prefix = os.path.join(resources_root, base)
|
| 281 |
+
for abs_base in iglob(prefix):
|
| 282 |
+
abs_glob = os.path.join(abs_base, suffix)
|
| 283 |
+
for abs_path in iglob(abs_glob):
|
| 284 |
+
resource_file = get_rel_path(resources_root, abs_path)
|
| 285 |
+
if dest is None: # remove the entry if it was here
|
| 286 |
+
destinations.pop(resource_file, None)
|
| 287 |
+
else:
|
| 288 |
+
rel_path = get_rel_path(abs_base, abs_path)
|
| 289 |
+
rel_dest = dest.replace(os.path.sep, '/').rstrip('/')
|
| 290 |
+
destinations[resource_file] = rel_dest + '/' + rel_path
|
| 291 |
+
return destinations
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
def in_venv():
|
| 295 |
+
if hasattr(sys, 'real_prefix'):
|
| 296 |
+
# virtualenv venvs
|
| 297 |
+
result = True
|
| 298 |
+
else:
|
| 299 |
+
# PEP 405 venvs
|
| 300 |
+
result = sys.prefix != getattr(sys, 'base_prefix', sys.prefix)
|
| 301 |
+
return result
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
def get_executable():
|
| 305 |
+
# The __PYVENV_LAUNCHER__ dance is apparently no longer needed, as
|
| 306 |
+
# changes to the stub launcher mean that sys.executable always points
|
| 307 |
+
# to the stub on OS X
|
| 308 |
+
# if sys.platform == 'darwin' and ('__PYVENV_LAUNCHER__'
|
| 309 |
+
# in os.environ):
|
| 310 |
+
# result = os.environ['__PYVENV_LAUNCHER__']
|
| 311 |
+
# else:
|
| 312 |
+
# result = sys.executable
|
| 313 |
+
# return result
|
| 314 |
+
# Avoid normcasing: see issue #143
|
| 315 |
+
# result = os.path.normcase(sys.executable)
|
| 316 |
+
result = sys.executable
|
| 317 |
+
if not isinstance(result, text_type):
|
| 318 |
+
result = fsdecode(result)
|
| 319 |
+
return result
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
def proceed(prompt, allowed_chars, error_prompt=None, default=None):
|
| 323 |
+
p = prompt
|
| 324 |
+
while True:
|
| 325 |
+
s = raw_input(p)
|
| 326 |
+
p = prompt
|
| 327 |
+
if not s and default:
|
| 328 |
+
s = default
|
| 329 |
+
if s:
|
| 330 |
+
c = s[0].lower()
|
| 331 |
+
if c in allowed_chars:
|
| 332 |
+
break
|
| 333 |
+
if error_prompt:
|
| 334 |
+
p = '%c: %s\n%s' % (c, error_prompt, prompt)
|
| 335 |
+
return c
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
def extract_by_key(d, keys):
|
| 339 |
+
if isinstance(keys, string_types):
|
| 340 |
+
keys = keys.split()
|
| 341 |
+
result = {}
|
| 342 |
+
for key in keys:
|
| 343 |
+
if key in d:
|
| 344 |
+
result[key] = d[key]
|
| 345 |
+
return result
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def read_exports(stream):
|
| 349 |
+
if sys.version_info[0] >= 3:
|
| 350 |
+
# needs to be a text stream
|
| 351 |
+
stream = codecs.getreader('utf-8')(stream)
|
| 352 |
+
# Try to load as JSON, falling back on legacy format
|
| 353 |
+
data = stream.read()
|
| 354 |
+
stream = StringIO(data)
|
| 355 |
+
try:
|
| 356 |
+
jdata = json.load(stream)
|
| 357 |
+
result = jdata['extensions']['python.exports']['exports']
|
| 358 |
+
for group, entries in result.items():
|
| 359 |
+
for k, v in entries.items():
|
| 360 |
+
s = '%s = %s' % (k, v)
|
| 361 |
+
entry = get_export_entry(s)
|
| 362 |
+
assert entry is not None
|
| 363 |
+
entries[k] = entry
|
| 364 |
+
return result
|
| 365 |
+
except Exception:
|
| 366 |
+
stream.seek(0, 0)
|
| 367 |
+
|
| 368 |
+
def read_stream(cp, stream):
|
| 369 |
+
if hasattr(cp, 'read_file'):
|
| 370 |
+
cp.read_file(stream)
|
| 371 |
+
else:
|
| 372 |
+
cp.readfp(stream)
|
| 373 |
+
|
| 374 |
+
cp = configparser.ConfigParser()
|
| 375 |
+
try:
|
| 376 |
+
read_stream(cp, stream)
|
| 377 |
+
except configparser.MissingSectionHeaderError:
|
| 378 |
+
stream.close()
|
| 379 |
+
data = textwrap.dedent(data)
|
| 380 |
+
stream = StringIO(data)
|
| 381 |
+
read_stream(cp, stream)
|
| 382 |
+
|
| 383 |
+
result = {}
|
| 384 |
+
for key in cp.sections():
|
| 385 |
+
result[key] = entries = {}
|
| 386 |
+
for name, value in cp.items(key):
|
| 387 |
+
s = '%s = %s' % (name, value)
|
| 388 |
+
entry = get_export_entry(s)
|
| 389 |
+
assert entry is not None
|
| 390 |
+
# entry.dist = self
|
| 391 |
+
entries[name] = entry
|
| 392 |
+
return result
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
def write_exports(exports, stream):
|
| 396 |
+
if sys.version_info[0] >= 3:
|
| 397 |
+
# needs to be a text stream
|
| 398 |
+
stream = codecs.getwriter('utf-8')(stream)
|
| 399 |
+
cp = configparser.ConfigParser()
|
| 400 |
+
for k, v in exports.items():
|
| 401 |
+
# TODO check k, v for valid values
|
| 402 |
+
cp.add_section(k)
|
| 403 |
+
for entry in v.values():
|
| 404 |
+
if entry.suffix is None:
|
| 405 |
+
s = entry.prefix
|
| 406 |
+
else:
|
| 407 |
+
s = '%s:%s' % (entry.prefix, entry.suffix)
|
| 408 |
+
if entry.flags:
|
| 409 |
+
s = '%s [%s]' % (s, ', '.join(entry.flags))
|
| 410 |
+
cp.set(k, entry.name, s)
|
| 411 |
+
cp.write(stream)
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
@contextlib.contextmanager
|
| 415 |
+
def tempdir():
|
| 416 |
+
td = tempfile.mkdtemp()
|
| 417 |
+
try:
|
| 418 |
+
yield td
|
| 419 |
+
finally:
|
| 420 |
+
shutil.rmtree(td)
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
@contextlib.contextmanager
|
| 424 |
+
def chdir(d):
|
| 425 |
+
cwd = os.getcwd()
|
| 426 |
+
try:
|
| 427 |
+
os.chdir(d)
|
| 428 |
+
yield
|
| 429 |
+
finally:
|
| 430 |
+
os.chdir(cwd)
|
| 431 |
+
|
| 432 |
+
|
| 433 |
+
@contextlib.contextmanager
|
| 434 |
+
def socket_timeout(seconds=15):
|
| 435 |
+
cto = socket.getdefaulttimeout()
|
| 436 |
+
try:
|
| 437 |
+
socket.setdefaulttimeout(seconds)
|
| 438 |
+
yield
|
| 439 |
+
finally:
|
| 440 |
+
socket.setdefaulttimeout(cto)
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
class cached_property(object):
|
| 444 |
+
|
| 445 |
+
def __init__(self, func):
|
| 446 |
+
self.func = func
|
| 447 |
+
# for attr in ('__name__', '__module__', '__doc__'):
|
| 448 |
+
# setattr(self, attr, getattr(func, attr, None))
|
| 449 |
+
|
| 450 |
+
def __get__(self, obj, cls=None):
|
| 451 |
+
if obj is None:
|
| 452 |
+
return self
|
| 453 |
+
value = self.func(obj)
|
| 454 |
+
object.__setattr__(obj, self.func.__name__, value)
|
| 455 |
+
# obj.__dict__[self.func.__name__] = value = self.func(obj)
|
| 456 |
+
return value
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
def convert_path(pathname):
|
| 460 |
+
"""Return 'pathname' as a name that will work on the native filesystem.
|
| 461 |
+
|
| 462 |
+
The path is split on '/' and put back together again using the current
|
| 463 |
+
directory separator. Needed because filenames in the setup script are
|
| 464 |
+
always supplied in Unix style, and have to be converted to the local
|
| 465 |
+
convention before we can actually use them in the filesystem. Raises
|
| 466 |
+
ValueError on non-Unix-ish systems if 'pathname' either starts or
|
| 467 |
+
ends with a slash.
|
| 468 |
+
"""
|
| 469 |
+
if os.sep == '/':
|
| 470 |
+
return pathname
|
| 471 |
+
if not pathname:
|
| 472 |
+
return pathname
|
| 473 |
+
if pathname[0] == '/':
|
| 474 |
+
raise ValueError("path '%s' cannot be absolute" % pathname)
|
| 475 |
+
if pathname[-1] == '/':
|
| 476 |
+
raise ValueError("path '%s' cannot end with '/'" % pathname)
|
| 477 |
+
|
| 478 |
+
paths = pathname.split('/')
|
| 479 |
+
while os.curdir in paths:
|
| 480 |
+
paths.remove(os.curdir)
|
| 481 |
+
if not paths:
|
| 482 |
+
return os.curdir
|
| 483 |
+
return os.path.join(*paths)
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
class FileOperator(object):
|
| 487 |
+
|
| 488 |
+
def __init__(self, dry_run=False):
|
| 489 |
+
self.dry_run = dry_run
|
| 490 |
+
self.ensured = set()
|
| 491 |
+
self._init_record()
|
| 492 |
+
|
| 493 |
+
def _init_record(self):
|
| 494 |
+
self.record = False
|
| 495 |
+
self.files_written = set()
|
| 496 |
+
self.dirs_created = set()
|
| 497 |
+
|
| 498 |
+
def record_as_written(self, path):
|
| 499 |
+
if self.record:
|
| 500 |
+
self.files_written.add(path)
|
| 501 |
+
|
| 502 |
+
def newer(self, source, target):
|
| 503 |
+
"""Tell if the target is newer than the source.
|
| 504 |
+
|
| 505 |
+
Returns true if 'source' exists and is more recently modified than
|
| 506 |
+
'target', or if 'source' exists and 'target' doesn't.
|
| 507 |
+
|
| 508 |
+
Returns false if both exist and 'target' is the same age or younger
|
| 509 |
+
than 'source'. Raise PackagingFileError if 'source' does not exist.
|
| 510 |
+
|
| 511 |
+
Note that this test is not very accurate: files created in the same
|
| 512 |
+
second will have the same "age".
|
| 513 |
+
"""
|
| 514 |
+
if not os.path.exists(source):
|
| 515 |
+
raise DistlibException("file '%r' does not exist" % os.path.abspath(source))
|
| 516 |
+
if not os.path.exists(target):
|
| 517 |
+
return True
|
| 518 |
+
|
| 519 |
+
return os.stat(source).st_mtime > os.stat(target).st_mtime
|
| 520 |
+
|
| 521 |
+
def copy_file(self, infile, outfile, check=True):
|
| 522 |
+
"""Copy a file respecting dry-run and force flags.
|
| 523 |
+
"""
|
| 524 |
+
self.ensure_dir(os.path.dirname(outfile))
|
| 525 |
+
logger.info('Copying %s to %s', infile, outfile)
|
| 526 |
+
if not self.dry_run:
|
| 527 |
+
msg = None
|
| 528 |
+
if check:
|
| 529 |
+
if os.path.islink(outfile):
|
| 530 |
+
msg = '%s is a symlink' % outfile
|
| 531 |
+
elif os.path.exists(outfile) and not os.path.isfile(outfile):
|
| 532 |
+
msg = '%s is a non-regular file' % outfile
|
| 533 |
+
if msg:
|
| 534 |
+
raise ValueError(msg + ' which would be overwritten')
|
| 535 |
+
shutil.copyfile(infile, outfile)
|
| 536 |
+
self.record_as_written(outfile)
|
| 537 |
+
|
| 538 |
+
def copy_stream(self, instream, outfile, encoding=None):
|
| 539 |
+
assert not os.path.isdir(outfile)
|
| 540 |
+
self.ensure_dir(os.path.dirname(outfile))
|
| 541 |
+
logger.info('Copying stream %s to %s', instream, outfile)
|
| 542 |
+
if not self.dry_run:
|
| 543 |
+
if encoding is None:
|
| 544 |
+
outstream = open(outfile, 'wb')
|
| 545 |
+
else:
|
| 546 |
+
outstream = codecs.open(outfile, 'w', encoding=encoding)
|
| 547 |
+
try:
|
| 548 |
+
shutil.copyfileobj(instream, outstream)
|
| 549 |
+
finally:
|
| 550 |
+
outstream.close()
|
| 551 |
+
self.record_as_written(outfile)
|
| 552 |
+
|
| 553 |
+
def write_binary_file(self, path, data):
|
| 554 |
+
self.ensure_dir(os.path.dirname(path))
|
| 555 |
+
if not self.dry_run:
|
| 556 |
+
if os.path.exists(path):
|
| 557 |
+
os.remove(path)
|
| 558 |
+
with open(path, 'wb') as f:
|
| 559 |
+
f.write(data)
|
| 560 |
+
self.record_as_written(path)
|
| 561 |
+
|
| 562 |
+
def write_text_file(self, path, data, encoding):
|
| 563 |
+
self.write_binary_file(path, data.encode(encoding))
|
| 564 |
+
|
| 565 |
+
def set_mode(self, bits, mask, files):
|
| 566 |
+
if os.name == 'posix' or (os.name == 'java' and os._name == 'posix'):
|
| 567 |
+
# Set the executable bits (owner, group, and world) on
|
| 568 |
+
# all the files specified.
|
| 569 |
+
for f in files:
|
| 570 |
+
if self.dry_run:
|
| 571 |
+
logger.info("changing mode of %s", f)
|
| 572 |
+
else:
|
| 573 |
+
mode = (os.stat(f).st_mode | bits) & mask
|
| 574 |
+
logger.info("changing mode of %s to %o", f, mode)
|
| 575 |
+
os.chmod(f, mode)
|
| 576 |
+
|
| 577 |
+
set_executable_mode = lambda s, f: s.set_mode(0o555, 0o7777, f)
|
| 578 |
+
|
| 579 |
+
def ensure_dir(self, path):
|
| 580 |
+
path = os.path.abspath(path)
|
| 581 |
+
if path not in self.ensured and not os.path.exists(path):
|
| 582 |
+
self.ensured.add(path)
|
| 583 |
+
d, f = os.path.split(path)
|
| 584 |
+
self.ensure_dir(d)
|
| 585 |
+
logger.info('Creating %s' % path)
|
| 586 |
+
if not self.dry_run:
|
| 587 |
+
os.mkdir(path)
|
| 588 |
+
if self.record:
|
| 589 |
+
self.dirs_created.add(path)
|
| 590 |
+
|
| 591 |
+
def byte_compile(self, path, optimize=False, force=False, prefix=None, hashed_invalidation=False):
|
| 592 |
+
dpath = cache_from_source(path, not optimize)
|
| 593 |
+
logger.info('Byte-compiling %s to %s', path, dpath)
|
| 594 |
+
if not self.dry_run:
|
| 595 |
+
if force or self.newer(path, dpath):
|
| 596 |
+
if not prefix:
|
| 597 |
+
diagpath = None
|
| 598 |
+
else:
|
| 599 |
+
assert path.startswith(prefix)
|
| 600 |
+
diagpath = path[len(prefix):]
|
| 601 |
+
compile_kwargs = {}
|
| 602 |
+
if hashed_invalidation and hasattr(py_compile, 'PycInvalidationMode'):
|
| 603 |
+
if not isinstance(hashed_invalidation, py_compile.PycInvalidationMode):
|
| 604 |
+
hashed_invalidation = py_compile.PycInvalidationMode.CHECKED_HASH
|
| 605 |
+
compile_kwargs['invalidation_mode'] = hashed_invalidation
|
| 606 |
+
py_compile.compile(path, dpath, diagpath, True, **compile_kwargs) # raise error
|
| 607 |
+
self.record_as_written(dpath)
|
| 608 |
+
return dpath
|
| 609 |
+
|
| 610 |
+
def ensure_removed(self, path):
|
| 611 |
+
if os.path.exists(path):
|
| 612 |
+
if os.path.isdir(path) and not os.path.islink(path):
|
| 613 |
+
logger.debug('Removing directory tree at %s', path)
|
| 614 |
+
if not self.dry_run:
|
| 615 |
+
shutil.rmtree(path)
|
| 616 |
+
if self.record:
|
| 617 |
+
if path in self.dirs_created:
|
| 618 |
+
self.dirs_created.remove(path)
|
| 619 |
+
else:
|
| 620 |
+
if os.path.islink(path):
|
| 621 |
+
s = 'link'
|
| 622 |
+
else:
|
| 623 |
+
s = 'file'
|
| 624 |
+
logger.debug('Removing %s %s', s, path)
|
| 625 |
+
if not self.dry_run:
|
| 626 |
+
os.remove(path)
|
| 627 |
+
if self.record:
|
| 628 |
+
if path in self.files_written:
|
| 629 |
+
self.files_written.remove(path)
|
| 630 |
+
|
| 631 |
+
def is_writable(self, path):
|
| 632 |
+
result = False
|
| 633 |
+
while not result:
|
| 634 |
+
if os.path.exists(path):
|
| 635 |
+
result = os.access(path, os.W_OK)
|
| 636 |
+
break
|
| 637 |
+
parent = os.path.dirname(path)
|
| 638 |
+
if parent == path:
|
| 639 |
+
break
|
| 640 |
+
path = parent
|
| 641 |
+
return result
|
| 642 |
+
|
| 643 |
+
def commit(self):
|
| 644 |
+
"""
|
| 645 |
+
Commit recorded changes, turn off recording, return
|
| 646 |
+
changes.
|
| 647 |
+
"""
|
| 648 |
+
assert self.record
|
| 649 |
+
result = self.files_written, self.dirs_created
|
| 650 |
+
self._init_record()
|
| 651 |
+
return result
|
| 652 |
+
|
| 653 |
+
def rollback(self):
|
| 654 |
+
if not self.dry_run:
|
| 655 |
+
for f in list(self.files_written):
|
| 656 |
+
if os.path.exists(f):
|
| 657 |
+
os.remove(f)
|
| 658 |
+
# dirs should all be empty now, except perhaps for
|
| 659 |
+
# __pycache__ subdirs
|
| 660 |
+
# reverse so that subdirs appear before their parents
|
| 661 |
+
dirs = sorted(self.dirs_created, reverse=True)
|
| 662 |
+
for d in dirs:
|
| 663 |
+
flist = os.listdir(d)
|
| 664 |
+
if flist:
|
| 665 |
+
assert flist == ['__pycache__']
|
| 666 |
+
sd = os.path.join(d, flist[0])
|
| 667 |
+
os.rmdir(sd)
|
| 668 |
+
os.rmdir(d) # should fail if non-empty
|
| 669 |
+
self._init_record()
|
| 670 |
+
|
| 671 |
+
|
| 672 |
+
def resolve(module_name, dotted_path):
|
| 673 |
+
if module_name in sys.modules:
|
| 674 |
+
mod = sys.modules[module_name]
|
| 675 |
+
else:
|
| 676 |
+
mod = __import__(module_name)
|
| 677 |
+
if dotted_path is None:
|
| 678 |
+
result = mod
|
| 679 |
+
else:
|
| 680 |
+
parts = dotted_path.split('.')
|
| 681 |
+
result = getattr(mod, parts.pop(0))
|
| 682 |
+
for p in parts:
|
| 683 |
+
result = getattr(result, p)
|
| 684 |
+
return result
|
| 685 |
+
|
| 686 |
+
|
| 687 |
+
class ExportEntry(object):
|
| 688 |
+
|
| 689 |
+
def __init__(self, name, prefix, suffix, flags):
|
| 690 |
+
self.name = name
|
| 691 |
+
self.prefix = prefix
|
| 692 |
+
self.suffix = suffix
|
| 693 |
+
self.flags = flags
|
| 694 |
+
|
| 695 |
+
@cached_property
|
| 696 |
+
def value(self):
|
| 697 |
+
return resolve(self.prefix, self.suffix)
|
| 698 |
+
|
| 699 |
+
def __repr__(self): # pragma: no cover
|
| 700 |
+
return '<ExportEntry %s = %s:%s %s>' % (self.name, self.prefix, self.suffix, self.flags)
|
| 701 |
+
|
| 702 |
+
def __eq__(self, other):
|
| 703 |
+
if not isinstance(other, ExportEntry):
|
| 704 |
+
result = False
|
| 705 |
+
else:
|
| 706 |
+
result = (self.name == other.name and self.prefix == other.prefix and self.suffix == other.suffix and
|
| 707 |
+
self.flags == other.flags)
|
| 708 |
+
return result
|
| 709 |
+
|
| 710 |
+
__hash__ = object.__hash__
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
ENTRY_RE = re.compile(
|
| 714 |
+
r'''(?P<name>([^\[]\S*))
|
| 715 |
+
\s*=\s*(?P<callable>(\w+)([:\.]\w+)*)
|
| 716 |
+
\s*(\[\s*(?P<flags>[\w-]+(=\w+)?(,\s*\w+(=\w+)?)*)\s*\])?
|
| 717 |
+
''', re.VERBOSE)
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
def get_export_entry(specification):
|
| 721 |
+
m = ENTRY_RE.search(specification)
|
| 722 |
+
if not m:
|
| 723 |
+
result = None
|
| 724 |
+
if '[' in specification or ']' in specification:
|
| 725 |
+
raise DistlibException("Invalid specification "
|
| 726 |
+
"'%s'" % specification)
|
| 727 |
+
else:
|
| 728 |
+
d = m.groupdict()
|
| 729 |
+
name = d['name']
|
| 730 |
+
path = d['callable']
|
| 731 |
+
colons = path.count(':')
|
| 732 |
+
if colons == 0:
|
| 733 |
+
prefix, suffix = path, None
|
| 734 |
+
else:
|
| 735 |
+
if colons != 1:
|
| 736 |
+
raise DistlibException("Invalid specification "
|
| 737 |
+
"'%s'" % specification)
|
| 738 |
+
prefix, suffix = path.split(':')
|
| 739 |
+
flags = d['flags']
|
| 740 |
+
if flags is None:
|
| 741 |
+
if '[' in specification or ']' in specification:
|
| 742 |
+
raise DistlibException("Invalid specification "
|
| 743 |
+
"'%s'" % specification)
|
| 744 |
+
flags = []
|
| 745 |
+
else:
|
| 746 |
+
flags = [f.strip() for f in flags.split(',')]
|
| 747 |
+
result = ExportEntry(name, prefix, suffix, flags)
|
| 748 |
+
return result
|
| 749 |
+
|
| 750 |
+
|
| 751 |
+
def get_cache_base(suffix=None):
|
| 752 |
+
"""
|
| 753 |
+
Return the default base location for distlib caches. If the directory does
|
| 754 |
+
not exist, it is created. Use the suffix provided for the base directory,
|
| 755 |
+
and default to '.distlib' if it isn't provided.
|
| 756 |
+
|
| 757 |
+
On Windows, if LOCALAPPDATA is defined in the environment, then it is
|
| 758 |
+
assumed to be a directory, and will be the parent directory of the result.
|
| 759 |
+
On POSIX, and on Windows if LOCALAPPDATA is not defined, the user's home
|
| 760 |
+
directory - using os.expanduser('~') - will be the parent directory of
|
| 761 |
+
the result.
|
| 762 |
+
|
| 763 |
+
The result is just the directory '.distlib' in the parent directory as
|
| 764 |
+
determined above, or with the name specified with ``suffix``.
|
| 765 |
+
"""
|
| 766 |
+
if suffix is None:
|
| 767 |
+
suffix = '.distlib'
|
| 768 |
+
if os.name == 'nt' and 'LOCALAPPDATA' in os.environ:
|
| 769 |
+
result = os.path.expandvars('$localappdata')
|
| 770 |
+
else:
|
| 771 |
+
# Assume posix, or old Windows
|
| 772 |
+
result = os.path.expanduser('~')
|
| 773 |
+
# we use 'isdir' instead of 'exists', because we want to
|
| 774 |
+
# fail if there's a file with that name
|
| 775 |
+
if os.path.isdir(result):
|
| 776 |
+
usable = os.access(result, os.W_OK)
|
| 777 |
+
if not usable:
|
| 778 |
+
logger.warning('Directory exists but is not writable: %s', result)
|
| 779 |
+
else:
|
| 780 |
+
try:
|
| 781 |
+
os.makedirs(result)
|
| 782 |
+
usable = True
|
| 783 |
+
except OSError:
|
| 784 |
+
logger.warning('Unable to create %s', result, exc_info=True)
|
| 785 |
+
usable = False
|
| 786 |
+
if not usable:
|
| 787 |
+
result = tempfile.mkdtemp()
|
| 788 |
+
logger.warning('Default location unusable, using %s', result)
|
| 789 |
+
return os.path.join(result, suffix)
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
def path_to_cache_dir(path, use_abspath=True):
|
| 793 |
+
"""
|
| 794 |
+
Convert an absolute path to a directory name for use in a cache.
|
| 795 |
+
|
| 796 |
+
The algorithm used is:
|
| 797 |
+
|
| 798 |
+
#. On Windows, any ``':'`` in the drive is replaced with ``'---'``.
|
| 799 |
+
#. Any occurrence of ``os.sep`` is replaced with ``'--'``.
|
| 800 |
+
#. ``'.cache'`` is appended.
|
| 801 |
+
"""
|
| 802 |
+
d, p = os.path.splitdrive(os.path.abspath(path) if use_abspath else path)
|
| 803 |
+
if d:
|
| 804 |
+
d = d.replace(':', '---')
|
| 805 |
+
p = p.replace(os.sep, '--')
|
| 806 |
+
return d + p + '.cache'
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
def ensure_slash(s):
|
| 810 |
+
if not s.endswith('/'):
|
| 811 |
+
return s + '/'
|
| 812 |
+
return s
|
| 813 |
+
|
| 814 |
+
|
| 815 |
+
def parse_credentials(netloc):
|
| 816 |
+
username = password = None
|
| 817 |
+
if '@' in netloc:
|
| 818 |
+
prefix, netloc = netloc.rsplit('@', 1)
|
| 819 |
+
if ':' not in prefix:
|
| 820 |
+
username = prefix
|
| 821 |
+
else:
|
| 822 |
+
username, password = prefix.split(':', 1)
|
| 823 |
+
if username:
|
| 824 |
+
username = unquote(username)
|
| 825 |
+
if password:
|
| 826 |
+
password = unquote(password)
|
| 827 |
+
return username, password, netloc
|
| 828 |
+
|
| 829 |
+
|
| 830 |
+
def get_process_umask():
|
| 831 |
+
result = os.umask(0o22)
|
| 832 |
+
os.umask(result)
|
| 833 |
+
return result
|
| 834 |
+
|
| 835 |
+
|
| 836 |
+
def is_string_sequence(seq):
|
| 837 |
+
result = True
|
| 838 |
+
i = None
|
| 839 |
+
for i, s in enumerate(seq):
|
| 840 |
+
if not isinstance(s, string_types):
|
| 841 |
+
result = False
|
| 842 |
+
break
|
| 843 |
+
assert i is not None
|
| 844 |
+
return result
|
| 845 |
+
|
| 846 |
+
|
| 847 |
+
PROJECT_NAME_AND_VERSION = re.compile('([a-z0-9_]+([.-][a-z_][a-z0-9_]*)*)-'
|
| 848 |
+
'([a-z0-9_.+-]+)', re.I)
|
| 849 |
+
PYTHON_VERSION = re.compile(r'-py(\d\.?\d?)')
|
| 850 |
+
|
| 851 |
+
|
| 852 |
+
def split_filename(filename, project_name=None):
|
| 853 |
+
"""
|
| 854 |
+
Extract name, version, python version from a filename (no extension)
|
| 855 |
+
|
| 856 |
+
Return name, version, pyver or None
|
| 857 |
+
"""
|
| 858 |
+
result = None
|
| 859 |
+
pyver = None
|
| 860 |
+
filename = unquote(filename).replace(' ', '-')
|
| 861 |
+
m = PYTHON_VERSION.search(filename)
|
| 862 |
+
if m:
|
| 863 |
+
pyver = m.group(1)
|
| 864 |
+
filename = filename[:m.start()]
|
| 865 |
+
if project_name and len(filename) > len(project_name) + 1:
|
| 866 |
+
m = re.match(re.escape(project_name) + r'\b', filename)
|
| 867 |
+
if m:
|
| 868 |
+
n = m.end()
|
| 869 |
+
result = filename[:n], filename[n + 1:], pyver
|
| 870 |
+
if result is None:
|
| 871 |
+
m = PROJECT_NAME_AND_VERSION.match(filename)
|
| 872 |
+
if m:
|
| 873 |
+
result = m.group(1), m.group(3), pyver
|
| 874 |
+
return result
|
| 875 |
+
|
| 876 |
+
|
| 877 |
+
# Allow spaces in name because of legacy dists like "Twisted Core"
|
| 878 |
+
NAME_VERSION_RE = re.compile(r'(?P<name>[\w .-]+)\s*'
|
| 879 |
+
r'\(\s*(?P<ver>[^\s)]+)\)$')
|
| 880 |
+
|
| 881 |
+
|
| 882 |
+
def parse_name_and_version(p):
|
| 883 |
+
"""
|
| 884 |
+
A utility method used to get name and version from a string.
|
| 885 |
+
|
| 886 |
+
From e.g. a Provides-Dist value.
|
| 887 |
+
|
| 888 |
+
:param p: A value in a form 'foo (1.0)'
|
| 889 |
+
:return: The name and version as a tuple.
|
| 890 |
+
"""
|
| 891 |
+
m = NAME_VERSION_RE.match(p)
|
| 892 |
+
if not m:
|
| 893 |
+
raise DistlibException('Ill-formed name/version string: \'%s\'' % p)
|
| 894 |
+
d = m.groupdict()
|
| 895 |
+
return d['name'].strip().lower(), d['ver']
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
def get_extras(requested, available):
|
| 899 |
+
result = set()
|
| 900 |
+
requested = set(requested or [])
|
| 901 |
+
available = set(available or [])
|
| 902 |
+
if '*' in requested:
|
| 903 |
+
requested.remove('*')
|
| 904 |
+
result |= available
|
| 905 |
+
for r in requested:
|
| 906 |
+
if r == '-':
|
| 907 |
+
result.add(r)
|
| 908 |
+
elif r.startswith('-'):
|
| 909 |
+
unwanted = r[1:]
|
| 910 |
+
if unwanted not in available:
|
| 911 |
+
logger.warning('undeclared extra: %s' % unwanted)
|
| 912 |
+
if unwanted in result:
|
| 913 |
+
result.remove(unwanted)
|
| 914 |
+
else:
|
| 915 |
+
if r not in available:
|
| 916 |
+
logger.warning('undeclared extra: %s' % r)
|
| 917 |
+
result.add(r)
|
| 918 |
+
return result
|
| 919 |
+
|
| 920 |
+
|
| 921 |
+
#
|
| 922 |
+
# Extended metadata functionality
|
| 923 |
+
#
|
| 924 |
+
|
| 925 |
+
|
| 926 |
+
def _get_external_data(url):
|
| 927 |
+
result = {}
|
| 928 |
+
try:
|
| 929 |
+
# urlopen might fail if it runs into redirections,
|
| 930 |
+
# because of Python issue #13696. Fixed in locators
|
| 931 |
+
# using a custom redirect handler.
|
| 932 |
+
resp = urlopen(url)
|
| 933 |
+
headers = resp.info()
|
| 934 |
+
ct = headers.get('Content-Type')
|
| 935 |
+
if not ct.startswith('application/json'):
|
| 936 |
+
logger.debug('Unexpected response for JSON request: %s', ct)
|
| 937 |
+
else:
|
| 938 |
+
reader = codecs.getreader('utf-8')(resp)
|
| 939 |
+
# data = reader.read().decode('utf-8')
|
| 940 |
+
# result = json.loads(data)
|
| 941 |
+
result = json.load(reader)
|
| 942 |
+
except Exception as e:
|
| 943 |
+
logger.exception('Failed to get external data for %s: %s', url, e)
|
| 944 |
+
return result
|
| 945 |
+
|
| 946 |
+
|
| 947 |
+
_external_data_base_url = 'https://www.red-dove.com/pypi/projects/'
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
def get_project_data(name):
|
| 951 |
+
url = '%s/%s/project.json' % (name[0].upper(), name)
|
| 952 |
+
url = urljoin(_external_data_base_url, url)
|
| 953 |
+
result = _get_external_data(url)
|
| 954 |
+
return result
|
| 955 |
+
|
| 956 |
+
|
| 957 |
+
def get_package_data(name, version):
|
| 958 |
+
url = '%s/%s/package-%s.json' % (name[0].upper(), name, version)
|
| 959 |
+
url = urljoin(_external_data_base_url, url)
|
| 960 |
+
return _get_external_data(url)
|
| 961 |
+
|
| 962 |
+
|
| 963 |
+
class Cache(object):
|
| 964 |
+
"""
|
| 965 |
+
A class implementing a cache for resources that need to live in the file system
|
| 966 |
+
e.g. shared libraries. This class was moved from resources to here because it
|
| 967 |
+
could be used by other modules, e.g. the wheel module.
|
| 968 |
+
"""
|
| 969 |
+
|
| 970 |
+
def __init__(self, base):
|
| 971 |
+
"""
|
| 972 |
+
Initialise an instance.
|
| 973 |
+
|
| 974 |
+
:param base: The base directory where the cache should be located.
|
| 975 |
+
"""
|
| 976 |
+
# we use 'isdir' instead of 'exists', because we want to
|
| 977 |
+
# fail if there's a file with that name
|
| 978 |
+
if not os.path.isdir(base): # pragma: no cover
|
| 979 |
+
os.makedirs(base)
|
| 980 |
+
if (os.stat(base).st_mode & 0o77) != 0:
|
| 981 |
+
logger.warning('Directory \'%s\' is not private', base)
|
| 982 |
+
self.base = os.path.abspath(os.path.normpath(base))
|
| 983 |
+
|
| 984 |
+
def prefix_to_dir(self, prefix, use_abspath=True):
|
| 985 |
+
"""
|
| 986 |
+
Converts a resource prefix to a directory name in the cache.
|
| 987 |
+
"""
|
| 988 |
+
return path_to_cache_dir(prefix, use_abspath=use_abspath)
|
| 989 |
+
|
| 990 |
+
def clear(self):
|
| 991 |
+
"""
|
| 992 |
+
Clear the cache.
|
| 993 |
+
"""
|
| 994 |
+
not_removed = []
|
| 995 |
+
for fn in os.listdir(self.base):
|
| 996 |
+
fn = os.path.join(self.base, fn)
|
| 997 |
+
try:
|
| 998 |
+
if os.path.islink(fn) or os.path.isfile(fn):
|
| 999 |
+
os.remove(fn)
|
| 1000 |
+
elif os.path.isdir(fn):
|
| 1001 |
+
shutil.rmtree(fn)
|
| 1002 |
+
except Exception:
|
| 1003 |
+
not_removed.append(fn)
|
| 1004 |
+
return not_removed
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
class EventMixin(object):
|
| 1008 |
+
"""
|
| 1009 |
+
A very simple publish/subscribe system.
|
| 1010 |
+
"""
|
| 1011 |
+
|
| 1012 |
+
def __init__(self):
|
| 1013 |
+
self._subscribers = {}
|
| 1014 |
+
|
| 1015 |
+
def add(self, event, subscriber, append=True):
|
| 1016 |
+
"""
|
| 1017 |
+
Add a subscriber for an event.
|
| 1018 |
+
|
| 1019 |
+
:param event: The name of an event.
|
| 1020 |
+
:param subscriber: The subscriber to be added (and called when the
|
| 1021 |
+
event is published).
|
| 1022 |
+
:param append: Whether to append or prepend the subscriber to an
|
| 1023 |
+
existing subscriber list for the event.
|
| 1024 |
+
"""
|
| 1025 |
+
subs = self._subscribers
|
| 1026 |
+
if event not in subs:
|
| 1027 |
+
subs[event] = deque([subscriber])
|
| 1028 |
+
else:
|
| 1029 |
+
sq = subs[event]
|
| 1030 |
+
if append:
|
| 1031 |
+
sq.append(subscriber)
|
| 1032 |
+
else:
|
| 1033 |
+
sq.appendleft(subscriber)
|
| 1034 |
+
|
| 1035 |
+
def remove(self, event, subscriber):
|
| 1036 |
+
"""
|
| 1037 |
+
Remove a subscriber for an event.
|
| 1038 |
+
|
| 1039 |
+
:param event: The name of an event.
|
| 1040 |
+
:param subscriber: The subscriber to be removed.
|
| 1041 |
+
"""
|
| 1042 |
+
subs = self._subscribers
|
| 1043 |
+
if event not in subs:
|
| 1044 |
+
raise ValueError('No subscribers: %r' % event)
|
| 1045 |
+
subs[event].remove(subscriber)
|
| 1046 |
+
|
| 1047 |
+
def get_subscribers(self, event):
|
| 1048 |
+
"""
|
| 1049 |
+
Return an iterator for the subscribers for an event.
|
| 1050 |
+
:param event: The event to return subscribers for.
|
| 1051 |
+
"""
|
| 1052 |
+
return iter(self._subscribers.get(event, ()))
|
| 1053 |
+
|
| 1054 |
+
def publish(self, event, *args, **kwargs):
|
| 1055 |
+
"""
|
| 1056 |
+
Publish a event and return a list of values returned by its
|
| 1057 |
+
subscribers.
|
| 1058 |
+
|
| 1059 |
+
:param event: The event to publish.
|
| 1060 |
+
:param args: The positional arguments to pass to the event's
|
| 1061 |
+
subscribers.
|
| 1062 |
+
:param kwargs: The keyword arguments to pass to the event's
|
| 1063 |
+
subscribers.
|
| 1064 |
+
"""
|
| 1065 |
+
result = []
|
| 1066 |
+
for subscriber in self.get_subscribers(event):
|
| 1067 |
+
try:
|
| 1068 |
+
value = subscriber(event, *args, **kwargs)
|
| 1069 |
+
except Exception:
|
| 1070 |
+
logger.exception('Exception during event publication')
|
| 1071 |
+
value = None
|
| 1072 |
+
result.append(value)
|
| 1073 |
+
logger.debug('publish %s: args = %s, kwargs = %s, result = %s', event, args, kwargs, result)
|
| 1074 |
+
return result
|
| 1075 |
+
|
| 1076 |
+
|
| 1077 |
+
#
|
| 1078 |
+
# Simple sequencing
|
| 1079 |
+
#
|
| 1080 |
+
class Sequencer(object):
|
| 1081 |
+
|
| 1082 |
+
def __init__(self):
|
| 1083 |
+
self._preds = {}
|
| 1084 |
+
self._succs = {}
|
| 1085 |
+
self._nodes = set() # nodes with no preds/succs
|
| 1086 |
+
|
| 1087 |
+
def add_node(self, node):
|
| 1088 |
+
self._nodes.add(node)
|
| 1089 |
+
|
| 1090 |
+
def remove_node(self, node, edges=False):
|
| 1091 |
+
if node in self._nodes:
|
| 1092 |
+
self._nodes.remove(node)
|
| 1093 |
+
if edges:
|
| 1094 |
+
for p in set(self._preds.get(node, ())):
|
| 1095 |
+
self.remove(p, node)
|
| 1096 |
+
for s in set(self._succs.get(node, ())):
|
| 1097 |
+
self.remove(node, s)
|
| 1098 |
+
# Remove empties
|
| 1099 |
+
for k, v in list(self._preds.items()):
|
| 1100 |
+
if not v:
|
| 1101 |
+
del self._preds[k]
|
| 1102 |
+
for k, v in list(self._succs.items()):
|
| 1103 |
+
if not v:
|
| 1104 |
+
del self._succs[k]
|
| 1105 |
+
|
| 1106 |
+
def add(self, pred, succ):
|
| 1107 |
+
assert pred != succ
|
| 1108 |
+
self._preds.setdefault(succ, set()).add(pred)
|
| 1109 |
+
self._succs.setdefault(pred, set()).add(succ)
|
| 1110 |
+
|
| 1111 |
+
def remove(self, pred, succ):
|
| 1112 |
+
assert pred != succ
|
| 1113 |
+
try:
|
| 1114 |
+
preds = self._preds[succ]
|
| 1115 |
+
succs = self._succs[pred]
|
| 1116 |
+
except KeyError: # pragma: no cover
|
| 1117 |
+
raise ValueError('%r not a successor of anything' % succ)
|
| 1118 |
+
try:
|
| 1119 |
+
preds.remove(pred)
|
| 1120 |
+
succs.remove(succ)
|
| 1121 |
+
except KeyError: # pragma: no cover
|
| 1122 |
+
raise ValueError('%r not a successor of %r' % (succ, pred))
|
| 1123 |
+
|
| 1124 |
+
def is_step(self, step):
|
| 1125 |
+
return (step in self._preds or step in self._succs or step in self._nodes)
|
| 1126 |
+
|
| 1127 |
+
def get_steps(self, final):
|
| 1128 |
+
if not self.is_step(final):
|
| 1129 |
+
raise ValueError('Unknown: %r' % final)
|
| 1130 |
+
result = []
|
| 1131 |
+
todo = []
|
| 1132 |
+
seen = set()
|
| 1133 |
+
todo.append(final)
|
| 1134 |
+
while todo:
|
| 1135 |
+
step = todo.pop(0)
|
| 1136 |
+
if step in seen:
|
| 1137 |
+
# if a step was already seen,
|
| 1138 |
+
# move it to the end (so it will appear earlier
|
| 1139 |
+
# when reversed on return) ... but not for the
|
| 1140 |
+
# final step, as that would be confusing for
|
| 1141 |
+
# users
|
| 1142 |
+
if step != final:
|
| 1143 |
+
result.remove(step)
|
| 1144 |
+
result.append(step)
|
| 1145 |
+
else:
|
| 1146 |
+
seen.add(step)
|
| 1147 |
+
result.append(step)
|
| 1148 |
+
preds = self._preds.get(step, ())
|
| 1149 |
+
todo.extend(preds)
|
| 1150 |
+
return reversed(result)
|
| 1151 |
+
|
| 1152 |
+
@property
|
| 1153 |
+
def strong_connections(self):
|
| 1154 |
+
# http://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
|
| 1155 |
+
index_counter = [0]
|
| 1156 |
+
stack = []
|
| 1157 |
+
lowlinks = {}
|
| 1158 |
+
index = {}
|
| 1159 |
+
result = []
|
| 1160 |
+
|
| 1161 |
+
graph = self._succs
|
| 1162 |
+
|
| 1163 |
+
def strongconnect(node):
|
| 1164 |
+
# set the depth index for this node to the smallest unused index
|
| 1165 |
+
index[node] = index_counter[0]
|
| 1166 |
+
lowlinks[node] = index_counter[0]
|
| 1167 |
+
index_counter[0] += 1
|
| 1168 |
+
stack.append(node)
|
| 1169 |
+
|
| 1170 |
+
# Consider successors
|
| 1171 |
+
try:
|
| 1172 |
+
successors = graph[node]
|
| 1173 |
+
except Exception:
|
| 1174 |
+
successors = []
|
| 1175 |
+
for successor in successors:
|
| 1176 |
+
if successor not in lowlinks:
|
| 1177 |
+
# Successor has not yet been visited
|
| 1178 |
+
strongconnect(successor)
|
| 1179 |
+
lowlinks[node] = min(lowlinks[node], lowlinks[successor])
|
| 1180 |
+
elif successor in stack:
|
| 1181 |
+
# the successor is in the stack and hence in the current
|
| 1182 |
+
# strongly connected component (SCC)
|
| 1183 |
+
lowlinks[node] = min(lowlinks[node], index[successor])
|
| 1184 |
+
|
| 1185 |
+
# If `node` is a root node, pop the stack and generate an SCC
|
| 1186 |
+
if lowlinks[node] == index[node]:
|
| 1187 |
+
connected_component = []
|
| 1188 |
+
|
| 1189 |
+
while True:
|
| 1190 |
+
successor = stack.pop()
|
| 1191 |
+
connected_component.append(successor)
|
| 1192 |
+
if successor == node:
|
| 1193 |
+
break
|
| 1194 |
+
component = tuple(connected_component)
|
| 1195 |
+
# storing the result
|
| 1196 |
+
result.append(component)
|
| 1197 |
+
|
| 1198 |
+
for node in graph:
|
| 1199 |
+
if node not in lowlinks:
|
| 1200 |
+
strongconnect(node)
|
| 1201 |
+
|
| 1202 |
+
return result
|
| 1203 |
+
|
| 1204 |
+
@property
|
| 1205 |
+
def dot(self):
|
| 1206 |
+
result = ['digraph G {']
|
| 1207 |
+
for succ in self._preds:
|
| 1208 |
+
preds = self._preds[succ]
|
| 1209 |
+
for pred in preds:
|
| 1210 |
+
result.append(' %s -> %s;' % (pred, succ))
|
| 1211 |
+
for node in self._nodes:
|
| 1212 |
+
result.append(' %s;' % node)
|
| 1213 |
+
result.append('}')
|
| 1214 |
+
return '\n'.join(result)
|
| 1215 |
+
|
| 1216 |
+
|
| 1217 |
+
#
|
| 1218 |
+
# Unarchiving functionality for zip, tar, tgz, tbz, whl
|
| 1219 |
+
#
|
| 1220 |
+
|
| 1221 |
+
ARCHIVE_EXTENSIONS = ('.tar.gz', '.tar.bz2', '.tar', '.zip', '.tgz', '.tbz', '.whl')
|
| 1222 |
+
|
| 1223 |
+
|
| 1224 |
+
def unarchive(archive_filename, dest_dir, format=None, check=True):
|
| 1225 |
+
|
| 1226 |
+
def check_path(path):
|
| 1227 |
+
if not isinstance(path, text_type):
|
| 1228 |
+
path = path.decode('utf-8')
|
| 1229 |
+
p = os.path.abspath(os.path.join(dest_dir, path))
|
| 1230 |
+
if not p.startswith(dest_dir) or p[plen] != os.sep:
|
| 1231 |
+
raise ValueError('path outside destination: %r' % p)
|
| 1232 |
+
|
| 1233 |
+
dest_dir = os.path.abspath(dest_dir)
|
| 1234 |
+
plen = len(dest_dir)
|
| 1235 |
+
archive = None
|
| 1236 |
+
if format is None:
|
| 1237 |
+
if archive_filename.endswith(('.zip', '.whl')):
|
| 1238 |
+
format = 'zip'
|
| 1239 |
+
elif archive_filename.endswith(('.tar.gz', '.tgz')):
|
| 1240 |
+
format = 'tgz'
|
| 1241 |
+
mode = 'r:gz'
|
| 1242 |
+
elif archive_filename.endswith(('.tar.bz2', '.tbz')):
|
| 1243 |
+
format = 'tbz'
|
| 1244 |
+
mode = 'r:bz2'
|
| 1245 |
+
elif archive_filename.endswith('.tar'):
|
| 1246 |
+
format = 'tar'
|
| 1247 |
+
mode = 'r'
|
| 1248 |
+
else: # pragma: no cover
|
| 1249 |
+
raise ValueError('Unknown format for %r' % archive_filename)
|
| 1250 |
+
try:
|
| 1251 |
+
if format == 'zip':
|
| 1252 |
+
archive = ZipFile(archive_filename, 'r')
|
| 1253 |
+
if check:
|
| 1254 |
+
names = archive.namelist()
|
| 1255 |
+
for name in names:
|
| 1256 |
+
check_path(name)
|
| 1257 |
+
else:
|
| 1258 |
+
archive = tarfile.open(archive_filename, mode)
|
| 1259 |
+
if check:
|
| 1260 |
+
names = archive.getnames()
|
| 1261 |
+
for name in names:
|
| 1262 |
+
check_path(name)
|
| 1263 |
+
if format != 'zip' and sys.version_info[0] < 3:
|
| 1264 |
+
# See Python issue 17153. If the dest path contains Unicode,
|
| 1265 |
+
# tarfile extraction fails on Python 2.x if a member path name
|
| 1266 |
+
# contains non-ASCII characters - it leads to an implicit
|
| 1267 |
+
# bytes -> unicode conversion using ASCII to decode.
|
| 1268 |
+
for tarinfo in archive.getmembers():
|
| 1269 |
+
if not isinstance(tarinfo.name, text_type):
|
| 1270 |
+
tarinfo.name = tarinfo.name.decode('utf-8')
|
| 1271 |
+
|
| 1272 |
+
# Limit extraction of dangerous items, if this Python
|
| 1273 |
+
# allows it easily. If not, just trust the input.
|
| 1274 |
+
# See: https://docs.python.org/3/library/tarfile.html#extraction-filters
|
| 1275 |
+
def extraction_filter(member, path):
|
| 1276 |
+
"""Run tarfile.tar_filter, but raise the expected ValueError"""
|
| 1277 |
+
# This is only called if the current Python has tarfile filters
|
| 1278 |
+
try:
|
| 1279 |
+
return tarfile.tar_filter(member, path)
|
| 1280 |
+
except tarfile.FilterError as exc:
|
| 1281 |
+
raise ValueError(str(exc))
|
| 1282 |
+
|
| 1283 |
+
archive.extraction_filter = extraction_filter
|
| 1284 |
+
|
| 1285 |
+
archive.extractall(dest_dir)
|
| 1286 |
+
|
| 1287 |
+
finally:
|
| 1288 |
+
if archive:
|
| 1289 |
+
archive.close()
|
| 1290 |
+
|
| 1291 |
+
|
| 1292 |
+
def zip_dir(directory):
|
| 1293 |
+
"""zip a directory tree into a BytesIO object"""
|
| 1294 |
+
result = io.BytesIO()
|
| 1295 |
+
dlen = len(directory)
|
| 1296 |
+
with ZipFile(result, "w") as zf:
|
| 1297 |
+
for root, dirs, files in os.walk(directory):
|
| 1298 |
+
for name in files:
|
| 1299 |
+
full = os.path.join(root, name)
|
| 1300 |
+
rel = root[dlen:]
|
| 1301 |
+
dest = os.path.join(rel, name)
|
| 1302 |
+
zf.write(full, dest)
|
| 1303 |
+
return result
|
| 1304 |
+
|
| 1305 |
+
|
| 1306 |
+
#
|
| 1307 |
+
# Simple progress bar
|
| 1308 |
+
#
|
| 1309 |
+
|
| 1310 |
+
UNITS = ('', 'K', 'M', 'G', 'T', 'P')
|
| 1311 |
+
|
| 1312 |
+
|
| 1313 |
+
class Progress(object):
|
| 1314 |
+
unknown = 'UNKNOWN'
|
| 1315 |
+
|
| 1316 |
+
def __init__(self, minval=0, maxval=100):
|
| 1317 |
+
assert maxval is None or maxval >= minval
|
| 1318 |
+
self.min = self.cur = minval
|
| 1319 |
+
self.max = maxval
|
| 1320 |
+
self.started = None
|
| 1321 |
+
self.elapsed = 0
|
| 1322 |
+
self.done = False
|
| 1323 |
+
|
| 1324 |
+
def update(self, curval):
|
| 1325 |
+
assert self.min <= curval
|
| 1326 |
+
assert self.max is None or curval <= self.max
|
| 1327 |
+
self.cur = curval
|
| 1328 |
+
now = time.time()
|
| 1329 |
+
if self.started is None:
|
| 1330 |
+
self.started = now
|
| 1331 |
+
else:
|
| 1332 |
+
self.elapsed = now - self.started
|
| 1333 |
+
|
| 1334 |
+
def increment(self, incr):
|
| 1335 |
+
assert incr >= 0
|
| 1336 |
+
self.update(self.cur + incr)
|
| 1337 |
+
|
| 1338 |
+
def start(self):
|
| 1339 |
+
self.update(self.min)
|
| 1340 |
+
return self
|
| 1341 |
+
|
| 1342 |
+
def stop(self):
|
| 1343 |
+
if self.max is not None:
|
| 1344 |
+
self.update(self.max)
|
| 1345 |
+
self.done = True
|
| 1346 |
+
|
| 1347 |
+
@property
|
| 1348 |
+
def maximum(self):
|
| 1349 |
+
return self.unknown if self.max is None else self.max
|
| 1350 |
+
|
| 1351 |
+
@property
|
| 1352 |
+
def percentage(self):
|
| 1353 |
+
if self.done:
|
| 1354 |
+
result = '100 %'
|
| 1355 |
+
elif self.max is None:
|
| 1356 |
+
result = ' ?? %'
|
| 1357 |
+
else:
|
| 1358 |
+
v = 100.0 * (self.cur - self.min) / (self.max - self.min)
|
| 1359 |
+
result = '%3d %%' % v
|
| 1360 |
+
return result
|
| 1361 |
+
|
| 1362 |
+
def format_duration(self, duration):
|
| 1363 |
+
if (duration <= 0) and self.max is None or self.cur == self.min:
|
| 1364 |
+
result = '??:??:??'
|
| 1365 |
+
# elif duration < 1:
|
| 1366 |
+
# result = '--:--:--'
|
| 1367 |
+
else:
|
| 1368 |
+
result = time.strftime('%H:%M:%S', time.gmtime(duration))
|
| 1369 |
+
return result
|
| 1370 |
+
|
| 1371 |
+
@property
|
| 1372 |
+
def ETA(self):
|
| 1373 |
+
if self.done:
|
| 1374 |
+
prefix = 'Done'
|
| 1375 |
+
t = self.elapsed
|
| 1376 |
+
# import pdb; pdb.set_trace()
|
| 1377 |
+
else:
|
| 1378 |
+
prefix = 'ETA '
|
| 1379 |
+
if self.max is None:
|
| 1380 |
+
t = -1
|
| 1381 |
+
elif self.elapsed == 0 or (self.cur == self.min):
|
| 1382 |
+
t = 0
|
| 1383 |
+
else:
|
| 1384 |
+
# import pdb; pdb.set_trace()
|
| 1385 |
+
t = float(self.max - self.min)
|
| 1386 |
+
t /= self.cur - self.min
|
| 1387 |
+
t = (t - 1) * self.elapsed
|
| 1388 |
+
return '%s: %s' % (prefix, self.format_duration(t))
|
| 1389 |
+
|
| 1390 |
+
@property
|
| 1391 |
+
def speed(self):
|
| 1392 |
+
if self.elapsed == 0:
|
| 1393 |
+
result = 0.0
|
| 1394 |
+
else:
|
| 1395 |
+
result = (self.cur - self.min) / self.elapsed
|
| 1396 |
+
for unit in UNITS:
|
| 1397 |
+
if result < 1000:
|
| 1398 |
+
break
|
| 1399 |
+
result /= 1000.0
|
| 1400 |
+
return '%d %sB/s' % (result, unit)
|
| 1401 |
+
|
| 1402 |
+
|
| 1403 |
+
#
|
| 1404 |
+
# Glob functionality
|
| 1405 |
+
#
|
| 1406 |
+
|
| 1407 |
+
RICH_GLOB = re.compile(r'\{([^}]*)\}')
|
| 1408 |
+
_CHECK_RECURSIVE_GLOB = re.compile(r'[^/\\,{]\*\*|\*\*[^/\\,}]')
|
| 1409 |
+
_CHECK_MISMATCH_SET = re.compile(r'^[^{]*\}|\{[^}]*$')
|
| 1410 |
+
|
| 1411 |
+
|
| 1412 |
+
def iglob(path_glob):
|
| 1413 |
+
"""Extended globbing function that supports ** and {opt1,opt2,opt3}."""
|
| 1414 |
+
if _CHECK_RECURSIVE_GLOB.search(path_glob):
|
| 1415 |
+
msg = """invalid glob %r: recursive glob "**" must be used alone"""
|
| 1416 |
+
raise ValueError(msg % path_glob)
|
| 1417 |
+
if _CHECK_MISMATCH_SET.search(path_glob):
|
| 1418 |
+
msg = """invalid glob %r: mismatching set marker '{' or '}'"""
|
| 1419 |
+
raise ValueError(msg % path_glob)
|
| 1420 |
+
return _iglob(path_glob)
|
| 1421 |
+
|
| 1422 |
+
|
| 1423 |
+
def _iglob(path_glob):
|
| 1424 |
+
rich_path_glob = RICH_GLOB.split(path_glob, 1)
|
| 1425 |
+
if len(rich_path_glob) > 1:
|
| 1426 |
+
assert len(rich_path_glob) == 3, rich_path_glob
|
| 1427 |
+
prefix, set, suffix = rich_path_glob
|
| 1428 |
+
for item in set.split(','):
|
| 1429 |
+
for path in _iglob(''.join((prefix, item, suffix))):
|
| 1430 |
+
yield path
|
| 1431 |
+
else:
|
| 1432 |
+
if '**' not in path_glob:
|
| 1433 |
+
for item in std_iglob(path_glob):
|
| 1434 |
+
yield item
|
| 1435 |
+
else:
|
| 1436 |
+
prefix, radical = path_glob.split('**', 1)
|
| 1437 |
+
if prefix == '':
|
| 1438 |
+
prefix = '.'
|
| 1439 |
+
if radical == '':
|
| 1440 |
+
radical = '*'
|
| 1441 |
+
else:
|
| 1442 |
+
# we support both
|
| 1443 |
+
radical = radical.lstrip('/')
|
| 1444 |
+
radical = radical.lstrip('\\')
|
| 1445 |
+
for path, dir, files in os.walk(prefix):
|
| 1446 |
+
path = os.path.normpath(path)
|
| 1447 |
+
for fn in _iglob(os.path.join(path, radical)):
|
| 1448 |
+
yield fn
|
| 1449 |
+
|
| 1450 |
+
|
| 1451 |
+
if ssl:
|
| 1452 |
+
from .compat import (HTTPSHandler as BaseHTTPSHandler, match_hostname, CertificateError)
|
| 1453 |
+
|
| 1454 |
+
#
|
| 1455 |
+
# HTTPSConnection which verifies certificates/matches domains
|
| 1456 |
+
#
|
| 1457 |
+
|
| 1458 |
+
class HTTPSConnection(httplib.HTTPSConnection):
|
| 1459 |
+
ca_certs = None # set this to the path to the certs file (.pem)
|
| 1460 |
+
check_domain = True # only used if ca_certs is not None
|
| 1461 |
+
|
| 1462 |
+
# noinspection PyPropertyAccess
|
| 1463 |
+
def connect(self):
|
| 1464 |
+
sock = socket.create_connection((self.host, self.port), self.timeout)
|
| 1465 |
+
if getattr(self, '_tunnel_host', False):
|
| 1466 |
+
self.sock = sock
|
| 1467 |
+
self._tunnel()
|
| 1468 |
+
|
| 1469 |
+
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
| 1470 |
+
if hasattr(ssl, 'OP_NO_SSLv2'):
|
| 1471 |
+
context.options |= ssl.OP_NO_SSLv2
|
| 1472 |
+
if getattr(self, 'cert_file', None):
|
| 1473 |
+
context.load_cert_chain(self.cert_file, self.key_file)
|
| 1474 |
+
kwargs = {}
|
| 1475 |
+
if self.ca_certs:
|
| 1476 |
+
context.verify_mode = ssl.CERT_REQUIRED
|
| 1477 |
+
context.load_verify_locations(cafile=self.ca_certs)
|
| 1478 |
+
if getattr(ssl, 'HAS_SNI', False):
|
| 1479 |
+
kwargs['server_hostname'] = self.host
|
| 1480 |
+
|
| 1481 |
+
self.sock = context.wrap_socket(sock, **kwargs)
|
| 1482 |
+
if self.ca_certs and self.check_domain:
|
| 1483 |
+
try:
|
| 1484 |
+
match_hostname(self.sock.getpeercert(), self.host)
|
| 1485 |
+
logger.debug('Host verified: %s', self.host)
|
| 1486 |
+
except CertificateError: # pragma: no cover
|
| 1487 |
+
self.sock.shutdown(socket.SHUT_RDWR)
|
| 1488 |
+
self.sock.close()
|
| 1489 |
+
raise
|
| 1490 |
+
|
| 1491 |
+
class HTTPSHandler(BaseHTTPSHandler):
|
| 1492 |
+
|
| 1493 |
+
def __init__(self, ca_certs, check_domain=True):
|
| 1494 |
+
BaseHTTPSHandler.__init__(self)
|
| 1495 |
+
self.ca_certs = ca_certs
|
| 1496 |
+
self.check_domain = check_domain
|
| 1497 |
+
|
| 1498 |
+
def _conn_maker(self, *args, **kwargs):
|
| 1499 |
+
"""
|
| 1500 |
+
This is called to create a connection instance. Normally you'd
|
| 1501 |
+
pass a connection class to do_open, but it doesn't actually check for
|
| 1502 |
+
a class, and just expects a callable. As long as we behave just as a
|
| 1503 |
+
constructor would have, we should be OK. If it ever changes so that
|
| 1504 |
+
we *must* pass a class, we'll create an UnsafeHTTPSConnection class
|
| 1505 |
+
which just sets check_domain to False in the class definition, and
|
| 1506 |
+
choose which one to pass to do_open.
|
| 1507 |
+
"""
|
| 1508 |
+
result = HTTPSConnection(*args, **kwargs)
|
| 1509 |
+
if self.ca_certs:
|
| 1510 |
+
result.ca_certs = self.ca_certs
|
| 1511 |
+
result.check_domain = self.check_domain
|
| 1512 |
+
return result
|
| 1513 |
+
|
| 1514 |
+
def https_open(self, req):
|
| 1515 |
+
try:
|
| 1516 |
+
return self.do_open(self._conn_maker, req)
|
| 1517 |
+
except URLError as e:
|
| 1518 |
+
if 'certificate verify failed' in str(e.reason):
|
| 1519 |
+
raise CertificateError('Unable to verify server certificate '
|
| 1520 |
+
'for %s' % req.host)
|
| 1521 |
+
else:
|
| 1522 |
+
raise
|
| 1523 |
+
|
| 1524 |
+
#
|
| 1525 |
+
# To prevent against mixing HTTP traffic with HTTPS (examples: A Man-In-The-
|
| 1526 |
+
# Middle proxy using HTTP listens on port 443, or an index mistakenly serves
|
| 1527 |
+
# HTML containing a http://xyz link when it should be https://xyz),
|
| 1528 |
+
# you can use the following handler class, which does not allow HTTP traffic.
|
| 1529 |
+
#
|
| 1530 |
+
# It works by inheriting from HTTPHandler - so build_opener won't add a
|
| 1531 |
+
# handler for HTTP itself.
|
| 1532 |
+
#
|
| 1533 |
+
class HTTPSOnlyHandler(HTTPSHandler, HTTPHandler):
|
| 1534 |
+
|
| 1535 |
+
def http_open(self, req):
|
| 1536 |
+
raise URLError('Unexpected HTTP request on what should be a secure '
|
| 1537 |
+
'connection: %s' % req)
|
| 1538 |
+
|
| 1539 |
+
|
| 1540 |
+
#
|
| 1541 |
+
# XML-RPC with timeouts
|
| 1542 |
+
#
|
| 1543 |
+
class Transport(xmlrpclib.Transport):
|
| 1544 |
+
|
| 1545 |
+
def __init__(self, timeout, use_datetime=0):
|
| 1546 |
+
self.timeout = timeout
|
| 1547 |
+
xmlrpclib.Transport.__init__(self, use_datetime)
|
| 1548 |
+
|
| 1549 |
+
def make_connection(self, host):
|
| 1550 |
+
h, eh, x509 = self.get_host_info(host)
|
| 1551 |
+
if not self._connection or host != self._connection[0]:
|
| 1552 |
+
self._extra_headers = eh
|
| 1553 |
+
self._connection = host, httplib.HTTPConnection(h)
|
| 1554 |
+
return self._connection[1]
|
| 1555 |
+
|
| 1556 |
+
|
| 1557 |
+
if ssl:
|
| 1558 |
+
|
| 1559 |
+
class SafeTransport(xmlrpclib.SafeTransport):
|
| 1560 |
+
|
| 1561 |
+
def __init__(self, timeout, use_datetime=0):
|
| 1562 |
+
self.timeout = timeout
|
| 1563 |
+
xmlrpclib.SafeTransport.__init__(self, use_datetime)
|
| 1564 |
+
|
| 1565 |
+
def make_connection(self, host):
|
| 1566 |
+
h, eh, kwargs = self.get_host_info(host)
|
| 1567 |
+
if not kwargs:
|
| 1568 |
+
kwargs = {}
|
| 1569 |
+
kwargs['timeout'] = self.timeout
|
| 1570 |
+
if not self._connection or host != self._connection[0]:
|
| 1571 |
+
self._extra_headers = eh
|
| 1572 |
+
self._connection = host, httplib.HTTPSConnection(h, None, **kwargs)
|
| 1573 |
+
return self._connection[1]
|
| 1574 |
+
|
| 1575 |
+
|
| 1576 |
+
class ServerProxy(xmlrpclib.ServerProxy):
|
| 1577 |
+
|
| 1578 |
+
def __init__(self, uri, **kwargs):
|
| 1579 |
+
self.timeout = timeout = kwargs.pop('timeout', None)
|
| 1580 |
+
# The above classes only come into play if a timeout
|
| 1581 |
+
# is specified
|
| 1582 |
+
if timeout is not None:
|
| 1583 |
+
# scheme = splittype(uri) # deprecated as of Python 3.8
|
| 1584 |
+
scheme = urlparse(uri)[0]
|
| 1585 |
+
use_datetime = kwargs.get('use_datetime', 0)
|
| 1586 |
+
if scheme == 'https':
|
| 1587 |
+
tcls = SafeTransport
|
| 1588 |
+
else:
|
| 1589 |
+
tcls = Transport
|
| 1590 |
+
kwargs['transport'] = t = tcls(timeout, use_datetime=use_datetime)
|
| 1591 |
+
self.transport = t
|
| 1592 |
+
xmlrpclib.ServerProxy.__init__(self, uri, **kwargs)
|
| 1593 |
+
|
| 1594 |
+
|
| 1595 |
+
#
|
| 1596 |
+
# CSV functionality. This is provided because on 2.x, the csv module can't
|
| 1597 |
+
# handle Unicode. However, we need to deal with Unicode in e.g. RECORD files.
|
| 1598 |
+
#
|
| 1599 |
+
|
| 1600 |
+
|
| 1601 |
+
def _csv_open(fn, mode, **kwargs):
|
| 1602 |
+
if sys.version_info[0] < 3:
|
| 1603 |
+
mode += 'b'
|
| 1604 |
+
else:
|
| 1605 |
+
kwargs['newline'] = ''
|
| 1606 |
+
# Python 3 determines encoding from locale. Force 'utf-8'
|
| 1607 |
+
# file encoding to match other forced utf-8 encoding
|
| 1608 |
+
kwargs['encoding'] = 'utf-8'
|
| 1609 |
+
return open(fn, mode, **kwargs)
|
| 1610 |
+
|
| 1611 |
+
|
| 1612 |
+
class CSVBase(object):
|
| 1613 |
+
defaults = {
|
| 1614 |
+
'delimiter': str(','), # The strs are used because we need native
|
| 1615 |
+
'quotechar': str('"'), # str in the csv API (2.x won't take
|
| 1616 |
+
'lineterminator': str('\n') # Unicode)
|
| 1617 |
+
}
|
| 1618 |
+
|
| 1619 |
+
def __enter__(self):
|
| 1620 |
+
return self
|
| 1621 |
+
|
| 1622 |
+
def __exit__(self, *exc_info):
|
| 1623 |
+
self.stream.close()
|
| 1624 |
+
|
| 1625 |
+
|
| 1626 |
+
class CSVReader(CSVBase):
|
| 1627 |
+
|
| 1628 |
+
def __init__(self, **kwargs):
|
| 1629 |
+
if 'stream' in kwargs:
|
| 1630 |
+
stream = kwargs['stream']
|
| 1631 |
+
if sys.version_info[0] >= 3:
|
| 1632 |
+
# needs to be a text stream
|
| 1633 |
+
stream = codecs.getreader('utf-8')(stream)
|
| 1634 |
+
self.stream = stream
|
| 1635 |
+
else:
|
| 1636 |
+
self.stream = _csv_open(kwargs['path'], 'r')
|
| 1637 |
+
self.reader = csv.reader(self.stream, **self.defaults)
|
| 1638 |
+
|
| 1639 |
+
def __iter__(self):
|
| 1640 |
+
return self
|
| 1641 |
+
|
| 1642 |
+
def next(self):
|
| 1643 |
+
result = next(self.reader)
|
| 1644 |
+
if sys.version_info[0] < 3:
|
| 1645 |
+
for i, item in enumerate(result):
|
| 1646 |
+
if not isinstance(item, text_type):
|
| 1647 |
+
result[i] = item.decode('utf-8')
|
| 1648 |
+
return result
|
| 1649 |
+
|
| 1650 |
+
__next__ = next
|
| 1651 |
+
|
| 1652 |
+
|
| 1653 |
+
class CSVWriter(CSVBase):
|
| 1654 |
+
|
| 1655 |
+
def __init__(self, fn, **kwargs):
|
| 1656 |
+
self.stream = _csv_open(fn, 'w')
|
| 1657 |
+
self.writer = csv.writer(self.stream, **self.defaults)
|
| 1658 |
+
|
| 1659 |
+
def writerow(self, row):
|
| 1660 |
+
if sys.version_info[0] < 3:
|
| 1661 |
+
r = []
|
| 1662 |
+
for item in row:
|
| 1663 |
+
if isinstance(item, text_type):
|
| 1664 |
+
item = item.encode('utf-8')
|
| 1665 |
+
r.append(item)
|
| 1666 |
+
row = r
|
| 1667 |
+
self.writer.writerow(row)
|
| 1668 |
+
|
| 1669 |
+
|
| 1670 |
+
#
|
| 1671 |
+
# Configurator functionality
|
| 1672 |
+
#
|
| 1673 |
+
|
| 1674 |
+
|
| 1675 |
+
class Configurator(BaseConfigurator):
|
| 1676 |
+
|
| 1677 |
+
value_converters = dict(BaseConfigurator.value_converters)
|
| 1678 |
+
value_converters['inc'] = 'inc_convert'
|
| 1679 |
+
|
| 1680 |
+
def __init__(self, config, base=None):
|
| 1681 |
+
super(Configurator, self).__init__(config)
|
| 1682 |
+
self.base = base or os.getcwd()
|
| 1683 |
+
|
| 1684 |
+
def configure_custom(self, config):
|
| 1685 |
+
|
| 1686 |
+
def convert(o):
|
| 1687 |
+
if isinstance(o, (list, tuple)):
|
| 1688 |
+
result = type(o)([convert(i) for i in o])
|
| 1689 |
+
elif isinstance(o, dict):
|
| 1690 |
+
if '()' in o:
|
| 1691 |
+
result = self.configure_custom(o)
|
| 1692 |
+
else:
|
| 1693 |
+
result = {}
|
| 1694 |
+
for k in o:
|
| 1695 |
+
result[k] = convert(o[k])
|
| 1696 |
+
else:
|
| 1697 |
+
result = self.convert(o)
|
| 1698 |
+
return result
|
| 1699 |
+
|
| 1700 |
+
c = config.pop('()')
|
| 1701 |
+
if not callable(c):
|
| 1702 |
+
c = self.resolve(c)
|
| 1703 |
+
props = config.pop('.', None)
|
| 1704 |
+
# Check for valid identifiers
|
| 1705 |
+
args = config.pop('[]', ())
|
| 1706 |
+
if args:
|
| 1707 |
+
args = tuple([convert(o) for o in args])
|
| 1708 |
+
items = [(k, convert(config[k])) for k in config if valid_ident(k)]
|
| 1709 |
+
kwargs = dict(items)
|
| 1710 |
+
result = c(*args, **kwargs)
|
| 1711 |
+
if props:
|
| 1712 |
+
for n, v in props.items():
|
| 1713 |
+
setattr(result, n, convert(v))
|
| 1714 |
+
return result
|
| 1715 |
+
|
| 1716 |
+
def __getitem__(self, key):
|
| 1717 |
+
result = self.config[key]
|
| 1718 |
+
if isinstance(result, dict) and '()' in result:
|
| 1719 |
+
self.config[key] = result = self.configure_custom(result)
|
| 1720 |
+
return result
|
| 1721 |
+
|
| 1722 |
+
def inc_convert(self, value):
|
| 1723 |
+
"""Default converter for the inc:// protocol."""
|
| 1724 |
+
if not os.path.isabs(value):
|
| 1725 |
+
value = os.path.join(self.base, value)
|
| 1726 |
+
with codecs.open(value, 'r', encoding='utf-8') as f:
|
| 1727 |
+
result = json.load(f)
|
| 1728 |
+
return result
|
| 1729 |
+
|
| 1730 |
+
|
| 1731 |
+
class SubprocessMixin(object):
|
| 1732 |
+
"""
|
| 1733 |
+
Mixin for running subprocesses and capturing their output
|
| 1734 |
+
"""
|
| 1735 |
+
|
| 1736 |
+
def __init__(self, verbose=False, progress=None):
|
| 1737 |
+
self.verbose = verbose
|
| 1738 |
+
self.progress = progress
|
| 1739 |
+
|
| 1740 |
+
def reader(self, stream, context):
|
| 1741 |
+
"""
|
| 1742 |
+
Read lines from a subprocess' output stream and either pass to a progress
|
| 1743 |
+
callable (if specified) or write progress information to sys.stderr.
|
| 1744 |
+
"""
|
| 1745 |
+
progress = self.progress
|
| 1746 |
+
verbose = self.verbose
|
| 1747 |
+
while True:
|
| 1748 |
+
s = stream.readline()
|
| 1749 |
+
if not s:
|
| 1750 |
+
break
|
| 1751 |
+
if progress is not None:
|
| 1752 |
+
progress(s, context)
|
| 1753 |
+
else:
|
| 1754 |
+
if not verbose:
|
| 1755 |
+
sys.stderr.write('.')
|
| 1756 |
+
else:
|
| 1757 |
+
sys.stderr.write(s.decode('utf-8'))
|
| 1758 |
+
sys.stderr.flush()
|
| 1759 |
+
stream.close()
|
| 1760 |
+
|
| 1761 |
+
def run_command(self, cmd, **kwargs):
|
| 1762 |
+
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
|
| 1763 |
+
t1 = threading.Thread(target=self.reader, args=(p.stdout, 'stdout'))
|
| 1764 |
+
t1.start()
|
| 1765 |
+
t2 = threading.Thread(target=self.reader, args=(p.stderr, 'stderr'))
|
| 1766 |
+
t2.start()
|
| 1767 |
+
p.wait()
|
| 1768 |
+
t1.join()
|
| 1769 |
+
t2.join()
|
| 1770 |
+
if self.progress is not None:
|
| 1771 |
+
self.progress('done.', 'main')
|
| 1772 |
+
elif self.verbose:
|
| 1773 |
+
sys.stderr.write('done.\n')
|
| 1774 |
+
return p
|
| 1775 |
+
|
| 1776 |
+
|
| 1777 |
+
def normalize_name(name):
|
| 1778 |
+
"""Normalize a python package name a la PEP 503"""
|
| 1779 |
+
# https://www.python.org/dev/peps/pep-0503/#normalized-names
|
| 1780 |
+
return re.sub('[-_.]+', '-', name).lower()
|
| 1781 |
+
|
| 1782 |
+
|
| 1783 |
+
# def _get_pypirc_command():
|
| 1784 |
+
# """
|
| 1785 |
+
# Get the distutils command for interacting with PyPI configurations.
|
| 1786 |
+
# :return: the command.
|
| 1787 |
+
# """
|
| 1788 |
+
# from distutils.core import Distribution
|
| 1789 |
+
# from distutils.config import PyPIRCCommand
|
| 1790 |
+
# d = Distribution()
|
| 1791 |
+
# return PyPIRCCommand(d)
|
| 1792 |
+
|
| 1793 |
+
|
| 1794 |
+
class PyPIRCFile(object):
|
| 1795 |
+
|
| 1796 |
+
DEFAULT_REPOSITORY = 'https://upload.pypi.org/legacy/'
|
| 1797 |
+
DEFAULT_REALM = 'pypi'
|
| 1798 |
+
|
| 1799 |
+
def __init__(self, fn=None, url=None):
|
| 1800 |
+
if fn is None:
|
| 1801 |
+
fn = os.path.join(os.path.expanduser('~'), '.pypirc')
|
| 1802 |
+
self.filename = fn
|
| 1803 |
+
self.url = url
|
| 1804 |
+
|
| 1805 |
+
def read(self):
|
| 1806 |
+
result = {}
|
| 1807 |
+
|
| 1808 |
+
if os.path.exists(self.filename):
|
| 1809 |
+
repository = self.url or self.DEFAULT_REPOSITORY
|
| 1810 |
+
|
| 1811 |
+
config = configparser.RawConfigParser()
|
| 1812 |
+
config.read(self.filename)
|
| 1813 |
+
sections = config.sections()
|
| 1814 |
+
if 'distutils' in sections:
|
| 1815 |
+
# let's get the list of servers
|
| 1816 |
+
index_servers = config.get('distutils', 'index-servers')
|
| 1817 |
+
_servers = [server.strip() for server in index_servers.split('\n') if server.strip() != '']
|
| 1818 |
+
if _servers == []:
|
| 1819 |
+
# nothing set, let's try to get the default pypi
|
| 1820 |
+
if 'pypi' in sections:
|
| 1821 |
+
_servers = ['pypi']
|
| 1822 |
+
else:
|
| 1823 |
+
for server in _servers:
|
| 1824 |
+
result = {'server': server}
|
| 1825 |
+
result['username'] = config.get(server, 'username')
|
| 1826 |
+
|
| 1827 |
+
# optional params
|
| 1828 |
+
for key, default in (('repository', self.DEFAULT_REPOSITORY), ('realm', self.DEFAULT_REALM),
|
| 1829 |
+
('password', None)):
|
| 1830 |
+
if config.has_option(server, key):
|
| 1831 |
+
result[key] = config.get(server, key)
|
| 1832 |
+
else:
|
| 1833 |
+
result[key] = default
|
| 1834 |
+
|
| 1835 |
+
# work around people having "repository" for the "pypi"
|
| 1836 |
+
# section of their config set to the HTTP (rather than
|
| 1837 |
+
# HTTPS) URL
|
| 1838 |
+
if (server == 'pypi' and repository in (self.DEFAULT_REPOSITORY, 'pypi')):
|
| 1839 |
+
result['repository'] = self.DEFAULT_REPOSITORY
|
| 1840 |
+
elif (result['server'] != repository and result['repository'] != repository):
|
| 1841 |
+
result = {}
|
| 1842 |
+
elif 'server-login' in sections:
|
| 1843 |
+
# old format
|
| 1844 |
+
server = 'server-login'
|
| 1845 |
+
if config.has_option(server, 'repository'):
|
| 1846 |
+
repository = config.get(server, 'repository')
|
| 1847 |
+
else:
|
| 1848 |
+
repository = self.DEFAULT_REPOSITORY
|
| 1849 |
+
result = {
|
| 1850 |
+
'username': config.get(server, 'username'),
|
| 1851 |
+
'password': config.get(server, 'password'),
|
| 1852 |
+
'repository': repository,
|
| 1853 |
+
'server': server,
|
| 1854 |
+
'realm': self.DEFAULT_REALM
|
| 1855 |
+
}
|
| 1856 |
+
return result
|
| 1857 |
+
|
| 1858 |
+
def update(self, username, password):
|
| 1859 |
+
# import pdb; pdb.set_trace()
|
| 1860 |
+
config = configparser.RawConfigParser()
|
| 1861 |
+
fn = self.filename
|
| 1862 |
+
config.read(fn)
|
| 1863 |
+
if not config.has_section('pypi'):
|
| 1864 |
+
config.add_section('pypi')
|
| 1865 |
+
config.set('pypi', 'username', username)
|
| 1866 |
+
config.set('pypi', 'password', password)
|
| 1867 |
+
with open(fn, 'w') as f:
|
| 1868 |
+
config.write(f)
|
| 1869 |
+
|
| 1870 |
+
|
| 1871 |
+
def _load_pypirc(index):
|
| 1872 |
+
"""
|
| 1873 |
+
Read the PyPI access configuration as supported by distutils.
|
| 1874 |
+
"""
|
| 1875 |
+
return PyPIRCFile(url=index.url).read()
|
| 1876 |
+
|
| 1877 |
+
|
| 1878 |
+
def _store_pypirc(index):
|
| 1879 |
+
PyPIRCFile().update(index.username, index.password)
|
| 1880 |
+
|
| 1881 |
+
|
| 1882 |
+
#
|
| 1883 |
+
# get_platform()/get_host_platform() copied from Python 3.10.a0 source, with some minor
|
| 1884 |
+
# tweaks
|
| 1885 |
+
#
|
| 1886 |
+
|
| 1887 |
+
|
| 1888 |
+
def get_host_platform():
|
| 1889 |
+
"""Return a string that identifies the current platform. This is used mainly to
|
| 1890 |
+
distinguish platform-specific build directories and platform-specific built
|
| 1891 |
+
distributions. Typically includes the OS name and version and the
|
| 1892 |
+
architecture (as supplied by 'os.uname()'), although the exact information
|
| 1893 |
+
included depends on the OS; eg. on Linux, the kernel version isn't
|
| 1894 |
+
particularly important.
|
| 1895 |
+
|
| 1896 |
+
Examples of returned values:
|
| 1897 |
+
linux-i586
|
| 1898 |
+
linux-alpha (?)
|
| 1899 |
+
solaris-2.6-sun4u
|
| 1900 |
+
|
| 1901 |
+
Windows will return one of:
|
| 1902 |
+
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
|
| 1903 |
+
win32 (all others - specifically, sys.platform is returned)
|
| 1904 |
+
|
| 1905 |
+
For other non-POSIX platforms, currently just returns 'sys.platform'.
|
| 1906 |
+
|
| 1907 |
+
"""
|
| 1908 |
+
if os.name == 'nt':
|
| 1909 |
+
if 'amd64' in sys.version.lower():
|
| 1910 |
+
return 'win-amd64'
|
| 1911 |
+
if '(arm)' in sys.version.lower():
|
| 1912 |
+
return 'win-arm32'
|
| 1913 |
+
if '(arm64)' in sys.version.lower():
|
| 1914 |
+
return 'win-arm64'
|
| 1915 |
+
return sys.platform
|
| 1916 |
+
|
| 1917 |
+
# Set for cross builds explicitly
|
| 1918 |
+
if "_PYTHON_HOST_PLATFORM" in os.environ:
|
| 1919 |
+
return os.environ["_PYTHON_HOST_PLATFORM"]
|
| 1920 |
+
|
| 1921 |
+
if os.name != 'posix' or not hasattr(os, 'uname'):
|
| 1922 |
+
# XXX what about the architecture? NT is Intel or Alpha,
|
| 1923 |
+
# Mac OS is M68k or PPC, etc.
|
| 1924 |
+
return sys.platform
|
| 1925 |
+
|
| 1926 |
+
# Try to distinguish various flavours of Unix
|
| 1927 |
+
|
| 1928 |
+
(osname, host, release, version, machine) = os.uname()
|
| 1929 |
+
|
| 1930 |
+
# Convert the OS name to lowercase, remove '/' characters, and translate
|
| 1931 |
+
# spaces (for "Power Macintosh")
|
| 1932 |
+
osname = osname.lower().replace('/', '')
|
| 1933 |
+
machine = machine.replace(' ', '_').replace('/', '-')
|
| 1934 |
+
|
| 1935 |
+
if osname[:5] == 'linux':
|
| 1936 |
+
# At least on Linux/Intel, 'machine' is the processor --
|
| 1937 |
+
# i386, etc.
|
| 1938 |
+
# XXX what about Alpha, SPARC, etc?
|
| 1939 |
+
return "%s-%s" % (osname, machine)
|
| 1940 |
+
|
| 1941 |
+
elif osname[:5] == 'sunos':
|
| 1942 |
+
if release[0] >= '5': # SunOS 5 == Solaris 2
|
| 1943 |
+
osname = 'solaris'
|
| 1944 |
+
release = '%d.%s' % (int(release[0]) - 3, release[2:])
|
| 1945 |
+
# We can't use 'platform.architecture()[0]' because a
|
| 1946 |
+
# bootstrap problem. We use a dict to get an error
|
| 1947 |
+
# if some suspicious happens.
|
| 1948 |
+
bitness = {2147483647: '32bit', 9223372036854775807: '64bit'}
|
| 1949 |
+
machine += '.%s' % bitness[sys.maxsize]
|
| 1950 |
+
# fall through to standard osname-release-machine representation
|
| 1951 |
+
elif osname[:3] == 'aix':
|
| 1952 |
+
from _aix_support import aix_platform
|
| 1953 |
+
return aix_platform()
|
| 1954 |
+
elif osname[:6] == 'cygwin':
|
| 1955 |
+
osname = 'cygwin'
|
| 1956 |
+
rel_re = re.compile(r'[\d.]+', re.ASCII)
|
| 1957 |
+
m = rel_re.match(release)
|
| 1958 |
+
if m:
|
| 1959 |
+
release = m.group()
|
| 1960 |
+
elif osname[:6] == 'darwin':
|
| 1961 |
+
import _osx_support
|
| 1962 |
+
try:
|
| 1963 |
+
from distutils import sysconfig
|
| 1964 |
+
except ImportError:
|
| 1965 |
+
import sysconfig
|
| 1966 |
+
osname, release, machine = _osx_support.get_platform_osx(sysconfig.get_config_vars(), osname, release, machine)
|
| 1967 |
+
|
| 1968 |
+
return '%s-%s-%s' % (osname, release, machine)
|
| 1969 |
+
|
| 1970 |
+
|
| 1971 |
+
_TARGET_TO_PLAT = {
|
| 1972 |
+
'x86': 'win32',
|
| 1973 |
+
'x64': 'win-amd64',
|
| 1974 |
+
'arm': 'win-arm32',
|
| 1975 |
+
}
|
| 1976 |
+
|
| 1977 |
+
|
| 1978 |
+
def get_platform():
|
| 1979 |
+
if os.name != 'nt':
|
| 1980 |
+
return get_host_platform()
|
| 1981 |
+
cross_compilation_target = os.environ.get('VSCMD_ARG_TGT_ARCH')
|
| 1982 |
+
if cross_compilation_target not in _TARGET_TO_PLAT:
|
| 1983 |
+
return get_host_platform()
|
| 1984 |
+
return _TARGET_TO_PLAT[cross_compilation_target]
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64-arm.exe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5dc9884a8f458371550e09bd396e5418bf375820a31b9899f6499bf391c7b2e
|
| 3 |
+
size 168448
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/w64.exe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a319ffaba23a017d7b1e18ba726ba6c54c53d6446db55f92af53c279894f8ad
|
| 3 |
+
size 101888
|
moondream/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py
ADDED
|
@@ -0,0 +1,1100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
#
|
| 3 |
+
# Copyright (C) 2013-2023 Vinay Sajip.
|
| 4 |
+
# Licensed to the Python Software Foundation under a contributor agreement.
|
| 5 |
+
# See LICENSE.txt and CONTRIBUTORS.txt.
|
| 6 |
+
#
|
| 7 |
+
from __future__ import unicode_literals
|
| 8 |
+
|
| 9 |
+
import base64
|
| 10 |
+
import codecs
|
| 11 |
+
import datetime
|
| 12 |
+
from email import message_from_file
|
| 13 |
+
import hashlib
|
| 14 |
+
import json
|
| 15 |
+
import logging
|
| 16 |
+
import os
|
| 17 |
+
import posixpath
|
| 18 |
+
import re
|
| 19 |
+
import shutil
|
| 20 |
+
import sys
|
| 21 |
+
import tempfile
|
| 22 |
+
import zipfile
|
| 23 |
+
|
| 24 |
+
from . import __version__, DistlibException
|
| 25 |
+
from .compat import sysconfig, ZipFile, fsdecode, text_type, filter
|
| 26 |
+
from .database import InstalledDistribution
|
| 27 |
+
from .metadata import Metadata, WHEEL_METADATA_FILENAME, LEGACY_METADATA_FILENAME
|
| 28 |
+
from .util import (FileOperator, convert_path, CSVReader, CSVWriter, Cache, cached_property, get_cache_base,
|
| 29 |
+
read_exports, tempdir, get_platform)
|
| 30 |
+
from .version import NormalizedVersion, UnsupportedVersionError
|
| 31 |
+
|
| 32 |
+
logger = logging.getLogger(__name__)
|
| 33 |
+
|
| 34 |
+
cache = None # created when needed
|
| 35 |
+
|
| 36 |
+
if hasattr(sys, 'pypy_version_info'): # pragma: no cover
|
| 37 |
+
IMP_PREFIX = 'pp'
|
| 38 |
+
elif sys.platform.startswith('java'): # pragma: no cover
|
| 39 |
+
IMP_PREFIX = 'jy'
|
| 40 |
+
elif sys.platform == 'cli': # pragma: no cover
|
| 41 |
+
IMP_PREFIX = 'ip'
|
| 42 |
+
else:
|
| 43 |
+
IMP_PREFIX = 'cp'
|
| 44 |
+
|
| 45 |
+
VER_SUFFIX = sysconfig.get_config_var('py_version_nodot')
|
| 46 |
+
if not VER_SUFFIX: # pragma: no cover
|
| 47 |
+
VER_SUFFIX = '%s%s' % sys.version_info[:2]
|
| 48 |
+
PYVER = 'py' + VER_SUFFIX
|
| 49 |
+
IMPVER = IMP_PREFIX + VER_SUFFIX
|
| 50 |
+
|
| 51 |
+
ARCH = get_platform().replace('-', '_').replace('.', '_')
|
| 52 |
+
|
| 53 |
+
ABI = sysconfig.get_config_var('SOABI')
|
| 54 |
+
if ABI and ABI.startswith('cpython-'):
|
| 55 |
+
ABI = ABI.replace('cpython-', 'cp').split('-')[0]
|
| 56 |
+
else:
|
| 57 |
+
|
| 58 |
+
def _derive_abi():
|
| 59 |
+
parts = ['cp', VER_SUFFIX]
|
| 60 |
+
if sysconfig.get_config_var('Py_DEBUG'):
|
| 61 |
+
parts.append('d')
|
| 62 |
+
if IMP_PREFIX == 'cp':
|
| 63 |
+
vi = sys.version_info[:2]
|
| 64 |
+
if vi < (3, 8):
|
| 65 |
+
wpm = sysconfig.get_config_var('WITH_PYMALLOC')
|
| 66 |
+
if wpm is None:
|
| 67 |
+
wpm = True
|
| 68 |
+
if wpm:
|
| 69 |
+
parts.append('m')
|
| 70 |
+
if vi < (3, 3):
|
| 71 |
+
us = sysconfig.get_config_var('Py_UNICODE_SIZE')
|
| 72 |
+
if us == 4 or (us is None and sys.maxunicode == 0x10FFFF):
|
| 73 |
+
parts.append('u')
|
| 74 |
+
return ''.join(parts)
|
| 75 |
+
|
| 76 |
+
ABI = _derive_abi()
|
| 77 |
+
del _derive_abi
|
| 78 |
+
|
| 79 |
+
FILENAME_RE = re.compile(
|
| 80 |
+
r'''
|
| 81 |
+
(?P<nm>[^-]+)
|
| 82 |
+
-(?P<vn>\d+[^-]*)
|
| 83 |
+
(-(?P<bn>\d+[^-]*))?
|
| 84 |
+
-(?P<py>\w+\d+(\.\w+\d+)*)
|
| 85 |
+
-(?P<bi>\w+)
|
| 86 |
+
-(?P<ar>\w+(\.\w+)*)
|
| 87 |
+
\.whl$
|
| 88 |
+
''', re.IGNORECASE | re.VERBOSE)
|
| 89 |
+
|
| 90 |
+
NAME_VERSION_RE = re.compile(r'''
|
| 91 |
+
(?P<nm>[^-]+)
|
| 92 |
+
-(?P<vn>\d+[^-]*)
|
| 93 |
+
(-(?P<bn>\d+[^-]*))?$
|
| 94 |
+
''', re.IGNORECASE | re.VERBOSE)
|
| 95 |
+
|
| 96 |
+
SHEBANG_RE = re.compile(br'\s*#![^\r\n]*')
|
| 97 |
+
SHEBANG_DETAIL_RE = re.compile(br'^(\s*#!("[^"]+"|\S+))\s+(.*)$')
|
| 98 |
+
SHEBANG_PYTHON = b'#!python'
|
| 99 |
+
SHEBANG_PYTHONW = b'#!pythonw'
|
| 100 |
+
|
| 101 |
+
if os.sep == '/':
|
| 102 |
+
to_posix = lambda o: o
|
| 103 |
+
else:
|
| 104 |
+
to_posix = lambda o: o.replace(os.sep, '/')
|
| 105 |
+
|
| 106 |
+
if sys.version_info[0] < 3:
|
| 107 |
+
import imp
|
| 108 |
+
else:
|
| 109 |
+
imp = None
|
| 110 |
+
import importlib.machinery
|
| 111 |
+
import importlib.util
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def _get_suffixes():
|
| 115 |
+
if imp:
|
| 116 |
+
return [s[0] for s in imp.get_suffixes()]
|
| 117 |
+
else:
|
| 118 |
+
return importlib.machinery.EXTENSION_SUFFIXES
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def _load_dynamic(name, path):
|
| 122 |
+
# https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly
|
| 123 |
+
if imp:
|
| 124 |
+
return imp.load_dynamic(name, path)
|
| 125 |
+
else:
|
| 126 |
+
spec = importlib.util.spec_from_file_location(name, path)
|
| 127 |
+
module = importlib.util.module_from_spec(spec)
|
| 128 |
+
sys.modules[name] = module
|
| 129 |
+
spec.loader.exec_module(module)
|
| 130 |
+
return module
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
class Mounter(object):
|
| 134 |
+
|
| 135 |
+
def __init__(self):
|
| 136 |
+
self.impure_wheels = {}
|
| 137 |
+
self.libs = {}
|
| 138 |
+
|
| 139 |
+
def add(self, pathname, extensions):
|
| 140 |
+
self.impure_wheels[pathname] = extensions
|
| 141 |
+
self.libs.update(extensions)
|
| 142 |
+
|
| 143 |
+
def remove(self, pathname):
|
| 144 |
+
extensions = self.impure_wheels.pop(pathname)
|
| 145 |
+
for k, v in extensions:
|
| 146 |
+
if k in self.libs:
|
| 147 |
+
del self.libs[k]
|
| 148 |
+
|
| 149 |
+
def find_module(self, fullname, path=None):
|
| 150 |
+
if fullname in self.libs:
|
| 151 |
+
result = self
|
| 152 |
+
else:
|
| 153 |
+
result = None
|
| 154 |
+
return result
|
| 155 |
+
|
| 156 |
+
def load_module(self, fullname):
|
| 157 |
+
if fullname in sys.modules:
|
| 158 |
+
result = sys.modules[fullname]
|
| 159 |
+
else:
|
| 160 |
+
if fullname not in self.libs:
|
| 161 |
+
raise ImportError('unable to find extension for %s' % fullname)
|
| 162 |
+
result = _load_dynamic(fullname, self.libs[fullname])
|
| 163 |
+
result.__loader__ = self
|
| 164 |
+
parts = fullname.rsplit('.', 1)
|
| 165 |
+
if len(parts) > 1:
|
| 166 |
+
result.__package__ = parts[0]
|
| 167 |
+
return result
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
_hook = Mounter()
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
class Wheel(object):
|
| 174 |
+
"""
|
| 175 |
+
Class to build and install from Wheel files (PEP 427).
|
| 176 |
+
"""
|
| 177 |
+
|
| 178 |
+
wheel_version = (1, 1)
|
| 179 |
+
hash_kind = 'sha256'
|
| 180 |
+
|
| 181 |
+
def __init__(self, filename=None, sign=False, verify=False):
|
| 182 |
+
"""
|
| 183 |
+
Initialise an instance using a (valid) filename.
|
| 184 |
+
"""
|
| 185 |
+
self.sign = sign
|
| 186 |
+
self.should_verify = verify
|
| 187 |
+
self.buildver = ''
|
| 188 |
+
self.pyver = [PYVER]
|
| 189 |
+
self.abi = ['none']
|
| 190 |
+
self.arch = ['any']
|
| 191 |
+
self.dirname = os.getcwd()
|
| 192 |
+
if filename is None:
|
| 193 |
+
self.name = 'dummy'
|
| 194 |
+
self.version = '0.1'
|
| 195 |
+
self._filename = self.filename
|
| 196 |
+
else:
|
| 197 |
+
m = NAME_VERSION_RE.match(filename)
|
| 198 |
+
if m:
|
| 199 |
+
info = m.groupdict('')
|
| 200 |
+
self.name = info['nm']
|
| 201 |
+
# Reinstate the local version separator
|
| 202 |
+
self.version = info['vn'].replace('_', '-')
|
| 203 |
+
self.buildver = info['bn']
|
| 204 |
+
self._filename = self.filename
|
| 205 |
+
else:
|
| 206 |
+
dirname, filename = os.path.split(filename)
|
| 207 |
+
m = FILENAME_RE.match(filename)
|
| 208 |
+
if not m:
|
| 209 |
+
raise DistlibException('Invalid name or '
|
| 210 |
+
'filename: %r' % filename)
|
| 211 |
+
if dirname:
|
| 212 |
+
self.dirname = os.path.abspath(dirname)
|
| 213 |
+
self._filename = filename
|
| 214 |
+
info = m.groupdict('')
|
| 215 |
+
self.name = info['nm']
|
| 216 |
+
self.version = info['vn']
|
| 217 |
+
self.buildver = info['bn']
|
| 218 |
+
self.pyver = info['py'].split('.')
|
| 219 |
+
self.abi = info['bi'].split('.')
|
| 220 |
+
self.arch = info['ar'].split('.')
|
| 221 |
+
|
| 222 |
+
@property
|
| 223 |
+
def filename(self):
|
| 224 |
+
"""
|
| 225 |
+
Build and return a filename from the various components.
|
| 226 |
+
"""
|
| 227 |
+
if self.buildver:
|
| 228 |
+
buildver = '-' + self.buildver
|
| 229 |
+
else:
|
| 230 |
+
buildver = ''
|
| 231 |
+
pyver = '.'.join(self.pyver)
|
| 232 |
+
abi = '.'.join(self.abi)
|
| 233 |
+
arch = '.'.join(self.arch)
|
| 234 |
+
# replace - with _ as a local version separator
|
| 235 |
+
version = self.version.replace('-', '_')
|
| 236 |
+
return '%s-%s%s-%s-%s-%s.whl' % (self.name, version, buildver, pyver, abi, arch)
|
| 237 |
+
|
| 238 |
+
@property
|
| 239 |
+
def exists(self):
|
| 240 |
+
path = os.path.join(self.dirname, self.filename)
|
| 241 |
+
return os.path.isfile(path)
|
| 242 |
+
|
| 243 |
+
@property
|
| 244 |
+
def tags(self):
|
| 245 |
+
for pyver in self.pyver:
|
| 246 |
+
for abi in self.abi:
|
| 247 |
+
for arch in self.arch:
|
| 248 |
+
yield pyver, abi, arch
|
| 249 |
+
|
| 250 |
+
@cached_property
|
| 251 |
+
def metadata(self):
|
| 252 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 253 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 254 |
+
info_dir = '%s.dist-info' % name_ver
|
| 255 |
+
wrapper = codecs.getreader('utf-8')
|
| 256 |
+
with ZipFile(pathname, 'r') as zf:
|
| 257 |
+
self.get_wheel_metadata(zf)
|
| 258 |
+
# wv = wheel_metadata['Wheel-Version'].split('.', 1)
|
| 259 |
+
# file_version = tuple([int(i) for i in wv])
|
| 260 |
+
# if file_version < (1, 1):
|
| 261 |
+
# fns = [WHEEL_METADATA_FILENAME, METADATA_FILENAME,
|
| 262 |
+
# LEGACY_METADATA_FILENAME]
|
| 263 |
+
# else:
|
| 264 |
+
# fns = [WHEEL_METADATA_FILENAME, METADATA_FILENAME]
|
| 265 |
+
fns = [WHEEL_METADATA_FILENAME, LEGACY_METADATA_FILENAME]
|
| 266 |
+
result = None
|
| 267 |
+
for fn in fns:
|
| 268 |
+
try:
|
| 269 |
+
metadata_filename = posixpath.join(info_dir, fn)
|
| 270 |
+
with zf.open(metadata_filename) as bf:
|
| 271 |
+
wf = wrapper(bf)
|
| 272 |
+
result = Metadata(fileobj=wf)
|
| 273 |
+
if result:
|
| 274 |
+
break
|
| 275 |
+
except KeyError:
|
| 276 |
+
pass
|
| 277 |
+
if not result:
|
| 278 |
+
raise ValueError('Invalid wheel, because metadata is '
|
| 279 |
+
'missing: looked in %s' % ', '.join(fns))
|
| 280 |
+
return result
|
| 281 |
+
|
| 282 |
+
def get_wheel_metadata(self, zf):
|
| 283 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 284 |
+
info_dir = '%s.dist-info' % name_ver
|
| 285 |
+
metadata_filename = posixpath.join(info_dir, 'WHEEL')
|
| 286 |
+
with zf.open(metadata_filename) as bf:
|
| 287 |
+
wf = codecs.getreader('utf-8')(bf)
|
| 288 |
+
message = message_from_file(wf)
|
| 289 |
+
return dict(message)
|
| 290 |
+
|
| 291 |
+
@cached_property
|
| 292 |
+
def info(self):
|
| 293 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 294 |
+
with ZipFile(pathname, 'r') as zf:
|
| 295 |
+
result = self.get_wheel_metadata(zf)
|
| 296 |
+
return result
|
| 297 |
+
|
| 298 |
+
def process_shebang(self, data):
|
| 299 |
+
m = SHEBANG_RE.match(data)
|
| 300 |
+
if m:
|
| 301 |
+
end = m.end()
|
| 302 |
+
shebang, data_after_shebang = data[:end], data[end:]
|
| 303 |
+
# Preserve any arguments after the interpreter
|
| 304 |
+
if b'pythonw' in shebang.lower():
|
| 305 |
+
shebang_python = SHEBANG_PYTHONW
|
| 306 |
+
else:
|
| 307 |
+
shebang_python = SHEBANG_PYTHON
|
| 308 |
+
m = SHEBANG_DETAIL_RE.match(shebang)
|
| 309 |
+
if m:
|
| 310 |
+
args = b' ' + m.groups()[-1]
|
| 311 |
+
else:
|
| 312 |
+
args = b''
|
| 313 |
+
shebang = shebang_python + args
|
| 314 |
+
data = shebang + data_after_shebang
|
| 315 |
+
else:
|
| 316 |
+
cr = data.find(b'\r')
|
| 317 |
+
lf = data.find(b'\n')
|
| 318 |
+
if cr < 0 or cr > lf:
|
| 319 |
+
term = b'\n'
|
| 320 |
+
else:
|
| 321 |
+
if data[cr:cr + 2] == b'\r\n':
|
| 322 |
+
term = b'\r\n'
|
| 323 |
+
else:
|
| 324 |
+
term = b'\r'
|
| 325 |
+
data = SHEBANG_PYTHON + term + data
|
| 326 |
+
return data
|
| 327 |
+
|
| 328 |
+
def get_hash(self, data, hash_kind=None):
|
| 329 |
+
if hash_kind is None:
|
| 330 |
+
hash_kind = self.hash_kind
|
| 331 |
+
try:
|
| 332 |
+
hasher = getattr(hashlib, hash_kind)
|
| 333 |
+
except AttributeError:
|
| 334 |
+
raise DistlibException('Unsupported hash algorithm: %r' % hash_kind)
|
| 335 |
+
result = hasher(data).digest()
|
| 336 |
+
result = base64.urlsafe_b64encode(result).rstrip(b'=').decode('ascii')
|
| 337 |
+
return hash_kind, result
|
| 338 |
+
|
| 339 |
+
def write_record(self, records, record_path, archive_record_path):
|
| 340 |
+
records = list(records) # make a copy, as mutated
|
| 341 |
+
records.append((archive_record_path, '', ''))
|
| 342 |
+
with CSVWriter(record_path) as writer:
|
| 343 |
+
for row in records:
|
| 344 |
+
writer.writerow(row)
|
| 345 |
+
|
| 346 |
+
def write_records(self, info, libdir, archive_paths):
|
| 347 |
+
records = []
|
| 348 |
+
distinfo, info_dir = info
|
| 349 |
+
# hasher = getattr(hashlib, self.hash_kind)
|
| 350 |
+
for ap, p in archive_paths:
|
| 351 |
+
with open(p, 'rb') as f:
|
| 352 |
+
data = f.read()
|
| 353 |
+
digest = '%s=%s' % self.get_hash(data)
|
| 354 |
+
size = os.path.getsize(p)
|
| 355 |
+
records.append((ap, digest, size))
|
| 356 |
+
|
| 357 |
+
p = os.path.join(distinfo, 'RECORD')
|
| 358 |
+
ap = to_posix(os.path.join(info_dir, 'RECORD'))
|
| 359 |
+
self.write_record(records, p, ap)
|
| 360 |
+
archive_paths.append((ap, p))
|
| 361 |
+
|
| 362 |
+
def build_zip(self, pathname, archive_paths):
|
| 363 |
+
with ZipFile(pathname, 'w', zipfile.ZIP_DEFLATED) as zf:
|
| 364 |
+
for ap, p in archive_paths:
|
| 365 |
+
logger.debug('Wrote %s to %s in wheel', p, ap)
|
| 366 |
+
zf.write(p, ap)
|
| 367 |
+
|
| 368 |
+
def build(self, paths, tags=None, wheel_version=None):
|
| 369 |
+
"""
|
| 370 |
+
Build a wheel from files in specified paths, and use any specified tags
|
| 371 |
+
when determining the name of the wheel.
|
| 372 |
+
"""
|
| 373 |
+
if tags is None:
|
| 374 |
+
tags = {}
|
| 375 |
+
|
| 376 |
+
libkey = list(filter(lambda o: o in paths, ('purelib', 'platlib')))[0]
|
| 377 |
+
if libkey == 'platlib':
|
| 378 |
+
is_pure = 'false'
|
| 379 |
+
default_pyver = [IMPVER]
|
| 380 |
+
default_abi = [ABI]
|
| 381 |
+
default_arch = [ARCH]
|
| 382 |
+
else:
|
| 383 |
+
is_pure = 'true'
|
| 384 |
+
default_pyver = [PYVER]
|
| 385 |
+
default_abi = ['none']
|
| 386 |
+
default_arch = ['any']
|
| 387 |
+
|
| 388 |
+
self.pyver = tags.get('pyver', default_pyver)
|
| 389 |
+
self.abi = tags.get('abi', default_abi)
|
| 390 |
+
self.arch = tags.get('arch', default_arch)
|
| 391 |
+
|
| 392 |
+
libdir = paths[libkey]
|
| 393 |
+
|
| 394 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 395 |
+
data_dir = '%s.data' % name_ver
|
| 396 |
+
info_dir = '%s.dist-info' % name_ver
|
| 397 |
+
|
| 398 |
+
archive_paths = []
|
| 399 |
+
|
| 400 |
+
# First, stuff which is not in site-packages
|
| 401 |
+
for key in ('data', 'headers', 'scripts'):
|
| 402 |
+
if key not in paths:
|
| 403 |
+
continue
|
| 404 |
+
path = paths[key]
|
| 405 |
+
if os.path.isdir(path):
|
| 406 |
+
for root, dirs, files in os.walk(path):
|
| 407 |
+
for fn in files:
|
| 408 |
+
p = fsdecode(os.path.join(root, fn))
|
| 409 |
+
rp = os.path.relpath(p, path)
|
| 410 |
+
ap = to_posix(os.path.join(data_dir, key, rp))
|
| 411 |
+
archive_paths.append((ap, p))
|
| 412 |
+
if key == 'scripts' and not p.endswith('.exe'):
|
| 413 |
+
with open(p, 'rb') as f:
|
| 414 |
+
data = f.read()
|
| 415 |
+
data = self.process_shebang(data)
|
| 416 |
+
with open(p, 'wb') as f:
|
| 417 |
+
f.write(data)
|
| 418 |
+
|
| 419 |
+
# Now, stuff which is in site-packages, other than the
|
| 420 |
+
# distinfo stuff.
|
| 421 |
+
path = libdir
|
| 422 |
+
distinfo = None
|
| 423 |
+
for root, dirs, files in os.walk(path):
|
| 424 |
+
if root == path:
|
| 425 |
+
# At the top level only, save distinfo for later
|
| 426 |
+
# and skip it for now
|
| 427 |
+
for i, dn in enumerate(dirs):
|
| 428 |
+
dn = fsdecode(dn)
|
| 429 |
+
if dn.endswith('.dist-info'):
|
| 430 |
+
distinfo = os.path.join(root, dn)
|
| 431 |
+
del dirs[i]
|
| 432 |
+
break
|
| 433 |
+
assert distinfo, '.dist-info directory expected, not found'
|
| 434 |
+
|
| 435 |
+
for fn in files:
|
| 436 |
+
# comment out next suite to leave .pyc files in
|
| 437 |
+
if fsdecode(fn).endswith(('.pyc', '.pyo')):
|
| 438 |
+
continue
|
| 439 |
+
p = os.path.join(root, fn)
|
| 440 |
+
rp = to_posix(os.path.relpath(p, path))
|
| 441 |
+
archive_paths.append((rp, p))
|
| 442 |
+
|
| 443 |
+
# Now distinfo. Assumed to be flat, i.e. os.listdir is enough.
|
| 444 |
+
files = os.listdir(distinfo)
|
| 445 |
+
for fn in files:
|
| 446 |
+
if fn not in ('RECORD', 'INSTALLER', 'SHARED', 'WHEEL'):
|
| 447 |
+
p = fsdecode(os.path.join(distinfo, fn))
|
| 448 |
+
ap = to_posix(os.path.join(info_dir, fn))
|
| 449 |
+
archive_paths.append((ap, p))
|
| 450 |
+
|
| 451 |
+
wheel_metadata = [
|
| 452 |
+
'Wheel-Version: %d.%d' % (wheel_version or self.wheel_version),
|
| 453 |
+
'Generator: distlib %s' % __version__,
|
| 454 |
+
'Root-Is-Purelib: %s' % is_pure,
|
| 455 |
+
]
|
| 456 |
+
for pyver, abi, arch in self.tags:
|
| 457 |
+
wheel_metadata.append('Tag: %s-%s-%s' % (pyver, abi, arch))
|
| 458 |
+
p = os.path.join(distinfo, 'WHEEL')
|
| 459 |
+
with open(p, 'w') as f:
|
| 460 |
+
f.write('\n'.join(wheel_metadata))
|
| 461 |
+
ap = to_posix(os.path.join(info_dir, 'WHEEL'))
|
| 462 |
+
archive_paths.append((ap, p))
|
| 463 |
+
|
| 464 |
+
# sort the entries by archive path. Not needed by any spec, but it
|
| 465 |
+
# keeps the archive listing and RECORD tidier than they would otherwise
|
| 466 |
+
# be. Use the number of path segments to keep directory entries together,
|
| 467 |
+
# and keep the dist-info stuff at the end.
|
| 468 |
+
def sorter(t):
|
| 469 |
+
ap = t[0]
|
| 470 |
+
n = ap.count('/')
|
| 471 |
+
if '.dist-info' in ap:
|
| 472 |
+
n += 10000
|
| 473 |
+
return (n, ap)
|
| 474 |
+
|
| 475 |
+
archive_paths = sorted(archive_paths, key=sorter)
|
| 476 |
+
|
| 477 |
+
# Now, at last, RECORD.
|
| 478 |
+
# Paths in here are archive paths - nothing else makes sense.
|
| 479 |
+
self.write_records((distinfo, info_dir), libdir, archive_paths)
|
| 480 |
+
# Now, ready to build the zip file
|
| 481 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 482 |
+
self.build_zip(pathname, archive_paths)
|
| 483 |
+
return pathname
|
| 484 |
+
|
| 485 |
+
def skip_entry(self, arcname):
|
| 486 |
+
"""
|
| 487 |
+
Determine whether an archive entry should be skipped when verifying
|
| 488 |
+
or installing.
|
| 489 |
+
"""
|
| 490 |
+
# The signature file won't be in RECORD,
|
| 491 |
+
# and we don't currently don't do anything with it
|
| 492 |
+
# We also skip directories, as they won't be in RECORD
|
| 493 |
+
# either. See:
|
| 494 |
+
#
|
| 495 |
+
# https://github.com/pypa/wheel/issues/294
|
| 496 |
+
# https://github.com/pypa/wheel/issues/287
|
| 497 |
+
# https://github.com/pypa/wheel/pull/289
|
| 498 |
+
#
|
| 499 |
+
return arcname.endswith(('/', '/RECORD.jws'))
|
| 500 |
+
|
| 501 |
+
def install(self, paths, maker, **kwargs):
|
| 502 |
+
"""
|
| 503 |
+
Install a wheel to the specified paths. If kwarg ``warner`` is
|
| 504 |
+
specified, it should be a callable, which will be called with two
|
| 505 |
+
tuples indicating the wheel version of this software and the wheel
|
| 506 |
+
version in the file, if there is a discrepancy in the versions.
|
| 507 |
+
This can be used to issue any warnings to raise any exceptions.
|
| 508 |
+
If kwarg ``lib_only`` is True, only the purelib/platlib files are
|
| 509 |
+
installed, and the headers, scripts, data and dist-info metadata are
|
| 510 |
+
not written. If kwarg ``bytecode_hashed_invalidation`` is True, written
|
| 511 |
+
bytecode will try to use file-hash based invalidation (PEP-552) on
|
| 512 |
+
supported interpreter versions (CPython 3.7+).
|
| 513 |
+
|
| 514 |
+
The return value is a :class:`InstalledDistribution` instance unless
|
| 515 |
+
``options.lib_only`` is True, in which case the return value is ``None``.
|
| 516 |
+
"""
|
| 517 |
+
|
| 518 |
+
dry_run = maker.dry_run
|
| 519 |
+
warner = kwargs.get('warner')
|
| 520 |
+
lib_only = kwargs.get('lib_only', False)
|
| 521 |
+
bc_hashed_invalidation = kwargs.get('bytecode_hashed_invalidation', False)
|
| 522 |
+
|
| 523 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 524 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 525 |
+
data_dir = '%s.data' % name_ver
|
| 526 |
+
info_dir = '%s.dist-info' % name_ver
|
| 527 |
+
|
| 528 |
+
metadata_name = posixpath.join(info_dir, LEGACY_METADATA_FILENAME)
|
| 529 |
+
wheel_metadata_name = posixpath.join(info_dir, 'WHEEL')
|
| 530 |
+
record_name = posixpath.join(info_dir, 'RECORD')
|
| 531 |
+
|
| 532 |
+
wrapper = codecs.getreader('utf-8')
|
| 533 |
+
|
| 534 |
+
with ZipFile(pathname, 'r') as zf:
|
| 535 |
+
with zf.open(wheel_metadata_name) as bwf:
|
| 536 |
+
wf = wrapper(bwf)
|
| 537 |
+
message = message_from_file(wf)
|
| 538 |
+
wv = message['Wheel-Version'].split('.', 1)
|
| 539 |
+
file_version = tuple([int(i) for i in wv])
|
| 540 |
+
if (file_version != self.wheel_version) and warner:
|
| 541 |
+
warner(self.wheel_version, file_version)
|
| 542 |
+
|
| 543 |
+
if message['Root-Is-Purelib'] == 'true':
|
| 544 |
+
libdir = paths['purelib']
|
| 545 |
+
else:
|
| 546 |
+
libdir = paths['platlib']
|
| 547 |
+
|
| 548 |
+
records = {}
|
| 549 |
+
with zf.open(record_name) as bf:
|
| 550 |
+
with CSVReader(stream=bf) as reader:
|
| 551 |
+
for row in reader:
|
| 552 |
+
p = row[0]
|
| 553 |
+
records[p] = row
|
| 554 |
+
|
| 555 |
+
data_pfx = posixpath.join(data_dir, '')
|
| 556 |
+
info_pfx = posixpath.join(info_dir, '')
|
| 557 |
+
script_pfx = posixpath.join(data_dir, 'scripts', '')
|
| 558 |
+
|
| 559 |
+
# make a new instance rather than a copy of maker's,
|
| 560 |
+
# as we mutate it
|
| 561 |
+
fileop = FileOperator(dry_run=dry_run)
|
| 562 |
+
fileop.record = True # so we can rollback if needed
|
| 563 |
+
|
| 564 |
+
bc = not sys.dont_write_bytecode # Double negatives. Lovely!
|
| 565 |
+
|
| 566 |
+
outfiles = [] # for RECORD writing
|
| 567 |
+
|
| 568 |
+
# for script copying/shebang processing
|
| 569 |
+
workdir = tempfile.mkdtemp()
|
| 570 |
+
# set target dir later
|
| 571 |
+
# we default add_launchers to False, as the
|
| 572 |
+
# Python Launcher should be used instead
|
| 573 |
+
maker.source_dir = workdir
|
| 574 |
+
maker.target_dir = None
|
| 575 |
+
try:
|
| 576 |
+
for zinfo in zf.infolist():
|
| 577 |
+
arcname = zinfo.filename
|
| 578 |
+
if isinstance(arcname, text_type):
|
| 579 |
+
u_arcname = arcname
|
| 580 |
+
else:
|
| 581 |
+
u_arcname = arcname.decode('utf-8')
|
| 582 |
+
if self.skip_entry(u_arcname):
|
| 583 |
+
continue
|
| 584 |
+
row = records[u_arcname]
|
| 585 |
+
if row[2] and str(zinfo.file_size) != row[2]:
|
| 586 |
+
raise DistlibException('size mismatch for '
|
| 587 |
+
'%s' % u_arcname)
|
| 588 |
+
if row[1]:
|
| 589 |
+
kind, value = row[1].split('=', 1)
|
| 590 |
+
with zf.open(arcname) as bf:
|
| 591 |
+
data = bf.read()
|
| 592 |
+
_, digest = self.get_hash(data, kind)
|
| 593 |
+
if digest != value:
|
| 594 |
+
raise DistlibException('digest mismatch for '
|
| 595 |
+
'%s' % arcname)
|
| 596 |
+
|
| 597 |
+
if lib_only and u_arcname.startswith((info_pfx, data_pfx)):
|
| 598 |
+
logger.debug('lib_only: skipping %s', u_arcname)
|
| 599 |
+
continue
|
| 600 |
+
is_script = (u_arcname.startswith(script_pfx) and not u_arcname.endswith('.exe'))
|
| 601 |
+
|
| 602 |
+
if u_arcname.startswith(data_pfx):
|
| 603 |
+
_, where, rp = u_arcname.split('/', 2)
|
| 604 |
+
outfile = os.path.join(paths[where], convert_path(rp))
|
| 605 |
+
else:
|
| 606 |
+
# meant for site-packages.
|
| 607 |
+
if u_arcname in (wheel_metadata_name, record_name):
|
| 608 |
+
continue
|
| 609 |
+
outfile = os.path.join(libdir, convert_path(u_arcname))
|
| 610 |
+
if not is_script:
|
| 611 |
+
with zf.open(arcname) as bf:
|
| 612 |
+
fileop.copy_stream(bf, outfile)
|
| 613 |
+
# Issue #147: permission bits aren't preserved. Using
|
| 614 |
+
# zf.extract(zinfo, libdir) should have worked, but didn't,
|
| 615 |
+
# see https://www.thetopsites.net/article/53834422.shtml
|
| 616 |
+
# So ... manually preserve permission bits as given in zinfo
|
| 617 |
+
if os.name == 'posix':
|
| 618 |
+
# just set the normal permission bits
|
| 619 |
+
os.chmod(outfile, (zinfo.external_attr >> 16) & 0x1FF)
|
| 620 |
+
outfiles.append(outfile)
|
| 621 |
+
# Double check the digest of the written file
|
| 622 |
+
if not dry_run and row[1]:
|
| 623 |
+
with open(outfile, 'rb') as bf:
|
| 624 |
+
data = bf.read()
|
| 625 |
+
_, newdigest = self.get_hash(data, kind)
|
| 626 |
+
if newdigest != digest:
|
| 627 |
+
raise DistlibException('digest mismatch '
|
| 628 |
+
'on write for '
|
| 629 |
+
'%s' % outfile)
|
| 630 |
+
if bc and outfile.endswith('.py'):
|
| 631 |
+
try:
|
| 632 |
+
pyc = fileop.byte_compile(outfile, hashed_invalidation=bc_hashed_invalidation)
|
| 633 |
+
outfiles.append(pyc)
|
| 634 |
+
except Exception:
|
| 635 |
+
# Don't give up if byte-compilation fails,
|
| 636 |
+
# but log it and perhaps warn the user
|
| 637 |
+
logger.warning('Byte-compilation failed', exc_info=True)
|
| 638 |
+
else:
|
| 639 |
+
fn = os.path.basename(convert_path(arcname))
|
| 640 |
+
workname = os.path.join(workdir, fn)
|
| 641 |
+
with zf.open(arcname) as bf:
|
| 642 |
+
fileop.copy_stream(bf, workname)
|
| 643 |
+
|
| 644 |
+
dn, fn = os.path.split(outfile)
|
| 645 |
+
maker.target_dir = dn
|
| 646 |
+
filenames = maker.make(fn)
|
| 647 |
+
fileop.set_executable_mode(filenames)
|
| 648 |
+
outfiles.extend(filenames)
|
| 649 |
+
|
| 650 |
+
if lib_only:
|
| 651 |
+
logger.debug('lib_only: returning None')
|
| 652 |
+
dist = None
|
| 653 |
+
else:
|
| 654 |
+
# Generate scripts
|
| 655 |
+
|
| 656 |
+
# Try to get pydist.json so we can see if there are
|
| 657 |
+
# any commands to generate. If this fails (e.g. because
|
| 658 |
+
# of a legacy wheel), log a warning but don't give up.
|
| 659 |
+
commands = None
|
| 660 |
+
file_version = self.info['Wheel-Version']
|
| 661 |
+
if file_version == '1.0':
|
| 662 |
+
# Use legacy info
|
| 663 |
+
ep = posixpath.join(info_dir, 'entry_points.txt')
|
| 664 |
+
try:
|
| 665 |
+
with zf.open(ep) as bwf:
|
| 666 |
+
epdata = read_exports(bwf)
|
| 667 |
+
commands = {}
|
| 668 |
+
for key in ('console', 'gui'):
|
| 669 |
+
k = '%s_scripts' % key
|
| 670 |
+
if k in epdata:
|
| 671 |
+
commands['wrap_%s' % key] = d = {}
|
| 672 |
+
for v in epdata[k].values():
|
| 673 |
+
s = '%s:%s' % (v.prefix, v.suffix)
|
| 674 |
+
if v.flags:
|
| 675 |
+
s += ' [%s]' % ','.join(v.flags)
|
| 676 |
+
d[v.name] = s
|
| 677 |
+
except Exception:
|
| 678 |
+
logger.warning('Unable to read legacy script '
|
| 679 |
+
'metadata, so cannot generate '
|
| 680 |
+
'scripts')
|
| 681 |
+
else:
|
| 682 |
+
try:
|
| 683 |
+
with zf.open(metadata_name) as bwf:
|
| 684 |
+
wf = wrapper(bwf)
|
| 685 |
+
commands = json.load(wf).get('extensions')
|
| 686 |
+
if commands:
|
| 687 |
+
commands = commands.get('python.commands')
|
| 688 |
+
except Exception:
|
| 689 |
+
logger.warning('Unable to read JSON metadata, so '
|
| 690 |
+
'cannot generate scripts')
|
| 691 |
+
if commands:
|
| 692 |
+
console_scripts = commands.get('wrap_console', {})
|
| 693 |
+
gui_scripts = commands.get('wrap_gui', {})
|
| 694 |
+
if console_scripts or gui_scripts:
|
| 695 |
+
script_dir = paths.get('scripts', '')
|
| 696 |
+
if not os.path.isdir(script_dir):
|
| 697 |
+
raise ValueError('Valid script path not '
|
| 698 |
+
'specified')
|
| 699 |
+
maker.target_dir = script_dir
|
| 700 |
+
for k, v in console_scripts.items():
|
| 701 |
+
script = '%s = %s' % (k, v)
|
| 702 |
+
filenames = maker.make(script)
|
| 703 |
+
fileop.set_executable_mode(filenames)
|
| 704 |
+
|
| 705 |
+
if gui_scripts:
|
| 706 |
+
options = {'gui': True}
|
| 707 |
+
for k, v in gui_scripts.items():
|
| 708 |
+
script = '%s = %s' % (k, v)
|
| 709 |
+
filenames = maker.make(script, options)
|
| 710 |
+
fileop.set_executable_mode(filenames)
|
| 711 |
+
|
| 712 |
+
p = os.path.join(libdir, info_dir)
|
| 713 |
+
dist = InstalledDistribution(p)
|
| 714 |
+
|
| 715 |
+
# Write SHARED
|
| 716 |
+
paths = dict(paths) # don't change passed in dict
|
| 717 |
+
del paths['purelib']
|
| 718 |
+
del paths['platlib']
|
| 719 |
+
paths['lib'] = libdir
|
| 720 |
+
p = dist.write_shared_locations(paths, dry_run)
|
| 721 |
+
if p:
|
| 722 |
+
outfiles.append(p)
|
| 723 |
+
|
| 724 |
+
# Write RECORD
|
| 725 |
+
dist.write_installed_files(outfiles, paths['prefix'], dry_run)
|
| 726 |
+
return dist
|
| 727 |
+
except Exception: # pragma: no cover
|
| 728 |
+
logger.exception('installation failed.')
|
| 729 |
+
fileop.rollback()
|
| 730 |
+
raise
|
| 731 |
+
finally:
|
| 732 |
+
shutil.rmtree(workdir)
|
| 733 |
+
|
| 734 |
+
def _get_dylib_cache(self):
|
| 735 |
+
global cache
|
| 736 |
+
if cache is None:
|
| 737 |
+
# Use native string to avoid issues on 2.x: see Python #20140.
|
| 738 |
+
base = os.path.join(get_cache_base(), str('dylib-cache'), '%s.%s' % sys.version_info[:2])
|
| 739 |
+
cache = Cache(base)
|
| 740 |
+
return cache
|
| 741 |
+
|
| 742 |
+
def _get_extensions(self):
|
| 743 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 744 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 745 |
+
info_dir = '%s.dist-info' % name_ver
|
| 746 |
+
arcname = posixpath.join(info_dir, 'EXTENSIONS')
|
| 747 |
+
wrapper = codecs.getreader('utf-8')
|
| 748 |
+
result = []
|
| 749 |
+
with ZipFile(pathname, 'r') as zf:
|
| 750 |
+
try:
|
| 751 |
+
with zf.open(arcname) as bf:
|
| 752 |
+
wf = wrapper(bf)
|
| 753 |
+
extensions = json.load(wf)
|
| 754 |
+
cache = self._get_dylib_cache()
|
| 755 |
+
prefix = cache.prefix_to_dir(self.filename, use_abspath=False)
|
| 756 |
+
cache_base = os.path.join(cache.base, prefix)
|
| 757 |
+
if not os.path.isdir(cache_base):
|
| 758 |
+
os.makedirs(cache_base)
|
| 759 |
+
for name, relpath in extensions.items():
|
| 760 |
+
dest = os.path.join(cache_base, convert_path(relpath))
|
| 761 |
+
if not os.path.exists(dest):
|
| 762 |
+
extract = True
|
| 763 |
+
else:
|
| 764 |
+
file_time = os.stat(dest).st_mtime
|
| 765 |
+
file_time = datetime.datetime.fromtimestamp(file_time)
|
| 766 |
+
info = zf.getinfo(relpath)
|
| 767 |
+
wheel_time = datetime.datetime(*info.date_time)
|
| 768 |
+
extract = wheel_time > file_time
|
| 769 |
+
if extract:
|
| 770 |
+
zf.extract(relpath, cache_base)
|
| 771 |
+
result.append((name, dest))
|
| 772 |
+
except KeyError:
|
| 773 |
+
pass
|
| 774 |
+
return result
|
| 775 |
+
|
| 776 |
+
def is_compatible(self):
|
| 777 |
+
"""
|
| 778 |
+
Determine if a wheel is compatible with the running system.
|
| 779 |
+
"""
|
| 780 |
+
return is_compatible(self)
|
| 781 |
+
|
| 782 |
+
def is_mountable(self):
|
| 783 |
+
"""
|
| 784 |
+
Determine if a wheel is asserted as mountable by its metadata.
|
| 785 |
+
"""
|
| 786 |
+
return True # for now - metadata details TBD
|
| 787 |
+
|
| 788 |
+
def mount(self, append=False):
|
| 789 |
+
pathname = os.path.abspath(os.path.join(self.dirname, self.filename))
|
| 790 |
+
if not self.is_compatible():
|
| 791 |
+
msg = 'Wheel %s not compatible with this Python.' % pathname
|
| 792 |
+
raise DistlibException(msg)
|
| 793 |
+
if not self.is_mountable():
|
| 794 |
+
msg = 'Wheel %s is marked as not mountable.' % pathname
|
| 795 |
+
raise DistlibException(msg)
|
| 796 |
+
if pathname in sys.path:
|
| 797 |
+
logger.debug('%s already in path', pathname)
|
| 798 |
+
else:
|
| 799 |
+
if append:
|
| 800 |
+
sys.path.append(pathname)
|
| 801 |
+
else:
|
| 802 |
+
sys.path.insert(0, pathname)
|
| 803 |
+
extensions = self._get_extensions()
|
| 804 |
+
if extensions:
|
| 805 |
+
if _hook not in sys.meta_path:
|
| 806 |
+
sys.meta_path.append(_hook)
|
| 807 |
+
_hook.add(pathname, extensions)
|
| 808 |
+
|
| 809 |
+
def unmount(self):
|
| 810 |
+
pathname = os.path.abspath(os.path.join(self.dirname, self.filename))
|
| 811 |
+
if pathname not in sys.path:
|
| 812 |
+
logger.debug('%s not in path', pathname)
|
| 813 |
+
else:
|
| 814 |
+
sys.path.remove(pathname)
|
| 815 |
+
if pathname in _hook.impure_wheels:
|
| 816 |
+
_hook.remove(pathname)
|
| 817 |
+
if not _hook.impure_wheels:
|
| 818 |
+
if _hook in sys.meta_path:
|
| 819 |
+
sys.meta_path.remove(_hook)
|
| 820 |
+
|
| 821 |
+
def verify(self):
|
| 822 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 823 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 824 |
+
# data_dir = '%s.data' % name_ver
|
| 825 |
+
info_dir = '%s.dist-info' % name_ver
|
| 826 |
+
|
| 827 |
+
# metadata_name = posixpath.join(info_dir, LEGACY_METADATA_FILENAME)
|
| 828 |
+
wheel_metadata_name = posixpath.join(info_dir, 'WHEEL')
|
| 829 |
+
record_name = posixpath.join(info_dir, 'RECORD')
|
| 830 |
+
|
| 831 |
+
wrapper = codecs.getreader('utf-8')
|
| 832 |
+
|
| 833 |
+
with ZipFile(pathname, 'r') as zf:
|
| 834 |
+
with zf.open(wheel_metadata_name) as bwf:
|
| 835 |
+
wf = wrapper(bwf)
|
| 836 |
+
message_from_file(wf)
|
| 837 |
+
# wv = message['Wheel-Version'].split('.', 1)
|
| 838 |
+
# file_version = tuple([int(i) for i in wv])
|
| 839 |
+
# TODO version verification
|
| 840 |
+
|
| 841 |
+
records = {}
|
| 842 |
+
with zf.open(record_name) as bf:
|
| 843 |
+
with CSVReader(stream=bf) as reader:
|
| 844 |
+
for row in reader:
|
| 845 |
+
p = row[0]
|
| 846 |
+
records[p] = row
|
| 847 |
+
|
| 848 |
+
for zinfo in zf.infolist():
|
| 849 |
+
arcname = zinfo.filename
|
| 850 |
+
if isinstance(arcname, text_type):
|
| 851 |
+
u_arcname = arcname
|
| 852 |
+
else:
|
| 853 |
+
u_arcname = arcname.decode('utf-8')
|
| 854 |
+
# See issue #115: some wheels have .. in their entries, but
|
| 855 |
+
# in the filename ... e.g. __main__..py ! So the check is
|
| 856 |
+
# updated to look for .. in the directory portions
|
| 857 |
+
p = u_arcname.split('/')
|
| 858 |
+
if '..' in p:
|
| 859 |
+
raise DistlibException('invalid entry in '
|
| 860 |
+
'wheel: %r' % u_arcname)
|
| 861 |
+
|
| 862 |
+
if self.skip_entry(u_arcname):
|
| 863 |
+
continue
|
| 864 |
+
row = records[u_arcname]
|
| 865 |
+
if row[2] and str(zinfo.file_size) != row[2]:
|
| 866 |
+
raise DistlibException('size mismatch for '
|
| 867 |
+
'%s' % u_arcname)
|
| 868 |
+
if row[1]:
|
| 869 |
+
kind, value = row[1].split('=', 1)
|
| 870 |
+
with zf.open(arcname) as bf:
|
| 871 |
+
data = bf.read()
|
| 872 |
+
_, digest = self.get_hash(data, kind)
|
| 873 |
+
if digest != value:
|
| 874 |
+
raise DistlibException('digest mismatch for '
|
| 875 |
+
'%s' % arcname)
|
| 876 |
+
|
| 877 |
+
def update(self, modifier, dest_dir=None, **kwargs):
|
| 878 |
+
"""
|
| 879 |
+
Update the contents of a wheel in a generic way. The modifier should
|
| 880 |
+
be a callable which expects a dictionary argument: its keys are
|
| 881 |
+
archive-entry paths, and its values are absolute filesystem paths
|
| 882 |
+
where the contents the corresponding archive entries can be found. The
|
| 883 |
+
modifier is free to change the contents of the files pointed to, add
|
| 884 |
+
new entries and remove entries, before returning. This method will
|
| 885 |
+
extract the entire contents of the wheel to a temporary location, call
|
| 886 |
+
the modifier, and then use the passed (and possibly updated)
|
| 887 |
+
dictionary to write a new wheel. If ``dest_dir`` is specified, the new
|
| 888 |
+
wheel is written there -- otherwise, the original wheel is overwritten.
|
| 889 |
+
|
| 890 |
+
The modifier should return True if it updated the wheel, else False.
|
| 891 |
+
This method returns the same value the modifier returns.
|
| 892 |
+
"""
|
| 893 |
+
|
| 894 |
+
def get_version(path_map, info_dir):
|
| 895 |
+
version = path = None
|
| 896 |
+
key = '%s/%s' % (info_dir, LEGACY_METADATA_FILENAME)
|
| 897 |
+
if key not in path_map:
|
| 898 |
+
key = '%s/PKG-INFO' % info_dir
|
| 899 |
+
if key in path_map:
|
| 900 |
+
path = path_map[key]
|
| 901 |
+
version = Metadata(path=path).version
|
| 902 |
+
return version, path
|
| 903 |
+
|
| 904 |
+
def update_version(version, path):
|
| 905 |
+
updated = None
|
| 906 |
+
try:
|
| 907 |
+
NormalizedVersion(version)
|
| 908 |
+
i = version.find('-')
|
| 909 |
+
if i < 0:
|
| 910 |
+
updated = '%s+1' % version
|
| 911 |
+
else:
|
| 912 |
+
parts = [int(s) for s in version[i + 1:].split('.')]
|
| 913 |
+
parts[-1] += 1
|
| 914 |
+
updated = '%s+%s' % (version[:i], '.'.join(str(i) for i in parts))
|
| 915 |
+
except UnsupportedVersionError:
|
| 916 |
+
logger.debug('Cannot update non-compliant (PEP-440) '
|
| 917 |
+
'version %r', version)
|
| 918 |
+
if updated:
|
| 919 |
+
md = Metadata(path=path)
|
| 920 |
+
md.version = updated
|
| 921 |
+
legacy = path.endswith(LEGACY_METADATA_FILENAME)
|
| 922 |
+
md.write(path=path, legacy=legacy)
|
| 923 |
+
logger.debug('Version updated from %r to %r', version, updated)
|
| 924 |
+
|
| 925 |
+
pathname = os.path.join(self.dirname, self.filename)
|
| 926 |
+
name_ver = '%s-%s' % (self.name, self.version)
|
| 927 |
+
info_dir = '%s.dist-info' % name_ver
|
| 928 |
+
record_name = posixpath.join(info_dir, 'RECORD')
|
| 929 |
+
with tempdir() as workdir:
|
| 930 |
+
with ZipFile(pathname, 'r') as zf:
|
| 931 |
+
path_map = {}
|
| 932 |
+
for zinfo in zf.infolist():
|
| 933 |
+
arcname = zinfo.filename
|
| 934 |
+
if isinstance(arcname, text_type):
|
| 935 |
+
u_arcname = arcname
|
| 936 |
+
else:
|
| 937 |
+
u_arcname = arcname.decode('utf-8')
|
| 938 |
+
if u_arcname == record_name:
|
| 939 |
+
continue
|
| 940 |
+
if '..' in u_arcname:
|
| 941 |
+
raise DistlibException('invalid entry in '
|
| 942 |
+
'wheel: %r' % u_arcname)
|
| 943 |
+
zf.extract(zinfo, workdir)
|
| 944 |
+
path = os.path.join(workdir, convert_path(u_arcname))
|
| 945 |
+
path_map[u_arcname] = path
|
| 946 |
+
|
| 947 |
+
# Remember the version.
|
| 948 |
+
original_version, _ = get_version(path_map, info_dir)
|
| 949 |
+
# Files extracted. Call the modifier.
|
| 950 |
+
modified = modifier(path_map, **kwargs)
|
| 951 |
+
if modified:
|
| 952 |
+
# Something changed - need to build a new wheel.
|
| 953 |
+
current_version, path = get_version(path_map, info_dir)
|
| 954 |
+
if current_version and (current_version == original_version):
|
| 955 |
+
# Add or update local version to signify changes.
|
| 956 |
+
update_version(current_version, path)
|
| 957 |
+
# Decide where the new wheel goes.
|
| 958 |
+
if dest_dir is None:
|
| 959 |
+
fd, newpath = tempfile.mkstemp(suffix='.whl', prefix='wheel-update-', dir=workdir)
|
| 960 |
+
os.close(fd)
|
| 961 |
+
else:
|
| 962 |
+
if not os.path.isdir(dest_dir):
|
| 963 |
+
raise DistlibException('Not a directory: %r' % dest_dir)
|
| 964 |
+
newpath = os.path.join(dest_dir, self.filename)
|
| 965 |
+
archive_paths = list(path_map.items())
|
| 966 |
+
distinfo = os.path.join(workdir, info_dir)
|
| 967 |
+
info = distinfo, info_dir
|
| 968 |
+
self.write_records(info, workdir, archive_paths)
|
| 969 |
+
self.build_zip(newpath, archive_paths)
|
| 970 |
+
if dest_dir is None:
|
| 971 |
+
shutil.copyfile(newpath, pathname)
|
| 972 |
+
return modified
|
| 973 |
+
|
| 974 |
+
|
| 975 |
+
def _get_glibc_version():
|
| 976 |
+
import platform
|
| 977 |
+
ver = platform.libc_ver()
|
| 978 |
+
result = []
|
| 979 |
+
if ver[0] == 'glibc':
|
| 980 |
+
for s in ver[1].split('.'):
|
| 981 |
+
result.append(int(s) if s.isdigit() else 0)
|
| 982 |
+
result = tuple(result)
|
| 983 |
+
return result
|
| 984 |
+
|
| 985 |
+
|
| 986 |
+
def compatible_tags():
|
| 987 |
+
"""
|
| 988 |
+
Return (pyver, abi, arch) tuples compatible with this Python.
|
| 989 |
+
"""
|
| 990 |
+
class _Version:
|
| 991 |
+
def __init__(self, major, minor):
|
| 992 |
+
self.major = major
|
| 993 |
+
self.major_minor = (major, minor)
|
| 994 |
+
self.string = ''.join((str(major), str(minor)))
|
| 995 |
+
|
| 996 |
+
def __str__(self):
|
| 997 |
+
return self.string
|
| 998 |
+
|
| 999 |
+
|
| 1000 |
+
versions = [
|
| 1001 |
+
_Version(sys.version_info.major, minor_version)
|
| 1002 |
+
for minor_version in range(sys.version_info.minor, -1, -1)
|
| 1003 |
+
]
|
| 1004 |
+
abis = []
|
| 1005 |
+
for suffix in _get_suffixes():
|
| 1006 |
+
if suffix.startswith('.abi'):
|
| 1007 |
+
abis.append(suffix.split('.', 2)[1])
|
| 1008 |
+
abis.sort()
|
| 1009 |
+
if ABI != 'none':
|
| 1010 |
+
abis.insert(0, ABI)
|
| 1011 |
+
abis.append('none')
|
| 1012 |
+
result = []
|
| 1013 |
+
|
| 1014 |
+
arches = [ARCH]
|
| 1015 |
+
if sys.platform == 'darwin':
|
| 1016 |
+
m = re.match(r'(\w+)_(\d+)_(\d+)_(\w+)$', ARCH)
|
| 1017 |
+
if m:
|
| 1018 |
+
name, major, minor, arch = m.groups()
|
| 1019 |
+
minor = int(minor)
|
| 1020 |
+
matches = [arch]
|
| 1021 |
+
if arch in ('i386', 'ppc'):
|
| 1022 |
+
matches.append('fat')
|
| 1023 |
+
if arch in ('i386', 'ppc', 'x86_64'):
|
| 1024 |
+
matches.append('fat3')
|
| 1025 |
+
if arch in ('ppc64', 'x86_64'):
|
| 1026 |
+
matches.append('fat64')
|
| 1027 |
+
if arch in ('i386', 'x86_64'):
|
| 1028 |
+
matches.append('intel')
|
| 1029 |
+
if arch in ('i386', 'x86_64', 'intel', 'ppc', 'ppc64'):
|
| 1030 |
+
matches.append('universal')
|
| 1031 |
+
while minor >= 0:
|
| 1032 |
+
for match in matches:
|
| 1033 |
+
s = '%s_%s_%s_%s' % (name, major, minor, match)
|
| 1034 |
+
if s != ARCH: # already there
|
| 1035 |
+
arches.append(s)
|
| 1036 |
+
minor -= 1
|
| 1037 |
+
|
| 1038 |
+
# Most specific - our Python version, ABI and arch
|
| 1039 |
+
for i, version_object in enumerate(versions):
|
| 1040 |
+
version = str(version_object)
|
| 1041 |
+
add_abis = []
|
| 1042 |
+
|
| 1043 |
+
if i == 0:
|
| 1044 |
+
add_abis = abis
|
| 1045 |
+
|
| 1046 |
+
if IMP_PREFIX == 'cp' and version_object.major_minor >= (3, 2):
|
| 1047 |
+
limited_api_abi = 'abi' + str(version_object.major)
|
| 1048 |
+
if limited_api_abi not in add_abis:
|
| 1049 |
+
add_abis.append(limited_api_abi)
|
| 1050 |
+
|
| 1051 |
+
for abi in add_abis:
|
| 1052 |
+
for arch in arches:
|
| 1053 |
+
result.append((''.join((IMP_PREFIX, version)), abi, arch))
|
| 1054 |
+
# manylinux
|
| 1055 |
+
if abi != 'none' and sys.platform.startswith('linux'):
|
| 1056 |
+
arch = arch.replace('linux_', '')
|
| 1057 |
+
parts = _get_glibc_version()
|
| 1058 |
+
if len(parts) == 2:
|
| 1059 |
+
if parts >= (2, 5):
|
| 1060 |
+
result.append((''.join((IMP_PREFIX, version)), abi, 'manylinux1_%s' % arch))
|
| 1061 |
+
if parts >= (2, 12):
|
| 1062 |
+
result.append((''.join((IMP_PREFIX, version)), abi, 'manylinux2010_%s' % arch))
|
| 1063 |
+
if parts >= (2, 17):
|
| 1064 |
+
result.append((''.join((IMP_PREFIX, version)), abi, 'manylinux2014_%s' % arch))
|
| 1065 |
+
result.append((''.join(
|
| 1066 |
+
(IMP_PREFIX, version)), abi, 'manylinux_%s_%s_%s' % (parts[0], parts[1], arch)))
|
| 1067 |
+
|
| 1068 |
+
# where no ABI / arch dependency, but IMP_PREFIX dependency
|
| 1069 |
+
for i, version_object in enumerate(versions):
|
| 1070 |
+
version = str(version_object)
|
| 1071 |
+
result.append((''.join((IMP_PREFIX, version)), 'none', 'any'))
|
| 1072 |
+
if i == 0:
|
| 1073 |
+
result.append((''.join((IMP_PREFIX, version[0])), 'none', 'any'))
|
| 1074 |
+
|
| 1075 |
+
# no IMP_PREFIX, ABI or arch dependency
|
| 1076 |
+
for i, version_object in enumerate(versions):
|
| 1077 |
+
version = str(version_object)
|
| 1078 |
+
result.append((''.join(('py', version)), 'none', 'any'))
|
| 1079 |
+
if i == 0:
|
| 1080 |
+
result.append((''.join(('py', version[0])), 'none', 'any'))
|
| 1081 |
+
|
| 1082 |
+
return set(result)
|
| 1083 |
+
|
| 1084 |
+
|
| 1085 |
+
COMPATIBLE_TAGS = compatible_tags()
|
| 1086 |
+
|
| 1087 |
+
del compatible_tags
|
| 1088 |
+
|
| 1089 |
+
|
| 1090 |
+
def is_compatible(wheel, tags=None):
|
| 1091 |
+
if not isinstance(wheel, Wheel):
|
| 1092 |
+
wheel = Wheel(wheel) # assume it's a filename
|
| 1093 |
+
result = False
|
| 1094 |
+
if tags is None:
|
| 1095 |
+
tags = COMPATIBLE_TAGS
|
| 1096 |
+
for ver, abi, arch in tags:
|
| 1097 |
+
if ver in wheel.pyver and abi in wheel.abi and arch in wheel.arch:
|
| 1098 |
+
result = True
|
| 1099 |
+
break
|
| 1100 |
+
return result
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .core import (
|
| 2 |
+
IDNABidiError,
|
| 3 |
+
IDNAError,
|
| 4 |
+
InvalidCodepoint,
|
| 5 |
+
InvalidCodepointContext,
|
| 6 |
+
alabel,
|
| 7 |
+
check_bidi,
|
| 8 |
+
check_hyphen_ok,
|
| 9 |
+
check_initial_combiner,
|
| 10 |
+
check_label,
|
| 11 |
+
check_nfc,
|
| 12 |
+
decode,
|
| 13 |
+
encode,
|
| 14 |
+
ulabel,
|
| 15 |
+
uts46_remap,
|
| 16 |
+
valid_contextj,
|
| 17 |
+
valid_contexto,
|
| 18 |
+
valid_label_length,
|
| 19 |
+
valid_string_length,
|
| 20 |
+
)
|
| 21 |
+
from .intranges import intranges_contain
|
| 22 |
+
from .package_data import __version__
|
| 23 |
+
|
| 24 |
+
__all__ = [
|
| 25 |
+
"__version__",
|
| 26 |
+
"IDNABidiError",
|
| 27 |
+
"IDNAError",
|
| 28 |
+
"InvalidCodepoint",
|
| 29 |
+
"InvalidCodepointContext",
|
| 30 |
+
"alabel",
|
| 31 |
+
"check_bidi",
|
| 32 |
+
"check_hyphen_ok",
|
| 33 |
+
"check_initial_combiner",
|
| 34 |
+
"check_label",
|
| 35 |
+
"check_nfc",
|
| 36 |
+
"decode",
|
| 37 |
+
"encode",
|
| 38 |
+
"intranges_contain",
|
| 39 |
+
"ulabel",
|
| 40 |
+
"uts46_remap",
|
| 41 |
+
"valid_contextj",
|
| 42 |
+
"valid_contexto",
|
| 43 |
+
"valid_label_length",
|
| 44 |
+
"valid_string_length",
|
| 45 |
+
]
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (835 Bytes). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-310.pyc
ADDED
|
Binary file (3.26 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-310.pyc
ADDED
|
Binary file (738 Bytes). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-310.pyc
ADDED
|
Binary file (1.97 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-310.pyc
ADDED
|
Binary file (195 Bytes). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/codec.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import codecs
|
| 2 |
+
import re
|
| 3 |
+
from typing import Any, Optional, Tuple
|
| 4 |
+
|
| 5 |
+
from .core import IDNAError, alabel, decode, encode, ulabel
|
| 6 |
+
|
| 7 |
+
_unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]")
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
class Codec(codecs.Codec):
|
| 11 |
+
def encode(self, data: str, errors: str = "strict") -> Tuple[bytes, int]:
|
| 12 |
+
if errors != "strict":
|
| 13 |
+
raise IDNAError('Unsupported error handling "{}"'.format(errors))
|
| 14 |
+
|
| 15 |
+
if not data:
|
| 16 |
+
return b"", 0
|
| 17 |
+
|
| 18 |
+
return encode(data), len(data)
|
| 19 |
+
|
| 20 |
+
def decode(self, data: bytes, errors: str = "strict") -> Tuple[str, int]:
|
| 21 |
+
if errors != "strict":
|
| 22 |
+
raise IDNAError('Unsupported error handling "{}"'.format(errors))
|
| 23 |
+
|
| 24 |
+
if not data:
|
| 25 |
+
return "", 0
|
| 26 |
+
|
| 27 |
+
return decode(data), len(data)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class IncrementalEncoder(codecs.BufferedIncrementalEncoder):
|
| 31 |
+
def _buffer_encode(self, data: str, errors: str, final: bool) -> Tuple[bytes, int]:
|
| 32 |
+
if errors != "strict":
|
| 33 |
+
raise IDNAError('Unsupported error handling "{}"'.format(errors))
|
| 34 |
+
|
| 35 |
+
if not data:
|
| 36 |
+
return b"", 0
|
| 37 |
+
|
| 38 |
+
labels = _unicode_dots_re.split(data)
|
| 39 |
+
trailing_dot = b""
|
| 40 |
+
if labels:
|
| 41 |
+
if not labels[-1]:
|
| 42 |
+
trailing_dot = b"."
|
| 43 |
+
del labels[-1]
|
| 44 |
+
elif not final:
|
| 45 |
+
# Keep potentially unfinished label until the next call
|
| 46 |
+
del labels[-1]
|
| 47 |
+
if labels:
|
| 48 |
+
trailing_dot = b"."
|
| 49 |
+
|
| 50 |
+
result = []
|
| 51 |
+
size = 0
|
| 52 |
+
for label in labels:
|
| 53 |
+
result.append(alabel(label))
|
| 54 |
+
if size:
|
| 55 |
+
size += 1
|
| 56 |
+
size += len(label)
|
| 57 |
+
|
| 58 |
+
# Join with U+002E
|
| 59 |
+
result_bytes = b".".join(result) + trailing_dot
|
| 60 |
+
size += len(trailing_dot)
|
| 61 |
+
return result_bytes, size
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
|
| 65 |
+
def _buffer_decode(self, data: Any, errors: str, final: bool) -> Tuple[str, int]:
|
| 66 |
+
if errors != "strict":
|
| 67 |
+
raise IDNAError('Unsupported error handling "{}"'.format(errors))
|
| 68 |
+
|
| 69 |
+
if not data:
|
| 70 |
+
return ("", 0)
|
| 71 |
+
|
| 72 |
+
if not isinstance(data, str):
|
| 73 |
+
data = str(data, "ascii")
|
| 74 |
+
|
| 75 |
+
labels = _unicode_dots_re.split(data)
|
| 76 |
+
trailing_dot = ""
|
| 77 |
+
if labels:
|
| 78 |
+
if not labels[-1]:
|
| 79 |
+
trailing_dot = "."
|
| 80 |
+
del labels[-1]
|
| 81 |
+
elif not final:
|
| 82 |
+
# Keep potentially unfinished label until the next call
|
| 83 |
+
del labels[-1]
|
| 84 |
+
if labels:
|
| 85 |
+
trailing_dot = "."
|
| 86 |
+
|
| 87 |
+
result = []
|
| 88 |
+
size = 0
|
| 89 |
+
for label in labels:
|
| 90 |
+
result.append(ulabel(label))
|
| 91 |
+
if size:
|
| 92 |
+
size += 1
|
| 93 |
+
size += len(label)
|
| 94 |
+
|
| 95 |
+
result_str = ".".join(result) + trailing_dot
|
| 96 |
+
size += len(trailing_dot)
|
| 97 |
+
return (result_str, size)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
class StreamWriter(Codec, codecs.StreamWriter):
|
| 101 |
+
pass
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
class StreamReader(Codec, codecs.StreamReader):
|
| 105 |
+
pass
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def search_function(name: str) -> Optional[codecs.CodecInfo]:
|
| 109 |
+
if name != "idna2008":
|
| 110 |
+
return None
|
| 111 |
+
return codecs.CodecInfo(
|
| 112 |
+
name=name,
|
| 113 |
+
encode=Codec().encode,
|
| 114 |
+
decode=Codec().decode,
|
| 115 |
+
incrementalencoder=IncrementalEncoder,
|
| 116 |
+
incrementaldecoder=IncrementalDecoder,
|
| 117 |
+
streamwriter=StreamWriter,
|
| 118 |
+
streamreader=StreamReader,
|
| 119 |
+
)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
codecs.register(search_function)
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/compat.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Union
|
| 2 |
+
|
| 3 |
+
from .core import decode, encode
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def ToASCII(label: str) -> bytes:
|
| 7 |
+
return encode(label)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def ToUnicode(label: Union[bytes, bytearray]) -> str:
|
| 11 |
+
return decode(label)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def nameprep(s: Any) -> None:
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import bisect
|
| 2 |
+
import re
|
| 3 |
+
import unicodedata
|
| 4 |
+
from typing import Optional, Union
|
| 5 |
+
|
| 6 |
+
from . import idnadata
|
| 7 |
+
from .intranges import intranges_contain
|
| 8 |
+
|
| 9 |
+
_virama_combining_class = 9
|
| 10 |
+
_alabel_prefix = b"xn--"
|
| 11 |
+
_unicode_dots_re = re.compile("[\u002e\u3002\uff0e\uff61]")
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class IDNAError(UnicodeError):
|
| 15 |
+
"""Base exception for all IDNA-encoding related problems"""
|
| 16 |
+
|
| 17 |
+
pass
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class IDNABidiError(IDNAError):
|
| 21 |
+
"""Exception when bidirectional requirements are not satisfied"""
|
| 22 |
+
|
| 23 |
+
pass
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class InvalidCodepoint(IDNAError):
|
| 27 |
+
"""Exception when a disallowed or unallocated codepoint is used"""
|
| 28 |
+
|
| 29 |
+
pass
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class InvalidCodepointContext(IDNAError):
|
| 33 |
+
"""Exception when the codepoint is not valid in the context it is used"""
|
| 34 |
+
|
| 35 |
+
pass
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def _combining_class(cp: int) -> int:
|
| 39 |
+
v = unicodedata.combining(chr(cp))
|
| 40 |
+
if v == 0:
|
| 41 |
+
if not unicodedata.name(chr(cp)):
|
| 42 |
+
raise ValueError("Unknown character in unicodedata")
|
| 43 |
+
return v
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def _is_script(cp: str, script: str) -> bool:
|
| 47 |
+
return intranges_contain(ord(cp), idnadata.scripts[script])
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def _punycode(s: str) -> bytes:
|
| 51 |
+
return s.encode("punycode")
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def _unot(s: int) -> str:
|
| 55 |
+
return "U+{:04X}".format(s)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def valid_label_length(label: Union[bytes, str]) -> bool:
|
| 59 |
+
if len(label) > 63:
|
| 60 |
+
return False
|
| 61 |
+
return True
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
def valid_string_length(label: Union[bytes, str], trailing_dot: bool) -> bool:
|
| 65 |
+
if len(label) > (254 if trailing_dot else 253):
|
| 66 |
+
return False
|
| 67 |
+
return True
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def check_bidi(label: str, check_ltr: bool = False) -> bool:
|
| 71 |
+
# Bidi rules should only be applied if string contains RTL characters
|
| 72 |
+
bidi_label = False
|
| 73 |
+
for idx, cp in enumerate(label, 1):
|
| 74 |
+
direction = unicodedata.bidirectional(cp)
|
| 75 |
+
if direction == "":
|
| 76 |
+
# String likely comes from a newer version of Unicode
|
| 77 |
+
raise IDNABidiError("Unknown directionality in label {} at position {}".format(repr(label), idx))
|
| 78 |
+
if direction in ["R", "AL", "AN"]:
|
| 79 |
+
bidi_label = True
|
| 80 |
+
if not bidi_label and not check_ltr:
|
| 81 |
+
return True
|
| 82 |
+
|
| 83 |
+
# Bidi rule 1
|
| 84 |
+
direction = unicodedata.bidirectional(label[0])
|
| 85 |
+
if direction in ["R", "AL"]:
|
| 86 |
+
rtl = True
|
| 87 |
+
elif direction == "L":
|
| 88 |
+
rtl = False
|
| 89 |
+
else:
|
| 90 |
+
raise IDNABidiError("First codepoint in label {} must be directionality L, R or AL".format(repr(label)))
|
| 91 |
+
|
| 92 |
+
valid_ending = False
|
| 93 |
+
number_type: Optional[str] = None
|
| 94 |
+
for idx, cp in enumerate(label, 1):
|
| 95 |
+
direction = unicodedata.bidirectional(cp)
|
| 96 |
+
|
| 97 |
+
if rtl:
|
| 98 |
+
# Bidi rule 2
|
| 99 |
+
if direction not in [
|
| 100 |
+
"R",
|
| 101 |
+
"AL",
|
| 102 |
+
"AN",
|
| 103 |
+
"EN",
|
| 104 |
+
"ES",
|
| 105 |
+
"CS",
|
| 106 |
+
"ET",
|
| 107 |
+
"ON",
|
| 108 |
+
"BN",
|
| 109 |
+
"NSM",
|
| 110 |
+
]:
|
| 111 |
+
raise IDNABidiError("Invalid direction for codepoint at position {} in a right-to-left label".format(idx))
|
| 112 |
+
# Bidi rule 3
|
| 113 |
+
if direction in ["R", "AL", "EN", "AN"]:
|
| 114 |
+
valid_ending = True
|
| 115 |
+
elif direction != "NSM":
|
| 116 |
+
valid_ending = False
|
| 117 |
+
# Bidi rule 4
|
| 118 |
+
if direction in ["AN", "EN"]:
|
| 119 |
+
if not number_type:
|
| 120 |
+
number_type = direction
|
| 121 |
+
else:
|
| 122 |
+
if number_type != direction:
|
| 123 |
+
raise IDNABidiError("Can not mix numeral types in a right-to-left label")
|
| 124 |
+
else:
|
| 125 |
+
# Bidi rule 5
|
| 126 |
+
if direction not in ["L", "EN", "ES", "CS", "ET", "ON", "BN", "NSM"]:
|
| 127 |
+
raise IDNABidiError("Invalid direction for codepoint at position {} in a left-to-right label".format(idx))
|
| 128 |
+
# Bidi rule 6
|
| 129 |
+
if direction in ["L", "EN"]:
|
| 130 |
+
valid_ending = True
|
| 131 |
+
elif direction != "NSM":
|
| 132 |
+
valid_ending = False
|
| 133 |
+
|
| 134 |
+
if not valid_ending:
|
| 135 |
+
raise IDNABidiError("Label ends with illegal codepoint directionality")
|
| 136 |
+
|
| 137 |
+
return True
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
def check_initial_combiner(label: str) -> bool:
|
| 141 |
+
if unicodedata.category(label[0])[0] == "M":
|
| 142 |
+
raise IDNAError("Label begins with an illegal combining character")
|
| 143 |
+
return True
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
def check_hyphen_ok(label: str) -> bool:
|
| 147 |
+
if label[2:4] == "--":
|
| 148 |
+
raise IDNAError("Label has disallowed hyphens in 3rd and 4th position")
|
| 149 |
+
if label[0] == "-" or label[-1] == "-":
|
| 150 |
+
raise IDNAError("Label must not start or end with a hyphen")
|
| 151 |
+
return True
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
def check_nfc(label: str) -> None:
|
| 155 |
+
if unicodedata.normalize("NFC", label) != label:
|
| 156 |
+
raise IDNAError("Label must be in Normalization Form C")
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
def valid_contextj(label: str, pos: int) -> bool:
|
| 160 |
+
cp_value = ord(label[pos])
|
| 161 |
+
|
| 162 |
+
if cp_value == 0x200C:
|
| 163 |
+
if pos > 0:
|
| 164 |
+
if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
|
| 165 |
+
return True
|
| 166 |
+
|
| 167 |
+
ok = False
|
| 168 |
+
for i in range(pos - 1, -1, -1):
|
| 169 |
+
joining_type = idnadata.joining_types.get(ord(label[i]))
|
| 170 |
+
if joining_type == ord("T"):
|
| 171 |
+
continue
|
| 172 |
+
elif joining_type in [ord("L"), ord("D")]:
|
| 173 |
+
ok = True
|
| 174 |
+
break
|
| 175 |
+
else:
|
| 176 |
+
break
|
| 177 |
+
|
| 178 |
+
if not ok:
|
| 179 |
+
return False
|
| 180 |
+
|
| 181 |
+
ok = False
|
| 182 |
+
for i in range(pos + 1, len(label)):
|
| 183 |
+
joining_type = idnadata.joining_types.get(ord(label[i]))
|
| 184 |
+
if joining_type == ord("T"):
|
| 185 |
+
continue
|
| 186 |
+
elif joining_type in [ord("R"), ord("D")]:
|
| 187 |
+
ok = True
|
| 188 |
+
break
|
| 189 |
+
else:
|
| 190 |
+
break
|
| 191 |
+
return ok
|
| 192 |
+
|
| 193 |
+
if cp_value == 0x200D:
|
| 194 |
+
if pos > 0:
|
| 195 |
+
if _combining_class(ord(label[pos - 1])) == _virama_combining_class:
|
| 196 |
+
return True
|
| 197 |
+
return False
|
| 198 |
+
|
| 199 |
+
else:
|
| 200 |
+
return False
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def valid_contexto(label: str, pos: int, exception: bool = False) -> bool:
|
| 204 |
+
cp_value = ord(label[pos])
|
| 205 |
+
|
| 206 |
+
if cp_value == 0x00B7:
|
| 207 |
+
if 0 < pos < len(label) - 1:
|
| 208 |
+
if ord(label[pos - 1]) == 0x006C and ord(label[pos + 1]) == 0x006C:
|
| 209 |
+
return True
|
| 210 |
+
return False
|
| 211 |
+
|
| 212 |
+
elif cp_value == 0x0375:
|
| 213 |
+
if pos < len(label) - 1 and len(label) > 1:
|
| 214 |
+
return _is_script(label[pos + 1], "Greek")
|
| 215 |
+
return False
|
| 216 |
+
|
| 217 |
+
elif cp_value == 0x05F3 or cp_value == 0x05F4:
|
| 218 |
+
if pos > 0:
|
| 219 |
+
return _is_script(label[pos - 1], "Hebrew")
|
| 220 |
+
return False
|
| 221 |
+
|
| 222 |
+
elif cp_value == 0x30FB:
|
| 223 |
+
for cp in label:
|
| 224 |
+
if cp == "\u30fb":
|
| 225 |
+
continue
|
| 226 |
+
if _is_script(cp, "Hiragana") or _is_script(cp, "Katakana") or _is_script(cp, "Han"):
|
| 227 |
+
return True
|
| 228 |
+
return False
|
| 229 |
+
|
| 230 |
+
elif 0x660 <= cp_value <= 0x669:
|
| 231 |
+
for cp in label:
|
| 232 |
+
if 0x6F0 <= ord(cp) <= 0x06F9:
|
| 233 |
+
return False
|
| 234 |
+
return True
|
| 235 |
+
|
| 236 |
+
elif 0x6F0 <= cp_value <= 0x6F9:
|
| 237 |
+
for cp in label:
|
| 238 |
+
if 0x660 <= ord(cp) <= 0x0669:
|
| 239 |
+
return False
|
| 240 |
+
return True
|
| 241 |
+
|
| 242 |
+
return False
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def check_label(label: Union[str, bytes, bytearray]) -> None:
|
| 246 |
+
if isinstance(label, (bytes, bytearray)):
|
| 247 |
+
label = label.decode("utf-8")
|
| 248 |
+
if len(label) == 0:
|
| 249 |
+
raise IDNAError("Empty Label")
|
| 250 |
+
|
| 251 |
+
check_nfc(label)
|
| 252 |
+
check_hyphen_ok(label)
|
| 253 |
+
check_initial_combiner(label)
|
| 254 |
+
|
| 255 |
+
for pos, cp in enumerate(label):
|
| 256 |
+
cp_value = ord(cp)
|
| 257 |
+
if intranges_contain(cp_value, idnadata.codepoint_classes["PVALID"]):
|
| 258 |
+
continue
|
| 259 |
+
elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTJ"]):
|
| 260 |
+
try:
|
| 261 |
+
if not valid_contextj(label, pos):
|
| 262 |
+
raise InvalidCodepointContext(
|
| 263 |
+
"Joiner {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label))
|
| 264 |
+
)
|
| 265 |
+
except ValueError:
|
| 266 |
+
raise IDNAError(
|
| 267 |
+
"Unknown codepoint adjacent to joiner {} at position {} in {}".format(
|
| 268 |
+
_unot(cp_value), pos + 1, repr(label)
|
| 269 |
+
)
|
| 270 |
+
)
|
| 271 |
+
elif intranges_contain(cp_value, idnadata.codepoint_classes["CONTEXTO"]):
|
| 272 |
+
if not valid_contexto(label, pos):
|
| 273 |
+
raise InvalidCodepointContext(
|
| 274 |
+
"Codepoint {} not allowed at position {} in {}".format(_unot(cp_value), pos + 1, repr(label))
|
| 275 |
+
)
|
| 276 |
+
else:
|
| 277 |
+
raise InvalidCodepoint(
|
| 278 |
+
"Codepoint {} at position {} of {} not allowed".format(_unot(cp_value), pos + 1, repr(label))
|
| 279 |
+
)
|
| 280 |
+
|
| 281 |
+
check_bidi(label)
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
def alabel(label: str) -> bytes:
|
| 285 |
+
try:
|
| 286 |
+
label_bytes = label.encode("ascii")
|
| 287 |
+
ulabel(label_bytes)
|
| 288 |
+
if not valid_label_length(label_bytes):
|
| 289 |
+
raise IDNAError("Label too long")
|
| 290 |
+
return label_bytes
|
| 291 |
+
except UnicodeEncodeError:
|
| 292 |
+
pass
|
| 293 |
+
|
| 294 |
+
check_label(label)
|
| 295 |
+
label_bytes = _alabel_prefix + _punycode(label)
|
| 296 |
+
|
| 297 |
+
if not valid_label_length(label_bytes):
|
| 298 |
+
raise IDNAError("Label too long")
|
| 299 |
+
|
| 300 |
+
return label_bytes
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
def ulabel(label: Union[str, bytes, bytearray]) -> str:
|
| 304 |
+
if not isinstance(label, (bytes, bytearray)):
|
| 305 |
+
try:
|
| 306 |
+
label_bytes = label.encode("ascii")
|
| 307 |
+
except UnicodeEncodeError:
|
| 308 |
+
check_label(label)
|
| 309 |
+
return label
|
| 310 |
+
else:
|
| 311 |
+
label_bytes = label
|
| 312 |
+
|
| 313 |
+
label_bytes = label_bytes.lower()
|
| 314 |
+
if label_bytes.startswith(_alabel_prefix):
|
| 315 |
+
label_bytes = label_bytes[len(_alabel_prefix) :]
|
| 316 |
+
if not label_bytes:
|
| 317 |
+
raise IDNAError("Malformed A-label, no Punycode eligible content found")
|
| 318 |
+
if label_bytes.decode("ascii")[-1] == "-":
|
| 319 |
+
raise IDNAError("A-label must not end with a hyphen")
|
| 320 |
+
else:
|
| 321 |
+
check_label(label_bytes)
|
| 322 |
+
return label_bytes.decode("ascii")
|
| 323 |
+
|
| 324 |
+
try:
|
| 325 |
+
label = label_bytes.decode("punycode")
|
| 326 |
+
except UnicodeError:
|
| 327 |
+
raise IDNAError("Invalid A-label")
|
| 328 |
+
check_label(label)
|
| 329 |
+
return label
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False) -> str:
|
| 333 |
+
"""Re-map the characters in the string according to UTS46 processing."""
|
| 334 |
+
from .uts46data import uts46data
|
| 335 |
+
|
| 336 |
+
output = ""
|
| 337 |
+
|
| 338 |
+
for pos, char in enumerate(domain):
|
| 339 |
+
code_point = ord(char)
|
| 340 |
+
try:
|
| 341 |
+
uts46row = uts46data[code_point if code_point < 256 else bisect.bisect_left(uts46data, (code_point, "Z")) - 1]
|
| 342 |
+
status = uts46row[1]
|
| 343 |
+
replacement: Optional[str] = None
|
| 344 |
+
if len(uts46row) == 3:
|
| 345 |
+
replacement = uts46row[2]
|
| 346 |
+
if (
|
| 347 |
+
status == "V"
|
| 348 |
+
or (status == "D" and not transitional)
|
| 349 |
+
or (status == "3" and not std3_rules and replacement is None)
|
| 350 |
+
):
|
| 351 |
+
output += char
|
| 352 |
+
elif replacement is not None and (
|
| 353 |
+
status == "M" or (status == "3" and not std3_rules) or (status == "D" and transitional)
|
| 354 |
+
):
|
| 355 |
+
output += replacement
|
| 356 |
+
elif status != "I":
|
| 357 |
+
raise IndexError()
|
| 358 |
+
except IndexError:
|
| 359 |
+
raise InvalidCodepoint(
|
| 360 |
+
"Codepoint {} not allowed at position {} in {}".format(_unot(code_point), pos + 1, repr(domain))
|
| 361 |
+
)
|
| 362 |
+
|
| 363 |
+
return unicodedata.normalize("NFC", output)
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
def encode(
|
| 367 |
+
s: Union[str, bytes, bytearray],
|
| 368 |
+
strict: bool = False,
|
| 369 |
+
uts46: bool = False,
|
| 370 |
+
std3_rules: bool = False,
|
| 371 |
+
transitional: bool = False,
|
| 372 |
+
) -> bytes:
|
| 373 |
+
if not isinstance(s, str):
|
| 374 |
+
try:
|
| 375 |
+
s = str(s, "ascii")
|
| 376 |
+
except UnicodeDecodeError:
|
| 377 |
+
raise IDNAError("should pass a unicode string to the function rather than a byte string.")
|
| 378 |
+
if uts46:
|
| 379 |
+
s = uts46_remap(s, std3_rules, transitional)
|
| 380 |
+
trailing_dot = False
|
| 381 |
+
result = []
|
| 382 |
+
if strict:
|
| 383 |
+
labels = s.split(".")
|
| 384 |
+
else:
|
| 385 |
+
labels = _unicode_dots_re.split(s)
|
| 386 |
+
if not labels or labels == [""]:
|
| 387 |
+
raise IDNAError("Empty domain")
|
| 388 |
+
if labels[-1] == "":
|
| 389 |
+
del labels[-1]
|
| 390 |
+
trailing_dot = True
|
| 391 |
+
for label in labels:
|
| 392 |
+
s = alabel(label)
|
| 393 |
+
if s:
|
| 394 |
+
result.append(s)
|
| 395 |
+
else:
|
| 396 |
+
raise IDNAError("Empty label")
|
| 397 |
+
if trailing_dot:
|
| 398 |
+
result.append(b"")
|
| 399 |
+
s = b".".join(result)
|
| 400 |
+
if not valid_string_length(s, trailing_dot):
|
| 401 |
+
raise IDNAError("Domain too long")
|
| 402 |
+
return s
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
def decode(
|
| 406 |
+
s: Union[str, bytes, bytearray],
|
| 407 |
+
strict: bool = False,
|
| 408 |
+
uts46: bool = False,
|
| 409 |
+
std3_rules: bool = False,
|
| 410 |
+
) -> str:
|
| 411 |
+
try:
|
| 412 |
+
if not isinstance(s, str):
|
| 413 |
+
s = str(s, "ascii")
|
| 414 |
+
except UnicodeDecodeError:
|
| 415 |
+
raise IDNAError("Invalid ASCII in A-label")
|
| 416 |
+
if uts46:
|
| 417 |
+
s = uts46_remap(s, std3_rules, False)
|
| 418 |
+
trailing_dot = False
|
| 419 |
+
result = []
|
| 420 |
+
if not strict:
|
| 421 |
+
labels = _unicode_dots_re.split(s)
|
| 422 |
+
else:
|
| 423 |
+
labels = s.split(".")
|
| 424 |
+
if not labels or labels == [""]:
|
| 425 |
+
raise IDNAError("Empty domain")
|
| 426 |
+
if not labels[-1]:
|
| 427 |
+
del labels[-1]
|
| 428 |
+
trailing_dot = True
|
| 429 |
+
for label in labels:
|
| 430 |
+
s = ulabel(label)
|
| 431 |
+
if s:
|
| 432 |
+
result.append(s)
|
| 433 |
+
else:
|
| 434 |
+
raise IDNAError("Empty label")
|
| 435 |
+
if trailing_dot:
|
| 436 |
+
result.append("")
|
| 437 |
+
return ".".join(result)
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py
ADDED
|
@@ -0,0 +1,4243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is automatically generated by tools/idna-data
|
| 2 |
+
|
| 3 |
+
__version__ = "15.1.0"
|
| 4 |
+
scripts = {
|
| 5 |
+
"Greek": (
|
| 6 |
+
0x37000000374,
|
| 7 |
+
0x37500000378,
|
| 8 |
+
0x37A0000037E,
|
| 9 |
+
0x37F00000380,
|
| 10 |
+
0x38400000385,
|
| 11 |
+
0x38600000387,
|
| 12 |
+
0x3880000038B,
|
| 13 |
+
0x38C0000038D,
|
| 14 |
+
0x38E000003A2,
|
| 15 |
+
0x3A3000003E2,
|
| 16 |
+
0x3F000000400,
|
| 17 |
+
0x1D2600001D2B,
|
| 18 |
+
0x1D5D00001D62,
|
| 19 |
+
0x1D6600001D6B,
|
| 20 |
+
0x1DBF00001DC0,
|
| 21 |
+
0x1F0000001F16,
|
| 22 |
+
0x1F1800001F1E,
|
| 23 |
+
0x1F2000001F46,
|
| 24 |
+
0x1F4800001F4E,
|
| 25 |
+
0x1F5000001F58,
|
| 26 |
+
0x1F5900001F5A,
|
| 27 |
+
0x1F5B00001F5C,
|
| 28 |
+
0x1F5D00001F5E,
|
| 29 |
+
0x1F5F00001F7E,
|
| 30 |
+
0x1F8000001FB5,
|
| 31 |
+
0x1FB600001FC5,
|
| 32 |
+
0x1FC600001FD4,
|
| 33 |
+
0x1FD600001FDC,
|
| 34 |
+
0x1FDD00001FF0,
|
| 35 |
+
0x1FF200001FF5,
|
| 36 |
+
0x1FF600001FFF,
|
| 37 |
+
0x212600002127,
|
| 38 |
+
0xAB650000AB66,
|
| 39 |
+
0x101400001018F,
|
| 40 |
+
0x101A0000101A1,
|
| 41 |
+
0x1D2000001D246,
|
| 42 |
+
),
|
| 43 |
+
"Han": (
|
| 44 |
+
0x2E8000002E9A,
|
| 45 |
+
0x2E9B00002EF4,
|
| 46 |
+
0x2F0000002FD6,
|
| 47 |
+
0x300500003006,
|
| 48 |
+
0x300700003008,
|
| 49 |
+
0x30210000302A,
|
| 50 |
+
0x30380000303C,
|
| 51 |
+
0x340000004DC0,
|
| 52 |
+
0x4E000000A000,
|
| 53 |
+
0xF9000000FA6E,
|
| 54 |
+
0xFA700000FADA,
|
| 55 |
+
0x16FE200016FE4,
|
| 56 |
+
0x16FF000016FF2,
|
| 57 |
+
0x200000002A6E0,
|
| 58 |
+
0x2A7000002B73A,
|
| 59 |
+
0x2B7400002B81E,
|
| 60 |
+
0x2B8200002CEA2,
|
| 61 |
+
0x2CEB00002EBE1,
|
| 62 |
+
0x2EBF00002EE5E,
|
| 63 |
+
0x2F8000002FA1E,
|
| 64 |
+
0x300000003134B,
|
| 65 |
+
0x31350000323B0,
|
| 66 |
+
),
|
| 67 |
+
"Hebrew": (
|
| 68 |
+
0x591000005C8,
|
| 69 |
+
0x5D0000005EB,
|
| 70 |
+
0x5EF000005F5,
|
| 71 |
+
0xFB1D0000FB37,
|
| 72 |
+
0xFB380000FB3D,
|
| 73 |
+
0xFB3E0000FB3F,
|
| 74 |
+
0xFB400000FB42,
|
| 75 |
+
0xFB430000FB45,
|
| 76 |
+
0xFB460000FB50,
|
| 77 |
+
),
|
| 78 |
+
"Hiragana": (
|
| 79 |
+
0x304100003097,
|
| 80 |
+
0x309D000030A0,
|
| 81 |
+
0x1B0010001B120,
|
| 82 |
+
0x1B1320001B133,
|
| 83 |
+
0x1B1500001B153,
|
| 84 |
+
0x1F2000001F201,
|
| 85 |
+
),
|
| 86 |
+
"Katakana": (
|
| 87 |
+
0x30A1000030FB,
|
| 88 |
+
0x30FD00003100,
|
| 89 |
+
0x31F000003200,
|
| 90 |
+
0x32D0000032FF,
|
| 91 |
+
0x330000003358,
|
| 92 |
+
0xFF660000FF70,
|
| 93 |
+
0xFF710000FF9E,
|
| 94 |
+
0x1AFF00001AFF4,
|
| 95 |
+
0x1AFF50001AFFC,
|
| 96 |
+
0x1AFFD0001AFFF,
|
| 97 |
+
0x1B0000001B001,
|
| 98 |
+
0x1B1200001B123,
|
| 99 |
+
0x1B1550001B156,
|
| 100 |
+
0x1B1640001B168,
|
| 101 |
+
),
|
| 102 |
+
}
|
| 103 |
+
joining_types = {
|
| 104 |
+
0xAD: 84,
|
| 105 |
+
0x300: 84,
|
| 106 |
+
0x301: 84,
|
| 107 |
+
0x302: 84,
|
| 108 |
+
0x303: 84,
|
| 109 |
+
0x304: 84,
|
| 110 |
+
0x305: 84,
|
| 111 |
+
0x306: 84,
|
| 112 |
+
0x307: 84,
|
| 113 |
+
0x308: 84,
|
| 114 |
+
0x309: 84,
|
| 115 |
+
0x30A: 84,
|
| 116 |
+
0x30B: 84,
|
| 117 |
+
0x30C: 84,
|
| 118 |
+
0x30D: 84,
|
| 119 |
+
0x30E: 84,
|
| 120 |
+
0x30F: 84,
|
| 121 |
+
0x310: 84,
|
| 122 |
+
0x311: 84,
|
| 123 |
+
0x312: 84,
|
| 124 |
+
0x313: 84,
|
| 125 |
+
0x314: 84,
|
| 126 |
+
0x315: 84,
|
| 127 |
+
0x316: 84,
|
| 128 |
+
0x317: 84,
|
| 129 |
+
0x318: 84,
|
| 130 |
+
0x319: 84,
|
| 131 |
+
0x31A: 84,
|
| 132 |
+
0x31B: 84,
|
| 133 |
+
0x31C: 84,
|
| 134 |
+
0x31D: 84,
|
| 135 |
+
0x31E: 84,
|
| 136 |
+
0x31F: 84,
|
| 137 |
+
0x320: 84,
|
| 138 |
+
0x321: 84,
|
| 139 |
+
0x322: 84,
|
| 140 |
+
0x323: 84,
|
| 141 |
+
0x324: 84,
|
| 142 |
+
0x325: 84,
|
| 143 |
+
0x326: 84,
|
| 144 |
+
0x327: 84,
|
| 145 |
+
0x328: 84,
|
| 146 |
+
0x329: 84,
|
| 147 |
+
0x32A: 84,
|
| 148 |
+
0x32B: 84,
|
| 149 |
+
0x32C: 84,
|
| 150 |
+
0x32D: 84,
|
| 151 |
+
0x32E: 84,
|
| 152 |
+
0x32F: 84,
|
| 153 |
+
0x330: 84,
|
| 154 |
+
0x331: 84,
|
| 155 |
+
0x332: 84,
|
| 156 |
+
0x333: 84,
|
| 157 |
+
0x334: 84,
|
| 158 |
+
0x335: 84,
|
| 159 |
+
0x336: 84,
|
| 160 |
+
0x337: 84,
|
| 161 |
+
0x338: 84,
|
| 162 |
+
0x339: 84,
|
| 163 |
+
0x33A: 84,
|
| 164 |
+
0x33B: 84,
|
| 165 |
+
0x33C: 84,
|
| 166 |
+
0x33D: 84,
|
| 167 |
+
0x33E: 84,
|
| 168 |
+
0x33F: 84,
|
| 169 |
+
0x340: 84,
|
| 170 |
+
0x341: 84,
|
| 171 |
+
0x342: 84,
|
| 172 |
+
0x343: 84,
|
| 173 |
+
0x344: 84,
|
| 174 |
+
0x345: 84,
|
| 175 |
+
0x346: 84,
|
| 176 |
+
0x347: 84,
|
| 177 |
+
0x348: 84,
|
| 178 |
+
0x349: 84,
|
| 179 |
+
0x34A: 84,
|
| 180 |
+
0x34B: 84,
|
| 181 |
+
0x34C: 84,
|
| 182 |
+
0x34D: 84,
|
| 183 |
+
0x34E: 84,
|
| 184 |
+
0x34F: 84,
|
| 185 |
+
0x350: 84,
|
| 186 |
+
0x351: 84,
|
| 187 |
+
0x352: 84,
|
| 188 |
+
0x353: 84,
|
| 189 |
+
0x354: 84,
|
| 190 |
+
0x355: 84,
|
| 191 |
+
0x356: 84,
|
| 192 |
+
0x357: 84,
|
| 193 |
+
0x358: 84,
|
| 194 |
+
0x359: 84,
|
| 195 |
+
0x35A: 84,
|
| 196 |
+
0x35B: 84,
|
| 197 |
+
0x35C: 84,
|
| 198 |
+
0x35D: 84,
|
| 199 |
+
0x35E: 84,
|
| 200 |
+
0x35F: 84,
|
| 201 |
+
0x360: 84,
|
| 202 |
+
0x361: 84,
|
| 203 |
+
0x362: 84,
|
| 204 |
+
0x363: 84,
|
| 205 |
+
0x364: 84,
|
| 206 |
+
0x365: 84,
|
| 207 |
+
0x366: 84,
|
| 208 |
+
0x367: 84,
|
| 209 |
+
0x368: 84,
|
| 210 |
+
0x369: 84,
|
| 211 |
+
0x36A: 84,
|
| 212 |
+
0x36B: 84,
|
| 213 |
+
0x36C: 84,
|
| 214 |
+
0x36D: 84,
|
| 215 |
+
0x36E: 84,
|
| 216 |
+
0x36F: 84,
|
| 217 |
+
0x483: 84,
|
| 218 |
+
0x484: 84,
|
| 219 |
+
0x485: 84,
|
| 220 |
+
0x486: 84,
|
| 221 |
+
0x487: 84,
|
| 222 |
+
0x488: 84,
|
| 223 |
+
0x489: 84,
|
| 224 |
+
0x591: 84,
|
| 225 |
+
0x592: 84,
|
| 226 |
+
0x593: 84,
|
| 227 |
+
0x594: 84,
|
| 228 |
+
0x595: 84,
|
| 229 |
+
0x596: 84,
|
| 230 |
+
0x597: 84,
|
| 231 |
+
0x598: 84,
|
| 232 |
+
0x599: 84,
|
| 233 |
+
0x59A: 84,
|
| 234 |
+
0x59B: 84,
|
| 235 |
+
0x59C: 84,
|
| 236 |
+
0x59D: 84,
|
| 237 |
+
0x59E: 84,
|
| 238 |
+
0x59F: 84,
|
| 239 |
+
0x5A0: 84,
|
| 240 |
+
0x5A1: 84,
|
| 241 |
+
0x5A2: 84,
|
| 242 |
+
0x5A3: 84,
|
| 243 |
+
0x5A4: 84,
|
| 244 |
+
0x5A5: 84,
|
| 245 |
+
0x5A6: 84,
|
| 246 |
+
0x5A7: 84,
|
| 247 |
+
0x5A8: 84,
|
| 248 |
+
0x5A9: 84,
|
| 249 |
+
0x5AA: 84,
|
| 250 |
+
0x5AB: 84,
|
| 251 |
+
0x5AC: 84,
|
| 252 |
+
0x5AD: 84,
|
| 253 |
+
0x5AE: 84,
|
| 254 |
+
0x5AF: 84,
|
| 255 |
+
0x5B0: 84,
|
| 256 |
+
0x5B1: 84,
|
| 257 |
+
0x5B2: 84,
|
| 258 |
+
0x5B3: 84,
|
| 259 |
+
0x5B4: 84,
|
| 260 |
+
0x5B5: 84,
|
| 261 |
+
0x5B6: 84,
|
| 262 |
+
0x5B7: 84,
|
| 263 |
+
0x5B8: 84,
|
| 264 |
+
0x5B9: 84,
|
| 265 |
+
0x5BA: 84,
|
| 266 |
+
0x5BB: 84,
|
| 267 |
+
0x5BC: 84,
|
| 268 |
+
0x5BD: 84,
|
| 269 |
+
0x5BF: 84,
|
| 270 |
+
0x5C1: 84,
|
| 271 |
+
0x5C2: 84,
|
| 272 |
+
0x5C4: 84,
|
| 273 |
+
0x5C5: 84,
|
| 274 |
+
0x5C7: 84,
|
| 275 |
+
0x610: 84,
|
| 276 |
+
0x611: 84,
|
| 277 |
+
0x612: 84,
|
| 278 |
+
0x613: 84,
|
| 279 |
+
0x614: 84,
|
| 280 |
+
0x615: 84,
|
| 281 |
+
0x616: 84,
|
| 282 |
+
0x617: 84,
|
| 283 |
+
0x618: 84,
|
| 284 |
+
0x619: 84,
|
| 285 |
+
0x61A: 84,
|
| 286 |
+
0x61C: 84,
|
| 287 |
+
0x620: 68,
|
| 288 |
+
0x622: 82,
|
| 289 |
+
0x623: 82,
|
| 290 |
+
0x624: 82,
|
| 291 |
+
0x625: 82,
|
| 292 |
+
0x626: 68,
|
| 293 |
+
0x627: 82,
|
| 294 |
+
0x628: 68,
|
| 295 |
+
0x629: 82,
|
| 296 |
+
0x62A: 68,
|
| 297 |
+
0x62B: 68,
|
| 298 |
+
0x62C: 68,
|
| 299 |
+
0x62D: 68,
|
| 300 |
+
0x62E: 68,
|
| 301 |
+
0x62F: 82,
|
| 302 |
+
0x630: 82,
|
| 303 |
+
0x631: 82,
|
| 304 |
+
0x632: 82,
|
| 305 |
+
0x633: 68,
|
| 306 |
+
0x634: 68,
|
| 307 |
+
0x635: 68,
|
| 308 |
+
0x636: 68,
|
| 309 |
+
0x637: 68,
|
| 310 |
+
0x638: 68,
|
| 311 |
+
0x639: 68,
|
| 312 |
+
0x63A: 68,
|
| 313 |
+
0x63B: 68,
|
| 314 |
+
0x63C: 68,
|
| 315 |
+
0x63D: 68,
|
| 316 |
+
0x63E: 68,
|
| 317 |
+
0x63F: 68,
|
| 318 |
+
0x640: 67,
|
| 319 |
+
0x641: 68,
|
| 320 |
+
0x642: 68,
|
| 321 |
+
0x643: 68,
|
| 322 |
+
0x644: 68,
|
| 323 |
+
0x645: 68,
|
| 324 |
+
0x646: 68,
|
| 325 |
+
0x647: 68,
|
| 326 |
+
0x648: 82,
|
| 327 |
+
0x649: 68,
|
| 328 |
+
0x64A: 68,
|
| 329 |
+
0x64B: 84,
|
| 330 |
+
0x64C: 84,
|
| 331 |
+
0x64D: 84,
|
| 332 |
+
0x64E: 84,
|
| 333 |
+
0x64F: 84,
|
| 334 |
+
0x650: 84,
|
| 335 |
+
0x651: 84,
|
| 336 |
+
0x652: 84,
|
| 337 |
+
0x653: 84,
|
| 338 |
+
0x654: 84,
|
| 339 |
+
0x655: 84,
|
| 340 |
+
0x656: 84,
|
| 341 |
+
0x657: 84,
|
| 342 |
+
0x658: 84,
|
| 343 |
+
0x659: 84,
|
| 344 |
+
0x65A: 84,
|
| 345 |
+
0x65B: 84,
|
| 346 |
+
0x65C: 84,
|
| 347 |
+
0x65D: 84,
|
| 348 |
+
0x65E: 84,
|
| 349 |
+
0x65F: 84,
|
| 350 |
+
0x66E: 68,
|
| 351 |
+
0x66F: 68,
|
| 352 |
+
0x670: 84,
|
| 353 |
+
0x671: 82,
|
| 354 |
+
0x672: 82,
|
| 355 |
+
0x673: 82,
|
| 356 |
+
0x675: 82,
|
| 357 |
+
0x676: 82,
|
| 358 |
+
0x677: 82,
|
| 359 |
+
0x678: 68,
|
| 360 |
+
0x679: 68,
|
| 361 |
+
0x67A: 68,
|
| 362 |
+
0x67B: 68,
|
| 363 |
+
0x67C: 68,
|
| 364 |
+
0x67D: 68,
|
| 365 |
+
0x67E: 68,
|
| 366 |
+
0x67F: 68,
|
| 367 |
+
0x680: 68,
|
| 368 |
+
0x681: 68,
|
| 369 |
+
0x682: 68,
|
| 370 |
+
0x683: 68,
|
| 371 |
+
0x684: 68,
|
| 372 |
+
0x685: 68,
|
| 373 |
+
0x686: 68,
|
| 374 |
+
0x687: 68,
|
| 375 |
+
0x688: 82,
|
| 376 |
+
0x689: 82,
|
| 377 |
+
0x68A: 82,
|
| 378 |
+
0x68B: 82,
|
| 379 |
+
0x68C: 82,
|
| 380 |
+
0x68D: 82,
|
| 381 |
+
0x68E: 82,
|
| 382 |
+
0x68F: 82,
|
| 383 |
+
0x690: 82,
|
| 384 |
+
0x691: 82,
|
| 385 |
+
0x692: 82,
|
| 386 |
+
0x693: 82,
|
| 387 |
+
0x694: 82,
|
| 388 |
+
0x695: 82,
|
| 389 |
+
0x696: 82,
|
| 390 |
+
0x697: 82,
|
| 391 |
+
0x698: 82,
|
| 392 |
+
0x699: 82,
|
| 393 |
+
0x69A: 68,
|
| 394 |
+
0x69B: 68,
|
| 395 |
+
0x69C: 68,
|
| 396 |
+
0x69D: 68,
|
| 397 |
+
0x69E: 68,
|
| 398 |
+
0x69F: 68,
|
| 399 |
+
0x6A0: 68,
|
| 400 |
+
0x6A1: 68,
|
| 401 |
+
0x6A2: 68,
|
| 402 |
+
0x6A3: 68,
|
| 403 |
+
0x6A4: 68,
|
| 404 |
+
0x6A5: 68,
|
| 405 |
+
0x6A6: 68,
|
| 406 |
+
0x6A7: 68,
|
| 407 |
+
0x6A8: 68,
|
| 408 |
+
0x6A9: 68,
|
| 409 |
+
0x6AA: 68,
|
| 410 |
+
0x6AB: 68,
|
| 411 |
+
0x6AC: 68,
|
| 412 |
+
0x6AD: 68,
|
| 413 |
+
0x6AE: 68,
|
| 414 |
+
0x6AF: 68,
|
| 415 |
+
0x6B0: 68,
|
| 416 |
+
0x6B1: 68,
|
| 417 |
+
0x6B2: 68,
|
| 418 |
+
0x6B3: 68,
|
| 419 |
+
0x6B4: 68,
|
| 420 |
+
0x6B5: 68,
|
| 421 |
+
0x6B6: 68,
|
| 422 |
+
0x6B7: 68,
|
| 423 |
+
0x6B8: 68,
|
| 424 |
+
0x6B9: 68,
|
| 425 |
+
0x6BA: 68,
|
| 426 |
+
0x6BB: 68,
|
| 427 |
+
0x6BC: 68,
|
| 428 |
+
0x6BD: 68,
|
| 429 |
+
0x6BE: 68,
|
| 430 |
+
0x6BF: 68,
|
| 431 |
+
0x6C0: 82,
|
| 432 |
+
0x6C1: 68,
|
| 433 |
+
0x6C2: 68,
|
| 434 |
+
0x6C3: 82,
|
| 435 |
+
0x6C4: 82,
|
| 436 |
+
0x6C5: 82,
|
| 437 |
+
0x6C6: 82,
|
| 438 |
+
0x6C7: 82,
|
| 439 |
+
0x6C8: 82,
|
| 440 |
+
0x6C9: 82,
|
| 441 |
+
0x6CA: 82,
|
| 442 |
+
0x6CB: 82,
|
| 443 |
+
0x6CC: 68,
|
| 444 |
+
0x6CD: 82,
|
| 445 |
+
0x6CE: 68,
|
| 446 |
+
0x6CF: 82,
|
| 447 |
+
0x6D0: 68,
|
| 448 |
+
0x6D1: 68,
|
| 449 |
+
0x6D2: 82,
|
| 450 |
+
0x6D3: 82,
|
| 451 |
+
0x6D5: 82,
|
| 452 |
+
0x6D6: 84,
|
| 453 |
+
0x6D7: 84,
|
| 454 |
+
0x6D8: 84,
|
| 455 |
+
0x6D9: 84,
|
| 456 |
+
0x6DA: 84,
|
| 457 |
+
0x6DB: 84,
|
| 458 |
+
0x6DC: 84,
|
| 459 |
+
0x6DF: 84,
|
| 460 |
+
0x6E0: 84,
|
| 461 |
+
0x6E1: 84,
|
| 462 |
+
0x6E2: 84,
|
| 463 |
+
0x6E3: 84,
|
| 464 |
+
0x6E4: 84,
|
| 465 |
+
0x6E7: 84,
|
| 466 |
+
0x6E8: 84,
|
| 467 |
+
0x6EA: 84,
|
| 468 |
+
0x6EB: 84,
|
| 469 |
+
0x6EC: 84,
|
| 470 |
+
0x6ED: 84,
|
| 471 |
+
0x6EE: 82,
|
| 472 |
+
0x6EF: 82,
|
| 473 |
+
0x6FA: 68,
|
| 474 |
+
0x6FB: 68,
|
| 475 |
+
0x6FC: 68,
|
| 476 |
+
0x6FF: 68,
|
| 477 |
+
0x70F: 84,
|
| 478 |
+
0x710: 82,
|
| 479 |
+
0x711: 84,
|
| 480 |
+
0x712: 68,
|
| 481 |
+
0x713: 68,
|
| 482 |
+
0x714: 68,
|
| 483 |
+
0x715: 82,
|
| 484 |
+
0x716: 82,
|
| 485 |
+
0x717: 82,
|
| 486 |
+
0x718: 82,
|
| 487 |
+
0x719: 82,
|
| 488 |
+
0x71A: 68,
|
| 489 |
+
0x71B: 68,
|
| 490 |
+
0x71C: 68,
|
| 491 |
+
0x71D: 68,
|
| 492 |
+
0x71E: 82,
|
| 493 |
+
0x71F: 68,
|
| 494 |
+
0x720: 68,
|
| 495 |
+
0x721: 68,
|
| 496 |
+
0x722: 68,
|
| 497 |
+
0x723: 68,
|
| 498 |
+
0x724: 68,
|
| 499 |
+
0x725: 68,
|
| 500 |
+
0x726: 68,
|
| 501 |
+
0x727: 68,
|
| 502 |
+
0x728: 82,
|
| 503 |
+
0x729: 68,
|
| 504 |
+
0x72A: 82,
|
| 505 |
+
0x72B: 68,
|
| 506 |
+
0x72C: 82,
|
| 507 |
+
0x72D: 68,
|
| 508 |
+
0x72E: 68,
|
| 509 |
+
0x72F: 82,
|
| 510 |
+
0x730: 84,
|
| 511 |
+
0x731: 84,
|
| 512 |
+
0x732: 84,
|
| 513 |
+
0x733: 84,
|
| 514 |
+
0x734: 84,
|
| 515 |
+
0x735: 84,
|
| 516 |
+
0x736: 84,
|
| 517 |
+
0x737: 84,
|
| 518 |
+
0x738: 84,
|
| 519 |
+
0x739: 84,
|
| 520 |
+
0x73A: 84,
|
| 521 |
+
0x73B: 84,
|
| 522 |
+
0x73C: 84,
|
| 523 |
+
0x73D: 84,
|
| 524 |
+
0x73E: 84,
|
| 525 |
+
0x73F: 84,
|
| 526 |
+
0x740: 84,
|
| 527 |
+
0x741: 84,
|
| 528 |
+
0x742: 84,
|
| 529 |
+
0x743: 84,
|
| 530 |
+
0x744: 84,
|
| 531 |
+
0x745: 84,
|
| 532 |
+
0x746: 84,
|
| 533 |
+
0x747: 84,
|
| 534 |
+
0x748: 84,
|
| 535 |
+
0x749: 84,
|
| 536 |
+
0x74A: 84,
|
| 537 |
+
0x74D: 82,
|
| 538 |
+
0x74E: 68,
|
| 539 |
+
0x74F: 68,
|
| 540 |
+
0x750: 68,
|
| 541 |
+
0x751: 68,
|
| 542 |
+
0x752: 68,
|
| 543 |
+
0x753: 68,
|
| 544 |
+
0x754: 68,
|
| 545 |
+
0x755: 68,
|
| 546 |
+
0x756: 68,
|
| 547 |
+
0x757: 68,
|
| 548 |
+
0x758: 68,
|
| 549 |
+
0x759: 82,
|
| 550 |
+
0x75A: 82,
|
| 551 |
+
0x75B: 82,
|
| 552 |
+
0x75C: 68,
|
| 553 |
+
0x75D: 68,
|
| 554 |
+
0x75E: 68,
|
| 555 |
+
0x75F: 68,
|
| 556 |
+
0x760: 68,
|
| 557 |
+
0x761: 68,
|
| 558 |
+
0x762: 68,
|
| 559 |
+
0x763: 68,
|
| 560 |
+
0x764: 68,
|
| 561 |
+
0x765: 68,
|
| 562 |
+
0x766: 68,
|
| 563 |
+
0x767: 68,
|
| 564 |
+
0x768: 68,
|
| 565 |
+
0x769: 68,
|
| 566 |
+
0x76A: 68,
|
| 567 |
+
0x76B: 82,
|
| 568 |
+
0x76C: 82,
|
| 569 |
+
0x76D: 68,
|
| 570 |
+
0x76E: 68,
|
| 571 |
+
0x76F: 68,
|
| 572 |
+
0x770: 68,
|
| 573 |
+
0x771: 82,
|
| 574 |
+
0x772: 68,
|
| 575 |
+
0x773: 82,
|
| 576 |
+
0x774: 82,
|
| 577 |
+
0x775: 68,
|
| 578 |
+
0x776: 68,
|
| 579 |
+
0x777: 68,
|
| 580 |
+
0x778: 82,
|
| 581 |
+
0x779: 82,
|
| 582 |
+
0x77A: 68,
|
| 583 |
+
0x77B: 68,
|
| 584 |
+
0x77C: 68,
|
| 585 |
+
0x77D: 68,
|
| 586 |
+
0x77E: 68,
|
| 587 |
+
0x77F: 68,
|
| 588 |
+
0x7A6: 84,
|
| 589 |
+
0x7A7: 84,
|
| 590 |
+
0x7A8: 84,
|
| 591 |
+
0x7A9: 84,
|
| 592 |
+
0x7AA: 84,
|
| 593 |
+
0x7AB: 84,
|
| 594 |
+
0x7AC: 84,
|
| 595 |
+
0x7AD: 84,
|
| 596 |
+
0x7AE: 84,
|
| 597 |
+
0x7AF: 84,
|
| 598 |
+
0x7B0: 84,
|
| 599 |
+
0x7CA: 68,
|
| 600 |
+
0x7CB: 68,
|
| 601 |
+
0x7CC: 68,
|
| 602 |
+
0x7CD: 68,
|
| 603 |
+
0x7CE: 68,
|
| 604 |
+
0x7CF: 68,
|
| 605 |
+
0x7D0: 68,
|
| 606 |
+
0x7D1: 68,
|
| 607 |
+
0x7D2: 68,
|
| 608 |
+
0x7D3: 68,
|
| 609 |
+
0x7D4: 68,
|
| 610 |
+
0x7D5: 68,
|
| 611 |
+
0x7D6: 68,
|
| 612 |
+
0x7D7: 68,
|
| 613 |
+
0x7D8: 68,
|
| 614 |
+
0x7D9: 68,
|
| 615 |
+
0x7DA: 68,
|
| 616 |
+
0x7DB: 68,
|
| 617 |
+
0x7DC: 68,
|
| 618 |
+
0x7DD: 68,
|
| 619 |
+
0x7DE: 68,
|
| 620 |
+
0x7DF: 68,
|
| 621 |
+
0x7E0: 68,
|
| 622 |
+
0x7E1: 68,
|
| 623 |
+
0x7E2: 68,
|
| 624 |
+
0x7E3: 68,
|
| 625 |
+
0x7E4: 68,
|
| 626 |
+
0x7E5: 68,
|
| 627 |
+
0x7E6: 68,
|
| 628 |
+
0x7E7: 68,
|
| 629 |
+
0x7E8: 68,
|
| 630 |
+
0x7E9: 68,
|
| 631 |
+
0x7EA: 68,
|
| 632 |
+
0x7EB: 84,
|
| 633 |
+
0x7EC: 84,
|
| 634 |
+
0x7ED: 84,
|
| 635 |
+
0x7EE: 84,
|
| 636 |
+
0x7EF: 84,
|
| 637 |
+
0x7F0: 84,
|
| 638 |
+
0x7F1: 84,
|
| 639 |
+
0x7F2: 84,
|
| 640 |
+
0x7F3: 84,
|
| 641 |
+
0x7FA: 67,
|
| 642 |
+
0x7FD: 84,
|
| 643 |
+
0x816: 84,
|
| 644 |
+
0x817: 84,
|
| 645 |
+
0x818: 84,
|
| 646 |
+
0x819: 84,
|
| 647 |
+
0x81B: 84,
|
| 648 |
+
0x81C: 84,
|
| 649 |
+
0x81D: 84,
|
| 650 |
+
0x81E: 84,
|
| 651 |
+
0x81F: 84,
|
| 652 |
+
0x820: 84,
|
| 653 |
+
0x821: 84,
|
| 654 |
+
0x822: 84,
|
| 655 |
+
0x823: 84,
|
| 656 |
+
0x825: 84,
|
| 657 |
+
0x826: 84,
|
| 658 |
+
0x827: 84,
|
| 659 |
+
0x829: 84,
|
| 660 |
+
0x82A: 84,
|
| 661 |
+
0x82B: 84,
|
| 662 |
+
0x82C: 84,
|
| 663 |
+
0x82D: 84,
|
| 664 |
+
0x840: 82,
|
| 665 |
+
0x841: 68,
|
| 666 |
+
0x842: 68,
|
| 667 |
+
0x843: 68,
|
| 668 |
+
0x844: 68,
|
| 669 |
+
0x845: 68,
|
| 670 |
+
0x846: 82,
|
| 671 |
+
0x847: 82,
|
| 672 |
+
0x848: 68,
|
| 673 |
+
0x849: 82,
|
| 674 |
+
0x84A: 68,
|
| 675 |
+
0x84B: 68,
|
| 676 |
+
0x84C: 68,
|
| 677 |
+
0x84D: 68,
|
| 678 |
+
0x84E: 68,
|
| 679 |
+
0x84F: 68,
|
| 680 |
+
0x850: 68,
|
| 681 |
+
0x851: 68,
|
| 682 |
+
0x852: 68,
|
| 683 |
+
0x853: 68,
|
| 684 |
+
0x854: 82,
|
| 685 |
+
0x855: 68,
|
| 686 |
+
0x856: 82,
|
| 687 |
+
0x857: 82,
|
| 688 |
+
0x858: 82,
|
| 689 |
+
0x859: 84,
|
| 690 |
+
0x85A: 84,
|
| 691 |
+
0x85B: 84,
|
| 692 |
+
0x860: 68,
|
| 693 |
+
0x862: 68,
|
| 694 |
+
0x863: 68,
|
| 695 |
+
0x864: 68,
|
| 696 |
+
0x865: 68,
|
| 697 |
+
0x867: 82,
|
| 698 |
+
0x868: 68,
|
| 699 |
+
0x869: 82,
|
| 700 |
+
0x86A: 82,
|
| 701 |
+
0x870: 82,
|
| 702 |
+
0x871: 82,
|
| 703 |
+
0x872: 82,
|
| 704 |
+
0x873: 82,
|
| 705 |
+
0x874: 82,
|
| 706 |
+
0x875: 82,
|
| 707 |
+
0x876: 82,
|
| 708 |
+
0x877: 82,
|
| 709 |
+
0x878: 82,
|
| 710 |
+
0x879: 82,
|
| 711 |
+
0x87A: 82,
|
| 712 |
+
0x87B: 82,
|
| 713 |
+
0x87C: 82,
|
| 714 |
+
0x87D: 82,
|
| 715 |
+
0x87E: 82,
|
| 716 |
+
0x87F: 82,
|
| 717 |
+
0x880: 82,
|
| 718 |
+
0x881: 82,
|
| 719 |
+
0x882: 82,
|
| 720 |
+
0x883: 67,
|
| 721 |
+
0x884: 67,
|
| 722 |
+
0x885: 67,
|
| 723 |
+
0x886: 68,
|
| 724 |
+
0x889: 68,
|
| 725 |
+
0x88A: 68,
|
| 726 |
+
0x88B: 68,
|
| 727 |
+
0x88C: 68,
|
| 728 |
+
0x88D: 68,
|
| 729 |
+
0x88E: 82,
|
| 730 |
+
0x898: 84,
|
| 731 |
+
0x899: 84,
|
| 732 |
+
0x89A: 84,
|
| 733 |
+
0x89B: 84,
|
| 734 |
+
0x89C: 84,
|
| 735 |
+
0x89D: 84,
|
| 736 |
+
0x89E: 84,
|
| 737 |
+
0x89F: 84,
|
| 738 |
+
0x8A0: 68,
|
| 739 |
+
0x8A1: 68,
|
| 740 |
+
0x8A2: 68,
|
| 741 |
+
0x8A3: 68,
|
| 742 |
+
0x8A4: 68,
|
| 743 |
+
0x8A5: 68,
|
| 744 |
+
0x8A6: 68,
|
| 745 |
+
0x8A7: 68,
|
| 746 |
+
0x8A8: 68,
|
| 747 |
+
0x8A9: 68,
|
| 748 |
+
0x8AA: 82,
|
| 749 |
+
0x8AB: 82,
|
| 750 |
+
0x8AC: 82,
|
| 751 |
+
0x8AE: 82,
|
| 752 |
+
0x8AF: 68,
|
| 753 |
+
0x8B0: 68,
|
| 754 |
+
0x8B1: 82,
|
| 755 |
+
0x8B2: 82,
|
| 756 |
+
0x8B3: 68,
|
| 757 |
+
0x8B4: 68,
|
| 758 |
+
0x8B5: 68,
|
| 759 |
+
0x8B6: 68,
|
| 760 |
+
0x8B7: 68,
|
| 761 |
+
0x8B8: 68,
|
| 762 |
+
0x8B9: 82,
|
| 763 |
+
0x8BA: 68,
|
| 764 |
+
0x8BB: 68,
|
| 765 |
+
0x8BC: 68,
|
| 766 |
+
0x8BD: 68,
|
| 767 |
+
0x8BE: 68,
|
| 768 |
+
0x8BF: 68,
|
| 769 |
+
0x8C0: 68,
|
| 770 |
+
0x8C1: 68,
|
| 771 |
+
0x8C2: 68,
|
| 772 |
+
0x8C3: 68,
|
| 773 |
+
0x8C4: 68,
|
| 774 |
+
0x8C5: 68,
|
| 775 |
+
0x8C6: 68,
|
| 776 |
+
0x8C7: 68,
|
| 777 |
+
0x8C8: 68,
|
| 778 |
+
0x8CA: 84,
|
| 779 |
+
0x8CB: 84,
|
| 780 |
+
0x8CC: 84,
|
| 781 |
+
0x8CD: 84,
|
| 782 |
+
0x8CE: 84,
|
| 783 |
+
0x8CF: 84,
|
| 784 |
+
0x8D0: 84,
|
| 785 |
+
0x8D1: 84,
|
| 786 |
+
0x8D2: 84,
|
| 787 |
+
0x8D3: 84,
|
| 788 |
+
0x8D4: 84,
|
| 789 |
+
0x8D5: 84,
|
| 790 |
+
0x8D6: 84,
|
| 791 |
+
0x8D7: 84,
|
| 792 |
+
0x8D8: 84,
|
| 793 |
+
0x8D9: 84,
|
| 794 |
+
0x8DA: 84,
|
| 795 |
+
0x8DB: 84,
|
| 796 |
+
0x8DC: 84,
|
| 797 |
+
0x8DD: 84,
|
| 798 |
+
0x8DE: 84,
|
| 799 |
+
0x8DF: 84,
|
| 800 |
+
0x8E0: 84,
|
| 801 |
+
0x8E1: 84,
|
| 802 |
+
0x8E3: 84,
|
| 803 |
+
0x8E4: 84,
|
| 804 |
+
0x8E5: 84,
|
| 805 |
+
0x8E6: 84,
|
| 806 |
+
0x8E7: 84,
|
| 807 |
+
0x8E8: 84,
|
| 808 |
+
0x8E9: 84,
|
| 809 |
+
0x8EA: 84,
|
| 810 |
+
0x8EB: 84,
|
| 811 |
+
0x8EC: 84,
|
| 812 |
+
0x8ED: 84,
|
| 813 |
+
0x8EE: 84,
|
| 814 |
+
0x8EF: 84,
|
| 815 |
+
0x8F0: 84,
|
| 816 |
+
0x8F1: 84,
|
| 817 |
+
0x8F2: 84,
|
| 818 |
+
0x8F3: 84,
|
| 819 |
+
0x8F4: 84,
|
| 820 |
+
0x8F5: 84,
|
| 821 |
+
0x8F6: 84,
|
| 822 |
+
0x8F7: 84,
|
| 823 |
+
0x8F8: 84,
|
| 824 |
+
0x8F9: 84,
|
| 825 |
+
0x8FA: 84,
|
| 826 |
+
0x8FB: 84,
|
| 827 |
+
0x8FC: 84,
|
| 828 |
+
0x8FD: 84,
|
| 829 |
+
0x8FE: 84,
|
| 830 |
+
0x8FF: 84,
|
| 831 |
+
0x900: 84,
|
| 832 |
+
0x901: 84,
|
| 833 |
+
0x902: 84,
|
| 834 |
+
0x93A: 84,
|
| 835 |
+
0x93C: 84,
|
| 836 |
+
0x941: 84,
|
| 837 |
+
0x942: 84,
|
| 838 |
+
0x943: 84,
|
| 839 |
+
0x944: 84,
|
| 840 |
+
0x945: 84,
|
| 841 |
+
0x946: 84,
|
| 842 |
+
0x947: 84,
|
| 843 |
+
0x948: 84,
|
| 844 |
+
0x94D: 84,
|
| 845 |
+
0x951: 84,
|
| 846 |
+
0x952: 84,
|
| 847 |
+
0x953: 84,
|
| 848 |
+
0x954: 84,
|
| 849 |
+
0x955: 84,
|
| 850 |
+
0x956: 84,
|
| 851 |
+
0x957: 84,
|
| 852 |
+
0x962: 84,
|
| 853 |
+
0x963: 84,
|
| 854 |
+
0x981: 84,
|
| 855 |
+
0x9BC: 84,
|
| 856 |
+
0x9C1: 84,
|
| 857 |
+
0x9C2: 84,
|
| 858 |
+
0x9C3: 84,
|
| 859 |
+
0x9C4: 84,
|
| 860 |
+
0x9CD: 84,
|
| 861 |
+
0x9E2: 84,
|
| 862 |
+
0x9E3: 84,
|
| 863 |
+
0x9FE: 84,
|
| 864 |
+
0xA01: 84,
|
| 865 |
+
0xA02: 84,
|
| 866 |
+
0xA3C: 84,
|
| 867 |
+
0xA41: 84,
|
| 868 |
+
0xA42: 84,
|
| 869 |
+
0xA47: 84,
|
| 870 |
+
0xA48: 84,
|
| 871 |
+
0xA4B: 84,
|
| 872 |
+
0xA4C: 84,
|
| 873 |
+
0xA4D: 84,
|
| 874 |
+
0xA51: 84,
|
| 875 |
+
0xA70: 84,
|
| 876 |
+
0xA71: 84,
|
| 877 |
+
0xA75: 84,
|
| 878 |
+
0xA81: 84,
|
| 879 |
+
0xA82: 84,
|
| 880 |
+
0xABC: 84,
|
| 881 |
+
0xAC1: 84,
|
| 882 |
+
0xAC2: 84,
|
| 883 |
+
0xAC3: 84,
|
| 884 |
+
0xAC4: 84,
|
| 885 |
+
0xAC5: 84,
|
| 886 |
+
0xAC7: 84,
|
| 887 |
+
0xAC8: 84,
|
| 888 |
+
0xACD: 84,
|
| 889 |
+
0xAE2: 84,
|
| 890 |
+
0xAE3: 84,
|
| 891 |
+
0xAFA: 84,
|
| 892 |
+
0xAFB: 84,
|
| 893 |
+
0xAFC: 84,
|
| 894 |
+
0xAFD: 84,
|
| 895 |
+
0xAFE: 84,
|
| 896 |
+
0xAFF: 84,
|
| 897 |
+
0xB01: 84,
|
| 898 |
+
0xB3C: 84,
|
| 899 |
+
0xB3F: 84,
|
| 900 |
+
0xB41: 84,
|
| 901 |
+
0xB42: 84,
|
| 902 |
+
0xB43: 84,
|
| 903 |
+
0xB44: 84,
|
| 904 |
+
0xB4D: 84,
|
| 905 |
+
0xB55: 84,
|
| 906 |
+
0xB56: 84,
|
| 907 |
+
0xB62: 84,
|
| 908 |
+
0xB63: 84,
|
| 909 |
+
0xB82: 84,
|
| 910 |
+
0xBC0: 84,
|
| 911 |
+
0xBCD: 84,
|
| 912 |
+
0xC00: 84,
|
| 913 |
+
0xC04: 84,
|
| 914 |
+
0xC3C: 84,
|
| 915 |
+
0xC3E: 84,
|
| 916 |
+
0xC3F: 84,
|
| 917 |
+
0xC40: 84,
|
| 918 |
+
0xC46: 84,
|
| 919 |
+
0xC47: 84,
|
| 920 |
+
0xC48: 84,
|
| 921 |
+
0xC4A: 84,
|
| 922 |
+
0xC4B: 84,
|
| 923 |
+
0xC4C: 84,
|
| 924 |
+
0xC4D: 84,
|
| 925 |
+
0xC55: 84,
|
| 926 |
+
0xC56: 84,
|
| 927 |
+
0xC62: 84,
|
| 928 |
+
0xC63: 84,
|
| 929 |
+
0xC81: 84,
|
| 930 |
+
0xCBC: 84,
|
| 931 |
+
0xCBF: 84,
|
| 932 |
+
0xCC6: 84,
|
| 933 |
+
0xCCC: 84,
|
| 934 |
+
0xCCD: 84,
|
| 935 |
+
0xCE2: 84,
|
| 936 |
+
0xCE3: 84,
|
| 937 |
+
0xD00: 84,
|
| 938 |
+
0xD01: 84,
|
| 939 |
+
0xD3B: 84,
|
| 940 |
+
0xD3C: 84,
|
| 941 |
+
0xD41: 84,
|
| 942 |
+
0xD42: 84,
|
| 943 |
+
0xD43: 84,
|
| 944 |
+
0xD44: 84,
|
| 945 |
+
0xD4D: 84,
|
| 946 |
+
0xD62: 84,
|
| 947 |
+
0xD63: 84,
|
| 948 |
+
0xD81: 84,
|
| 949 |
+
0xDCA: 84,
|
| 950 |
+
0xDD2: 84,
|
| 951 |
+
0xDD3: 84,
|
| 952 |
+
0xDD4: 84,
|
| 953 |
+
0xDD6: 84,
|
| 954 |
+
0xE31: 84,
|
| 955 |
+
0xE34: 84,
|
| 956 |
+
0xE35: 84,
|
| 957 |
+
0xE36: 84,
|
| 958 |
+
0xE37: 84,
|
| 959 |
+
0xE38: 84,
|
| 960 |
+
0xE39: 84,
|
| 961 |
+
0xE3A: 84,
|
| 962 |
+
0xE47: 84,
|
| 963 |
+
0xE48: 84,
|
| 964 |
+
0xE49: 84,
|
| 965 |
+
0xE4A: 84,
|
| 966 |
+
0xE4B: 84,
|
| 967 |
+
0xE4C: 84,
|
| 968 |
+
0xE4D: 84,
|
| 969 |
+
0xE4E: 84,
|
| 970 |
+
0xEB1: 84,
|
| 971 |
+
0xEB4: 84,
|
| 972 |
+
0xEB5: 84,
|
| 973 |
+
0xEB6: 84,
|
| 974 |
+
0xEB7: 84,
|
| 975 |
+
0xEB8: 84,
|
| 976 |
+
0xEB9: 84,
|
| 977 |
+
0xEBA: 84,
|
| 978 |
+
0xEBB: 84,
|
| 979 |
+
0xEBC: 84,
|
| 980 |
+
0xEC8: 84,
|
| 981 |
+
0xEC9: 84,
|
| 982 |
+
0xECA: 84,
|
| 983 |
+
0xECB: 84,
|
| 984 |
+
0xECC: 84,
|
| 985 |
+
0xECD: 84,
|
| 986 |
+
0xECE: 84,
|
| 987 |
+
0xF18: 84,
|
| 988 |
+
0xF19: 84,
|
| 989 |
+
0xF35: 84,
|
| 990 |
+
0xF37: 84,
|
| 991 |
+
0xF39: 84,
|
| 992 |
+
0xF71: 84,
|
| 993 |
+
0xF72: 84,
|
| 994 |
+
0xF73: 84,
|
| 995 |
+
0xF74: 84,
|
| 996 |
+
0xF75: 84,
|
| 997 |
+
0xF76: 84,
|
| 998 |
+
0xF77: 84,
|
| 999 |
+
0xF78: 84,
|
| 1000 |
+
0xF79: 84,
|
| 1001 |
+
0xF7A: 84,
|
| 1002 |
+
0xF7B: 84,
|
| 1003 |
+
0xF7C: 84,
|
| 1004 |
+
0xF7D: 84,
|
| 1005 |
+
0xF7E: 84,
|
| 1006 |
+
0xF80: 84,
|
| 1007 |
+
0xF81: 84,
|
| 1008 |
+
0xF82: 84,
|
| 1009 |
+
0xF83: 84,
|
| 1010 |
+
0xF84: 84,
|
| 1011 |
+
0xF86: 84,
|
| 1012 |
+
0xF87: 84,
|
| 1013 |
+
0xF8D: 84,
|
| 1014 |
+
0xF8E: 84,
|
| 1015 |
+
0xF8F: 84,
|
| 1016 |
+
0xF90: 84,
|
| 1017 |
+
0xF91: 84,
|
| 1018 |
+
0xF92: 84,
|
| 1019 |
+
0xF93: 84,
|
| 1020 |
+
0xF94: 84,
|
| 1021 |
+
0xF95: 84,
|
| 1022 |
+
0xF96: 84,
|
| 1023 |
+
0xF97: 84,
|
| 1024 |
+
0xF99: 84,
|
| 1025 |
+
0xF9A: 84,
|
| 1026 |
+
0xF9B: 84,
|
| 1027 |
+
0xF9C: 84,
|
| 1028 |
+
0xF9D: 84,
|
| 1029 |
+
0xF9E: 84,
|
| 1030 |
+
0xF9F: 84,
|
| 1031 |
+
0xFA0: 84,
|
| 1032 |
+
0xFA1: 84,
|
| 1033 |
+
0xFA2: 84,
|
| 1034 |
+
0xFA3: 84,
|
| 1035 |
+
0xFA4: 84,
|
| 1036 |
+
0xFA5: 84,
|
| 1037 |
+
0xFA6: 84,
|
| 1038 |
+
0xFA7: 84,
|
| 1039 |
+
0xFA8: 84,
|
| 1040 |
+
0xFA9: 84,
|
| 1041 |
+
0xFAA: 84,
|
| 1042 |
+
0xFAB: 84,
|
| 1043 |
+
0xFAC: 84,
|
| 1044 |
+
0xFAD: 84,
|
| 1045 |
+
0xFAE: 84,
|
| 1046 |
+
0xFAF: 84,
|
| 1047 |
+
0xFB0: 84,
|
| 1048 |
+
0xFB1: 84,
|
| 1049 |
+
0xFB2: 84,
|
| 1050 |
+
0xFB3: 84,
|
| 1051 |
+
0xFB4: 84,
|
| 1052 |
+
0xFB5: 84,
|
| 1053 |
+
0xFB6: 84,
|
| 1054 |
+
0xFB7: 84,
|
| 1055 |
+
0xFB8: 84,
|
| 1056 |
+
0xFB9: 84,
|
| 1057 |
+
0xFBA: 84,
|
| 1058 |
+
0xFBB: 84,
|
| 1059 |
+
0xFBC: 84,
|
| 1060 |
+
0xFC6: 84,
|
| 1061 |
+
0x102D: 84,
|
| 1062 |
+
0x102E: 84,
|
| 1063 |
+
0x102F: 84,
|
| 1064 |
+
0x1030: 84,
|
| 1065 |
+
0x1032: 84,
|
| 1066 |
+
0x1033: 84,
|
| 1067 |
+
0x1034: 84,
|
| 1068 |
+
0x1035: 84,
|
| 1069 |
+
0x1036: 84,
|
| 1070 |
+
0x1037: 84,
|
| 1071 |
+
0x1039: 84,
|
| 1072 |
+
0x103A: 84,
|
| 1073 |
+
0x103D: 84,
|
| 1074 |
+
0x103E: 84,
|
| 1075 |
+
0x1058: 84,
|
| 1076 |
+
0x1059: 84,
|
| 1077 |
+
0x105E: 84,
|
| 1078 |
+
0x105F: 84,
|
| 1079 |
+
0x1060: 84,
|
| 1080 |
+
0x1071: 84,
|
| 1081 |
+
0x1072: 84,
|
| 1082 |
+
0x1073: 84,
|
| 1083 |
+
0x1074: 84,
|
| 1084 |
+
0x1082: 84,
|
| 1085 |
+
0x1085: 84,
|
| 1086 |
+
0x1086: 84,
|
| 1087 |
+
0x108D: 84,
|
| 1088 |
+
0x109D: 84,
|
| 1089 |
+
0x135D: 84,
|
| 1090 |
+
0x135E: 84,
|
| 1091 |
+
0x135F: 84,
|
| 1092 |
+
0x1712: 84,
|
| 1093 |
+
0x1713: 84,
|
| 1094 |
+
0x1714: 84,
|
| 1095 |
+
0x1732: 84,
|
| 1096 |
+
0x1733: 84,
|
| 1097 |
+
0x1752: 84,
|
| 1098 |
+
0x1753: 84,
|
| 1099 |
+
0x1772: 84,
|
| 1100 |
+
0x1773: 84,
|
| 1101 |
+
0x17B4: 84,
|
| 1102 |
+
0x17B5: 84,
|
| 1103 |
+
0x17B7: 84,
|
| 1104 |
+
0x17B8: 84,
|
| 1105 |
+
0x17B9: 84,
|
| 1106 |
+
0x17BA: 84,
|
| 1107 |
+
0x17BB: 84,
|
| 1108 |
+
0x17BC: 84,
|
| 1109 |
+
0x17BD: 84,
|
| 1110 |
+
0x17C6: 84,
|
| 1111 |
+
0x17C9: 84,
|
| 1112 |
+
0x17CA: 84,
|
| 1113 |
+
0x17CB: 84,
|
| 1114 |
+
0x17CC: 84,
|
| 1115 |
+
0x17CD: 84,
|
| 1116 |
+
0x17CE: 84,
|
| 1117 |
+
0x17CF: 84,
|
| 1118 |
+
0x17D0: 84,
|
| 1119 |
+
0x17D1: 84,
|
| 1120 |
+
0x17D2: 84,
|
| 1121 |
+
0x17D3: 84,
|
| 1122 |
+
0x17DD: 84,
|
| 1123 |
+
0x1807: 68,
|
| 1124 |
+
0x180A: 67,
|
| 1125 |
+
0x180B: 84,
|
| 1126 |
+
0x180C: 84,
|
| 1127 |
+
0x180D: 84,
|
| 1128 |
+
0x180F: 84,
|
| 1129 |
+
0x1820: 68,
|
| 1130 |
+
0x1821: 68,
|
| 1131 |
+
0x1822: 68,
|
| 1132 |
+
0x1823: 68,
|
| 1133 |
+
0x1824: 68,
|
| 1134 |
+
0x1825: 68,
|
| 1135 |
+
0x1826: 68,
|
| 1136 |
+
0x1827: 68,
|
| 1137 |
+
0x1828: 68,
|
| 1138 |
+
0x1829: 68,
|
| 1139 |
+
0x182A: 68,
|
| 1140 |
+
0x182B: 68,
|
| 1141 |
+
0x182C: 68,
|
| 1142 |
+
0x182D: 68,
|
| 1143 |
+
0x182E: 68,
|
| 1144 |
+
0x182F: 68,
|
| 1145 |
+
0x1830: 68,
|
| 1146 |
+
0x1831: 68,
|
| 1147 |
+
0x1832: 68,
|
| 1148 |
+
0x1833: 68,
|
| 1149 |
+
0x1834: 68,
|
| 1150 |
+
0x1835: 68,
|
| 1151 |
+
0x1836: 68,
|
| 1152 |
+
0x1837: 68,
|
| 1153 |
+
0x1838: 68,
|
| 1154 |
+
0x1839: 68,
|
| 1155 |
+
0x183A: 68,
|
| 1156 |
+
0x183B: 68,
|
| 1157 |
+
0x183C: 68,
|
| 1158 |
+
0x183D: 68,
|
| 1159 |
+
0x183E: 68,
|
| 1160 |
+
0x183F: 68,
|
| 1161 |
+
0x1840: 68,
|
| 1162 |
+
0x1841: 68,
|
| 1163 |
+
0x1842: 68,
|
| 1164 |
+
0x1843: 68,
|
| 1165 |
+
0x1844: 68,
|
| 1166 |
+
0x1845: 68,
|
| 1167 |
+
0x1846: 68,
|
| 1168 |
+
0x1847: 68,
|
| 1169 |
+
0x1848: 68,
|
| 1170 |
+
0x1849: 68,
|
| 1171 |
+
0x184A: 68,
|
| 1172 |
+
0x184B: 68,
|
| 1173 |
+
0x184C: 68,
|
| 1174 |
+
0x184D: 68,
|
| 1175 |
+
0x184E: 68,
|
| 1176 |
+
0x184F: 68,
|
| 1177 |
+
0x1850: 68,
|
| 1178 |
+
0x1851: 68,
|
| 1179 |
+
0x1852: 68,
|
| 1180 |
+
0x1853: 68,
|
| 1181 |
+
0x1854: 68,
|
| 1182 |
+
0x1855: 68,
|
| 1183 |
+
0x1856: 68,
|
| 1184 |
+
0x1857: 68,
|
| 1185 |
+
0x1858: 68,
|
| 1186 |
+
0x1859: 68,
|
| 1187 |
+
0x185A: 68,
|
| 1188 |
+
0x185B: 68,
|
| 1189 |
+
0x185C: 68,
|
| 1190 |
+
0x185D: 68,
|
| 1191 |
+
0x185E: 68,
|
| 1192 |
+
0x185F: 68,
|
| 1193 |
+
0x1860: 68,
|
| 1194 |
+
0x1861: 68,
|
| 1195 |
+
0x1862: 68,
|
| 1196 |
+
0x1863: 68,
|
| 1197 |
+
0x1864: 68,
|
| 1198 |
+
0x1865: 68,
|
| 1199 |
+
0x1866: 68,
|
| 1200 |
+
0x1867: 68,
|
| 1201 |
+
0x1868: 68,
|
| 1202 |
+
0x1869: 68,
|
| 1203 |
+
0x186A: 68,
|
| 1204 |
+
0x186B: 68,
|
| 1205 |
+
0x186C: 68,
|
| 1206 |
+
0x186D: 68,
|
| 1207 |
+
0x186E: 68,
|
| 1208 |
+
0x186F: 68,
|
| 1209 |
+
0x1870: 68,
|
| 1210 |
+
0x1871: 68,
|
| 1211 |
+
0x1872: 68,
|
| 1212 |
+
0x1873: 68,
|
| 1213 |
+
0x1874: 68,
|
| 1214 |
+
0x1875: 68,
|
| 1215 |
+
0x1876: 68,
|
| 1216 |
+
0x1877: 68,
|
| 1217 |
+
0x1878: 68,
|
| 1218 |
+
0x1885: 84,
|
| 1219 |
+
0x1886: 84,
|
| 1220 |
+
0x1887: 68,
|
| 1221 |
+
0x1888: 68,
|
| 1222 |
+
0x1889: 68,
|
| 1223 |
+
0x188A: 68,
|
| 1224 |
+
0x188B: 68,
|
| 1225 |
+
0x188C: 68,
|
| 1226 |
+
0x188D: 68,
|
| 1227 |
+
0x188E: 68,
|
| 1228 |
+
0x188F: 68,
|
| 1229 |
+
0x1890: 68,
|
| 1230 |
+
0x1891: 68,
|
| 1231 |
+
0x1892: 68,
|
| 1232 |
+
0x1893: 68,
|
| 1233 |
+
0x1894: 68,
|
| 1234 |
+
0x1895: 68,
|
| 1235 |
+
0x1896: 68,
|
| 1236 |
+
0x1897: 68,
|
| 1237 |
+
0x1898: 68,
|
| 1238 |
+
0x1899: 68,
|
| 1239 |
+
0x189A: 68,
|
| 1240 |
+
0x189B: 68,
|
| 1241 |
+
0x189C: 68,
|
| 1242 |
+
0x189D: 68,
|
| 1243 |
+
0x189E: 68,
|
| 1244 |
+
0x189F: 68,
|
| 1245 |
+
0x18A0: 68,
|
| 1246 |
+
0x18A1: 68,
|
| 1247 |
+
0x18A2: 68,
|
| 1248 |
+
0x18A3: 68,
|
| 1249 |
+
0x18A4: 68,
|
| 1250 |
+
0x18A5: 68,
|
| 1251 |
+
0x18A6: 68,
|
| 1252 |
+
0x18A7: 68,
|
| 1253 |
+
0x18A8: 68,
|
| 1254 |
+
0x18A9: 84,
|
| 1255 |
+
0x18AA: 68,
|
| 1256 |
+
0x1920: 84,
|
| 1257 |
+
0x1921: 84,
|
| 1258 |
+
0x1922: 84,
|
| 1259 |
+
0x1927: 84,
|
| 1260 |
+
0x1928: 84,
|
| 1261 |
+
0x1932: 84,
|
| 1262 |
+
0x1939: 84,
|
| 1263 |
+
0x193A: 84,
|
| 1264 |
+
0x193B: 84,
|
| 1265 |
+
0x1A17: 84,
|
| 1266 |
+
0x1A18: 84,
|
| 1267 |
+
0x1A1B: 84,
|
| 1268 |
+
0x1A56: 84,
|
| 1269 |
+
0x1A58: 84,
|
| 1270 |
+
0x1A59: 84,
|
| 1271 |
+
0x1A5A: 84,
|
| 1272 |
+
0x1A5B: 84,
|
| 1273 |
+
0x1A5C: 84,
|
| 1274 |
+
0x1A5D: 84,
|
| 1275 |
+
0x1A5E: 84,
|
| 1276 |
+
0x1A60: 84,
|
| 1277 |
+
0x1A62: 84,
|
| 1278 |
+
0x1A65: 84,
|
| 1279 |
+
0x1A66: 84,
|
| 1280 |
+
0x1A67: 84,
|
| 1281 |
+
0x1A68: 84,
|
| 1282 |
+
0x1A69: 84,
|
| 1283 |
+
0x1A6A: 84,
|
| 1284 |
+
0x1A6B: 84,
|
| 1285 |
+
0x1A6C: 84,
|
| 1286 |
+
0x1A73: 84,
|
| 1287 |
+
0x1A74: 84,
|
| 1288 |
+
0x1A75: 84,
|
| 1289 |
+
0x1A76: 84,
|
| 1290 |
+
0x1A77: 84,
|
| 1291 |
+
0x1A78: 84,
|
| 1292 |
+
0x1A79: 84,
|
| 1293 |
+
0x1A7A: 84,
|
| 1294 |
+
0x1A7B: 84,
|
| 1295 |
+
0x1A7C: 84,
|
| 1296 |
+
0x1A7F: 84,
|
| 1297 |
+
0x1AB0: 84,
|
| 1298 |
+
0x1AB1: 84,
|
| 1299 |
+
0x1AB2: 84,
|
| 1300 |
+
0x1AB3: 84,
|
| 1301 |
+
0x1AB4: 84,
|
| 1302 |
+
0x1AB5: 84,
|
| 1303 |
+
0x1AB6: 84,
|
| 1304 |
+
0x1AB7: 84,
|
| 1305 |
+
0x1AB8: 84,
|
| 1306 |
+
0x1AB9: 84,
|
| 1307 |
+
0x1ABA: 84,
|
| 1308 |
+
0x1ABB: 84,
|
| 1309 |
+
0x1ABC: 84,
|
| 1310 |
+
0x1ABD: 84,
|
| 1311 |
+
0x1ABE: 84,
|
| 1312 |
+
0x1ABF: 84,
|
| 1313 |
+
0x1AC0: 84,
|
| 1314 |
+
0x1AC1: 84,
|
| 1315 |
+
0x1AC2: 84,
|
| 1316 |
+
0x1AC3: 84,
|
| 1317 |
+
0x1AC4: 84,
|
| 1318 |
+
0x1AC5: 84,
|
| 1319 |
+
0x1AC6: 84,
|
| 1320 |
+
0x1AC7: 84,
|
| 1321 |
+
0x1AC8: 84,
|
| 1322 |
+
0x1AC9: 84,
|
| 1323 |
+
0x1ACA: 84,
|
| 1324 |
+
0x1ACB: 84,
|
| 1325 |
+
0x1ACC: 84,
|
| 1326 |
+
0x1ACD: 84,
|
| 1327 |
+
0x1ACE: 84,
|
| 1328 |
+
0x1B00: 84,
|
| 1329 |
+
0x1B01: 84,
|
| 1330 |
+
0x1B02: 84,
|
| 1331 |
+
0x1B03: 84,
|
| 1332 |
+
0x1B34: 84,
|
| 1333 |
+
0x1B36: 84,
|
| 1334 |
+
0x1B37: 84,
|
| 1335 |
+
0x1B38: 84,
|
| 1336 |
+
0x1B39: 84,
|
| 1337 |
+
0x1B3A: 84,
|
| 1338 |
+
0x1B3C: 84,
|
| 1339 |
+
0x1B42: 84,
|
| 1340 |
+
0x1B6B: 84,
|
| 1341 |
+
0x1B6C: 84,
|
| 1342 |
+
0x1B6D: 84,
|
| 1343 |
+
0x1B6E: 84,
|
| 1344 |
+
0x1B6F: 84,
|
| 1345 |
+
0x1B70: 84,
|
| 1346 |
+
0x1B71: 84,
|
| 1347 |
+
0x1B72: 84,
|
| 1348 |
+
0x1B73: 84,
|
| 1349 |
+
0x1B80: 84,
|
| 1350 |
+
0x1B81: 84,
|
| 1351 |
+
0x1BA2: 84,
|
| 1352 |
+
0x1BA3: 84,
|
| 1353 |
+
0x1BA4: 84,
|
| 1354 |
+
0x1BA5: 84,
|
| 1355 |
+
0x1BA8: 84,
|
| 1356 |
+
0x1BA9: 84,
|
| 1357 |
+
0x1BAB: 84,
|
| 1358 |
+
0x1BAC: 84,
|
| 1359 |
+
0x1BAD: 84,
|
| 1360 |
+
0x1BE6: 84,
|
| 1361 |
+
0x1BE8: 84,
|
| 1362 |
+
0x1BE9: 84,
|
| 1363 |
+
0x1BED: 84,
|
| 1364 |
+
0x1BEF: 84,
|
| 1365 |
+
0x1BF0: 84,
|
| 1366 |
+
0x1BF1: 84,
|
| 1367 |
+
0x1C2C: 84,
|
| 1368 |
+
0x1C2D: 84,
|
| 1369 |
+
0x1C2E: 84,
|
| 1370 |
+
0x1C2F: 84,
|
| 1371 |
+
0x1C30: 84,
|
| 1372 |
+
0x1C31: 84,
|
| 1373 |
+
0x1C32: 84,
|
| 1374 |
+
0x1C33: 84,
|
| 1375 |
+
0x1C36: 84,
|
| 1376 |
+
0x1C37: 84,
|
| 1377 |
+
0x1CD0: 84,
|
| 1378 |
+
0x1CD1: 84,
|
| 1379 |
+
0x1CD2: 84,
|
| 1380 |
+
0x1CD4: 84,
|
| 1381 |
+
0x1CD5: 84,
|
| 1382 |
+
0x1CD6: 84,
|
| 1383 |
+
0x1CD7: 84,
|
| 1384 |
+
0x1CD8: 84,
|
| 1385 |
+
0x1CD9: 84,
|
| 1386 |
+
0x1CDA: 84,
|
| 1387 |
+
0x1CDB: 84,
|
| 1388 |
+
0x1CDC: 84,
|
| 1389 |
+
0x1CDD: 84,
|
| 1390 |
+
0x1CDE: 84,
|
| 1391 |
+
0x1CDF: 84,
|
| 1392 |
+
0x1CE0: 84,
|
| 1393 |
+
0x1CE2: 84,
|
| 1394 |
+
0x1CE3: 84,
|
| 1395 |
+
0x1CE4: 84,
|
| 1396 |
+
0x1CE5: 84,
|
| 1397 |
+
0x1CE6: 84,
|
| 1398 |
+
0x1CE7: 84,
|
| 1399 |
+
0x1CE8: 84,
|
| 1400 |
+
0x1CED: 84,
|
| 1401 |
+
0x1CF4: 84,
|
| 1402 |
+
0x1CF8: 84,
|
| 1403 |
+
0x1CF9: 84,
|
| 1404 |
+
0x1DC0: 84,
|
| 1405 |
+
0x1DC1: 84,
|
| 1406 |
+
0x1DC2: 84,
|
| 1407 |
+
0x1DC3: 84,
|
| 1408 |
+
0x1DC4: 84,
|
| 1409 |
+
0x1DC5: 84,
|
| 1410 |
+
0x1DC6: 84,
|
| 1411 |
+
0x1DC7: 84,
|
| 1412 |
+
0x1DC8: 84,
|
| 1413 |
+
0x1DC9: 84,
|
| 1414 |
+
0x1DCA: 84,
|
| 1415 |
+
0x1DCB: 84,
|
| 1416 |
+
0x1DCC: 84,
|
| 1417 |
+
0x1DCD: 84,
|
| 1418 |
+
0x1DCE: 84,
|
| 1419 |
+
0x1DCF: 84,
|
| 1420 |
+
0x1DD0: 84,
|
| 1421 |
+
0x1DD1: 84,
|
| 1422 |
+
0x1DD2: 84,
|
| 1423 |
+
0x1DD3: 84,
|
| 1424 |
+
0x1DD4: 84,
|
| 1425 |
+
0x1DD5: 84,
|
| 1426 |
+
0x1DD6: 84,
|
| 1427 |
+
0x1DD7: 84,
|
| 1428 |
+
0x1DD8: 84,
|
| 1429 |
+
0x1DD9: 84,
|
| 1430 |
+
0x1DDA: 84,
|
| 1431 |
+
0x1DDB: 84,
|
| 1432 |
+
0x1DDC: 84,
|
| 1433 |
+
0x1DDD: 84,
|
| 1434 |
+
0x1DDE: 84,
|
| 1435 |
+
0x1DDF: 84,
|
| 1436 |
+
0x1DE0: 84,
|
| 1437 |
+
0x1DE1: 84,
|
| 1438 |
+
0x1DE2: 84,
|
| 1439 |
+
0x1DE3: 84,
|
| 1440 |
+
0x1DE4: 84,
|
| 1441 |
+
0x1DE5: 84,
|
| 1442 |
+
0x1DE6: 84,
|
| 1443 |
+
0x1DE7: 84,
|
| 1444 |
+
0x1DE8: 84,
|
| 1445 |
+
0x1DE9: 84,
|
| 1446 |
+
0x1DEA: 84,
|
| 1447 |
+
0x1DEB: 84,
|
| 1448 |
+
0x1DEC: 84,
|
| 1449 |
+
0x1DED: 84,
|
| 1450 |
+
0x1DEE: 84,
|
| 1451 |
+
0x1DEF: 84,
|
| 1452 |
+
0x1DF0: 84,
|
| 1453 |
+
0x1DF1: 84,
|
| 1454 |
+
0x1DF2: 84,
|
| 1455 |
+
0x1DF3: 84,
|
| 1456 |
+
0x1DF4: 84,
|
| 1457 |
+
0x1DF5: 84,
|
| 1458 |
+
0x1DF6: 84,
|
| 1459 |
+
0x1DF7: 84,
|
| 1460 |
+
0x1DF8: 84,
|
| 1461 |
+
0x1DF9: 84,
|
| 1462 |
+
0x1DFA: 84,
|
| 1463 |
+
0x1DFB: 84,
|
| 1464 |
+
0x1DFC: 84,
|
| 1465 |
+
0x1DFD: 84,
|
| 1466 |
+
0x1DFE: 84,
|
| 1467 |
+
0x1DFF: 84,
|
| 1468 |
+
0x200B: 84,
|
| 1469 |
+
0x200D: 67,
|
| 1470 |
+
0x200E: 84,
|
| 1471 |
+
0x200F: 84,
|
| 1472 |
+
0x202A: 84,
|
| 1473 |
+
0x202B: 84,
|
| 1474 |
+
0x202C: 84,
|
| 1475 |
+
0x202D: 84,
|
| 1476 |
+
0x202E: 84,
|
| 1477 |
+
0x2060: 84,
|
| 1478 |
+
0x2061: 84,
|
| 1479 |
+
0x2062: 84,
|
| 1480 |
+
0x2063: 84,
|
| 1481 |
+
0x2064: 84,
|
| 1482 |
+
0x206A: 84,
|
| 1483 |
+
0x206B: 84,
|
| 1484 |
+
0x206C: 84,
|
| 1485 |
+
0x206D: 84,
|
| 1486 |
+
0x206E: 84,
|
| 1487 |
+
0x206F: 84,
|
| 1488 |
+
0x20D0: 84,
|
| 1489 |
+
0x20D1: 84,
|
| 1490 |
+
0x20D2: 84,
|
| 1491 |
+
0x20D3: 84,
|
| 1492 |
+
0x20D4: 84,
|
| 1493 |
+
0x20D5: 84,
|
| 1494 |
+
0x20D6: 84,
|
| 1495 |
+
0x20D7: 84,
|
| 1496 |
+
0x20D8: 84,
|
| 1497 |
+
0x20D9: 84,
|
| 1498 |
+
0x20DA: 84,
|
| 1499 |
+
0x20DB: 84,
|
| 1500 |
+
0x20DC: 84,
|
| 1501 |
+
0x20DD: 84,
|
| 1502 |
+
0x20DE: 84,
|
| 1503 |
+
0x20DF: 84,
|
| 1504 |
+
0x20E0: 84,
|
| 1505 |
+
0x20E1: 84,
|
| 1506 |
+
0x20E2: 84,
|
| 1507 |
+
0x20E3: 84,
|
| 1508 |
+
0x20E4: 84,
|
| 1509 |
+
0x20E5: 84,
|
| 1510 |
+
0x20E6: 84,
|
| 1511 |
+
0x20E7: 84,
|
| 1512 |
+
0x20E8: 84,
|
| 1513 |
+
0x20E9: 84,
|
| 1514 |
+
0x20EA: 84,
|
| 1515 |
+
0x20EB: 84,
|
| 1516 |
+
0x20EC: 84,
|
| 1517 |
+
0x20ED: 84,
|
| 1518 |
+
0x20EE: 84,
|
| 1519 |
+
0x20EF: 84,
|
| 1520 |
+
0x20F0: 84,
|
| 1521 |
+
0x2CEF: 84,
|
| 1522 |
+
0x2CF0: 84,
|
| 1523 |
+
0x2CF1: 84,
|
| 1524 |
+
0x2D7F: 84,
|
| 1525 |
+
0x2DE0: 84,
|
| 1526 |
+
0x2DE1: 84,
|
| 1527 |
+
0x2DE2: 84,
|
| 1528 |
+
0x2DE3: 84,
|
| 1529 |
+
0x2DE4: 84,
|
| 1530 |
+
0x2DE5: 84,
|
| 1531 |
+
0x2DE6: 84,
|
| 1532 |
+
0x2DE7: 84,
|
| 1533 |
+
0x2DE8: 84,
|
| 1534 |
+
0x2DE9: 84,
|
| 1535 |
+
0x2DEA: 84,
|
| 1536 |
+
0x2DEB: 84,
|
| 1537 |
+
0x2DEC: 84,
|
| 1538 |
+
0x2DED: 84,
|
| 1539 |
+
0x2DEE: 84,
|
| 1540 |
+
0x2DEF: 84,
|
| 1541 |
+
0x2DF0: 84,
|
| 1542 |
+
0x2DF1: 84,
|
| 1543 |
+
0x2DF2: 84,
|
| 1544 |
+
0x2DF3: 84,
|
| 1545 |
+
0x2DF4: 84,
|
| 1546 |
+
0x2DF5: 84,
|
| 1547 |
+
0x2DF6: 84,
|
| 1548 |
+
0x2DF7: 84,
|
| 1549 |
+
0x2DF8: 84,
|
| 1550 |
+
0x2DF9: 84,
|
| 1551 |
+
0x2DFA: 84,
|
| 1552 |
+
0x2DFB: 84,
|
| 1553 |
+
0x2DFC: 84,
|
| 1554 |
+
0x2DFD: 84,
|
| 1555 |
+
0x2DFE: 84,
|
| 1556 |
+
0x2DFF: 84,
|
| 1557 |
+
0x302A: 84,
|
| 1558 |
+
0x302B: 84,
|
| 1559 |
+
0x302C: 84,
|
| 1560 |
+
0x302D: 84,
|
| 1561 |
+
0x3099: 84,
|
| 1562 |
+
0x309A: 84,
|
| 1563 |
+
0xA66F: 84,
|
| 1564 |
+
0xA670: 84,
|
| 1565 |
+
0xA671: 84,
|
| 1566 |
+
0xA672: 84,
|
| 1567 |
+
0xA674: 84,
|
| 1568 |
+
0xA675: 84,
|
| 1569 |
+
0xA676: 84,
|
| 1570 |
+
0xA677: 84,
|
| 1571 |
+
0xA678: 84,
|
| 1572 |
+
0xA679: 84,
|
| 1573 |
+
0xA67A: 84,
|
| 1574 |
+
0xA67B: 84,
|
| 1575 |
+
0xA67C: 84,
|
| 1576 |
+
0xA67D: 84,
|
| 1577 |
+
0xA69E: 84,
|
| 1578 |
+
0xA69F: 84,
|
| 1579 |
+
0xA6F0: 84,
|
| 1580 |
+
0xA6F1: 84,
|
| 1581 |
+
0xA802: 84,
|
| 1582 |
+
0xA806: 84,
|
| 1583 |
+
0xA80B: 84,
|
| 1584 |
+
0xA825: 84,
|
| 1585 |
+
0xA826: 84,
|
| 1586 |
+
0xA82C: 84,
|
| 1587 |
+
0xA840: 68,
|
| 1588 |
+
0xA841: 68,
|
| 1589 |
+
0xA842: 68,
|
| 1590 |
+
0xA843: 68,
|
| 1591 |
+
0xA844: 68,
|
| 1592 |
+
0xA845: 68,
|
| 1593 |
+
0xA846: 68,
|
| 1594 |
+
0xA847: 68,
|
| 1595 |
+
0xA848: 68,
|
| 1596 |
+
0xA849: 68,
|
| 1597 |
+
0xA84A: 68,
|
| 1598 |
+
0xA84B: 68,
|
| 1599 |
+
0xA84C: 68,
|
| 1600 |
+
0xA84D: 68,
|
| 1601 |
+
0xA84E: 68,
|
| 1602 |
+
0xA84F: 68,
|
| 1603 |
+
0xA850: 68,
|
| 1604 |
+
0xA851: 68,
|
| 1605 |
+
0xA852: 68,
|
| 1606 |
+
0xA853: 68,
|
| 1607 |
+
0xA854: 68,
|
| 1608 |
+
0xA855: 68,
|
| 1609 |
+
0xA856: 68,
|
| 1610 |
+
0xA857: 68,
|
| 1611 |
+
0xA858: 68,
|
| 1612 |
+
0xA859: 68,
|
| 1613 |
+
0xA85A: 68,
|
| 1614 |
+
0xA85B: 68,
|
| 1615 |
+
0xA85C: 68,
|
| 1616 |
+
0xA85D: 68,
|
| 1617 |
+
0xA85E: 68,
|
| 1618 |
+
0xA85F: 68,
|
| 1619 |
+
0xA860: 68,
|
| 1620 |
+
0xA861: 68,
|
| 1621 |
+
0xA862: 68,
|
| 1622 |
+
0xA863: 68,
|
| 1623 |
+
0xA864: 68,
|
| 1624 |
+
0xA865: 68,
|
| 1625 |
+
0xA866: 68,
|
| 1626 |
+
0xA867: 68,
|
| 1627 |
+
0xA868: 68,
|
| 1628 |
+
0xA869: 68,
|
| 1629 |
+
0xA86A: 68,
|
| 1630 |
+
0xA86B: 68,
|
| 1631 |
+
0xA86C: 68,
|
| 1632 |
+
0xA86D: 68,
|
| 1633 |
+
0xA86E: 68,
|
| 1634 |
+
0xA86F: 68,
|
| 1635 |
+
0xA870: 68,
|
| 1636 |
+
0xA871: 68,
|
| 1637 |
+
0xA872: 76,
|
| 1638 |
+
0xA8C4: 84,
|
| 1639 |
+
0xA8C5: 84,
|
| 1640 |
+
0xA8E0: 84,
|
| 1641 |
+
0xA8E1: 84,
|
| 1642 |
+
0xA8E2: 84,
|
| 1643 |
+
0xA8E3: 84,
|
| 1644 |
+
0xA8E4: 84,
|
| 1645 |
+
0xA8E5: 84,
|
| 1646 |
+
0xA8E6: 84,
|
| 1647 |
+
0xA8E7: 84,
|
| 1648 |
+
0xA8E8: 84,
|
| 1649 |
+
0xA8E9: 84,
|
| 1650 |
+
0xA8EA: 84,
|
| 1651 |
+
0xA8EB: 84,
|
| 1652 |
+
0xA8EC: 84,
|
| 1653 |
+
0xA8ED: 84,
|
| 1654 |
+
0xA8EE: 84,
|
| 1655 |
+
0xA8EF: 84,
|
| 1656 |
+
0xA8F0: 84,
|
| 1657 |
+
0xA8F1: 84,
|
| 1658 |
+
0xA8FF: 84,
|
| 1659 |
+
0xA926: 84,
|
| 1660 |
+
0xA927: 84,
|
| 1661 |
+
0xA928: 84,
|
| 1662 |
+
0xA929: 84,
|
| 1663 |
+
0xA92A: 84,
|
| 1664 |
+
0xA92B: 84,
|
| 1665 |
+
0xA92C: 84,
|
| 1666 |
+
0xA92D: 84,
|
| 1667 |
+
0xA947: 84,
|
| 1668 |
+
0xA948: 84,
|
| 1669 |
+
0xA949: 84,
|
| 1670 |
+
0xA94A: 84,
|
| 1671 |
+
0xA94B: 84,
|
| 1672 |
+
0xA94C: 84,
|
| 1673 |
+
0xA94D: 84,
|
| 1674 |
+
0xA94E: 84,
|
| 1675 |
+
0xA94F: 84,
|
| 1676 |
+
0xA950: 84,
|
| 1677 |
+
0xA951: 84,
|
| 1678 |
+
0xA980: 84,
|
| 1679 |
+
0xA981: 84,
|
| 1680 |
+
0xA982: 84,
|
| 1681 |
+
0xA9B3: 84,
|
| 1682 |
+
0xA9B6: 84,
|
| 1683 |
+
0xA9B7: 84,
|
| 1684 |
+
0xA9B8: 84,
|
| 1685 |
+
0xA9B9: 84,
|
| 1686 |
+
0xA9BC: 84,
|
| 1687 |
+
0xA9BD: 84,
|
| 1688 |
+
0xA9E5: 84,
|
| 1689 |
+
0xAA29: 84,
|
| 1690 |
+
0xAA2A: 84,
|
| 1691 |
+
0xAA2B: 84,
|
| 1692 |
+
0xAA2C: 84,
|
| 1693 |
+
0xAA2D: 84,
|
| 1694 |
+
0xAA2E: 84,
|
| 1695 |
+
0xAA31: 84,
|
| 1696 |
+
0xAA32: 84,
|
| 1697 |
+
0xAA35: 84,
|
| 1698 |
+
0xAA36: 84,
|
| 1699 |
+
0xAA43: 84,
|
| 1700 |
+
0xAA4C: 84,
|
| 1701 |
+
0xAA7C: 84,
|
| 1702 |
+
0xAAB0: 84,
|
| 1703 |
+
0xAAB2: 84,
|
| 1704 |
+
0xAAB3: 84,
|
| 1705 |
+
0xAAB4: 84,
|
| 1706 |
+
0xAAB7: 84,
|
| 1707 |
+
0xAAB8: 84,
|
| 1708 |
+
0xAABE: 84,
|
| 1709 |
+
0xAABF: 84,
|
| 1710 |
+
0xAAC1: 84,
|
| 1711 |
+
0xAAEC: 84,
|
| 1712 |
+
0xAAED: 84,
|
| 1713 |
+
0xAAF6: 84,
|
| 1714 |
+
0xABE5: 84,
|
| 1715 |
+
0xABE8: 84,
|
| 1716 |
+
0xABED: 84,
|
| 1717 |
+
0xFB1E: 84,
|
| 1718 |
+
0xFE00: 84,
|
| 1719 |
+
0xFE01: 84,
|
| 1720 |
+
0xFE02: 84,
|
| 1721 |
+
0xFE03: 84,
|
| 1722 |
+
0xFE04: 84,
|
| 1723 |
+
0xFE05: 84,
|
| 1724 |
+
0xFE06: 84,
|
| 1725 |
+
0xFE07: 84,
|
| 1726 |
+
0xFE08: 84,
|
| 1727 |
+
0xFE09: 84,
|
| 1728 |
+
0xFE0A: 84,
|
| 1729 |
+
0xFE0B: 84,
|
| 1730 |
+
0xFE0C: 84,
|
| 1731 |
+
0xFE0D: 84,
|
| 1732 |
+
0xFE0E: 84,
|
| 1733 |
+
0xFE0F: 84,
|
| 1734 |
+
0xFE20: 84,
|
| 1735 |
+
0xFE21: 84,
|
| 1736 |
+
0xFE22: 84,
|
| 1737 |
+
0xFE23: 84,
|
| 1738 |
+
0xFE24: 84,
|
| 1739 |
+
0xFE25: 84,
|
| 1740 |
+
0xFE26: 84,
|
| 1741 |
+
0xFE27: 84,
|
| 1742 |
+
0xFE28: 84,
|
| 1743 |
+
0xFE29: 84,
|
| 1744 |
+
0xFE2A: 84,
|
| 1745 |
+
0xFE2B: 84,
|
| 1746 |
+
0xFE2C: 84,
|
| 1747 |
+
0xFE2D: 84,
|
| 1748 |
+
0xFE2E: 84,
|
| 1749 |
+
0xFE2F: 84,
|
| 1750 |
+
0xFEFF: 84,
|
| 1751 |
+
0xFFF9: 84,
|
| 1752 |
+
0xFFFA: 84,
|
| 1753 |
+
0xFFFB: 84,
|
| 1754 |
+
0x101FD: 84,
|
| 1755 |
+
0x102E0: 84,
|
| 1756 |
+
0x10376: 84,
|
| 1757 |
+
0x10377: 84,
|
| 1758 |
+
0x10378: 84,
|
| 1759 |
+
0x10379: 84,
|
| 1760 |
+
0x1037A: 84,
|
| 1761 |
+
0x10A01: 84,
|
| 1762 |
+
0x10A02: 84,
|
| 1763 |
+
0x10A03: 84,
|
| 1764 |
+
0x10A05: 84,
|
| 1765 |
+
0x10A06: 84,
|
| 1766 |
+
0x10A0C: 84,
|
| 1767 |
+
0x10A0D: 84,
|
| 1768 |
+
0x10A0E: 84,
|
| 1769 |
+
0x10A0F: 84,
|
| 1770 |
+
0x10A38: 84,
|
| 1771 |
+
0x10A39: 84,
|
| 1772 |
+
0x10A3A: 84,
|
| 1773 |
+
0x10A3F: 84,
|
| 1774 |
+
0x10AC0: 68,
|
| 1775 |
+
0x10AC1: 68,
|
| 1776 |
+
0x10AC2: 68,
|
| 1777 |
+
0x10AC3: 68,
|
| 1778 |
+
0x10AC4: 68,
|
| 1779 |
+
0x10AC5: 82,
|
| 1780 |
+
0x10AC7: 82,
|
| 1781 |
+
0x10AC9: 82,
|
| 1782 |
+
0x10ACA: 82,
|
| 1783 |
+
0x10ACD: 76,
|
| 1784 |
+
0x10ACE: 82,
|
| 1785 |
+
0x10ACF: 82,
|
| 1786 |
+
0x10AD0: 82,
|
| 1787 |
+
0x10AD1: 82,
|
| 1788 |
+
0x10AD2: 82,
|
| 1789 |
+
0x10AD3: 68,
|
| 1790 |
+
0x10AD4: 68,
|
| 1791 |
+
0x10AD5: 68,
|
| 1792 |
+
0x10AD6: 68,
|
| 1793 |
+
0x10AD7: 76,
|
| 1794 |
+
0x10AD8: 68,
|
| 1795 |
+
0x10AD9: 68,
|
| 1796 |
+
0x10ADA: 68,
|
| 1797 |
+
0x10ADB: 68,
|
| 1798 |
+
0x10ADC: 68,
|
| 1799 |
+
0x10ADD: 82,
|
| 1800 |
+
0x10ADE: 68,
|
| 1801 |
+
0x10ADF: 68,
|
| 1802 |
+
0x10AE0: 68,
|
| 1803 |
+
0x10AE1: 82,
|
| 1804 |
+
0x10AE4: 82,
|
| 1805 |
+
0x10AE5: 84,
|
| 1806 |
+
0x10AE6: 84,
|
| 1807 |
+
0x10AEB: 68,
|
| 1808 |
+
0x10AEC: 68,
|
| 1809 |
+
0x10AED: 68,
|
| 1810 |
+
0x10AEE: 68,
|
| 1811 |
+
0x10AEF: 82,
|
| 1812 |
+
0x10B80: 68,
|
| 1813 |
+
0x10B81: 82,
|
| 1814 |
+
0x10B82: 68,
|
| 1815 |
+
0x10B83: 82,
|
| 1816 |
+
0x10B84: 82,
|
| 1817 |
+
0x10B85: 82,
|
| 1818 |
+
0x10B86: 68,
|
| 1819 |
+
0x10B87: 68,
|
| 1820 |
+
0x10B88: 68,
|
| 1821 |
+
0x10B89: 82,
|
| 1822 |
+
0x10B8A: 68,
|
| 1823 |
+
0x10B8B: 68,
|
| 1824 |
+
0x10B8C: 82,
|
| 1825 |
+
0x10B8D: 68,
|
| 1826 |
+
0x10B8E: 82,
|
| 1827 |
+
0x10B8F: 82,
|
| 1828 |
+
0x10B90: 68,
|
| 1829 |
+
0x10B91: 82,
|
| 1830 |
+
0x10BA9: 82,
|
| 1831 |
+
0x10BAA: 82,
|
| 1832 |
+
0x10BAB: 82,
|
| 1833 |
+
0x10BAC: 82,
|
| 1834 |
+
0x10BAD: 68,
|
| 1835 |
+
0x10BAE: 68,
|
| 1836 |
+
0x10D00: 76,
|
| 1837 |
+
0x10D01: 68,
|
| 1838 |
+
0x10D02: 68,
|
| 1839 |
+
0x10D03: 68,
|
| 1840 |
+
0x10D04: 68,
|
| 1841 |
+
0x10D05: 68,
|
| 1842 |
+
0x10D06: 68,
|
| 1843 |
+
0x10D07: 68,
|
| 1844 |
+
0x10D08: 68,
|
| 1845 |
+
0x10D09: 68,
|
| 1846 |
+
0x10D0A: 68,
|
| 1847 |
+
0x10D0B: 68,
|
| 1848 |
+
0x10D0C: 68,
|
| 1849 |
+
0x10D0D: 68,
|
| 1850 |
+
0x10D0E: 68,
|
| 1851 |
+
0x10D0F: 68,
|
| 1852 |
+
0x10D10: 68,
|
| 1853 |
+
0x10D11: 68,
|
| 1854 |
+
0x10D12: 68,
|
| 1855 |
+
0x10D13: 68,
|
| 1856 |
+
0x10D14: 68,
|
| 1857 |
+
0x10D15: 68,
|
| 1858 |
+
0x10D16: 68,
|
| 1859 |
+
0x10D17: 68,
|
| 1860 |
+
0x10D18: 68,
|
| 1861 |
+
0x10D19: 68,
|
| 1862 |
+
0x10D1A: 68,
|
| 1863 |
+
0x10D1B: 68,
|
| 1864 |
+
0x10D1C: 68,
|
| 1865 |
+
0x10D1D: 68,
|
| 1866 |
+
0x10D1E: 68,
|
| 1867 |
+
0x10D1F: 68,
|
| 1868 |
+
0x10D20: 68,
|
| 1869 |
+
0x10D21: 68,
|
| 1870 |
+
0x10D22: 82,
|
| 1871 |
+
0x10D23: 68,
|
| 1872 |
+
0x10D24: 84,
|
| 1873 |
+
0x10D25: 84,
|
| 1874 |
+
0x10D26: 84,
|
| 1875 |
+
0x10D27: 84,
|
| 1876 |
+
0x10EAB: 84,
|
| 1877 |
+
0x10EAC: 84,
|
| 1878 |
+
0x10EFD: 84,
|
| 1879 |
+
0x10EFE: 84,
|
| 1880 |
+
0x10EFF: 84,
|
| 1881 |
+
0x10F30: 68,
|
| 1882 |
+
0x10F31: 68,
|
| 1883 |
+
0x10F32: 68,
|
| 1884 |
+
0x10F33: 82,
|
| 1885 |
+
0x10F34: 68,
|
| 1886 |
+
0x10F35: 68,
|
| 1887 |
+
0x10F36: 68,
|
| 1888 |
+
0x10F37: 68,
|
| 1889 |
+
0x10F38: 68,
|
| 1890 |
+
0x10F39: 68,
|
| 1891 |
+
0x10F3A: 68,
|
| 1892 |
+
0x10F3B: 68,
|
| 1893 |
+
0x10F3C: 68,
|
| 1894 |
+
0x10F3D: 68,
|
| 1895 |
+
0x10F3E: 68,
|
| 1896 |
+
0x10F3F: 68,
|
| 1897 |
+
0x10F40: 68,
|
| 1898 |
+
0x10F41: 68,
|
| 1899 |
+
0x10F42: 68,
|
| 1900 |
+
0x10F43: 68,
|
| 1901 |
+
0x10F44: 68,
|
| 1902 |
+
0x10F46: 84,
|
| 1903 |
+
0x10F47: 84,
|
| 1904 |
+
0x10F48: 84,
|
| 1905 |
+
0x10F49: 84,
|
| 1906 |
+
0x10F4A: 84,
|
| 1907 |
+
0x10F4B: 84,
|
| 1908 |
+
0x10F4C: 84,
|
| 1909 |
+
0x10F4D: 84,
|
| 1910 |
+
0x10F4E: 84,
|
| 1911 |
+
0x10F4F: 84,
|
| 1912 |
+
0x10F50: 84,
|
| 1913 |
+
0x10F51: 68,
|
| 1914 |
+
0x10F52: 68,
|
| 1915 |
+
0x10F53: 68,
|
| 1916 |
+
0x10F54: 82,
|
| 1917 |
+
0x10F70: 68,
|
| 1918 |
+
0x10F71: 68,
|
| 1919 |
+
0x10F72: 68,
|
| 1920 |
+
0x10F73: 68,
|
| 1921 |
+
0x10F74: 82,
|
| 1922 |
+
0x10F75: 82,
|
| 1923 |
+
0x10F76: 68,
|
| 1924 |
+
0x10F77: 68,
|
| 1925 |
+
0x10F78: 68,
|
| 1926 |
+
0x10F79: 68,
|
| 1927 |
+
0x10F7A: 68,
|
| 1928 |
+
0x10F7B: 68,
|
| 1929 |
+
0x10F7C: 68,
|
| 1930 |
+
0x10F7D: 68,
|
| 1931 |
+
0x10F7E: 68,
|
| 1932 |
+
0x10F7F: 68,
|
| 1933 |
+
0x10F80: 68,
|
| 1934 |
+
0x10F81: 68,
|
| 1935 |
+
0x10F82: 84,
|
| 1936 |
+
0x10F83: 84,
|
| 1937 |
+
0x10F84: 84,
|
| 1938 |
+
0x10F85: 84,
|
| 1939 |
+
0x10FB0: 68,
|
| 1940 |
+
0x10FB2: 68,
|
| 1941 |
+
0x10FB3: 68,
|
| 1942 |
+
0x10FB4: 82,
|
| 1943 |
+
0x10FB5: 82,
|
| 1944 |
+
0x10FB6: 82,
|
| 1945 |
+
0x10FB8: 68,
|
| 1946 |
+
0x10FB9: 82,
|
| 1947 |
+
0x10FBA: 82,
|
| 1948 |
+
0x10FBB: 68,
|
| 1949 |
+
0x10FBC: 68,
|
| 1950 |
+
0x10FBD: 82,
|
| 1951 |
+
0x10FBE: 68,
|
| 1952 |
+
0x10FBF: 68,
|
| 1953 |
+
0x10FC1: 68,
|
| 1954 |
+
0x10FC2: 82,
|
| 1955 |
+
0x10FC3: 82,
|
| 1956 |
+
0x10FC4: 68,
|
| 1957 |
+
0x10FC9: 82,
|
| 1958 |
+
0x10FCA: 68,
|
| 1959 |
+
0x10FCB: 76,
|
| 1960 |
+
0x11001: 84,
|
| 1961 |
+
0x11038: 84,
|
| 1962 |
+
0x11039: 84,
|
| 1963 |
+
0x1103A: 84,
|
| 1964 |
+
0x1103B: 84,
|
| 1965 |
+
0x1103C: 84,
|
| 1966 |
+
0x1103D: 84,
|
| 1967 |
+
0x1103E: 84,
|
| 1968 |
+
0x1103F: 84,
|
| 1969 |
+
0x11040: 84,
|
| 1970 |
+
0x11041: 84,
|
| 1971 |
+
0x11042: 84,
|
| 1972 |
+
0x11043: 84,
|
| 1973 |
+
0x11044: 84,
|
| 1974 |
+
0x11045: 84,
|
| 1975 |
+
0x11046: 84,
|
| 1976 |
+
0x11070: 84,
|
| 1977 |
+
0x11073: 84,
|
| 1978 |
+
0x11074: 84,
|
| 1979 |
+
0x1107F: 84,
|
| 1980 |
+
0x11080: 84,
|
| 1981 |
+
0x11081: 84,
|
| 1982 |
+
0x110B3: 84,
|
| 1983 |
+
0x110B4: 84,
|
| 1984 |
+
0x110B5: 84,
|
| 1985 |
+
0x110B6: 84,
|
| 1986 |
+
0x110B9: 84,
|
| 1987 |
+
0x110BA: 84,
|
| 1988 |
+
0x110C2: 84,
|
| 1989 |
+
0x11100: 84,
|
| 1990 |
+
0x11101: 84,
|
| 1991 |
+
0x11102: 84,
|
| 1992 |
+
0x11127: 84,
|
| 1993 |
+
0x11128: 84,
|
| 1994 |
+
0x11129: 84,
|
| 1995 |
+
0x1112A: 84,
|
| 1996 |
+
0x1112B: 84,
|
| 1997 |
+
0x1112D: 84,
|
| 1998 |
+
0x1112E: 84,
|
| 1999 |
+
0x1112F: 84,
|
| 2000 |
+
0x11130: 84,
|
| 2001 |
+
0x11131: 84,
|
| 2002 |
+
0x11132: 84,
|
| 2003 |
+
0x11133: 84,
|
| 2004 |
+
0x11134: 84,
|
| 2005 |
+
0x11173: 84,
|
| 2006 |
+
0x11180: 84,
|
| 2007 |
+
0x11181: 84,
|
| 2008 |
+
0x111B6: 84,
|
| 2009 |
+
0x111B7: 84,
|
| 2010 |
+
0x111B8: 84,
|
| 2011 |
+
0x111B9: 84,
|
| 2012 |
+
0x111BA: 84,
|
| 2013 |
+
0x111BB: 84,
|
| 2014 |
+
0x111BC: 84,
|
| 2015 |
+
0x111BD: 84,
|
| 2016 |
+
0x111BE: 84,
|
| 2017 |
+
0x111C9: 84,
|
| 2018 |
+
0x111CA: 84,
|
| 2019 |
+
0x111CB: 84,
|
| 2020 |
+
0x111CC: 84,
|
| 2021 |
+
0x111CF: 84,
|
| 2022 |
+
0x1122F: 84,
|
| 2023 |
+
0x11230: 84,
|
| 2024 |
+
0x11231: 84,
|
| 2025 |
+
0x11234: 84,
|
| 2026 |
+
0x11236: 84,
|
| 2027 |
+
0x11237: 84,
|
| 2028 |
+
0x1123E: 84,
|
| 2029 |
+
0x11241: 84,
|
| 2030 |
+
0x112DF: 84,
|
| 2031 |
+
0x112E3: 84,
|
| 2032 |
+
0x112E4: 84,
|
| 2033 |
+
0x112E5: 84,
|
| 2034 |
+
0x112E6: 84,
|
| 2035 |
+
0x112E7: 84,
|
| 2036 |
+
0x112E8: 84,
|
| 2037 |
+
0x112E9: 84,
|
| 2038 |
+
0x112EA: 84,
|
| 2039 |
+
0x11300: 84,
|
| 2040 |
+
0x11301: 84,
|
| 2041 |
+
0x1133B: 84,
|
| 2042 |
+
0x1133C: 84,
|
| 2043 |
+
0x11340: 84,
|
| 2044 |
+
0x11366: 84,
|
| 2045 |
+
0x11367: 84,
|
| 2046 |
+
0x11368: 84,
|
| 2047 |
+
0x11369: 84,
|
| 2048 |
+
0x1136A: 84,
|
| 2049 |
+
0x1136B: 84,
|
| 2050 |
+
0x1136C: 84,
|
| 2051 |
+
0x11370: 84,
|
| 2052 |
+
0x11371: 84,
|
| 2053 |
+
0x11372: 84,
|
| 2054 |
+
0x11373: 84,
|
| 2055 |
+
0x11374: 84,
|
| 2056 |
+
0x11438: 84,
|
| 2057 |
+
0x11439: 84,
|
| 2058 |
+
0x1143A: 84,
|
| 2059 |
+
0x1143B: 84,
|
| 2060 |
+
0x1143C: 84,
|
| 2061 |
+
0x1143D: 84,
|
| 2062 |
+
0x1143E: 84,
|
| 2063 |
+
0x1143F: 84,
|
| 2064 |
+
0x11442: 84,
|
| 2065 |
+
0x11443: 84,
|
| 2066 |
+
0x11444: 84,
|
| 2067 |
+
0x11446: 84,
|
| 2068 |
+
0x1145E: 84,
|
| 2069 |
+
0x114B3: 84,
|
| 2070 |
+
0x114B4: 84,
|
| 2071 |
+
0x114B5: 84,
|
| 2072 |
+
0x114B6: 84,
|
| 2073 |
+
0x114B7: 84,
|
| 2074 |
+
0x114B8: 84,
|
| 2075 |
+
0x114BA: 84,
|
| 2076 |
+
0x114BF: 84,
|
| 2077 |
+
0x114C0: 84,
|
| 2078 |
+
0x114C2: 84,
|
| 2079 |
+
0x114C3: 84,
|
| 2080 |
+
0x115B2: 84,
|
| 2081 |
+
0x115B3: 84,
|
| 2082 |
+
0x115B4: 84,
|
| 2083 |
+
0x115B5: 84,
|
| 2084 |
+
0x115BC: 84,
|
| 2085 |
+
0x115BD: 84,
|
| 2086 |
+
0x115BF: 84,
|
| 2087 |
+
0x115C0: 84,
|
| 2088 |
+
0x115DC: 84,
|
| 2089 |
+
0x115DD: 84,
|
| 2090 |
+
0x11633: 84,
|
| 2091 |
+
0x11634: 84,
|
| 2092 |
+
0x11635: 84,
|
| 2093 |
+
0x11636: 84,
|
| 2094 |
+
0x11637: 84,
|
| 2095 |
+
0x11638: 84,
|
| 2096 |
+
0x11639: 84,
|
| 2097 |
+
0x1163A: 84,
|
| 2098 |
+
0x1163D: 84,
|
| 2099 |
+
0x1163F: 84,
|
| 2100 |
+
0x11640: 84,
|
| 2101 |
+
0x116AB: 84,
|
| 2102 |
+
0x116AD: 84,
|
| 2103 |
+
0x116B0: 84,
|
| 2104 |
+
0x116B1: 84,
|
| 2105 |
+
0x116B2: 84,
|
| 2106 |
+
0x116B3: 84,
|
| 2107 |
+
0x116B4: 84,
|
| 2108 |
+
0x116B5: 84,
|
| 2109 |
+
0x116B7: 84,
|
| 2110 |
+
0x1171D: 84,
|
| 2111 |
+
0x1171E: 84,
|
| 2112 |
+
0x1171F: 84,
|
| 2113 |
+
0x11722: 84,
|
| 2114 |
+
0x11723: 84,
|
| 2115 |
+
0x11724: 84,
|
| 2116 |
+
0x11725: 84,
|
| 2117 |
+
0x11727: 84,
|
| 2118 |
+
0x11728: 84,
|
| 2119 |
+
0x11729: 84,
|
| 2120 |
+
0x1172A: 84,
|
| 2121 |
+
0x1172B: 84,
|
| 2122 |
+
0x1182F: 84,
|
| 2123 |
+
0x11830: 84,
|
| 2124 |
+
0x11831: 84,
|
| 2125 |
+
0x11832: 84,
|
| 2126 |
+
0x11833: 84,
|
| 2127 |
+
0x11834: 84,
|
| 2128 |
+
0x11835: 84,
|
| 2129 |
+
0x11836: 84,
|
| 2130 |
+
0x11837: 84,
|
| 2131 |
+
0x11839: 84,
|
| 2132 |
+
0x1183A: 84,
|
| 2133 |
+
0x1193B: 84,
|
| 2134 |
+
0x1193C: 84,
|
| 2135 |
+
0x1193E: 84,
|
| 2136 |
+
0x11943: 84,
|
| 2137 |
+
0x119D4: 84,
|
| 2138 |
+
0x119D5: 84,
|
| 2139 |
+
0x119D6: 84,
|
| 2140 |
+
0x119D7: 84,
|
| 2141 |
+
0x119DA: 84,
|
| 2142 |
+
0x119DB: 84,
|
| 2143 |
+
0x119E0: 84,
|
| 2144 |
+
0x11A01: 84,
|
| 2145 |
+
0x11A02: 84,
|
| 2146 |
+
0x11A03: 84,
|
| 2147 |
+
0x11A04: 84,
|
| 2148 |
+
0x11A05: 84,
|
| 2149 |
+
0x11A06: 84,
|
| 2150 |
+
0x11A07: 84,
|
| 2151 |
+
0x11A08: 84,
|
| 2152 |
+
0x11A09: 84,
|
| 2153 |
+
0x11A0A: 84,
|
| 2154 |
+
0x11A33: 84,
|
| 2155 |
+
0x11A34: 84,
|
| 2156 |
+
0x11A35: 84,
|
| 2157 |
+
0x11A36: 84,
|
| 2158 |
+
0x11A37: 84,
|
| 2159 |
+
0x11A38: 84,
|
| 2160 |
+
0x11A3B: 84,
|
| 2161 |
+
0x11A3C: 84,
|
| 2162 |
+
0x11A3D: 84,
|
| 2163 |
+
0x11A3E: 84,
|
| 2164 |
+
0x11A47: 84,
|
| 2165 |
+
0x11A51: 84,
|
| 2166 |
+
0x11A52: 84,
|
| 2167 |
+
0x11A53: 84,
|
| 2168 |
+
0x11A54: 84,
|
| 2169 |
+
0x11A55: 84,
|
| 2170 |
+
0x11A56: 84,
|
| 2171 |
+
0x11A59: 84,
|
| 2172 |
+
0x11A5A: 84,
|
| 2173 |
+
0x11A5B: 84,
|
| 2174 |
+
0x11A8A: 84,
|
| 2175 |
+
0x11A8B: 84,
|
| 2176 |
+
0x11A8C: 84,
|
| 2177 |
+
0x11A8D: 84,
|
| 2178 |
+
0x11A8E: 84,
|
| 2179 |
+
0x11A8F: 84,
|
| 2180 |
+
0x11A90: 84,
|
| 2181 |
+
0x11A91: 84,
|
| 2182 |
+
0x11A92: 84,
|
| 2183 |
+
0x11A93: 84,
|
| 2184 |
+
0x11A94: 84,
|
| 2185 |
+
0x11A95: 84,
|
| 2186 |
+
0x11A96: 84,
|
| 2187 |
+
0x11A98: 84,
|
| 2188 |
+
0x11A99: 84,
|
| 2189 |
+
0x11C30: 84,
|
| 2190 |
+
0x11C31: 84,
|
| 2191 |
+
0x11C32: 84,
|
| 2192 |
+
0x11C33: 84,
|
| 2193 |
+
0x11C34: 84,
|
| 2194 |
+
0x11C35: 84,
|
| 2195 |
+
0x11C36: 84,
|
| 2196 |
+
0x11C38: 84,
|
| 2197 |
+
0x11C39: 84,
|
| 2198 |
+
0x11C3A: 84,
|
| 2199 |
+
0x11C3B: 84,
|
| 2200 |
+
0x11C3C: 84,
|
| 2201 |
+
0x11C3D: 84,
|
| 2202 |
+
0x11C3F: 84,
|
| 2203 |
+
0x11C92: 84,
|
| 2204 |
+
0x11C93: 84,
|
| 2205 |
+
0x11C94: 84,
|
| 2206 |
+
0x11C95: 84,
|
| 2207 |
+
0x11C96: 84,
|
| 2208 |
+
0x11C97: 84,
|
| 2209 |
+
0x11C98: 84,
|
| 2210 |
+
0x11C99: 84,
|
| 2211 |
+
0x11C9A: 84,
|
| 2212 |
+
0x11C9B: 84,
|
| 2213 |
+
0x11C9C: 84,
|
| 2214 |
+
0x11C9D: 84,
|
| 2215 |
+
0x11C9E: 84,
|
| 2216 |
+
0x11C9F: 84,
|
| 2217 |
+
0x11CA0: 84,
|
| 2218 |
+
0x11CA1: 84,
|
| 2219 |
+
0x11CA2: 84,
|
| 2220 |
+
0x11CA3: 84,
|
| 2221 |
+
0x11CA4: 84,
|
| 2222 |
+
0x11CA5: 84,
|
| 2223 |
+
0x11CA6: 84,
|
| 2224 |
+
0x11CA7: 84,
|
| 2225 |
+
0x11CAA: 84,
|
| 2226 |
+
0x11CAB: 84,
|
| 2227 |
+
0x11CAC: 84,
|
| 2228 |
+
0x11CAD: 84,
|
| 2229 |
+
0x11CAE: 84,
|
| 2230 |
+
0x11CAF: 84,
|
| 2231 |
+
0x11CB0: 84,
|
| 2232 |
+
0x11CB2: 84,
|
| 2233 |
+
0x11CB3: 84,
|
| 2234 |
+
0x11CB5: 84,
|
| 2235 |
+
0x11CB6: 84,
|
| 2236 |
+
0x11D31: 84,
|
| 2237 |
+
0x11D32: 84,
|
| 2238 |
+
0x11D33: 84,
|
| 2239 |
+
0x11D34: 84,
|
| 2240 |
+
0x11D35: 84,
|
| 2241 |
+
0x11D36: 84,
|
| 2242 |
+
0x11D3A: 84,
|
| 2243 |
+
0x11D3C: 84,
|
| 2244 |
+
0x11D3D: 84,
|
| 2245 |
+
0x11D3F: 84,
|
| 2246 |
+
0x11D40: 84,
|
| 2247 |
+
0x11D41: 84,
|
| 2248 |
+
0x11D42: 84,
|
| 2249 |
+
0x11D43: 84,
|
| 2250 |
+
0x11D44: 84,
|
| 2251 |
+
0x11D45: 84,
|
| 2252 |
+
0x11D47: 84,
|
| 2253 |
+
0x11D90: 84,
|
| 2254 |
+
0x11D91: 84,
|
| 2255 |
+
0x11D95: 84,
|
| 2256 |
+
0x11D97: 84,
|
| 2257 |
+
0x11EF3: 84,
|
| 2258 |
+
0x11EF4: 84,
|
| 2259 |
+
0x11F00: 84,
|
| 2260 |
+
0x11F01: 84,
|
| 2261 |
+
0x11F36: 84,
|
| 2262 |
+
0x11F37: 84,
|
| 2263 |
+
0x11F38: 84,
|
| 2264 |
+
0x11F39: 84,
|
| 2265 |
+
0x11F3A: 84,
|
| 2266 |
+
0x11F40: 84,
|
| 2267 |
+
0x11F42: 84,
|
| 2268 |
+
0x13430: 84,
|
| 2269 |
+
0x13431: 84,
|
| 2270 |
+
0x13432: 84,
|
| 2271 |
+
0x13433: 84,
|
| 2272 |
+
0x13434: 84,
|
| 2273 |
+
0x13435: 84,
|
| 2274 |
+
0x13436: 84,
|
| 2275 |
+
0x13437: 84,
|
| 2276 |
+
0x13438: 84,
|
| 2277 |
+
0x13439: 84,
|
| 2278 |
+
0x1343A: 84,
|
| 2279 |
+
0x1343B: 84,
|
| 2280 |
+
0x1343C: 84,
|
| 2281 |
+
0x1343D: 84,
|
| 2282 |
+
0x1343E: 84,
|
| 2283 |
+
0x1343F: 84,
|
| 2284 |
+
0x13440: 84,
|
| 2285 |
+
0x13447: 84,
|
| 2286 |
+
0x13448: 84,
|
| 2287 |
+
0x13449: 84,
|
| 2288 |
+
0x1344A: 84,
|
| 2289 |
+
0x1344B: 84,
|
| 2290 |
+
0x1344C: 84,
|
| 2291 |
+
0x1344D: 84,
|
| 2292 |
+
0x1344E: 84,
|
| 2293 |
+
0x1344F: 84,
|
| 2294 |
+
0x13450: 84,
|
| 2295 |
+
0x13451: 84,
|
| 2296 |
+
0x13452: 84,
|
| 2297 |
+
0x13453: 84,
|
| 2298 |
+
0x13454: 84,
|
| 2299 |
+
0x13455: 84,
|
| 2300 |
+
0x16AF0: 84,
|
| 2301 |
+
0x16AF1: 84,
|
| 2302 |
+
0x16AF2: 84,
|
| 2303 |
+
0x16AF3: 84,
|
| 2304 |
+
0x16AF4: 84,
|
| 2305 |
+
0x16B30: 84,
|
| 2306 |
+
0x16B31: 84,
|
| 2307 |
+
0x16B32: 84,
|
| 2308 |
+
0x16B33: 84,
|
| 2309 |
+
0x16B34: 84,
|
| 2310 |
+
0x16B35: 84,
|
| 2311 |
+
0x16B36: 84,
|
| 2312 |
+
0x16F4F: 84,
|
| 2313 |
+
0x16F8F: 84,
|
| 2314 |
+
0x16F90: 84,
|
| 2315 |
+
0x16F91: 84,
|
| 2316 |
+
0x16F92: 84,
|
| 2317 |
+
0x16FE4: 84,
|
| 2318 |
+
0x1BC9D: 84,
|
| 2319 |
+
0x1BC9E: 84,
|
| 2320 |
+
0x1BCA0: 84,
|
| 2321 |
+
0x1BCA1: 84,
|
| 2322 |
+
0x1BCA2: 84,
|
| 2323 |
+
0x1BCA3: 84,
|
| 2324 |
+
0x1CF00: 84,
|
| 2325 |
+
0x1CF01: 84,
|
| 2326 |
+
0x1CF02: 84,
|
| 2327 |
+
0x1CF03: 84,
|
| 2328 |
+
0x1CF04: 84,
|
| 2329 |
+
0x1CF05: 84,
|
| 2330 |
+
0x1CF06: 84,
|
| 2331 |
+
0x1CF07: 84,
|
| 2332 |
+
0x1CF08: 84,
|
| 2333 |
+
0x1CF09: 84,
|
| 2334 |
+
0x1CF0A: 84,
|
| 2335 |
+
0x1CF0B: 84,
|
| 2336 |
+
0x1CF0C: 84,
|
| 2337 |
+
0x1CF0D: 84,
|
| 2338 |
+
0x1CF0E: 84,
|
| 2339 |
+
0x1CF0F: 84,
|
| 2340 |
+
0x1CF10: 84,
|
| 2341 |
+
0x1CF11: 84,
|
| 2342 |
+
0x1CF12: 84,
|
| 2343 |
+
0x1CF13: 84,
|
| 2344 |
+
0x1CF14: 84,
|
| 2345 |
+
0x1CF15: 84,
|
| 2346 |
+
0x1CF16: 84,
|
| 2347 |
+
0x1CF17: 84,
|
| 2348 |
+
0x1CF18: 84,
|
| 2349 |
+
0x1CF19: 84,
|
| 2350 |
+
0x1CF1A: 84,
|
| 2351 |
+
0x1CF1B: 84,
|
| 2352 |
+
0x1CF1C: 84,
|
| 2353 |
+
0x1CF1D: 84,
|
| 2354 |
+
0x1CF1E: 84,
|
| 2355 |
+
0x1CF1F: 84,
|
| 2356 |
+
0x1CF20: 84,
|
| 2357 |
+
0x1CF21: 84,
|
| 2358 |
+
0x1CF22: 84,
|
| 2359 |
+
0x1CF23: 84,
|
| 2360 |
+
0x1CF24: 84,
|
| 2361 |
+
0x1CF25: 84,
|
| 2362 |
+
0x1CF26: 84,
|
| 2363 |
+
0x1CF27: 84,
|
| 2364 |
+
0x1CF28: 84,
|
| 2365 |
+
0x1CF29: 84,
|
| 2366 |
+
0x1CF2A: 84,
|
| 2367 |
+
0x1CF2B: 84,
|
| 2368 |
+
0x1CF2C: 84,
|
| 2369 |
+
0x1CF2D: 84,
|
| 2370 |
+
0x1CF30: 84,
|
| 2371 |
+
0x1CF31: 84,
|
| 2372 |
+
0x1CF32: 84,
|
| 2373 |
+
0x1CF33: 84,
|
| 2374 |
+
0x1CF34: 84,
|
| 2375 |
+
0x1CF35: 84,
|
| 2376 |
+
0x1CF36: 84,
|
| 2377 |
+
0x1CF37: 84,
|
| 2378 |
+
0x1CF38: 84,
|
| 2379 |
+
0x1CF39: 84,
|
| 2380 |
+
0x1CF3A: 84,
|
| 2381 |
+
0x1CF3B: 84,
|
| 2382 |
+
0x1CF3C: 84,
|
| 2383 |
+
0x1CF3D: 84,
|
| 2384 |
+
0x1CF3E: 84,
|
| 2385 |
+
0x1CF3F: 84,
|
| 2386 |
+
0x1CF40: 84,
|
| 2387 |
+
0x1CF41: 84,
|
| 2388 |
+
0x1CF42: 84,
|
| 2389 |
+
0x1CF43: 84,
|
| 2390 |
+
0x1CF44: 84,
|
| 2391 |
+
0x1CF45: 84,
|
| 2392 |
+
0x1CF46: 84,
|
| 2393 |
+
0x1D167: 84,
|
| 2394 |
+
0x1D168: 84,
|
| 2395 |
+
0x1D169: 84,
|
| 2396 |
+
0x1D173: 84,
|
| 2397 |
+
0x1D174: 84,
|
| 2398 |
+
0x1D175: 84,
|
| 2399 |
+
0x1D176: 84,
|
| 2400 |
+
0x1D177: 84,
|
| 2401 |
+
0x1D178: 84,
|
| 2402 |
+
0x1D179: 84,
|
| 2403 |
+
0x1D17A: 84,
|
| 2404 |
+
0x1D17B: 84,
|
| 2405 |
+
0x1D17C: 84,
|
| 2406 |
+
0x1D17D: 84,
|
| 2407 |
+
0x1D17E: 84,
|
| 2408 |
+
0x1D17F: 84,
|
| 2409 |
+
0x1D180: 84,
|
| 2410 |
+
0x1D181: 84,
|
| 2411 |
+
0x1D182: 84,
|
| 2412 |
+
0x1D185: 84,
|
| 2413 |
+
0x1D186: 84,
|
| 2414 |
+
0x1D187: 84,
|
| 2415 |
+
0x1D188: 84,
|
| 2416 |
+
0x1D189: 84,
|
| 2417 |
+
0x1D18A: 84,
|
| 2418 |
+
0x1D18B: 84,
|
| 2419 |
+
0x1D1AA: 84,
|
| 2420 |
+
0x1D1AB: 84,
|
| 2421 |
+
0x1D1AC: 84,
|
| 2422 |
+
0x1D1AD: 84,
|
| 2423 |
+
0x1D242: 84,
|
| 2424 |
+
0x1D243: 84,
|
| 2425 |
+
0x1D244: 84,
|
| 2426 |
+
0x1DA00: 84,
|
| 2427 |
+
0x1DA01: 84,
|
| 2428 |
+
0x1DA02: 84,
|
| 2429 |
+
0x1DA03: 84,
|
| 2430 |
+
0x1DA04: 84,
|
| 2431 |
+
0x1DA05: 84,
|
| 2432 |
+
0x1DA06: 84,
|
| 2433 |
+
0x1DA07: 84,
|
| 2434 |
+
0x1DA08: 84,
|
| 2435 |
+
0x1DA09: 84,
|
| 2436 |
+
0x1DA0A: 84,
|
| 2437 |
+
0x1DA0B: 84,
|
| 2438 |
+
0x1DA0C: 84,
|
| 2439 |
+
0x1DA0D: 84,
|
| 2440 |
+
0x1DA0E: 84,
|
| 2441 |
+
0x1DA0F: 84,
|
| 2442 |
+
0x1DA10: 84,
|
| 2443 |
+
0x1DA11: 84,
|
| 2444 |
+
0x1DA12: 84,
|
| 2445 |
+
0x1DA13: 84,
|
| 2446 |
+
0x1DA14: 84,
|
| 2447 |
+
0x1DA15: 84,
|
| 2448 |
+
0x1DA16: 84,
|
| 2449 |
+
0x1DA17: 84,
|
| 2450 |
+
0x1DA18: 84,
|
| 2451 |
+
0x1DA19: 84,
|
| 2452 |
+
0x1DA1A: 84,
|
| 2453 |
+
0x1DA1B: 84,
|
| 2454 |
+
0x1DA1C: 84,
|
| 2455 |
+
0x1DA1D: 84,
|
| 2456 |
+
0x1DA1E: 84,
|
| 2457 |
+
0x1DA1F: 84,
|
| 2458 |
+
0x1DA20: 84,
|
| 2459 |
+
0x1DA21: 84,
|
| 2460 |
+
0x1DA22: 84,
|
| 2461 |
+
0x1DA23: 84,
|
| 2462 |
+
0x1DA24: 84,
|
| 2463 |
+
0x1DA25: 84,
|
| 2464 |
+
0x1DA26: 84,
|
| 2465 |
+
0x1DA27: 84,
|
| 2466 |
+
0x1DA28: 84,
|
| 2467 |
+
0x1DA29: 84,
|
| 2468 |
+
0x1DA2A: 84,
|
| 2469 |
+
0x1DA2B: 84,
|
| 2470 |
+
0x1DA2C: 84,
|
| 2471 |
+
0x1DA2D: 84,
|
| 2472 |
+
0x1DA2E: 84,
|
| 2473 |
+
0x1DA2F: 84,
|
| 2474 |
+
0x1DA30: 84,
|
| 2475 |
+
0x1DA31: 84,
|
| 2476 |
+
0x1DA32: 84,
|
| 2477 |
+
0x1DA33: 84,
|
| 2478 |
+
0x1DA34: 84,
|
| 2479 |
+
0x1DA35: 84,
|
| 2480 |
+
0x1DA36: 84,
|
| 2481 |
+
0x1DA3B: 84,
|
| 2482 |
+
0x1DA3C: 84,
|
| 2483 |
+
0x1DA3D: 84,
|
| 2484 |
+
0x1DA3E: 84,
|
| 2485 |
+
0x1DA3F: 84,
|
| 2486 |
+
0x1DA40: 84,
|
| 2487 |
+
0x1DA41: 84,
|
| 2488 |
+
0x1DA42: 84,
|
| 2489 |
+
0x1DA43: 84,
|
| 2490 |
+
0x1DA44: 84,
|
| 2491 |
+
0x1DA45: 84,
|
| 2492 |
+
0x1DA46: 84,
|
| 2493 |
+
0x1DA47: 84,
|
| 2494 |
+
0x1DA48: 84,
|
| 2495 |
+
0x1DA49: 84,
|
| 2496 |
+
0x1DA4A: 84,
|
| 2497 |
+
0x1DA4B: 84,
|
| 2498 |
+
0x1DA4C: 84,
|
| 2499 |
+
0x1DA4D: 84,
|
| 2500 |
+
0x1DA4E: 84,
|
| 2501 |
+
0x1DA4F: 84,
|
| 2502 |
+
0x1DA50: 84,
|
| 2503 |
+
0x1DA51: 84,
|
| 2504 |
+
0x1DA52: 84,
|
| 2505 |
+
0x1DA53: 84,
|
| 2506 |
+
0x1DA54: 84,
|
| 2507 |
+
0x1DA55: 84,
|
| 2508 |
+
0x1DA56: 84,
|
| 2509 |
+
0x1DA57: 84,
|
| 2510 |
+
0x1DA58: 84,
|
| 2511 |
+
0x1DA59: 84,
|
| 2512 |
+
0x1DA5A: 84,
|
| 2513 |
+
0x1DA5B: 84,
|
| 2514 |
+
0x1DA5C: 84,
|
| 2515 |
+
0x1DA5D: 84,
|
| 2516 |
+
0x1DA5E: 84,
|
| 2517 |
+
0x1DA5F: 84,
|
| 2518 |
+
0x1DA60: 84,
|
| 2519 |
+
0x1DA61: 84,
|
| 2520 |
+
0x1DA62: 84,
|
| 2521 |
+
0x1DA63: 84,
|
| 2522 |
+
0x1DA64: 84,
|
| 2523 |
+
0x1DA65: 84,
|
| 2524 |
+
0x1DA66: 84,
|
| 2525 |
+
0x1DA67: 84,
|
| 2526 |
+
0x1DA68: 84,
|
| 2527 |
+
0x1DA69: 84,
|
| 2528 |
+
0x1DA6A: 84,
|
| 2529 |
+
0x1DA6B: 84,
|
| 2530 |
+
0x1DA6C: 84,
|
| 2531 |
+
0x1DA75: 84,
|
| 2532 |
+
0x1DA84: 84,
|
| 2533 |
+
0x1DA9B: 84,
|
| 2534 |
+
0x1DA9C: 84,
|
| 2535 |
+
0x1DA9D: 84,
|
| 2536 |
+
0x1DA9E: 84,
|
| 2537 |
+
0x1DA9F: 84,
|
| 2538 |
+
0x1DAA1: 84,
|
| 2539 |
+
0x1DAA2: 84,
|
| 2540 |
+
0x1DAA3: 84,
|
| 2541 |
+
0x1DAA4: 84,
|
| 2542 |
+
0x1DAA5: 84,
|
| 2543 |
+
0x1DAA6: 84,
|
| 2544 |
+
0x1DAA7: 84,
|
| 2545 |
+
0x1DAA8: 84,
|
| 2546 |
+
0x1DAA9: 84,
|
| 2547 |
+
0x1DAAA: 84,
|
| 2548 |
+
0x1DAAB: 84,
|
| 2549 |
+
0x1DAAC: 84,
|
| 2550 |
+
0x1DAAD: 84,
|
| 2551 |
+
0x1DAAE: 84,
|
| 2552 |
+
0x1DAAF: 84,
|
| 2553 |
+
0x1E000: 84,
|
| 2554 |
+
0x1E001: 84,
|
| 2555 |
+
0x1E002: 84,
|
| 2556 |
+
0x1E003: 84,
|
| 2557 |
+
0x1E004: 84,
|
| 2558 |
+
0x1E005: 84,
|
| 2559 |
+
0x1E006: 84,
|
| 2560 |
+
0x1E008: 84,
|
| 2561 |
+
0x1E009: 84,
|
| 2562 |
+
0x1E00A: 84,
|
| 2563 |
+
0x1E00B: 84,
|
| 2564 |
+
0x1E00C: 84,
|
| 2565 |
+
0x1E00D: 84,
|
| 2566 |
+
0x1E00E: 84,
|
| 2567 |
+
0x1E00F: 84,
|
| 2568 |
+
0x1E010: 84,
|
| 2569 |
+
0x1E011: 84,
|
| 2570 |
+
0x1E012: 84,
|
| 2571 |
+
0x1E013: 84,
|
| 2572 |
+
0x1E014: 84,
|
| 2573 |
+
0x1E015: 84,
|
| 2574 |
+
0x1E016: 84,
|
| 2575 |
+
0x1E017: 84,
|
| 2576 |
+
0x1E018: 84,
|
| 2577 |
+
0x1E01B: 84,
|
| 2578 |
+
0x1E01C: 84,
|
| 2579 |
+
0x1E01D: 84,
|
| 2580 |
+
0x1E01E: 84,
|
| 2581 |
+
0x1E01F: 84,
|
| 2582 |
+
0x1E020: 84,
|
| 2583 |
+
0x1E021: 84,
|
| 2584 |
+
0x1E023: 84,
|
| 2585 |
+
0x1E024: 84,
|
| 2586 |
+
0x1E026: 84,
|
| 2587 |
+
0x1E027: 84,
|
| 2588 |
+
0x1E028: 84,
|
| 2589 |
+
0x1E029: 84,
|
| 2590 |
+
0x1E02A: 84,
|
| 2591 |
+
0x1E08F: 84,
|
| 2592 |
+
0x1E130: 84,
|
| 2593 |
+
0x1E131: 84,
|
| 2594 |
+
0x1E132: 84,
|
| 2595 |
+
0x1E133: 84,
|
| 2596 |
+
0x1E134: 84,
|
| 2597 |
+
0x1E135: 84,
|
| 2598 |
+
0x1E136: 84,
|
| 2599 |
+
0x1E2AE: 84,
|
| 2600 |
+
0x1E2EC: 84,
|
| 2601 |
+
0x1E2ED: 84,
|
| 2602 |
+
0x1E2EE: 84,
|
| 2603 |
+
0x1E2EF: 84,
|
| 2604 |
+
0x1E4EC: 84,
|
| 2605 |
+
0x1E4ED: 84,
|
| 2606 |
+
0x1E4EE: 84,
|
| 2607 |
+
0x1E4EF: 84,
|
| 2608 |
+
0x1E8D0: 84,
|
| 2609 |
+
0x1E8D1: 84,
|
| 2610 |
+
0x1E8D2: 84,
|
| 2611 |
+
0x1E8D3: 84,
|
| 2612 |
+
0x1E8D4: 84,
|
| 2613 |
+
0x1E8D5: 84,
|
| 2614 |
+
0x1E8D6: 84,
|
| 2615 |
+
0x1E900: 68,
|
| 2616 |
+
0x1E901: 68,
|
| 2617 |
+
0x1E902: 68,
|
| 2618 |
+
0x1E903: 68,
|
| 2619 |
+
0x1E904: 68,
|
| 2620 |
+
0x1E905: 68,
|
| 2621 |
+
0x1E906: 68,
|
| 2622 |
+
0x1E907: 68,
|
| 2623 |
+
0x1E908: 68,
|
| 2624 |
+
0x1E909: 68,
|
| 2625 |
+
0x1E90A: 68,
|
| 2626 |
+
0x1E90B: 68,
|
| 2627 |
+
0x1E90C: 68,
|
| 2628 |
+
0x1E90D: 68,
|
| 2629 |
+
0x1E90E: 68,
|
| 2630 |
+
0x1E90F: 68,
|
| 2631 |
+
0x1E910: 68,
|
| 2632 |
+
0x1E911: 68,
|
| 2633 |
+
0x1E912: 68,
|
| 2634 |
+
0x1E913: 68,
|
| 2635 |
+
0x1E914: 68,
|
| 2636 |
+
0x1E915: 68,
|
| 2637 |
+
0x1E916: 68,
|
| 2638 |
+
0x1E917: 68,
|
| 2639 |
+
0x1E918: 68,
|
| 2640 |
+
0x1E919: 68,
|
| 2641 |
+
0x1E91A: 68,
|
| 2642 |
+
0x1E91B: 68,
|
| 2643 |
+
0x1E91C: 68,
|
| 2644 |
+
0x1E91D: 68,
|
| 2645 |
+
0x1E91E: 68,
|
| 2646 |
+
0x1E91F: 68,
|
| 2647 |
+
0x1E920: 68,
|
| 2648 |
+
0x1E921: 68,
|
| 2649 |
+
0x1E922: 68,
|
| 2650 |
+
0x1E923: 68,
|
| 2651 |
+
0x1E924: 68,
|
| 2652 |
+
0x1E925: 68,
|
| 2653 |
+
0x1E926: 68,
|
| 2654 |
+
0x1E927: 68,
|
| 2655 |
+
0x1E928: 68,
|
| 2656 |
+
0x1E929: 68,
|
| 2657 |
+
0x1E92A: 68,
|
| 2658 |
+
0x1E92B: 68,
|
| 2659 |
+
0x1E92C: 68,
|
| 2660 |
+
0x1E92D: 68,
|
| 2661 |
+
0x1E92E: 68,
|
| 2662 |
+
0x1E92F: 68,
|
| 2663 |
+
0x1E930: 68,
|
| 2664 |
+
0x1E931: 68,
|
| 2665 |
+
0x1E932: 68,
|
| 2666 |
+
0x1E933: 68,
|
| 2667 |
+
0x1E934: 68,
|
| 2668 |
+
0x1E935: 68,
|
| 2669 |
+
0x1E936: 68,
|
| 2670 |
+
0x1E937: 68,
|
| 2671 |
+
0x1E938: 68,
|
| 2672 |
+
0x1E939: 68,
|
| 2673 |
+
0x1E93A: 68,
|
| 2674 |
+
0x1E93B: 68,
|
| 2675 |
+
0x1E93C: 68,
|
| 2676 |
+
0x1E93D: 68,
|
| 2677 |
+
0x1E93E: 68,
|
| 2678 |
+
0x1E93F: 68,
|
| 2679 |
+
0x1E940: 68,
|
| 2680 |
+
0x1E941: 68,
|
| 2681 |
+
0x1E942: 68,
|
| 2682 |
+
0x1E943: 68,
|
| 2683 |
+
0x1E944: 84,
|
| 2684 |
+
0x1E945: 84,
|
| 2685 |
+
0x1E946: 84,
|
| 2686 |
+
0x1E947: 84,
|
| 2687 |
+
0x1E948: 84,
|
| 2688 |
+
0x1E949: 84,
|
| 2689 |
+
0x1E94A: 84,
|
| 2690 |
+
0x1E94B: 84,
|
| 2691 |
+
0xE0001: 84,
|
| 2692 |
+
0xE0020: 84,
|
| 2693 |
+
0xE0021: 84,
|
| 2694 |
+
0xE0022: 84,
|
| 2695 |
+
0xE0023: 84,
|
| 2696 |
+
0xE0024: 84,
|
| 2697 |
+
0xE0025: 84,
|
| 2698 |
+
0xE0026: 84,
|
| 2699 |
+
0xE0027: 84,
|
| 2700 |
+
0xE0028: 84,
|
| 2701 |
+
0xE0029: 84,
|
| 2702 |
+
0xE002A: 84,
|
| 2703 |
+
0xE002B: 84,
|
| 2704 |
+
0xE002C: 84,
|
| 2705 |
+
0xE002D: 84,
|
| 2706 |
+
0xE002E: 84,
|
| 2707 |
+
0xE002F: 84,
|
| 2708 |
+
0xE0030: 84,
|
| 2709 |
+
0xE0031: 84,
|
| 2710 |
+
0xE0032: 84,
|
| 2711 |
+
0xE0033: 84,
|
| 2712 |
+
0xE0034: 84,
|
| 2713 |
+
0xE0035: 84,
|
| 2714 |
+
0xE0036: 84,
|
| 2715 |
+
0xE0037: 84,
|
| 2716 |
+
0xE0038: 84,
|
| 2717 |
+
0xE0039: 84,
|
| 2718 |
+
0xE003A: 84,
|
| 2719 |
+
0xE003B: 84,
|
| 2720 |
+
0xE003C: 84,
|
| 2721 |
+
0xE003D: 84,
|
| 2722 |
+
0xE003E: 84,
|
| 2723 |
+
0xE003F: 84,
|
| 2724 |
+
0xE0040: 84,
|
| 2725 |
+
0xE0041: 84,
|
| 2726 |
+
0xE0042: 84,
|
| 2727 |
+
0xE0043: 84,
|
| 2728 |
+
0xE0044: 84,
|
| 2729 |
+
0xE0045: 84,
|
| 2730 |
+
0xE0046: 84,
|
| 2731 |
+
0xE0047: 84,
|
| 2732 |
+
0xE0048: 84,
|
| 2733 |
+
0xE0049: 84,
|
| 2734 |
+
0xE004A: 84,
|
| 2735 |
+
0xE004B: 84,
|
| 2736 |
+
0xE004C: 84,
|
| 2737 |
+
0xE004D: 84,
|
| 2738 |
+
0xE004E: 84,
|
| 2739 |
+
0xE004F: 84,
|
| 2740 |
+
0xE0050: 84,
|
| 2741 |
+
0xE0051: 84,
|
| 2742 |
+
0xE0052: 84,
|
| 2743 |
+
0xE0053: 84,
|
| 2744 |
+
0xE0054: 84,
|
| 2745 |
+
0xE0055: 84,
|
| 2746 |
+
0xE0056: 84,
|
| 2747 |
+
0xE0057: 84,
|
| 2748 |
+
0xE0058: 84,
|
| 2749 |
+
0xE0059: 84,
|
| 2750 |
+
0xE005A: 84,
|
| 2751 |
+
0xE005B: 84,
|
| 2752 |
+
0xE005C: 84,
|
| 2753 |
+
0xE005D: 84,
|
| 2754 |
+
0xE005E: 84,
|
| 2755 |
+
0xE005F: 84,
|
| 2756 |
+
0xE0060: 84,
|
| 2757 |
+
0xE0061: 84,
|
| 2758 |
+
0xE0062: 84,
|
| 2759 |
+
0xE0063: 84,
|
| 2760 |
+
0xE0064: 84,
|
| 2761 |
+
0xE0065: 84,
|
| 2762 |
+
0xE0066: 84,
|
| 2763 |
+
0xE0067: 84,
|
| 2764 |
+
0xE0068: 84,
|
| 2765 |
+
0xE0069: 84,
|
| 2766 |
+
0xE006A: 84,
|
| 2767 |
+
0xE006B: 84,
|
| 2768 |
+
0xE006C: 84,
|
| 2769 |
+
0xE006D: 84,
|
| 2770 |
+
0xE006E: 84,
|
| 2771 |
+
0xE006F: 84,
|
| 2772 |
+
0xE0070: 84,
|
| 2773 |
+
0xE0071: 84,
|
| 2774 |
+
0xE0072: 84,
|
| 2775 |
+
0xE0073: 84,
|
| 2776 |
+
0xE0074: 84,
|
| 2777 |
+
0xE0075: 84,
|
| 2778 |
+
0xE0076: 84,
|
| 2779 |
+
0xE0077: 84,
|
| 2780 |
+
0xE0078: 84,
|
| 2781 |
+
0xE0079: 84,
|
| 2782 |
+
0xE007A: 84,
|
| 2783 |
+
0xE007B: 84,
|
| 2784 |
+
0xE007C: 84,
|
| 2785 |
+
0xE007D: 84,
|
| 2786 |
+
0xE007E: 84,
|
| 2787 |
+
0xE007F: 84,
|
| 2788 |
+
0xE0100: 84,
|
| 2789 |
+
0xE0101: 84,
|
| 2790 |
+
0xE0102: 84,
|
| 2791 |
+
0xE0103: 84,
|
| 2792 |
+
0xE0104: 84,
|
| 2793 |
+
0xE0105: 84,
|
| 2794 |
+
0xE0106: 84,
|
| 2795 |
+
0xE0107: 84,
|
| 2796 |
+
0xE0108: 84,
|
| 2797 |
+
0xE0109: 84,
|
| 2798 |
+
0xE010A: 84,
|
| 2799 |
+
0xE010B: 84,
|
| 2800 |
+
0xE010C: 84,
|
| 2801 |
+
0xE010D: 84,
|
| 2802 |
+
0xE010E: 84,
|
| 2803 |
+
0xE010F: 84,
|
| 2804 |
+
0xE0110: 84,
|
| 2805 |
+
0xE0111: 84,
|
| 2806 |
+
0xE0112: 84,
|
| 2807 |
+
0xE0113: 84,
|
| 2808 |
+
0xE0114: 84,
|
| 2809 |
+
0xE0115: 84,
|
| 2810 |
+
0xE0116: 84,
|
| 2811 |
+
0xE0117: 84,
|
| 2812 |
+
0xE0118: 84,
|
| 2813 |
+
0xE0119: 84,
|
| 2814 |
+
0xE011A: 84,
|
| 2815 |
+
0xE011B: 84,
|
| 2816 |
+
0xE011C: 84,
|
| 2817 |
+
0xE011D: 84,
|
| 2818 |
+
0xE011E: 84,
|
| 2819 |
+
0xE011F: 84,
|
| 2820 |
+
0xE0120: 84,
|
| 2821 |
+
0xE0121: 84,
|
| 2822 |
+
0xE0122: 84,
|
| 2823 |
+
0xE0123: 84,
|
| 2824 |
+
0xE0124: 84,
|
| 2825 |
+
0xE0125: 84,
|
| 2826 |
+
0xE0126: 84,
|
| 2827 |
+
0xE0127: 84,
|
| 2828 |
+
0xE0128: 84,
|
| 2829 |
+
0xE0129: 84,
|
| 2830 |
+
0xE012A: 84,
|
| 2831 |
+
0xE012B: 84,
|
| 2832 |
+
0xE012C: 84,
|
| 2833 |
+
0xE012D: 84,
|
| 2834 |
+
0xE012E: 84,
|
| 2835 |
+
0xE012F: 84,
|
| 2836 |
+
0xE0130: 84,
|
| 2837 |
+
0xE0131: 84,
|
| 2838 |
+
0xE0132: 84,
|
| 2839 |
+
0xE0133: 84,
|
| 2840 |
+
0xE0134: 84,
|
| 2841 |
+
0xE0135: 84,
|
| 2842 |
+
0xE0136: 84,
|
| 2843 |
+
0xE0137: 84,
|
| 2844 |
+
0xE0138: 84,
|
| 2845 |
+
0xE0139: 84,
|
| 2846 |
+
0xE013A: 84,
|
| 2847 |
+
0xE013B: 84,
|
| 2848 |
+
0xE013C: 84,
|
| 2849 |
+
0xE013D: 84,
|
| 2850 |
+
0xE013E: 84,
|
| 2851 |
+
0xE013F: 84,
|
| 2852 |
+
0xE0140: 84,
|
| 2853 |
+
0xE0141: 84,
|
| 2854 |
+
0xE0142: 84,
|
| 2855 |
+
0xE0143: 84,
|
| 2856 |
+
0xE0144: 84,
|
| 2857 |
+
0xE0145: 84,
|
| 2858 |
+
0xE0146: 84,
|
| 2859 |
+
0xE0147: 84,
|
| 2860 |
+
0xE0148: 84,
|
| 2861 |
+
0xE0149: 84,
|
| 2862 |
+
0xE014A: 84,
|
| 2863 |
+
0xE014B: 84,
|
| 2864 |
+
0xE014C: 84,
|
| 2865 |
+
0xE014D: 84,
|
| 2866 |
+
0xE014E: 84,
|
| 2867 |
+
0xE014F: 84,
|
| 2868 |
+
0xE0150: 84,
|
| 2869 |
+
0xE0151: 84,
|
| 2870 |
+
0xE0152: 84,
|
| 2871 |
+
0xE0153: 84,
|
| 2872 |
+
0xE0154: 84,
|
| 2873 |
+
0xE0155: 84,
|
| 2874 |
+
0xE0156: 84,
|
| 2875 |
+
0xE0157: 84,
|
| 2876 |
+
0xE0158: 84,
|
| 2877 |
+
0xE0159: 84,
|
| 2878 |
+
0xE015A: 84,
|
| 2879 |
+
0xE015B: 84,
|
| 2880 |
+
0xE015C: 84,
|
| 2881 |
+
0xE015D: 84,
|
| 2882 |
+
0xE015E: 84,
|
| 2883 |
+
0xE015F: 84,
|
| 2884 |
+
0xE0160: 84,
|
| 2885 |
+
0xE0161: 84,
|
| 2886 |
+
0xE0162: 84,
|
| 2887 |
+
0xE0163: 84,
|
| 2888 |
+
0xE0164: 84,
|
| 2889 |
+
0xE0165: 84,
|
| 2890 |
+
0xE0166: 84,
|
| 2891 |
+
0xE0167: 84,
|
| 2892 |
+
0xE0168: 84,
|
| 2893 |
+
0xE0169: 84,
|
| 2894 |
+
0xE016A: 84,
|
| 2895 |
+
0xE016B: 84,
|
| 2896 |
+
0xE016C: 84,
|
| 2897 |
+
0xE016D: 84,
|
| 2898 |
+
0xE016E: 84,
|
| 2899 |
+
0xE016F: 84,
|
| 2900 |
+
0xE0170: 84,
|
| 2901 |
+
0xE0171: 84,
|
| 2902 |
+
0xE0172: 84,
|
| 2903 |
+
0xE0173: 84,
|
| 2904 |
+
0xE0174: 84,
|
| 2905 |
+
0xE0175: 84,
|
| 2906 |
+
0xE0176: 84,
|
| 2907 |
+
0xE0177: 84,
|
| 2908 |
+
0xE0178: 84,
|
| 2909 |
+
0xE0179: 84,
|
| 2910 |
+
0xE017A: 84,
|
| 2911 |
+
0xE017B: 84,
|
| 2912 |
+
0xE017C: 84,
|
| 2913 |
+
0xE017D: 84,
|
| 2914 |
+
0xE017E: 84,
|
| 2915 |
+
0xE017F: 84,
|
| 2916 |
+
0xE0180: 84,
|
| 2917 |
+
0xE0181: 84,
|
| 2918 |
+
0xE0182: 84,
|
| 2919 |
+
0xE0183: 84,
|
| 2920 |
+
0xE0184: 84,
|
| 2921 |
+
0xE0185: 84,
|
| 2922 |
+
0xE0186: 84,
|
| 2923 |
+
0xE0187: 84,
|
| 2924 |
+
0xE0188: 84,
|
| 2925 |
+
0xE0189: 84,
|
| 2926 |
+
0xE018A: 84,
|
| 2927 |
+
0xE018B: 84,
|
| 2928 |
+
0xE018C: 84,
|
| 2929 |
+
0xE018D: 84,
|
| 2930 |
+
0xE018E: 84,
|
| 2931 |
+
0xE018F: 84,
|
| 2932 |
+
0xE0190: 84,
|
| 2933 |
+
0xE0191: 84,
|
| 2934 |
+
0xE0192: 84,
|
| 2935 |
+
0xE0193: 84,
|
| 2936 |
+
0xE0194: 84,
|
| 2937 |
+
0xE0195: 84,
|
| 2938 |
+
0xE0196: 84,
|
| 2939 |
+
0xE0197: 84,
|
| 2940 |
+
0xE0198: 84,
|
| 2941 |
+
0xE0199: 84,
|
| 2942 |
+
0xE019A: 84,
|
| 2943 |
+
0xE019B: 84,
|
| 2944 |
+
0xE019C: 84,
|
| 2945 |
+
0xE019D: 84,
|
| 2946 |
+
0xE019E: 84,
|
| 2947 |
+
0xE019F: 84,
|
| 2948 |
+
0xE01A0: 84,
|
| 2949 |
+
0xE01A1: 84,
|
| 2950 |
+
0xE01A2: 84,
|
| 2951 |
+
0xE01A3: 84,
|
| 2952 |
+
0xE01A4: 84,
|
| 2953 |
+
0xE01A5: 84,
|
| 2954 |
+
0xE01A6: 84,
|
| 2955 |
+
0xE01A7: 84,
|
| 2956 |
+
0xE01A8: 84,
|
| 2957 |
+
0xE01A9: 84,
|
| 2958 |
+
0xE01AA: 84,
|
| 2959 |
+
0xE01AB: 84,
|
| 2960 |
+
0xE01AC: 84,
|
| 2961 |
+
0xE01AD: 84,
|
| 2962 |
+
0xE01AE: 84,
|
| 2963 |
+
0xE01AF: 84,
|
| 2964 |
+
0xE01B0: 84,
|
| 2965 |
+
0xE01B1: 84,
|
| 2966 |
+
0xE01B2: 84,
|
| 2967 |
+
0xE01B3: 84,
|
| 2968 |
+
0xE01B4: 84,
|
| 2969 |
+
0xE01B5: 84,
|
| 2970 |
+
0xE01B6: 84,
|
| 2971 |
+
0xE01B7: 84,
|
| 2972 |
+
0xE01B8: 84,
|
| 2973 |
+
0xE01B9: 84,
|
| 2974 |
+
0xE01BA: 84,
|
| 2975 |
+
0xE01BB: 84,
|
| 2976 |
+
0xE01BC: 84,
|
| 2977 |
+
0xE01BD: 84,
|
| 2978 |
+
0xE01BE: 84,
|
| 2979 |
+
0xE01BF: 84,
|
| 2980 |
+
0xE01C0: 84,
|
| 2981 |
+
0xE01C1: 84,
|
| 2982 |
+
0xE01C2: 84,
|
| 2983 |
+
0xE01C3: 84,
|
| 2984 |
+
0xE01C4: 84,
|
| 2985 |
+
0xE01C5: 84,
|
| 2986 |
+
0xE01C6: 84,
|
| 2987 |
+
0xE01C7: 84,
|
| 2988 |
+
0xE01C8: 84,
|
| 2989 |
+
0xE01C9: 84,
|
| 2990 |
+
0xE01CA: 84,
|
| 2991 |
+
0xE01CB: 84,
|
| 2992 |
+
0xE01CC: 84,
|
| 2993 |
+
0xE01CD: 84,
|
| 2994 |
+
0xE01CE: 84,
|
| 2995 |
+
0xE01CF: 84,
|
| 2996 |
+
0xE01D0: 84,
|
| 2997 |
+
0xE01D1: 84,
|
| 2998 |
+
0xE01D2: 84,
|
| 2999 |
+
0xE01D3: 84,
|
| 3000 |
+
0xE01D4: 84,
|
| 3001 |
+
0xE01D5: 84,
|
| 3002 |
+
0xE01D6: 84,
|
| 3003 |
+
0xE01D7: 84,
|
| 3004 |
+
0xE01D8: 84,
|
| 3005 |
+
0xE01D9: 84,
|
| 3006 |
+
0xE01DA: 84,
|
| 3007 |
+
0xE01DB: 84,
|
| 3008 |
+
0xE01DC: 84,
|
| 3009 |
+
0xE01DD: 84,
|
| 3010 |
+
0xE01DE: 84,
|
| 3011 |
+
0xE01DF: 84,
|
| 3012 |
+
0xE01E0: 84,
|
| 3013 |
+
0xE01E1: 84,
|
| 3014 |
+
0xE01E2: 84,
|
| 3015 |
+
0xE01E3: 84,
|
| 3016 |
+
0xE01E4: 84,
|
| 3017 |
+
0xE01E5: 84,
|
| 3018 |
+
0xE01E6: 84,
|
| 3019 |
+
0xE01E7: 84,
|
| 3020 |
+
0xE01E8: 84,
|
| 3021 |
+
0xE01E9: 84,
|
| 3022 |
+
0xE01EA: 84,
|
| 3023 |
+
0xE01EB: 84,
|
| 3024 |
+
0xE01EC: 84,
|
| 3025 |
+
0xE01ED: 84,
|
| 3026 |
+
0xE01EE: 84,
|
| 3027 |
+
0xE01EF: 84,
|
| 3028 |
+
}
|
| 3029 |
+
codepoint_classes = {
|
| 3030 |
+
"PVALID": (
|
| 3031 |
+
0x2D0000002E,
|
| 3032 |
+
0x300000003A,
|
| 3033 |
+
0x610000007B,
|
| 3034 |
+
0xDF000000F7,
|
| 3035 |
+
0xF800000100,
|
| 3036 |
+
0x10100000102,
|
| 3037 |
+
0x10300000104,
|
| 3038 |
+
0x10500000106,
|
| 3039 |
+
0x10700000108,
|
| 3040 |
+
0x1090000010A,
|
| 3041 |
+
0x10B0000010C,
|
| 3042 |
+
0x10D0000010E,
|
| 3043 |
+
0x10F00000110,
|
| 3044 |
+
0x11100000112,
|
| 3045 |
+
0x11300000114,
|
| 3046 |
+
0x11500000116,
|
| 3047 |
+
0x11700000118,
|
| 3048 |
+
0x1190000011A,
|
| 3049 |
+
0x11B0000011C,
|
| 3050 |
+
0x11D0000011E,
|
| 3051 |
+
0x11F00000120,
|
| 3052 |
+
0x12100000122,
|
| 3053 |
+
0x12300000124,
|
| 3054 |
+
0x12500000126,
|
| 3055 |
+
0x12700000128,
|
| 3056 |
+
0x1290000012A,
|
| 3057 |
+
0x12B0000012C,
|
| 3058 |
+
0x12D0000012E,
|
| 3059 |
+
0x12F00000130,
|
| 3060 |
+
0x13100000132,
|
| 3061 |
+
0x13500000136,
|
| 3062 |
+
0x13700000139,
|
| 3063 |
+
0x13A0000013B,
|
| 3064 |
+
0x13C0000013D,
|
| 3065 |
+
0x13E0000013F,
|
| 3066 |
+
0x14200000143,
|
| 3067 |
+
0x14400000145,
|
| 3068 |
+
0x14600000147,
|
| 3069 |
+
0x14800000149,
|
| 3070 |
+
0x14B0000014C,
|
| 3071 |
+
0x14D0000014E,
|
| 3072 |
+
0x14F00000150,
|
| 3073 |
+
0x15100000152,
|
| 3074 |
+
0x15300000154,
|
| 3075 |
+
0x15500000156,
|
| 3076 |
+
0x15700000158,
|
| 3077 |
+
0x1590000015A,
|
| 3078 |
+
0x15B0000015C,
|
| 3079 |
+
0x15D0000015E,
|
| 3080 |
+
0x15F00000160,
|
| 3081 |
+
0x16100000162,
|
| 3082 |
+
0x16300000164,
|
| 3083 |
+
0x16500000166,
|
| 3084 |
+
0x16700000168,
|
| 3085 |
+
0x1690000016A,
|
| 3086 |
+
0x16B0000016C,
|
| 3087 |
+
0x16D0000016E,
|
| 3088 |
+
0x16F00000170,
|
| 3089 |
+
0x17100000172,
|
| 3090 |
+
0x17300000174,
|
| 3091 |
+
0x17500000176,
|
| 3092 |
+
0x17700000178,
|
| 3093 |
+
0x17A0000017B,
|
| 3094 |
+
0x17C0000017D,
|
| 3095 |
+
0x17E0000017F,
|
| 3096 |
+
0x18000000181,
|
| 3097 |
+
0x18300000184,
|
| 3098 |
+
0x18500000186,
|
| 3099 |
+
0x18800000189,
|
| 3100 |
+
0x18C0000018E,
|
| 3101 |
+
0x19200000193,
|
| 3102 |
+
0x19500000196,
|
| 3103 |
+
0x1990000019C,
|
| 3104 |
+
0x19E0000019F,
|
| 3105 |
+
0x1A1000001A2,
|
| 3106 |
+
0x1A3000001A4,
|
| 3107 |
+
0x1A5000001A6,
|
| 3108 |
+
0x1A8000001A9,
|
| 3109 |
+
0x1AA000001AC,
|
| 3110 |
+
0x1AD000001AE,
|
| 3111 |
+
0x1B0000001B1,
|
| 3112 |
+
0x1B4000001B5,
|
| 3113 |
+
0x1B6000001B7,
|
| 3114 |
+
0x1B9000001BC,
|
| 3115 |
+
0x1BD000001C4,
|
| 3116 |
+
0x1CE000001CF,
|
| 3117 |
+
0x1D0000001D1,
|
| 3118 |
+
0x1D2000001D3,
|
| 3119 |
+
0x1D4000001D5,
|
| 3120 |
+
0x1D6000001D7,
|
| 3121 |
+
0x1D8000001D9,
|
| 3122 |
+
0x1DA000001DB,
|
| 3123 |
+
0x1DC000001DE,
|
| 3124 |
+
0x1DF000001E0,
|
| 3125 |
+
0x1E1000001E2,
|
| 3126 |
+
0x1E3000001E4,
|
| 3127 |
+
0x1E5000001E6,
|
| 3128 |
+
0x1E7000001E8,
|
| 3129 |
+
0x1E9000001EA,
|
| 3130 |
+
0x1EB000001EC,
|
| 3131 |
+
0x1ED000001EE,
|
| 3132 |
+
0x1EF000001F1,
|
| 3133 |
+
0x1F5000001F6,
|
| 3134 |
+
0x1F9000001FA,
|
| 3135 |
+
0x1FB000001FC,
|
| 3136 |
+
0x1FD000001FE,
|
| 3137 |
+
0x1FF00000200,
|
| 3138 |
+
0x20100000202,
|
| 3139 |
+
0x20300000204,
|
| 3140 |
+
0x20500000206,
|
| 3141 |
+
0x20700000208,
|
| 3142 |
+
0x2090000020A,
|
| 3143 |
+
0x20B0000020C,
|
| 3144 |
+
0x20D0000020E,
|
| 3145 |
+
0x20F00000210,
|
| 3146 |
+
0x21100000212,
|
| 3147 |
+
0x21300000214,
|
| 3148 |
+
0x21500000216,
|
| 3149 |
+
0x21700000218,
|
| 3150 |
+
0x2190000021A,
|
| 3151 |
+
0x21B0000021C,
|
| 3152 |
+
0x21D0000021E,
|
| 3153 |
+
0x21F00000220,
|
| 3154 |
+
0x22100000222,
|
| 3155 |
+
0x22300000224,
|
| 3156 |
+
0x22500000226,
|
| 3157 |
+
0x22700000228,
|
| 3158 |
+
0x2290000022A,
|
| 3159 |
+
0x22B0000022C,
|
| 3160 |
+
0x22D0000022E,
|
| 3161 |
+
0x22F00000230,
|
| 3162 |
+
0x23100000232,
|
| 3163 |
+
0x2330000023A,
|
| 3164 |
+
0x23C0000023D,
|
| 3165 |
+
0x23F00000241,
|
| 3166 |
+
0x24200000243,
|
| 3167 |
+
0x24700000248,
|
| 3168 |
+
0x2490000024A,
|
| 3169 |
+
0x24B0000024C,
|
| 3170 |
+
0x24D0000024E,
|
| 3171 |
+
0x24F000002B0,
|
| 3172 |
+
0x2B9000002C2,
|
| 3173 |
+
0x2C6000002D2,
|
| 3174 |
+
0x2EC000002ED,
|
| 3175 |
+
0x2EE000002EF,
|
| 3176 |
+
0x30000000340,
|
| 3177 |
+
0x34200000343,
|
| 3178 |
+
0x3460000034F,
|
| 3179 |
+
0x35000000370,
|
| 3180 |
+
0x37100000372,
|
| 3181 |
+
0x37300000374,
|
| 3182 |
+
0x37700000378,
|
| 3183 |
+
0x37B0000037E,
|
| 3184 |
+
0x39000000391,
|
| 3185 |
+
0x3AC000003CF,
|
| 3186 |
+
0x3D7000003D8,
|
| 3187 |
+
0x3D9000003DA,
|
| 3188 |
+
0x3DB000003DC,
|
| 3189 |
+
0x3DD000003DE,
|
| 3190 |
+
0x3DF000003E0,
|
| 3191 |
+
0x3E1000003E2,
|
| 3192 |
+
0x3E3000003E4,
|
| 3193 |
+
0x3E5000003E6,
|
| 3194 |
+
0x3E7000003E8,
|
| 3195 |
+
0x3E9000003EA,
|
| 3196 |
+
0x3EB000003EC,
|
| 3197 |
+
0x3ED000003EE,
|
| 3198 |
+
0x3EF000003F0,
|
| 3199 |
+
0x3F3000003F4,
|
| 3200 |
+
0x3F8000003F9,
|
| 3201 |
+
0x3FB000003FD,
|
| 3202 |
+
0x43000000460,
|
| 3203 |
+
0x46100000462,
|
| 3204 |
+
0x46300000464,
|
| 3205 |
+
0x46500000466,
|
| 3206 |
+
0x46700000468,
|
| 3207 |
+
0x4690000046A,
|
| 3208 |
+
0x46B0000046C,
|
| 3209 |
+
0x46D0000046E,
|
| 3210 |
+
0x46F00000470,
|
| 3211 |
+
0x47100000472,
|
| 3212 |
+
0x47300000474,
|
| 3213 |
+
0x47500000476,
|
| 3214 |
+
0x47700000478,
|
| 3215 |
+
0x4790000047A,
|
| 3216 |
+
0x47B0000047C,
|
| 3217 |
+
0x47D0000047E,
|
| 3218 |
+
0x47F00000480,
|
| 3219 |
+
0x48100000482,
|
| 3220 |
+
0x48300000488,
|
| 3221 |
+
0x48B0000048C,
|
| 3222 |
+
0x48D0000048E,
|
| 3223 |
+
0x48F00000490,
|
| 3224 |
+
0x49100000492,
|
| 3225 |
+
0x49300000494,
|
| 3226 |
+
0x49500000496,
|
| 3227 |
+
0x49700000498,
|
| 3228 |
+
0x4990000049A,
|
| 3229 |
+
0x49B0000049C,
|
| 3230 |
+
0x49D0000049E,
|
| 3231 |
+
0x49F000004A0,
|
| 3232 |
+
0x4A1000004A2,
|
| 3233 |
+
0x4A3000004A4,
|
| 3234 |
+
0x4A5000004A6,
|
| 3235 |
+
0x4A7000004A8,
|
| 3236 |
+
0x4A9000004AA,
|
| 3237 |
+
0x4AB000004AC,
|
| 3238 |
+
0x4AD000004AE,
|
| 3239 |
+
0x4AF000004B0,
|
| 3240 |
+
0x4B1000004B2,
|
| 3241 |
+
0x4B3000004B4,
|
| 3242 |
+
0x4B5000004B6,
|
| 3243 |
+
0x4B7000004B8,
|
| 3244 |
+
0x4B9000004BA,
|
| 3245 |
+
0x4BB000004BC,
|
| 3246 |
+
0x4BD000004BE,
|
| 3247 |
+
0x4BF000004C0,
|
| 3248 |
+
0x4C2000004C3,
|
| 3249 |
+
0x4C4000004C5,
|
| 3250 |
+
0x4C6000004C7,
|
| 3251 |
+
0x4C8000004C9,
|
| 3252 |
+
0x4CA000004CB,
|
| 3253 |
+
0x4CC000004CD,
|
| 3254 |
+
0x4CE000004D0,
|
| 3255 |
+
0x4D1000004D2,
|
| 3256 |
+
0x4D3000004D4,
|
| 3257 |
+
0x4D5000004D6,
|
| 3258 |
+
0x4D7000004D8,
|
| 3259 |
+
0x4D9000004DA,
|
| 3260 |
+
0x4DB000004DC,
|
| 3261 |
+
0x4DD000004DE,
|
| 3262 |
+
0x4DF000004E0,
|
| 3263 |
+
0x4E1000004E2,
|
| 3264 |
+
0x4E3000004E4,
|
| 3265 |
+
0x4E5000004E6,
|
| 3266 |
+
0x4E7000004E8,
|
| 3267 |
+
0x4E9000004EA,
|
| 3268 |
+
0x4EB000004EC,
|
| 3269 |
+
0x4ED000004EE,
|
| 3270 |
+
0x4EF000004F0,
|
| 3271 |
+
0x4F1000004F2,
|
| 3272 |
+
0x4F3000004F4,
|
| 3273 |
+
0x4F5000004F6,
|
| 3274 |
+
0x4F7000004F8,
|
| 3275 |
+
0x4F9000004FA,
|
| 3276 |
+
0x4FB000004FC,
|
| 3277 |
+
0x4FD000004FE,
|
| 3278 |
+
0x4FF00000500,
|
| 3279 |
+
0x50100000502,
|
| 3280 |
+
0x50300000504,
|
| 3281 |
+
0x50500000506,
|
| 3282 |
+
0x50700000508,
|
| 3283 |
+
0x5090000050A,
|
| 3284 |
+
0x50B0000050C,
|
| 3285 |
+
0x50D0000050E,
|
| 3286 |
+
0x50F00000510,
|
| 3287 |
+
0x51100000512,
|
| 3288 |
+
0x51300000514,
|
| 3289 |
+
0x51500000516,
|
| 3290 |
+
0x51700000518,
|
| 3291 |
+
0x5190000051A,
|
| 3292 |
+
0x51B0000051C,
|
| 3293 |
+
0x51D0000051E,
|
| 3294 |
+
0x51F00000520,
|
| 3295 |
+
0x52100000522,
|
| 3296 |
+
0x52300000524,
|
| 3297 |
+
0x52500000526,
|
| 3298 |
+
0x52700000528,
|
| 3299 |
+
0x5290000052A,
|
| 3300 |
+
0x52B0000052C,
|
| 3301 |
+
0x52D0000052E,
|
| 3302 |
+
0x52F00000530,
|
| 3303 |
+
0x5590000055A,
|
| 3304 |
+
0x56000000587,
|
| 3305 |
+
0x58800000589,
|
| 3306 |
+
0x591000005BE,
|
| 3307 |
+
0x5BF000005C0,
|
| 3308 |
+
0x5C1000005C3,
|
| 3309 |
+
0x5C4000005C6,
|
| 3310 |
+
0x5C7000005C8,
|
| 3311 |
+
0x5D0000005EB,
|
| 3312 |
+
0x5EF000005F3,
|
| 3313 |
+
0x6100000061B,
|
| 3314 |
+
0x62000000640,
|
| 3315 |
+
0x64100000660,
|
| 3316 |
+
0x66E00000675,
|
| 3317 |
+
0x679000006D4,
|
| 3318 |
+
0x6D5000006DD,
|
| 3319 |
+
0x6DF000006E9,
|
| 3320 |
+
0x6EA000006F0,
|
| 3321 |
+
0x6FA00000700,
|
| 3322 |
+
0x7100000074B,
|
| 3323 |
+
0x74D000007B2,
|
| 3324 |
+
0x7C0000007F6,
|
| 3325 |
+
0x7FD000007FE,
|
| 3326 |
+
0x8000000082E,
|
| 3327 |
+
0x8400000085C,
|
| 3328 |
+
0x8600000086B,
|
| 3329 |
+
0x87000000888,
|
| 3330 |
+
0x8890000088F,
|
| 3331 |
+
0x898000008E2,
|
| 3332 |
+
0x8E300000958,
|
| 3333 |
+
0x96000000964,
|
| 3334 |
+
0x96600000970,
|
| 3335 |
+
0x97100000984,
|
| 3336 |
+
0x9850000098D,
|
| 3337 |
+
0x98F00000991,
|
| 3338 |
+
0x993000009A9,
|
| 3339 |
+
0x9AA000009B1,
|
| 3340 |
+
0x9B2000009B3,
|
| 3341 |
+
0x9B6000009BA,
|
| 3342 |
+
0x9BC000009C5,
|
| 3343 |
+
0x9C7000009C9,
|
| 3344 |
+
0x9CB000009CF,
|
| 3345 |
+
0x9D7000009D8,
|
| 3346 |
+
0x9E0000009E4,
|
| 3347 |
+
0x9E6000009F2,
|
| 3348 |
+
0x9FC000009FD,
|
| 3349 |
+
0x9FE000009FF,
|
| 3350 |
+
0xA0100000A04,
|
| 3351 |
+
0xA0500000A0B,
|
| 3352 |
+
0xA0F00000A11,
|
| 3353 |
+
0xA1300000A29,
|
| 3354 |
+
0xA2A00000A31,
|
| 3355 |
+
0xA3200000A33,
|
| 3356 |
+
0xA3500000A36,
|
| 3357 |
+
0xA3800000A3A,
|
| 3358 |
+
0xA3C00000A3D,
|
| 3359 |
+
0xA3E00000A43,
|
| 3360 |
+
0xA4700000A49,
|
| 3361 |
+
0xA4B00000A4E,
|
| 3362 |
+
0xA5100000A52,
|
| 3363 |
+
0xA5C00000A5D,
|
| 3364 |
+
0xA6600000A76,
|
| 3365 |
+
0xA8100000A84,
|
| 3366 |
+
0xA8500000A8E,
|
| 3367 |
+
0xA8F00000A92,
|
| 3368 |
+
0xA9300000AA9,
|
| 3369 |
+
0xAAA00000AB1,
|
| 3370 |
+
0xAB200000AB4,
|
| 3371 |
+
0xAB500000ABA,
|
| 3372 |
+
0xABC00000AC6,
|
| 3373 |
+
0xAC700000ACA,
|
| 3374 |
+
0xACB00000ACE,
|
| 3375 |
+
0xAD000000AD1,
|
| 3376 |
+
0xAE000000AE4,
|
| 3377 |
+
0xAE600000AF0,
|
| 3378 |
+
0xAF900000B00,
|
| 3379 |
+
0xB0100000B04,
|
| 3380 |
+
0xB0500000B0D,
|
| 3381 |
+
0xB0F00000B11,
|
| 3382 |
+
0xB1300000B29,
|
| 3383 |
+
0xB2A00000B31,
|
| 3384 |
+
0xB3200000B34,
|
| 3385 |
+
0xB3500000B3A,
|
| 3386 |
+
0xB3C00000B45,
|
| 3387 |
+
0xB4700000B49,
|
| 3388 |
+
0xB4B00000B4E,
|
| 3389 |
+
0xB5500000B58,
|
| 3390 |
+
0xB5F00000B64,
|
| 3391 |
+
0xB6600000B70,
|
| 3392 |
+
0xB7100000B72,
|
| 3393 |
+
0xB8200000B84,
|
| 3394 |
+
0xB8500000B8B,
|
| 3395 |
+
0xB8E00000B91,
|
| 3396 |
+
0xB9200000B96,
|
| 3397 |
+
0xB9900000B9B,
|
| 3398 |
+
0xB9C00000B9D,
|
| 3399 |
+
0xB9E00000BA0,
|
| 3400 |
+
0xBA300000BA5,
|
| 3401 |
+
0xBA800000BAB,
|
| 3402 |
+
0xBAE00000BBA,
|
| 3403 |
+
0xBBE00000BC3,
|
| 3404 |
+
0xBC600000BC9,
|
| 3405 |
+
0xBCA00000BCE,
|
| 3406 |
+
0xBD000000BD1,
|
| 3407 |
+
0xBD700000BD8,
|
| 3408 |
+
0xBE600000BF0,
|
| 3409 |
+
0xC0000000C0D,
|
| 3410 |
+
0xC0E00000C11,
|
| 3411 |
+
0xC1200000C29,
|
| 3412 |
+
0xC2A00000C3A,
|
| 3413 |
+
0xC3C00000C45,
|
| 3414 |
+
0xC4600000C49,
|
| 3415 |
+
0xC4A00000C4E,
|
| 3416 |
+
0xC5500000C57,
|
| 3417 |
+
0xC5800000C5B,
|
| 3418 |
+
0xC5D00000C5E,
|
| 3419 |
+
0xC6000000C64,
|
| 3420 |
+
0xC6600000C70,
|
| 3421 |
+
0xC8000000C84,
|
| 3422 |
+
0xC8500000C8D,
|
| 3423 |
+
0xC8E00000C91,
|
| 3424 |
+
0xC9200000CA9,
|
| 3425 |
+
0xCAA00000CB4,
|
| 3426 |
+
0xCB500000CBA,
|
| 3427 |
+
0xCBC00000CC5,
|
| 3428 |
+
0xCC600000CC9,
|
| 3429 |
+
0xCCA00000CCE,
|
| 3430 |
+
0xCD500000CD7,
|
| 3431 |
+
0xCDD00000CDF,
|
| 3432 |
+
0xCE000000CE4,
|
| 3433 |
+
0xCE600000CF0,
|
| 3434 |
+
0xCF100000CF4,
|
| 3435 |
+
0xD0000000D0D,
|
| 3436 |
+
0xD0E00000D11,
|
| 3437 |
+
0xD1200000D45,
|
| 3438 |
+
0xD4600000D49,
|
| 3439 |
+
0xD4A00000D4F,
|
| 3440 |
+
0xD5400000D58,
|
| 3441 |
+
0xD5F00000D64,
|
| 3442 |
+
0xD6600000D70,
|
| 3443 |
+
0xD7A00000D80,
|
| 3444 |
+
0xD8100000D84,
|
| 3445 |
+
0xD8500000D97,
|
| 3446 |
+
0xD9A00000DB2,
|
| 3447 |
+
0xDB300000DBC,
|
| 3448 |
+
0xDBD00000DBE,
|
| 3449 |
+
0xDC000000DC7,
|
| 3450 |
+
0xDCA00000DCB,
|
| 3451 |
+
0xDCF00000DD5,
|
| 3452 |
+
0xDD600000DD7,
|
| 3453 |
+
0xDD800000DE0,
|
| 3454 |
+
0xDE600000DF0,
|
| 3455 |
+
0xDF200000DF4,
|
| 3456 |
+
0xE0100000E33,
|
| 3457 |
+
0xE3400000E3B,
|
| 3458 |
+
0xE4000000E4F,
|
| 3459 |
+
0xE5000000E5A,
|
| 3460 |
+
0xE8100000E83,
|
| 3461 |
+
0xE8400000E85,
|
| 3462 |
+
0xE8600000E8B,
|
| 3463 |
+
0xE8C00000EA4,
|
| 3464 |
+
0xEA500000EA6,
|
| 3465 |
+
0xEA700000EB3,
|
| 3466 |
+
0xEB400000EBE,
|
| 3467 |
+
0xEC000000EC5,
|
| 3468 |
+
0xEC600000EC7,
|
| 3469 |
+
0xEC800000ECF,
|
| 3470 |
+
0xED000000EDA,
|
| 3471 |
+
0xEDE00000EE0,
|
| 3472 |
+
0xF0000000F01,
|
| 3473 |
+
0xF0B00000F0C,
|
| 3474 |
+
0xF1800000F1A,
|
| 3475 |
+
0xF2000000F2A,
|
| 3476 |
+
0xF3500000F36,
|
| 3477 |
+
0xF3700000F38,
|
| 3478 |
+
0xF3900000F3A,
|
| 3479 |
+
0xF3E00000F43,
|
| 3480 |
+
0xF4400000F48,
|
| 3481 |
+
0xF4900000F4D,
|
| 3482 |
+
0xF4E00000F52,
|
| 3483 |
+
0xF5300000F57,
|
| 3484 |
+
0xF5800000F5C,
|
| 3485 |
+
0xF5D00000F69,
|
| 3486 |
+
0xF6A00000F6D,
|
| 3487 |
+
0xF7100000F73,
|
| 3488 |
+
0xF7400000F75,
|
| 3489 |
+
0xF7A00000F81,
|
| 3490 |
+
0xF8200000F85,
|
| 3491 |
+
0xF8600000F93,
|
| 3492 |
+
0xF9400000F98,
|
| 3493 |
+
0xF9900000F9D,
|
| 3494 |
+
0xF9E00000FA2,
|
| 3495 |
+
0xFA300000FA7,
|
| 3496 |
+
0xFA800000FAC,
|
| 3497 |
+
0xFAD00000FB9,
|
| 3498 |
+
0xFBA00000FBD,
|
| 3499 |
+
0xFC600000FC7,
|
| 3500 |
+
0x10000000104A,
|
| 3501 |
+
0x10500000109E,
|
| 3502 |
+
0x10D0000010FB,
|
| 3503 |
+
0x10FD00001100,
|
| 3504 |
+
0x120000001249,
|
| 3505 |
+
0x124A0000124E,
|
| 3506 |
+
0x125000001257,
|
| 3507 |
+
0x125800001259,
|
| 3508 |
+
0x125A0000125E,
|
| 3509 |
+
0x126000001289,
|
| 3510 |
+
0x128A0000128E,
|
| 3511 |
+
0x1290000012B1,
|
| 3512 |
+
0x12B2000012B6,
|
| 3513 |
+
0x12B8000012BF,
|
| 3514 |
+
0x12C0000012C1,
|
| 3515 |
+
0x12C2000012C6,
|
| 3516 |
+
0x12C8000012D7,
|
| 3517 |
+
0x12D800001311,
|
| 3518 |
+
0x131200001316,
|
| 3519 |
+
0x13180000135B,
|
| 3520 |
+
0x135D00001360,
|
| 3521 |
+
0x138000001390,
|
| 3522 |
+
0x13A0000013F6,
|
| 3523 |
+
0x14010000166D,
|
| 3524 |
+
0x166F00001680,
|
| 3525 |
+
0x16810000169B,
|
| 3526 |
+
0x16A0000016EB,
|
| 3527 |
+
0x16F1000016F9,
|
| 3528 |
+
0x170000001716,
|
| 3529 |
+
0x171F00001735,
|
| 3530 |
+
0x174000001754,
|
| 3531 |
+
0x17600000176D,
|
| 3532 |
+
0x176E00001771,
|
| 3533 |
+
0x177200001774,
|
| 3534 |
+
0x1780000017B4,
|
| 3535 |
+
0x17B6000017D4,
|
| 3536 |
+
0x17D7000017D8,
|
| 3537 |
+
0x17DC000017DE,
|
| 3538 |
+
0x17E0000017EA,
|
| 3539 |
+
0x18100000181A,
|
| 3540 |
+
0x182000001879,
|
| 3541 |
+
0x1880000018AB,
|
| 3542 |
+
0x18B0000018F6,
|
| 3543 |
+
0x19000000191F,
|
| 3544 |
+
0x19200000192C,
|
| 3545 |
+
0x19300000193C,
|
| 3546 |
+
0x19460000196E,
|
| 3547 |
+
0x197000001975,
|
| 3548 |
+
0x1980000019AC,
|
| 3549 |
+
0x19B0000019CA,
|
| 3550 |
+
0x19D0000019DA,
|
| 3551 |
+
0x1A0000001A1C,
|
| 3552 |
+
0x1A2000001A5F,
|
| 3553 |
+
0x1A6000001A7D,
|
| 3554 |
+
0x1A7F00001A8A,
|
| 3555 |
+
0x1A9000001A9A,
|
| 3556 |
+
0x1AA700001AA8,
|
| 3557 |
+
0x1AB000001ABE,
|
| 3558 |
+
0x1ABF00001ACF,
|
| 3559 |
+
0x1B0000001B4D,
|
| 3560 |
+
0x1B5000001B5A,
|
| 3561 |
+
0x1B6B00001B74,
|
| 3562 |
+
0x1B8000001BF4,
|
| 3563 |
+
0x1C0000001C38,
|
| 3564 |
+
0x1C4000001C4A,
|
| 3565 |
+
0x1C4D00001C7E,
|
| 3566 |
+
0x1CD000001CD3,
|
| 3567 |
+
0x1CD400001CFB,
|
| 3568 |
+
0x1D0000001D2C,
|
| 3569 |
+
0x1D2F00001D30,
|
| 3570 |
+
0x1D3B00001D3C,
|
| 3571 |
+
0x1D4E00001D4F,
|
| 3572 |
+
0x1D6B00001D78,
|
| 3573 |
+
0x1D7900001D9B,
|
| 3574 |
+
0x1DC000001E00,
|
| 3575 |
+
0x1E0100001E02,
|
| 3576 |
+
0x1E0300001E04,
|
| 3577 |
+
0x1E0500001E06,
|
| 3578 |
+
0x1E0700001E08,
|
| 3579 |
+
0x1E0900001E0A,
|
| 3580 |
+
0x1E0B00001E0C,
|
| 3581 |
+
0x1E0D00001E0E,
|
| 3582 |
+
0x1E0F00001E10,
|
| 3583 |
+
0x1E1100001E12,
|
| 3584 |
+
0x1E1300001E14,
|
| 3585 |
+
0x1E1500001E16,
|
| 3586 |
+
0x1E1700001E18,
|
| 3587 |
+
0x1E1900001E1A,
|
| 3588 |
+
0x1E1B00001E1C,
|
| 3589 |
+
0x1E1D00001E1E,
|
| 3590 |
+
0x1E1F00001E20,
|
| 3591 |
+
0x1E2100001E22,
|
| 3592 |
+
0x1E2300001E24,
|
| 3593 |
+
0x1E2500001E26,
|
| 3594 |
+
0x1E2700001E28,
|
| 3595 |
+
0x1E2900001E2A,
|
| 3596 |
+
0x1E2B00001E2C,
|
| 3597 |
+
0x1E2D00001E2E,
|
| 3598 |
+
0x1E2F00001E30,
|
| 3599 |
+
0x1E3100001E32,
|
| 3600 |
+
0x1E3300001E34,
|
| 3601 |
+
0x1E3500001E36,
|
| 3602 |
+
0x1E3700001E38,
|
| 3603 |
+
0x1E3900001E3A,
|
| 3604 |
+
0x1E3B00001E3C,
|
| 3605 |
+
0x1E3D00001E3E,
|
| 3606 |
+
0x1E3F00001E40,
|
| 3607 |
+
0x1E4100001E42,
|
| 3608 |
+
0x1E4300001E44,
|
| 3609 |
+
0x1E4500001E46,
|
| 3610 |
+
0x1E4700001E48,
|
| 3611 |
+
0x1E4900001E4A,
|
| 3612 |
+
0x1E4B00001E4C,
|
| 3613 |
+
0x1E4D00001E4E,
|
| 3614 |
+
0x1E4F00001E50,
|
| 3615 |
+
0x1E5100001E52,
|
| 3616 |
+
0x1E5300001E54,
|
| 3617 |
+
0x1E5500001E56,
|
| 3618 |
+
0x1E5700001E58,
|
| 3619 |
+
0x1E5900001E5A,
|
| 3620 |
+
0x1E5B00001E5C,
|
| 3621 |
+
0x1E5D00001E5E,
|
| 3622 |
+
0x1E5F00001E60,
|
| 3623 |
+
0x1E6100001E62,
|
| 3624 |
+
0x1E6300001E64,
|
| 3625 |
+
0x1E6500001E66,
|
| 3626 |
+
0x1E6700001E68,
|
| 3627 |
+
0x1E6900001E6A,
|
| 3628 |
+
0x1E6B00001E6C,
|
| 3629 |
+
0x1E6D00001E6E,
|
| 3630 |
+
0x1E6F00001E70,
|
| 3631 |
+
0x1E7100001E72,
|
| 3632 |
+
0x1E7300001E74,
|
| 3633 |
+
0x1E7500001E76,
|
| 3634 |
+
0x1E7700001E78,
|
| 3635 |
+
0x1E7900001E7A,
|
| 3636 |
+
0x1E7B00001E7C,
|
| 3637 |
+
0x1E7D00001E7E,
|
| 3638 |
+
0x1E7F00001E80,
|
| 3639 |
+
0x1E8100001E82,
|
| 3640 |
+
0x1E8300001E84,
|
| 3641 |
+
0x1E8500001E86,
|
| 3642 |
+
0x1E8700001E88,
|
| 3643 |
+
0x1E8900001E8A,
|
| 3644 |
+
0x1E8B00001E8C,
|
| 3645 |
+
0x1E8D00001E8E,
|
| 3646 |
+
0x1E8F00001E90,
|
| 3647 |
+
0x1E9100001E92,
|
| 3648 |
+
0x1E9300001E94,
|
| 3649 |
+
0x1E9500001E9A,
|
| 3650 |
+
0x1E9C00001E9E,
|
| 3651 |
+
0x1E9F00001EA0,
|
| 3652 |
+
0x1EA100001EA2,
|
| 3653 |
+
0x1EA300001EA4,
|
| 3654 |
+
0x1EA500001EA6,
|
| 3655 |
+
0x1EA700001EA8,
|
| 3656 |
+
0x1EA900001EAA,
|
| 3657 |
+
0x1EAB00001EAC,
|
| 3658 |
+
0x1EAD00001EAE,
|
| 3659 |
+
0x1EAF00001EB0,
|
| 3660 |
+
0x1EB100001EB2,
|
| 3661 |
+
0x1EB300001EB4,
|
| 3662 |
+
0x1EB500001EB6,
|
| 3663 |
+
0x1EB700001EB8,
|
| 3664 |
+
0x1EB900001EBA,
|
| 3665 |
+
0x1EBB00001EBC,
|
| 3666 |
+
0x1EBD00001EBE,
|
| 3667 |
+
0x1EBF00001EC0,
|
| 3668 |
+
0x1EC100001EC2,
|
| 3669 |
+
0x1EC300001EC4,
|
| 3670 |
+
0x1EC500001EC6,
|
| 3671 |
+
0x1EC700001EC8,
|
| 3672 |
+
0x1EC900001ECA,
|
| 3673 |
+
0x1ECB00001ECC,
|
| 3674 |
+
0x1ECD00001ECE,
|
| 3675 |
+
0x1ECF00001ED0,
|
| 3676 |
+
0x1ED100001ED2,
|
| 3677 |
+
0x1ED300001ED4,
|
| 3678 |
+
0x1ED500001ED6,
|
| 3679 |
+
0x1ED700001ED8,
|
| 3680 |
+
0x1ED900001EDA,
|
| 3681 |
+
0x1EDB00001EDC,
|
| 3682 |
+
0x1EDD00001EDE,
|
| 3683 |
+
0x1EDF00001EE0,
|
| 3684 |
+
0x1EE100001EE2,
|
| 3685 |
+
0x1EE300001EE4,
|
| 3686 |
+
0x1EE500001EE6,
|
| 3687 |
+
0x1EE700001EE8,
|
| 3688 |
+
0x1EE900001EEA,
|
| 3689 |
+
0x1EEB00001EEC,
|
| 3690 |
+
0x1EED00001EEE,
|
| 3691 |
+
0x1EEF00001EF0,
|
| 3692 |
+
0x1EF100001EF2,
|
| 3693 |
+
0x1EF300001EF4,
|
| 3694 |
+
0x1EF500001EF6,
|
| 3695 |
+
0x1EF700001EF8,
|
| 3696 |
+
0x1EF900001EFA,
|
| 3697 |
+
0x1EFB00001EFC,
|
| 3698 |
+
0x1EFD00001EFE,
|
| 3699 |
+
0x1EFF00001F08,
|
| 3700 |
+
0x1F1000001F16,
|
| 3701 |
+
0x1F2000001F28,
|
| 3702 |
+
0x1F3000001F38,
|
| 3703 |
+
0x1F4000001F46,
|
| 3704 |
+
0x1F5000001F58,
|
| 3705 |
+
0x1F6000001F68,
|
| 3706 |
+
0x1F7000001F71,
|
| 3707 |
+
0x1F7200001F73,
|
| 3708 |
+
0x1F7400001F75,
|
| 3709 |
+
0x1F7600001F77,
|
| 3710 |
+
0x1F7800001F79,
|
| 3711 |
+
0x1F7A00001F7B,
|
| 3712 |
+
0x1F7C00001F7D,
|
| 3713 |
+
0x1FB000001FB2,
|
| 3714 |
+
0x1FB600001FB7,
|
| 3715 |
+
0x1FC600001FC7,
|
| 3716 |
+
0x1FD000001FD3,
|
| 3717 |
+
0x1FD600001FD8,
|
| 3718 |
+
0x1FE000001FE3,
|
| 3719 |
+
0x1FE400001FE8,
|
| 3720 |
+
0x1FF600001FF7,
|
| 3721 |
+
0x214E0000214F,
|
| 3722 |
+
0x218400002185,
|
| 3723 |
+
0x2C3000002C60,
|
| 3724 |
+
0x2C6100002C62,
|
| 3725 |
+
0x2C6500002C67,
|
| 3726 |
+
0x2C6800002C69,
|
| 3727 |
+
0x2C6A00002C6B,
|
| 3728 |
+
0x2C6C00002C6D,
|
| 3729 |
+
0x2C7100002C72,
|
| 3730 |
+
0x2C7300002C75,
|
| 3731 |
+
0x2C7600002C7C,
|
| 3732 |
+
0x2C8100002C82,
|
| 3733 |
+
0x2C8300002C84,
|
| 3734 |
+
0x2C8500002C86,
|
| 3735 |
+
0x2C8700002C88,
|
| 3736 |
+
0x2C8900002C8A,
|
| 3737 |
+
0x2C8B00002C8C,
|
| 3738 |
+
0x2C8D00002C8E,
|
| 3739 |
+
0x2C8F00002C90,
|
| 3740 |
+
0x2C9100002C92,
|
| 3741 |
+
0x2C9300002C94,
|
| 3742 |
+
0x2C9500002C96,
|
| 3743 |
+
0x2C9700002C98,
|
| 3744 |
+
0x2C9900002C9A,
|
| 3745 |
+
0x2C9B00002C9C,
|
| 3746 |
+
0x2C9D00002C9E,
|
| 3747 |
+
0x2C9F00002CA0,
|
| 3748 |
+
0x2CA100002CA2,
|
| 3749 |
+
0x2CA300002CA4,
|
| 3750 |
+
0x2CA500002CA6,
|
| 3751 |
+
0x2CA700002CA8,
|
| 3752 |
+
0x2CA900002CAA,
|
| 3753 |
+
0x2CAB00002CAC,
|
| 3754 |
+
0x2CAD00002CAE,
|
| 3755 |
+
0x2CAF00002CB0,
|
| 3756 |
+
0x2CB100002CB2,
|
| 3757 |
+
0x2CB300002CB4,
|
| 3758 |
+
0x2CB500002CB6,
|
| 3759 |
+
0x2CB700002CB8,
|
| 3760 |
+
0x2CB900002CBA,
|
| 3761 |
+
0x2CBB00002CBC,
|
| 3762 |
+
0x2CBD00002CBE,
|
| 3763 |
+
0x2CBF00002CC0,
|
| 3764 |
+
0x2CC100002CC2,
|
| 3765 |
+
0x2CC300002CC4,
|
| 3766 |
+
0x2CC500002CC6,
|
| 3767 |
+
0x2CC700002CC8,
|
| 3768 |
+
0x2CC900002CCA,
|
| 3769 |
+
0x2CCB00002CCC,
|
| 3770 |
+
0x2CCD00002CCE,
|
| 3771 |
+
0x2CCF00002CD0,
|
| 3772 |
+
0x2CD100002CD2,
|
| 3773 |
+
0x2CD300002CD4,
|
| 3774 |
+
0x2CD500002CD6,
|
| 3775 |
+
0x2CD700002CD8,
|
| 3776 |
+
0x2CD900002CDA,
|
| 3777 |
+
0x2CDB00002CDC,
|
| 3778 |
+
0x2CDD00002CDE,
|
| 3779 |
+
0x2CDF00002CE0,
|
| 3780 |
+
0x2CE100002CE2,
|
| 3781 |
+
0x2CE300002CE5,
|
| 3782 |
+
0x2CEC00002CED,
|
| 3783 |
+
0x2CEE00002CF2,
|
| 3784 |
+
0x2CF300002CF4,
|
| 3785 |
+
0x2D0000002D26,
|
| 3786 |
+
0x2D2700002D28,
|
| 3787 |
+
0x2D2D00002D2E,
|
| 3788 |
+
0x2D3000002D68,
|
| 3789 |
+
0x2D7F00002D97,
|
| 3790 |
+
0x2DA000002DA7,
|
| 3791 |
+
0x2DA800002DAF,
|
| 3792 |
+
0x2DB000002DB7,
|
| 3793 |
+
0x2DB800002DBF,
|
| 3794 |
+
0x2DC000002DC7,
|
| 3795 |
+
0x2DC800002DCF,
|
| 3796 |
+
0x2DD000002DD7,
|
| 3797 |
+
0x2DD800002DDF,
|
| 3798 |
+
0x2DE000002E00,
|
| 3799 |
+
0x2E2F00002E30,
|
| 3800 |
+
0x300500003008,
|
| 3801 |
+
0x302A0000302E,
|
| 3802 |
+
0x303C0000303D,
|
| 3803 |
+
0x304100003097,
|
| 3804 |
+
0x30990000309B,
|
| 3805 |
+
0x309D0000309F,
|
| 3806 |
+
0x30A1000030FB,
|
| 3807 |
+
0x30FC000030FF,
|
| 3808 |
+
0x310500003130,
|
| 3809 |
+
0x31A0000031C0,
|
| 3810 |
+
0x31F000003200,
|
| 3811 |
+
0x340000004DC0,
|
| 3812 |
+
0x4E000000A48D,
|
| 3813 |
+
0xA4D00000A4FE,
|
| 3814 |
+
0xA5000000A60D,
|
| 3815 |
+
0xA6100000A62C,
|
| 3816 |
+
0xA6410000A642,
|
| 3817 |
+
0xA6430000A644,
|
| 3818 |
+
0xA6450000A646,
|
| 3819 |
+
0xA6470000A648,
|
| 3820 |
+
0xA6490000A64A,
|
| 3821 |
+
0xA64B0000A64C,
|
| 3822 |
+
0xA64D0000A64E,
|
| 3823 |
+
0xA64F0000A650,
|
| 3824 |
+
0xA6510000A652,
|
| 3825 |
+
0xA6530000A654,
|
| 3826 |
+
0xA6550000A656,
|
| 3827 |
+
0xA6570000A658,
|
| 3828 |
+
0xA6590000A65A,
|
| 3829 |
+
0xA65B0000A65C,
|
| 3830 |
+
0xA65D0000A65E,
|
| 3831 |
+
0xA65F0000A660,
|
| 3832 |
+
0xA6610000A662,
|
| 3833 |
+
0xA6630000A664,
|
| 3834 |
+
0xA6650000A666,
|
| 3835 |
+
0xA6670000A668,
|
| 3836 |
+
0xA6690000A66A,
|
| 3837 |
+
0xA66B0000A66C,
|
| 3838 |
+
0xA66D0000A670,
|
| 3839 |
+
0xA6740000A67E,
|
| 3840 |
+
0xA67F0000A680,
|
| 3841 |
+
0xA6810000A682,
|
| 3842 |
+
0xA6830000A684,
|
| 3843 |
+
0xA6850000A686,
|
| 3844 |
+
0xA6870000A688,
|
| 3845 |
+
0xA6890000A68A,
|
| 3846 |
+
0xA68B0000A68C,
|
| 3847 |
+
0xA68D0000A68E,
|
| 3848 |
+
0xA68F0000A690,
|
| 3849 |
+
0xA6910000A692,
|
| 3850 |
+
0xA6930000A694,
|
| 3851 |
+
0xA6950000A696,
|
| 3852 |
+
0xA6970000A698,
|
| 3853 |
+
0xA6990000A69A,
|
| 3854 |
+
0xA69B0000A69C,
|
| 3855 |
+
0xA69E0000A6E6,
|
| 3856 |
+
0xA6F00000A6F2,
|
| 3857 |
+
0xA7170000A720,
|
| 3858 |
+
0xA7230000A724,
|
| 3859 |
+
0xA7250000A726,
|
| 3860 |
+
0xA7270000A728,
|
| 3861 |
+
0xA7290000A72A,
|
| 3862 |
+
0xA72B0000A72C,
|
| 3863 |
+
0xA72D0000A72E,
|
| 3864 |
+
0xA72F0000A732,
|
| 3865 |
+
0xA7330000A734,
|
| 3866 |
+
0xA7350000A736,
|
| 3867 |
+
0xA7370000A738,
|
| 3868 |
+
0xA7390000A73A,
|
| 3869 |
+
0xA73B0000A73C,
|
| 3870 |
+
0xA73D0000A73E,
|
| 3871 |
+
0xA73F0000A740,
|
| 3872 |
+
0xA7410000A742,
|
| 3873 |
+
0xA7430000A744,
|
| 3874 |
+
0xA7450000A746,
|
| 3875 |
+
0xA7470000A748,
|
| 3876 |
+
0xA7490000A74A,
|
| 3877 |
+
0xA74B0000A74C,
|
| 3878 |
+
0xA74D0000A74E,
|
| 3879 |
+
0xA74F0000A750,
|
| 3880 |
+
0xA7510000A752,
|
| 3881 |
+
0xA7530000A754,
|
| 3882 |
+
0xA7550000A756,
|
| 3883 |
+
0xA7570000A758,
|
| 3884 |
+
0xA7590000A75A,
|
| 3885 |
+
0xA75B0000A75C,
|
| 3886 |
+
0xA75D0000A75E,
|
| 3887 |
+
0xA75F0000A760,
|
| 3888 |
+
0xA7610000A762,
|
| 3889 |
+
0xA7630000A764,
|
| 3890 |
+
0xA7650000A766,
|
| 3891 |
+
0xA7670000A768,
|
| 3892 |
+
0xA7690000A76A,
|
| 3893 |
+
0xA76B0000A76C,
|
| 3894 |
+
0xA76D0000A76E,
|
| 3895 |
+
0xA76F0000A770,
|
| 3896 |
+
0xA7710000A779,
|
| 3897 |
+
0xA77A0000A77B,
|
| 3898 |
+
0xA77C0000A77D,
|
| 3899 |
+
0xA77F0000A780,
|
| 3900 |
+
0xA7810000A782,
|
| 3901 |
+
0xA7830000A784,
|
| 3902 |
+
0xA7850000A786,
|
| 3903 |
+
0xA7870000A789,
|
| 3904 |
+
0xA78C0000A78D,
|
| 3905 |
+
0xA78E0000A790,
|
| 3906 |
+
0xA7910000A792,
|
| 3907 |
+
0xA7930000A796,
|
| 3908 |
+
0xA7970000A798,
|
| 3909 |
+
0xA7990000A79A,
|
| 3910 |
+
0xA79B0000A79C,
|
| 3911 |
+
0xA79D0000A79E,
|
| 3912 |
+
0xA79F0000A7A0,
|
| 3913 |
+
0xA7A10000A7A2,
|
| 3914 |
+
0xA7A30000A7A4,
|
| 3915 |
+
0xA7A50000A7A6,
|
| 3916 |
+
0xA7A70000A7A8,
|
| 3917 |
+
0xA7A90000A7AA,
|
| 3918 |
+
0xA7AF0000A7B0,
|
| 3919 |
+
0xA7B50000A7B6,
|
| 3920 |
+
0xA7B70000A7B8,
|
| 3921 |
+
0xA7B90000A7BA,
|
| 3922 |
+
0xA7BB0000A7BC,
|
| 3923 |
+
0xA7BD0000A7BE,
|
| 3924 |
+
0xA7BF0000A7C0,
|
| 3925 |
+
0xA7C10000A7C2,
|
| 3926 |
+
0xA7C30000A7C4,
|
| 3927 |
+
0xA7C80000A7C9,
|
| 3928 |
+
0xA7CA0000A7CB,
|
| 3929 |
+
0xA7D10000A7D2,
|
| 3930 |
+
0xA7D30000A7D4,
|
| 3931 |
+
0xA7D50000A7D6,
|
| 3932 |
+
0xA7D70000A7D8,
|
| 3933 |
+
0xA7D90000A7DA,
|
| 3934 |
+
0xA7F60000A7F8,
|
| 3935 |
+
0xA7FA0000A828,
|
| 3936 |
+
0xA82C0000A82D,
|
| 3937 |
+
0xA8400000A874,
|
| 3938 |
+
0xA8800000A8C6,
|
| 3939 |
+
0xA8D00000A8DA,
|
| 3940 |
+
0xA8E00000A8F8,
|
| 3941 |
+
0xA8FB0000A8FC,
|
| 3942 |
+
0xA8FD0000A92E,
|
| 3943 |
+
0xA9300000A954,
|
| 3944 |
+
0xA9800000A9C1,
|
| 3945 |
+
0xA9CF0000A9DA,
|
| 3946 |
+
0xA9E00000A9FF,
|
| 3947 |
+
0xAA000000AA37,
|
| 3948 |
+
0xAA400000AA4E,
|
| 3949 |
+
0xAA500000AA5A,
|
| 3950 |
+
0xAA600000AA77,
|
| 3951 |
+
0xAA7A0000AAC3,
|
| 3952 |
+
0xAADB0000AADE,
|
| 3953 |
+
0xAAE00000AAF0,
|
| 3954 |
+
0xAAF20000AAF7,
|
| 3955 |
+
0xAB010000AB07,
|
| 3956 |
+
0xAB090000AB0F,
|
| 3957 |
+
0xAB110000AB17,
|
| 3958 |
+
0xAB200000AB27,
|
| 3959 |
+
0xAB280000AB2F,
|
| 3960 |
+
0xAB300000AB5B,
|
| 3961 |
+
0xAB600000AB69,
|
| 3962 |
+
0xABC00000ABEB,
|
| 3963 |
+
0xABEC0000ABEE,
|
| 3964 |
+
0xABF00000ABFA,
|
| 3965 |
+
0xAC000000D7A4,
|
| 3966 |
+
0xFA0E0000FA10,
|
| 3967 |
+
0xFA110000FA12,
|
| 3968 |
+
0xFA130000FA15,
|
| 3969 |
+
0xFA1F0000FA20,
|
| 3970 |
+
0xFA210000FA22,
|
| 3971 |
+
0xFA230000FA25,
|
| 3972 |
+
0xFA270000FA2A,
|
| 3973 |
+
0xFB1E0000FB1F,
|
| 3974 |
+
0xFE200000FE30,
|
| 3975 |
+
0xFE730000FE74,
|
| 3976 |
+
0x100000001000C,
|
| 3977 |
+
0x1000D00010027,
|
| 3978 |
+
0x100280001003B,
|
| 3979 |
+
0x1003C0001003E,
|
| 3980 |
+
0x1003F0001004E,
|
| 3981 |
+
0x100500001005E,
|
| 3982 |
+
0x10080000100FB,
|
| 3983 |
+
0x101FD000101FE,
|
| 3984 |
+
0x102800001029D,
|
| 3985 |
+
0x102A0000102D1,
|
| 3986 |
+
0x102E0000102E1,
|
| 3987 |
+
0x1030000010320,
|
| 3988 |
+
0x1032D00010341,
|
| 3989 |
+
0x103420001034A,
|
| 3990 |
+
0x103500001037B,
|
| 3991 |
+
0x103800001039E,
|
| 3992 |
+
0x103A0000103C4,
|
| 3993 |
+
0x103C8000103D0,
|
| 3994 |
+
0x104280001049E,
|
| 3995 |
+
0x104A0000104AA,
|
| 3996 |
+
0x104D8000104FC,
|
| 3997 |
+
0x1050000010528,
|
| 3998 |
+
0x1053000010564,
|
| 3999 |
+
0x10597000105A2,
|
| 4000 |
+
0x105A3000105B2,
|
| 4001 |
+
0x105B3000105BA,
|
| 4002 |
+
0x105BB000105BD,
|
| 4003 |
+
0x1060000010737,
|
| 4004 |
+
0x1074000010756,
|
| 4005 |
+
0x1076000010768,
|
| 4006 |
+
0x1078000010781,
|
| 4007 |
+
0x1080000010806,
|
| 4008 |
+
0x1080800010809,
|
| 4009 |
+
0x1080A00010836,
|
| 4010 |
+
0x1083700010839,
|
| 4011 |
+
0x1083C0001083D,
|
| 4012 |
+
0x1083F00010856,
|
| 4013 |
+
0x1086000010877,
|
| 4014 |
+
0x108800001089F,
|
| 4015 |
+
0x108E0000108F3,
|
| 4016 |
+
0x108F4000108F6,
|
| 4017 |
+
0x1090000010916,
|
| 4018 |
+
0x109200001093A,
|
| 4019 |
+
0x10980000109B8,
|
| 4020 |
+
0x109BE000109C0,
|
| 4021 |
+
0x10A0000010A04,
|
| 4022 |
+
0x10A0500010A07,
|
| 4023 |
+
0x10A0C00010A14,
|
| 4024 |
+
0x10A1500010A18,
|
| 4025 |
+
0x10A1900010A36,
|
| 4026 |
+
0x10A3800010A3B,
|
| 4027 |
+
0x10A3F00010A40,
|
| 4028 |
+
0x10A6000010A7D,
|
| 4029 |
+
0x10A8000010A9D,
|
| 4030 |
+
0x10AC000010AC8,
|
| 4031 |
+
0x10AC900010AE7,
|
| 4032 |
+
0x10B0000010B36,
|
| 4033 |
+
0x10B4000010B56,
|
| 4034 |
+
0x10B6000010B73,
|
| 4035 |
+
0x10B8000010B92,
|
| 4036 |
+
0x10C0000010C49,
|
| 4037 |
+
0x10CC000010CF3,
|
| 4038 |
+
0x10D0000010D28,
|
| 4039 |
+
0x10D3000010D3A,
|
| 4040 |
+
0x10E8000010EAA,
|
| 4041 |
+
0x10EAB00010EAD,
|
| 4042 |
+
0x10EB000010EB2,
|
| 4043 |
+
0x10EFD00010F1D,
|
| 4044 |
+
0x10F2700010F28,
|
| 4045 |
+
0x10F3000010F51,
|
| 4046 |
+
0x10F7000010F86,
|
| 4047 |
+
0x10FB000010FC5,
|
| 4048 |
+
0x10FE000010FF7,
|
| 4049 |
+
0x1100000011047,
|
| 4050 |
+
0x1106600011076,
|
| 4051 |
+
0x1107F000110BB,
|
| 4052 |
+
0x110C2000110C3,
|
| 4053 |
+
0x110D0000110E9,
|
| 4054 |
+
0x110F0000110FA,
|
| 4055 |
+
0x1110000011135,
|
| 4056 |
+
0x1113600011140,
|
| 4057 |
+
0x1114400011148,
|
| 4058 |
+
0x1115000011174,
|
| 4059 |
+
0x1117600011177,
|
| 4060 |
+
0x11180000111C5,
|
| 4061 |
+
0x111C9000111CD,
|
| 4062 |
+
0x111CE000111DB,
|
| 4063 |
+
0x111DC000111DD,
|
| 4064 |
+
0x1120000011212,
|
| 4065 |
+
0x1121300011238,
|
| 4066 |
+
0x1123E00011242,
|
| 4067 |
+
0x1128000011287,
|
| 4068 |
+
0x1128800011289,
|
| 4069 |
+
0x1128A0001128E,
|
| 4070 |
+
0x1128F0001129E,
|
| 4071 |
+
0x1129F000112A9,
|
| 4072 |
+
0x112B0000112EB,
|
| 4073 |
+
0x112F0000112FA,
|
| 4074 |
+
0x1130000011304,
|
| 4075 |
+
0x113050001130D,
|
| 4076 |
+
0x1130F00011311,
|
| 4077 |
+
0x1131300011329,
|
| 4078 |
+
0x1132A00011331,
|
| 4079 |
+
0x1133200011334,
|
| 4080 |
+
0x113350001133A,
|
| 4081 |
+
0x1133B00011345,
|
| 4082 |
+
0x1134700011349,
|
| 4083 |
+
0x1134B0001134E,
|
| 4084 |
+
0x1135000011351,
|
| 4085 |
+
0x1135700011358,
|
| 4086 |
+
0x1135D00011364,
|
| 4087 |
+
0x113660001136D,
|
| 4088 |
+
0x1137000011375,
|
| 4089 |
+
0x114000001144B,
|
| 4090 |
+
0x114500001145A,
|
| 4091 |
+
0x1145E00011462,
|
| 4092 |
+
0x11480000114C6,
|
| 4093 |
+
0x114C7000114C8,
|
| 4094 |
+
0x114D0000114DA,
|
| 4095 |
+
0x11580000115B6,
|
| 4096 |
+
0x115B8000115C1,
|
| 4097 |
+
0x115D8000115DE,
|
| 4098 |
+
0x1160000011641,
|
| 4099 |
+
0x1164400011645,
|
| 4100 |
+
0x116500001165A,
|
| 4101 |
+
0x11680000116B9,
|
| 4102 |
+
0x116C0000116CA,
|
| 4103 |
+
0x117000001171B,
|
| 4104 |
+
0x1171D0001172C,
|
| 4105 |
+
0x117300001173A,
|
| 4106 |
+
0x1174000011747,
|
| 4107 |
+
0x118000001183B,
|
| 4108 |
+
0x118C0000118EA,
|
| 4109 |
+
0x118FF00011907,
|
| 4110 |
+
0x119090001190A,
|
| 4111 |
+
0x1190C00011914,
|
| 4112 |
+
0x1191500011917,
|
| 4113 |
+
0x1191800011936,
|
| 4114 |
+
0x1193700011939,
|
| 4115 |
+
0x1193B00011944,
|
| 4116 |
+
0x119500001195A,
|
| 4117 |
+
0x119A0000119A8,
|
| 4118 |
+
0x119AA000119D8,
|
| 4119 |
+
0x119DA000119E2,
|
| 4120 |
+
0x119E3000119E5,
|
| 4121 |
+
0x11A0000011A3F,
|
| 4122 |
+
0x11A4700011A48,
|
| 4123 |
+
0x11A5000011A9A,
|
| 4124 |
+
0x11A9D00011A9E,
|
| 4125 |
+
0x11AB000011AF9,
|
| 4126 |
+
0x11C0000011C09,
|
| 4127 |
+
0x11C0A00011C37,
|
| 4128 |
+
0x11C3800011C41,
|
| 4129 |
+
0x11C5000011C5A,
|
| 4130 |
+
0x11C7200011C90,
|
| 4131 |
+
0x11C9200011CA8,
|
| 4132 |
+
0x11CA900011CB7,
|
| 4133 |
+
0x11D0000011D07,
|
| 4134 |
+
0x11D0800011D0A,
|
| 4135 |
+
0x11D0B00011D37,
|
| 4136 |
+
0x11D3A00011D3B,
|
| 4137 |
+
0x11D3C00011D3E,
|
| 4138 |
+
0x11D3F00011D48,
|
| 4139 |
+
0x11D5000011D5A,
|
| 4140 |
+
0x11D6000011D66,
|
| 4141 |
+
0x11D6700011D69,
|
| 4142 |
+
0x11D6A00011D8F,
|
| 4143 |
+
0x11D9000011D92,
|
| 4144 |
+
0x11D9300011D99,
|
| 4145 |
+
0x11DA000011DAA,
|
| 4146 |
+
0x11EE000011EF7,
|
| 4147 |
+
0x11F0000011F11,
|
| 4148 |
+
0x11F1200011F3B,
|
| 4149 |
+
0x11F3E00011F43,
|
| 4150 |
+
0x11F5000011F5A,
|
| 4151 |
+
0x11FB000011FB1,
|
| 4152 |
+
0x120000001239A,
|
| 4153 |
+
0x1248000012544,
|
| 4154 |
+
0x12F9000012FF1,
|
| 4155 |
+
0x1300000013430,
|
| 4156 |
+
0x1344000013456,
|
| 4157 |
+
0x1440000014647,
|
| 4158 |
+
0x1680000016A39,
|
| 4159 |
+
0x16A4000016A5F,
|
| 4160 |
+
0x16A6000016A6A,
|
| 4161 |
+
0x16A7000016ABF,
|
| 4162 |
+
0x16AC000016ACA,
|
| 4163 |
+
0x16AD000016AEE,
|
| 4164 |
+
0x16AF000016AF5,
|
| 4165 |
+
0x16B0000016B37,
|
| 4166 |
+
0x16B4000016B44,
|
| 4167 |
+
0x16B5000016B5A,
|
| 4168 |
+
0x16B6300016B78,
|
| 4169 |
+
0x16B7D00016B90,
|
| 4170 |
+
0x16E6000016E80,
|
| 4171 |
+
0x16F0000016F4B,
|
| 4172 |
+
0x16F4F00016F88,
|
| 4173 |
+
0x16F8F00016FA0,
|
| 4174 |
+
0x16FE000016FE2,
|
| 4175 |
+
0x16FE300016FE5,
|
| 4176 |
+
0x16FF000016FF2,
|
| 4177 |
+
0x17000000187F8,
|
| 4178 |
+
0x1880000018CD6,
|
| 4179 |
+
0x18D0000018D09,
|
| 4180 |
+
0x1AFF00001AFF4,
|
| 4181 |
+
0x1AFF50001AFFC,
|
| 4182 |
+
0x1AFFD0001AFFF,
|
| 4183 |
+
0x1B0000001B123,
|
| 4184 |
+
0x1B1320001B133,
|
| 4185 |
+
0x1B1500001B153,
|
| 4186 |
+
0x1B1550001B156,
|
| 4187 |
+
0x1B1640001B168,
|
| 4188 |
+
0x1B1700001B2FC,
|
| 4189 |
+
0x1BC000001BC6B,
|
| 4190 |
+
0x1BC700001BC7D,
|
| 4191 |
+
0x1BC800001BC89,
|
| 4192 |
+
0x1BC900001BC9A,
|
| 4193 |
+
0x1BC9D0001BC9F,
|
| 4194 |
+
0x1CF000001CF2E,
|
| 4195 |
+
0x1CF300001CF47,
|
| 4196 |
+
0x1DA000001DA37,
|
| 4197 |
+
0x1DA3B0001DA6D,
|
| 4198 |
+
0x1DA750001DA76,
|
| 4199 |
+
0x1DA840001DA85,
|
| 4200 |
+
0x1DA9B0001DAA0,
|
| 4201 |
+
0x1DAA10001DAB0,
|
| 4202 |
+
0x1DF000001DF1F,
|
| 4203 |
+
0x1DF250001DF2B,
|
| 4204 |
+
0x1E0000001E007,
|
| 4205 |
+
0x1E0080001E019,
|
| 4206 |
+
0x1E01B0001E022,
|
| 4207 |
+
0x1E0230001E025,
|
| 4208 |
+
0x1E0260001E02B,
|
| 4209 |
+
0x1E08F0001E090,
|
| 4210 |
+
0x1E1000001E12D,
|
| 4211 |
+
0x1E1300001E13E,
|
| 4212 |
+
0x1E1400001E14A,
|
| 4213 |
+
0x1E14E0001E14F,
|
| 4214 |
+
0x1E2900001E2AF,
|
| 4215 |
+
0x1E2C00001E2FA,
|
| 4216 |
+
0x1E4D00001E4FA,
|
| 4217 |
+
0x1E7E00001E7E7,
|
| 4218 |
+
0x1E7E80001E7EC,
|
| 4219 |
+
0x1E7ED0001E7EF,
|
| 4220 |
+
0x1E7F00001E7FF,
|
| 4221 |
+
0x1E8000001E8C5,
|
| 4222 |
+
0x1E8D00001E8D7,
|
| 4223 |
+
0x1E9220001E94C,
|
| 4224 |
+
0x1E9500001E95A,
|
| 4225 |
+
0x200000002A6E0,
|
| 4226 |
+
0x2A7000002B73A,
|
| 4227 |
+
0x2B7400002B81E,
|
| 4228 |
+
0x2B8200002CEA2,
|
| 4229 |
+
0x2CEB00002EBE1,
|
| 4230 |
+
0x2EBF00002EE5E,
|
| 4231 |
+
0x300000003134B,
|
| 4232 |
+
0x31350000323B0,
|
| 4233 |
+
),
|
| 4234 |
+
"CONTEXTJ": (0x200C0000200E,),
|
| 4235 |
+
"CONTEXTO": (
|
| 4236 |
+
0xB7000000B8,
|
| 4237 |
+
0x37500000376,
|
| 4238 |
+
0x5F3000005F5,
|
| 4239 |
+
0x6600000066A,
|
| 4240 |
+
0x6F0000006FA,
|
| 4241 |
+
0x30FB000030FC,
|
| 4242 |
+
),
|
| 4243 |
+
}
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Given a list of integers, made up of (hopefully) a small number of long runs
|
| 3 |
+
of consecutive integers, compute a representation of the form
|
| 4 |
+
((start1, end1), (start2, end2) ...). Then answer the question "was x present
|
| 5 |
+
in the original list?" in time O(log(# runs)).
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import bisect
|
| 9 |
+
from typing import List, Tuple
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def intranges_from_list(list_: List[int]) -> Tuple[int, ...]:
|
| 13 |
+
"""Represent a list of integers as a sequence of ranges:
|
| 14 |
+
((start_0, end_0), (start_1, end_1), ...), such that the original
|
| 15 |
+
integers are exactly those x such that start_i <= x < end_i for some i.
|
| 16 |
+
|
| 17 |
+
Ranges are encoded as single integers (start << 32 | end), not as tuples.
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
sorted_list = sorted(list_)
|
| 21 |
+
ranges = []
|
| 22 |
+
last_write = -1
|
| 23 |
+
for i in range(len(sorted_list)):
|
| 24 |
+
if i + 1 < len(sorted_list):
|
| 25 |
+
if sorted_list[i] == sorted_list[i + 1] - 1:
|
| 26 |
+
continue
|
| 27 |
+
current_range = sorted_list[last_write + 1 : i + 1]
|
| 28 |
+
ranges.append(_encode_range(current_range[0], current_range[-1] + 1))
|
| 29 |
+
last_write = i
|
| 30 |
+
|
| 31 |
+
return tuple(ranges)
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def _encode_range(start: int, end: int) -> int:
|
| 35 |
+
return (start << 32) | end
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def _decode_range(r: int) -> Tuple[int, int]:
|
| 39 |
+
return (r >> 32), (r & ((1 << 32) - 1))
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def intranges_contain(int_: int, ranges: Tuple[int, ...]) -> bool:
|
| 43 |
+
"""Determine if `int_` falls into one of the ranges in `ranges`."""
|
| 44 |
+
tuple_ = _encode_range(int_, 0)
|
| 45 |
+
pos = bisect.bisect_left(ranges, tuple_)
|
| 46 |
+
# we could be immediately ahead of a tuple (start, end)
|
| 47 |
+
# with start < int_ <= end
|
| 48 |
+
if pos > 0:
|
| 49 |
+
left, right = _decode_range(ranges[pos - 1])
|
| 50 |
+
if left <= int_ < right:
|
| 51 |
+
return True
|
| 52 |
+
# or we could be immediately behind a tuple (int_, end)
|
| 53 |
+
if pos < len(ranges):
|
| 54 |
+
left, _ = _decode_range(ranges[pos])
|
| 55 |
+
if left == int_:
|
| 56 |
+
return True
|
| 57 |
+
return False
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__version__ = "3.10"
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/py.typed
ADDED
|
File without changes
|
moondream/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
__title__ = "packaging"
|
| 6 |
+
__summary__ = "Core utilities for Python packages"
|
| 7 |
+
__uri__ = "https://github.com/pypa/packaging"
|
| 8 |
+
|
| 9 |
+
__version__ = "24.2"
|
| 10 |
+
|
| 11 |
+
__author__ = "Donald Stufft and individual contributors"
|
| 12 |
+
__email__ = "donald@stufft.io"
|
| 13 |
+
|
| 14 |
+
__license__ = "BSD-2-Clause or Apache-2.0"
|
| 15 |
+
__copyright__ = f"2014 {__author__}"
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (506 Bytes). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-310.pyc
ADDED
|
Binary file (3.38 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-310.pyc
ADDED
|
Binary file (6.57 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-310.pyc
ADDED
|
Binary file (3.43 kB). View file
|
|
|
moondream/lib/python3.10/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-310.pyc
ADDED
|
Binary file (9.25 kB). View file
|
|
|