"s T d dl mZ ddlZddlZddlZddlmZmZ d dlm Z dZ dZ ej d Z G d d e Z G d de Z G d de Z G d de Zd Zd Zd Zd Zd Zd Zd%dZd Zd Zd Zd Zd%dZd Zd Z d Z!d&d"Z"d'd#Z#d(d$Z$dS )) )idnadata N)UnionOptional)intranges_contain s xn--u [.。.。]c e Zd ZdZdS ) IDNAErrorz7 Base exception for all IDNA-encoding related problems N__name__ __module____qualname____doc__ /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/idna/core.pyr r s AADr r c e Zd ZdZdS ) IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr r r r r r s GGDr r c e Zd ZdZdS )InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr r r r r r s HHDr r c e Zd ZdZdS )InvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used Nr r r r r r s OODr r c t j t | }|dk r0t j t | st d |S )Nr z Unknown character in unicodedata)unicodedata combiningchrname ValueError)cpvs r _combining_classr! sO c"gg&&AAvvB(( A?@@@Hr c \ t t | t j | S )N)r ordr scripts)r scripts r _is_scriptr&